Changeset 3517

Show
Ignore:
Timestamp:
02/12/06 07:53:23 (3 years ago)
Author:
ryan
Message:

Death to trailing tabs. Props Mark J. fixes #2405

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/readme.html

    r3339 r3517  
    1717        padding: .2em 2em; 
    1818    } 
    19      
     19 
    2020    h1 { 
    2121        color: #006; 
     
    2323        font-weight: lighter; 
    2424    } 
    25      
     25 
    2626    h2 { 
    2727        font-size: 16px; 
    2828    } 
    29      
     29 
    3030    p, li, dt { 
    3131        line-height: 140%; 
  • trunk/wp-admin/admin-db.php

    r3350 r3517  
    1515 
    1616    $editable = get_editable_user_ids( $user_id ); 
    17      
     17 
    1818    if( !$editable ) { 
    1919        $other_drafts = ''; 
     
    4343function get_editable_user_ids( $user_id, $exclude_zeros = true ) { 
    4444    global $wpdb; 
    45      
     45 
    4646    $user = new WP_User( $user_id ); 
    47      
     47 
    4848    if ( ! $user->has_cap('edit_others_posts') ) { 
    4949        if ( $user->has_cap('edit_posts') || $exclude_zeros == false ) 
     
    5858    if ( $exclude_zeros ) 
    5959        $query .= " AND meta_value != '0'"; 
    60          
     60 
    6161    return $wpdb->get_col( $query ); 
    6262} 
     
    112112        $wpdb->query ("UPDATE $wpdb->categories SET cat_name = '$cat_name', category_nicename = '$category_nicename', category_description = '$category_description', category_parent = '$category_parent' WHERE cat_ID = '$cat_ID'"); 
    113113    } 
    114      
     114 
    115115    if ( $category_nicename == '' ) { 
    116116        $category_nicename = sanitize_title($cat_name, $cat_ID ); 
     
    243243function get_link($link_id, $output = OBJECT) { 
    244244    global $wpdb; 
    245      
     245 
    246246    $link = $wpdb->get_row("SELECT * FROM $wpdb->links WHERE link_id = '$link_id'"); 
    247247 
     
    259259function wp_insert_link($linkdata) { 
    260260    global $wpdb, $current_user; 
    261      
     261 
    262262    extract($linkdata); 
    263263 
     
    267267 
    268268    if ( empty($link_rating) ) 
    269         $link_rating = 0;   
     269        $link_rating = 0; 
    270270 
    271271    if ( empty($link_target) ) 
    272         $link_target = '';  
     272        $link_target = ''; 
    273273 
    274274    if ( empty($link_visible) ) 
    275275        $link_visible = 'Y'; 
    276          
     276 
    277277    if ( empty($link_owner) ) 
    278278        $link_owner = $current_user->id; 
     
    293293        $link_id = $wpdb->insert_id; 
    294294    } 
    295      
     295 
    296296    if ( $update ) 
    297297        do_action('edit_link', $link_id); 
     
    306306 
    307307    $link_id = (int) $linkdata['link_id']; 
    308      
     308 
    309309    $link = get_link($link_id, ARRAY_A); 
    310      
     310 
    311311    // Escape data pulled from DB. 
    312312    $link = add_magic_quotes($link); 
    313      
     313 
    314314    // Merge old and new fields with new fields overwriting old ones. 
    315315    $linkdata = array_merge($link, $linkdata); 
     
    322322 
    323323    do_action('delete_link', $link_id); 
    324     return $wpdb->query("DELETE FROM $wpdb->links WHERE link_id = '$link_id'");     
     324    return $wpdb->query("DELETE FROM $wpdb->links WHERE link_id = '$link_id'"); 
    325325} 
    326326 
  • trunk/wp-admin/admin-functions.php

    r3513 r3517  
    77    if ( 'page' == $_POST['post_type'] ) { 
    88        if ( !current_user_can('edit_pages') ) 
    9             die(__('You are not allowed to create pages on this blog.'));   
     9            die(__('You are not allowed to create pages on this blog.')); 
    1010    } else { 
    1111        if ( !current_user_can('edit_posts') ) 
     
    3131 
    3232    if ($_POST['post_author'] != $_POST['user_ID']) { 
    33         if ( 'page' == $_POST['post_type'] ) {      
     33        if ( 'page' == $_POST['post_type'] ) { 
    3434            if ( !current_user_can('edit_others_pages') ) 
    3535                die(__('You cannot create pages as this user.')); 
     
    3737            if ( !current_user_can('edit_others_posts') ) 
    3838                die(__('You cannot post as this user.')); 
    39              
     39 
    4040        } 
    4141    } 
     
    5353    if ( 'page' == $_POST['post_type'] ) { 
    5454        if ('publish' == $_POST['post_status'] && !current_user_can('publish_pages')) 
    55             $_POST['post_status'] = 'draft';    
     55            $_POST['post_status'] = 'draft'; 
    5656    } else { 
    5757        if ('publish' == $_POST['post_status'] && !current_user_can('publish_posts')) 
     
    141141    if ( 'page' == $_POST['post_type'] ) { 
    142142        if ( !current_user_can('edit_page', $post_ID) ) 
    143             die(__('You are not allowed to edit this page.'));  
     143            die(__('You are not allowed to edit this page.')); 
    144144    } else { 
    145145        if ( !current_user_can('edit_post', $post_ID) ) 
     
    164164 
    165165    if ($_POST['post_author'] != $_POST['user_ID']) { 
    166         if ( 'page' == $_POST['post_type'] ) {      
     166        if ( 'page' == $_POST['post_type'] ) { 
    167167            if ( !current_user_can('edit_others_pages') ) 
    168168                die(__('You cannot edit pages as this user.')); 
     
    170170            if ( !current_user_can('edit_others_posts') ) 
    171171                die(__('You cannot edit posts as this user.')); 
    172              
     172 
    173173        } 
    174174    } 
     
    186186    if ( 'page' == $_POST['post_type'] ) { 
    187187        if ('publish' == $_POST['post_status'] && !current_user_can('edit_published_pages')) 
    188             $_POST['post_status'] = 'draft';    
     188            $_POST['post_status'] = 'draft'; 
    189189    } else { 
    190190        if ('publish' == $_POST['post_status'] && !current_user_can('edit_published_posts')) 
     
    218218            update_meta($key, $value['key'], $value['value']); 
    219219    } 
    220      
     220 
    221221    if ($_POST['deletemeta']) { 
    222222        foreach ($_POST['deletemeta'] as $key => $value) 
     
    465465function get_link_to_edit($link_id) { 
    466466    $link = get_link($link_id); 
    467      
     467 
    468468    $link->link_url = wp_specialchars($link->link_url, 1); 
    469469    $link->link_name = wp_specialchars($link->link_name, 1); 
     
    471471    $link->link_notes = wp_specialchars($link->link_notes); 
    472472    $link->link_rss = wp_specialchars($link->link_rss); 
    473      
     473 
    474474    return $link; 
    475475} 
     
    480480    else 
    481481        $link->link_url = ''; 
    482      
     482 
    483483    if ( isset($_GET['name']) ) 
    484484        $link->link_name = wp_specialchars($_GET['name'], 1); 
    485485    else 
    486486        $link->link_name = ''; 
    487          
     487 
    488488    return $link; 
    489489} 
    490490 
    491491function add_link() { 
    492     return edit_link();     
     492    return edit_link(); 
    493493} 
    494494 
     
    503503    $_POST['link_rss'] = wp_specialchars($_POST['link_rss']); 
    504504    $auto_toggle = get_autotoggle($_POST['link_category']); 
    505      
     505 
    506506    // if we are in an auto toggle category and this one is visible then we 
    507507    // need to make the others invisible before we add this new one. 
     
    578578        } 
    579579    } 
    580      
     580 
    581581    usort($result, 'sort_cats'); 
    582582 
     
    616616                    $edit = "<a href='categories.php?action=edit&amp;cat_ID=$category->cat_ID' class='edit'>".__('Edit')."</a></td>"; 
    617617                    $default_cat_id = get_option('default_category'); 
    618                      
     618 
    619619                    if ($category->cat_ID != $default_cat_id) 
    620620                        $edit .= "<td><a href='categories.php?action=delete&amp;cat_ID=$category->cat_ID' onclick=\"return deleteSomething( 'cat', $category->cat_ID, '".sprintf(__("You are about to delete the category &quot;%s&quot;.  All of its posts will go to the default category.\\n&quot;OK&quot; to delete, &quot;Cancel&quot; to stop."), wp_specialchars($category->cat_name, 1))."' );\" class='delete'>".__('Delete')."</a>"; 
     
    700700function link_category_dropdown($fieldname, $selected = 0) { 
    701701    global $wpdb; 
    702      
     702 
    703703    $results = $wpdb->get_results("SELECT cat_id, cat_name, auto_toggle FROM $wpdb->linkcategories ORDER BY cat_id"); 
    704704    echo "\n<select name='$fieldname' size='1'>\n"; 
     
    18351835</div> 
    18361836</form> 
    1837 <?php   
     1837<?php 
    18381838} 
    18391839 
  • trunk/wp-admin/admin.php

    r3422 r3517  
    5454        if (! isset($_GET['noheader'])) 
    5555            require_once(ABSPATH . '/wp-admin/admin-header.php'); 
    56          
     56 
    5757        do_action($page_hook); 
    5858    } else { 
     
    6060            die(__('Invalid plugin page')); 
    6161        } 
    62          
     62 
    6363        if (! file_exists(ABSPATH . "wp-content/plugins/$plugin_page")) 
    6464            die(sprintf(__('Cannot load %s.'), $plugin_page)); 
     
    6666        if (! isset($_GET['noheader'])) 
    6767            require_once(ABSPATH . '/wp-admin/admin-header.php'); 
    68          
     68 
    6969        include(ABSPATH . "wp-content/plugins/$plugin_page"); 
    7070    } 
    71      
     71 
    7272    include(ABSPATH . 'wp-admin/admin-footer.php'); 
    7373 
    7474    exit(); 
    7575} else if (isset($_GET['import'])) { 
    76      
     76 
    7777    $importer = $_GET['import']; 
    7878 
     
    8080        die(__('Invalid importer.')); 
    8181    } 
    82          
     82 
    8383    if (! file_exists(ABSPATH . "wp-admin/import/$importer.php")) 
    8484        die(__('Cannot load importer.')); 
    85      
     85 
    8686    include(ABSPATH . "wp-admin/import/$importer.php"); 
    8787 
    8888    $parent_file = 'import.php'; 
    8989    $title = __('Import'); 
    90      
     90 
    9191    if (! isset($_GET['noheader'])) 
    9292        require_once(ABSPATH . 'wp-admin/admin-header.php'); 
     
    9898 
    9999    call_user_func($wp_importers[$importer][2]); 
    100              
     100 
    101101    include(ABSPATH . 'wp-admin/admin-footer.php'); 
    102102 
  • trunk/wp-admin/bookmarklet.php

    r2972 r3517  
    2626$popuptitle = wp_specialchars(stripslashes($popuptitle)); 
    2727$text       = wp_specialchars(stripslashes(urldecode($text))); 
    28      
     28 
    2929$popuptitle = funky_javascript_fix($popuptitle); 
    3030$text       = funky_javascript_fix($text); 
    31      
     31 
    3232$post_title = wp_specialchars($_REQUEST['post_title']); 
    3333if (!empty($post_title)) 
     
    3535else 
    3636    $post->post_title = $popuptitle; 
    37      
     37 
    3838   
    3939$content  = wp_specialchars($_REQUEST['content']); 
  • trunk/wp-admin/cat-js.php

    r3500 r3517  
    6868    var ids   = new Array(); 
    6969    var names = new Array(); 
    70      
     70 
    7171    ids   = myPload( ajaxCat.response ); 
    7272    names = myPload( newcat.value ); 
     
    8181            return; 
    8282        } 
    83          
     83 
    8484        var exists = document.getElementById('category-' + id); 
    85          
     85 
    8686        if (exists) { 
    8787            var moveIt = exists.parentNode; 
     
    101101            newLabel.id = 'new-category-' + id; 
    102102            newLabel.className = 'selectit fade'; 
    103      
     103 
    104104            var newCheck = document.createElement('input'); 
    105105            newCheck.type = 'checkbox'; 
     
    108108            newCheck.id = 'category-' + id; 
    109109            newLabel.appendChild(newCheck); 
    110      
     110 
    111111            var newLabelText = document.createTextNode(' ' + names[i]); 
    112112            newLabel.appendChild(newLabelText); 
    113      
     113 
    114114            catDiv.insertBefore(newLabel, catDiv.firstChild); 
    115115            newCheck.checked = 'checked'; 
    116      
     116 
    117117            Fat.fade_all(); 
    118118            newLabel.className = 'selectit'; 
  • trunk/wp-admin/categories.php

    r3422 r3517  
    2828    if ( !current_user_can('manage_categories') ) 
    2929        die (__('Cheatin&#8217; uh?')); 
    30      
     30 
    3131    wp_insert_category($_POST); 
    3232 
     
    9797    if ( !current_user_can('manage_categories') ) 
    9898        die (__('Cheatin&#8217; uh?')); 
    99      
     99 
    100100    wp_update_category($_POST); 
    101101 
  • trunk/wp-admin/edit-comments.php

    r3422 r3517  
    8989                $class .= ' alternate'; 
    9090            echo "<li id='comment-$comment->comment_ID' class='$class'>"; 
    91 ?>      
     91?> 
    9292        <p><strong><?php _e('Name:') ?></strong> <?php comment_author() ?> <?php if ($comment->comment_author_email) { ?>| <strong><?php _e('E-mail:') ?></strong> <?php comment_author_email_link() ?> <?php } if ($comment->comment_author_url && 'http://' != $comment->comment_author_url ) { ?> | <strong><?php _e('URI:') ?></strong> <?php comment_author_url_link() ?> <?php } ?>| <strong><?php _e('IP:') ?></strong> <a href="http://ws.arin.net/cgi-bin/whois.pl?queryinput=<?php comment_author_IP() ?>"><?php comment_author_IP() ?></a></p> 
    93          
     93 
    9494        <?php comment_text() ?> 
    9595 
     
    119119        <p> 
    120120        <strong><?php _e('No comments found.') ?></strong></p> 
    121          
     121 
    122122        <?php 
    123123    } // end if ($comments) 
  • trunk/wp-admin/edit-form-ajax-cat.php

    r3135 r3517  
    1818foreach ($names as $cat_name) { 
    1919    $cat_name = trim( $cat_name ); 
    20      
     20 
    2121    if ( !$category_nicename = sanitize_title($cat_name) ) 
    2222        continue; 
     
    2525        continue; 
    2626    } 
    27      
     27 
    2828    $new_cat_id = wp_create_category($cat_name); 
    29      
     29 
    3030    $ids[] = (string) $new_cat_id; 
    3131} 
  • trunk/wp-admin/edit.php

    r3513 r3517  
    9494    <select name='m'> 
    9595    <?php 
    96         foreach ($arc_result as $arc_row) {             
     96        foreach ($arc_result as $arc_row) { 
    9797            $arc_year  = $arc_row->yyear; 
    9898            $arc_month = $arc_row->mmonth; 
    99              
     99 
    100100            if( isset($_GET['m']) && $arc_year . zeroise($arc_month, 2) == (int) $_GET['m'] ) 
    101101                $default = 'selected="selected"'; 
    102102            else 
    103103                $default = null; 
    104              
     104 
    105105            echo "<option $default value=\"" . $arc_year.zeroise($arc_month, 2) . '">'; 
    106106            echo $month[zeroise($arc_month, 2)] . " $arc_year"; 
     
    158158 
    159159    switch($column_name) { 
    160      
     160 
    161161    case 'id': 
    162162        ?> 
  • trunk/wp-admin/import/blogger.php

    r3397 r3517  
    136136        if ($header) curl_setopt($ch, CURLOPT_HTTPHEADER, $header); 
    137137        $response = curl_exec ($ch); 
    138      
     138 
    139139        if ($parse) { 
    140140            $response = $this->parse_response($response); 
     
    142142            return $response; 
    143143        } 
    144      
     144 
    145145        return $response; 
    146146    } 
     
    211211        update_option('import-blogger', $this->import); 
    212212    } 
    213      
     213 
    214214    // Redirects to next step 
    215215    function do_next_step() { 
     
    225225                $this->login_form(__('The script will log into your Blogger account, change some settings so it can read your blog, and restore the original settings when it\'s done. Here\'s what you do:').'</p><ol><li>'.__('Back up your Blogger template.').'</li><li>'.__('Back up any other Blogger settings you might need later.').'</li><li>'.__('Log out of Blogger').'</li><li>'.__('Log in <em>here</em> with your Blogger username and password.').'</li><li>'.__('On the next screen, click one of your Blogger blogs.').'</li><li>'.__('Do not close this window or navigate away until the process is complete.').'</li></ol>'); 
    226226            } 
    227          
    228             // Try logging in. If we get an array of cookies back, we at least connected.       
     227 
     228            // Try logging in. If we get an array of cookies back, we at least connected. 
    229229            $this->import['cookies'] = $this->login_blogger($_POST['user'], $_POST['pass']); 
    230230            if ( !is_array( $this->import['cookies'] ) ) { 
    231231                $this->login_form(__('Login failed. Please enter your credentials again.')); 
    232232            } 
    233              
     233 
    234234            // Save the password so we can log the browser in when it's time to publish. 
    235235            $this->import['pass'] = $_POST['pass']; 
     
    396396                $archive = $this->get_blogger($url); 
    397397                if ( $archive['code'] > 200 ) 
    398                     continue;   
     398                    continue; 
    399399                $posts = explode('<wordpresspost>', $archive['body']); 
    400400                for ($i = 1; $i < count($posts); $i = $i + 1) { 
     
    410410                    $post_author_name = $wpdb->escape(trim($postinfo[1])); 
    411411                    $post_author_email = $postinfo[5] ? $postinfo[5] : 'user@wordpress.org'; 
    412      
     412 
    413413                    if ( $this->lump_authors ) { 
    414414                        // Ignore Blogger authors. Use the current user_ID for all posts imported. 
     
    436436                    $postminute = zeroise($post_date_His[1], 2); 
    437437                    $postsecond = zeroise($post_date_His[2], 2); 
    438      
     438 
    439439                    if (($post_date[2] == 'PM') && ($posthour != '12')) 
    440440                        $posthour = $posthour + 12; 
    441441                    else if (($post_date[2] == 'AM') && ($posthour == '12')) 
    442442                        $posthour = '00'; 
    443      
     443 
    444444                    $post_date = "$postyear-$postmonth-$postday $posthour:$postminute:$postsecond"; 
    445      
     445 
    446446                    $post_content = addslashes($post_content); 
    447447                    $post_content = str_replace(array('<br>','<BR>','<br/>','<BR/>','<br />','<BR />'), "\n", $post_content); // the XHTML touch... ;) 
    448      
     448 
    449449                    $post_title = addslashes($post_title); 
    450              
     450 
    451451                    $post_status = 'publish'; 
    452      
     452 
    453453                    if ( $ID = post_exists($post_title, '', $post_date) ) { 
    454454                        $post_array[$i]['ID'] = $ID; 
     
    598598            $this->restart(); 
    599599        } 
    600          
     600 
    601601        if ( isset($_GET['noheader']) ) { 
    602602            $this->import = get_settings('import-blogger'); 
     
    648648            } 
    649649            die; 
    650              
     650 
    651651        } else { 
    652652            $this->greet(); 
  • trunk/wp-admin/import/dotclear.php

    <
    r3424 r3517  
    88    { 
    99    global $wpdb; 
    10      
     10 
    1111    $cat_id -= 0;   // force numeric 
    1212    $name = $wpdb->get_var('SELECT cat_ID FROM '.$wpdb->categories.' WHERE category_nicename="'.$category_nicename.'"'); 
    13      
     13 
    1414    return $name; 
    1515    } 
     
    136136        echo '</div>'; 
    137137    } 
    138      
     138 
    139139    function greet()  
    140140    { 
     
    154154        set_magic_quotes_runtime(0); 
    155155        $prefix = get_option('tpre'); 
    156          
     156 
    157157        // Get Categories 
    158158        return $dcdb->get_results('SELECT * FROM dc_categorie', ARRAY_A); 
    159159    } 
    160      
     160 
    161161    function get_dc_users() 
    162162    { 
     
    166166        set_magic_quotes_runtime(0); 
    167167        $prefix = get_option('tpre'); 
    168          
     168 
    169169        // Get Users 
    170          
     170 
    171171        return $dcdb->get_results('SELECT * FROM dc_user', ARRAY_A); 
    172172    } 
    173      
     173 
    174174    function get_dc_posts() 
    175175    { 
     
    178178        set_magic_quotes_runtime(0); 
    179179        $prefix = get_option('tpre'); 
    180          
     180 
    181181        // Get Posts 
    182182        return $dcdb->get_results('SELECT dc_post.*, dc_categorie.cat_libelle_url AS post_cat_name 
     
    184184                          ON dc_post.cat_id = dc_categorie.cat_id', ARRAY_A); 
    185185    } 
    186      
     186 
    187187    function get_dc_comments() 
    188188    { 
     
    192192        set_magic_quotes_runtime(0); 
    193193        $prefix = get_option('tpre'); 
    194          
     194 
    195195        // Get Comments 
    196196        return $dcdb->get_results('SELECT * FROM dc_comment', ARRAY_A); 
    197197    } 
    198      
     198 
    199199    function get_dc_links() 
    200200    { 
     
    206206        return $dcdb->get_results('SELECT * FROM dc_link ORDER BY position', ARRAY_A); 
    207207    } 
    208      
     208 
    209209    function cat2wp($categories='')  
    210210    { 
     
    221221                $count++; 
    222222                extract($category); 
    223                  
     223 
    224224                // Make Nice Variables 
    225225                $name = $wpdb->escape($cat_libelle_url); 
     
    237237                $dccat2wpcat[$id] = $ret_id; 
    238238            } 
    239              
     239 
    240240            // Store category translation for future use 
    241241            add_option('dccat2wpcat',$dccat2wpcat); 
     
    246246        return false; 
    247247    } 
    248      
     248 
    249249    function users2wp($users='') 
    250250    { 
     
    253253        $count = 0; 
    254254        $dcid2wpid = array(); 
    255          
     255 
    256256        // Midnight Mojo 
    257257        if(is_array($users)) 
     
    262262                $count++; 
    263263                extract($user); 
    264                  
     264 
    265265                // Make Nice Variables 
    266266                $name = $wpdb->escape(csc ($name)); 
    267267                $RealName = $wpdb->escape(csc ($user_pseudo)); 
    268                  
     268 
    269269                if($uinfo = get_userdatabylogin($name)) 
    270270                { 
    271                      
     271 
    272272                    $ret_id = wp_insert_user(array( 
    273273                                'ID'        => $uinfo->ID, 
     
    290290                } 
    291291                $dcid2wpid[$user_id] = $ret_id; 
    292                  
     292 
    293293                // Set Dotclear-to-WordPress permissions translation 
    294                  
     294 
    295295                // Update Usermeta Data 
    296296                $user = new WP_User($ret_id); 
     
    303303                else if(2  <= $wp_perms) { $user->set_role('contributor'); } 
    304304                else                     { $user->set_role('subscriber'); } 
    305                  
     305 
    306306                update_usermeta( $ret_id, 'wp_user_level', $wp_perms); 
    307307                update_usermeta( $ret_id, 'rich_editing', 'false'); 
     
    309309                update_usermeta( $ret_id, 'last_name', csc ($user_nom)); 
    310310            }// End foreach($users as $user) 
    311              
     311 
    312312            // Store id translation array for future use 
    313313            add_option('dcid2wpid',$dcid2wpid); 
    314              
    315              
     314 
     315 
    316316            echo '<p>'.sprintf(__('Done! <strong>%1$s</strong> users imported.'), $count).'<br /><br /></p>'; 
    317317            return true; 
    318318        }// End if(is_array($users) 
    319          
     319 
    320320        echo __('No Users to Import!'); 
    321321        return false; 
    322          
     322 
    323323    }// End function user2wp() 
    324      
     324 
    325325    function posts2wp($posts='') 
    326326    { 
     
    339339                $count++; 
    340340                extract($post); 
    341                  
     341 
    342342                // Set Dotclear-to-WordPress status translation 
    343343                $stattrans = array(0 => 'draft', 1 => 'publish'); 
    344344                $comment_status_map = array (0 => 'closed', 1 => 'open'); 
    345                  
     345 
    346346                //Can we do this more efficiently? 
    347347                $uinfo = ( get_userdatabylogin( $user_id ) ) ? get_userdatabylogin( $user_id ) : 1; 
     
    357357                $post_content = $wpdb->escape ($post_content); 
    358358                $post_status = $stattrans[$post_pub]; 
    359                  
     359 
    360360                // Import Post data into WordPress 
    361                  
     361 
    362362                if($pinfo = post_exists($Title,$post_content)) 
    363363                { 
     
    398398                } 
    399399                $dcposts2wpposts[$post_id] = $ret_id; 
    400                  
     400 
    401401                // Make Post-to-Category associations 
    402402                $cats = array(); 
     
    408408        // Store ID translation for later use 
    409409        add_option('dcposts2wpposts',$dcposts2wpposts); 
    410          
     410 
    411411        echo '<p>'.sprintf(__('Done! <strong>%1$s</strong> posts imported.'), $count).'<br /><br /></p>'; 
    412         return true;    
    413     } 
    414      
     412        return true; 
     413    } 
     414 
    415415    function comments2wp($comments='') 
    416416    { 
     
    420420        $dccm2wpcm = array(); 
    421421        $postarr = get_option('dcposts2wpposts'); 
    422          
     422