Changeset 5700

Show
Ignore:
Timestamp:
06/14/07 02:25:30 (1 year ago)
Author:
ryan
Message:

Trim empty lines. Nothing but newline.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/edit-pages.php

    r5587 r5700  
    4242    </fieldset> 
    4343 
    44          
     44 
    4545    <fieldset><legend><?php _e('Page Type&hellip;'); ?></legend> 
    4646        <select name='post_status'> 
  • trunk/wp-admin/export.php

    r5674 r5700  
    134134    another. This file is not intended to serve as a complete backup of your  
    135135    blog. 
    136      
     136 
    137137    To import this information into a WordPress blog follow these steps: 
    138      
     138 
    139139    1.  Log into that blog as an administrator. 
    140140    2.  Go to Manage > Import in the blog's admin. 
  • trunk/wp-admin/import/blogger.php

    r5404 r5700  
    916916                array_push($this->in_content, ">"); 
    917917            } 
    918           
     918 
    919919            array_push($this->in_content, "<". $this->ns_to_prefix($name) ."{$xmlns_str}{$attrs_str}"); 
    920920        } else if(in_array($tag, $this->ATOM_CONTENT_ELEMENTS) || in_array($tag, $this->ATOM_SIMPLE_ELEMENTS)) { 
  • trunk/wp-admin/import/mt.php

    r5684 r5700  
    273273        $ping = new StdClass(); 
    274274        $pings = array(); 
    275          
     275 
    276276        echo "<div class='wrap'><ol>"; 
    277277 
  • trunk/wp-admin/import/utw.php

    r5390 r5700  
    22 
    33class UTW_Import { 
    4      
     4 
    55    function header()  { 
    66        echo '<div class="wrap">'; 
     
    2424        echo '</div>'; 
    2525    } 
    26      
    27      
     26 
     27 
    2828    function dispatch () { 
    2929        if ( empty( $_GET['step'] ) ) { 
     
    3232            $step = (int) $_GET['step']; 
    3333        } 
    34          
     34 
    3535        // load the header 
    3636        $this->header(); 
    37          
     37 
    3838        switch ( $step ) { 
    3939            case 0 : 
     
    5353                break; 
    5454        } 
    55          
     55 
    5656        // load the footer 
    5757        $this->footer(); 
    5858    } 
    59      
    60      
     59 
     60 
    6161    function import_tags ( ) { 
    6262        echo '<div class="narrow">'; 
    6363        echo '<p><h3>'.__('Reading UTW Tags&#8230;').'</h3></p>'; 
    64          
     64 
    6565        $tags = $this->get_utw_tags(); 
    66          
     66 
    6767        // if we didn't get any tags back, that's all there is folks! 
    6868        if ( !is_array($tags) ) { 
     
    7878 
    7979            add_option('utwimp_tags', $tags); 
    80              
     80 
    8181 
    8282            $count = count($tags); 
    83              
     83 
    8484            echo '<p>' . sprintf( __('Done! <strong>%s</strong> tags were read.'), $count ) . '<br /></p>'; 
    8585            echo '<p>' . __('The following tags were found:') . '</p>'; 
    86              
     86 
    8787            echo '<ul>'; 
    88              
     88 
    8989            foreach ( $tags as $tag_id => $tag_name ) { 
    90                  
     90 
    9191                echo '<li>' . $tag_name . '</li>'; 
    92                  
     92 
    9393            } 
    94              
     94 
    9595            echo '</ul>'; 
    96              
     96 
    9797            echo '<br />'; 
    98              
     98 
    9999            echo '<p>' . __('If you don&#8217;t want to import any of these tags, you should delete them from the UTW tag management page and then re-run this import.') . '</p>'; 
    100              
    101              
    102         } 
    103          
     100 
     101 
     102        } 
     103 
    104104        echo '<form action="admin.php?import=utw&amp;step=2" method="post">'; 
    105105        echo '<p class="submit"><input type="submit" name="submit" value="'.__('Step 2 &raquo;').'" /></p>'; 
     
    107107        echo '</div>'; 
    108108    } 
    109      
    110      
     109 
     110 
    111111    function import_posts ( ) { 
    112112        echo '<div class="narrow">'; 
     
    129129 
    130130            add_option('utwimp_posts', $posts); 
    131                  
     131 
    132132 
    133133            $count = count($posts); 
    134                  
     134 
    135135            echo '<p>' . sprintf( __('Done! <strong>%s</strong> tag to post relationships were read.'), $count ) . '<br /></p>'; 
    136                  
     136 
    137137        } 
    138138 
     
    143143 
    144144    } 
    145      
    146      
     145 
     146 
    147147    function import_t2p ( ) { 
    148148 
     
    152152        // run that funky magic! 
    153153        $tags_added = $this->tag2post(); 
    154          
     154 
    155155        echo '<p>' . sprintf( __('Done! <strong>%s</strong> tags where added!'), $tags_added ) . '<br /></p>'; 
    156156 
     
    161161 
    162162    } 
    163      
    164      
     163 
     164 
    165165    function get_utw_tags ( ) { 
    166      
     166 
    167167        global $wpdb; 
    168          
     168 
    169169        // read in all the tags from the UTW tags table: should be wp_tags 
    170170        $tags_query = "SELECT tag_id, tag FROM " . $wpdb->prefix . "tags"; 
    171          
     171 
    172172        $tags = $wpdb->get_results($tags_query); 
    173          
     173 
    174174        // rearrange these tags into something we can actually use 
    175175        foreach ( $tags as $tag ) { 
    176              
     176 
    177177            $new_tags[$tag->tag_id] = $tag->tag; 
    178              
    179         } 
    180          
     178 
     179        } 
     180 
    181181        return $new_tags; 
    182182 
    183183    } 
    184      
     184 
    185185    function get_utw_posts ( ) { 
    186          
     186 
    187187        global $wpdb; 
    188          
     188 
    189189        // read in all the posts from the UTW post->tag table: should be wp_post2tag 
    190190        $posts_query = "SELECT tag_id, post_id FROM " . $wpdb->prefix . "post2tag"; 
    191          
     191 
    192192        $posts = $wpdb->get_results($posts_query); 
    193          
     193 
    194194        return $posts; 
    195          
    196     } 
    197      
    198      
     195 
     196    } 
     197 
     198 
    199199    function tag2post ( ) { 
    200          
     200 
    201201        // get the tags and posts we imported in the last 2 steps 
    202202        $tags = get_option('utwimp_tags'); 
    203203        $posts = get_option('utwimp_posts'); 
    204          
     204 
    205205        // null out our results 
    206206        $tags_added = 0; 
    207          
     207 
    208208        // loop through each post and add its tags to the db 
    209209        foreach ( $posts as $this_post ) { 
    210              
     210 
    211211            $the_post = (int) $this_post->post_id; 
    212212            $the_tag = (int) $this_post->tag_id; 
    213              
     213 
    214214            // what's the tag name for that id? 
    215215            $the_tag = $tags[$the_tag]; 
    216              
     216 
    217217            // screw it, just try to add the tag 
    218218            wp_add_post_tags($the_post, $the_tag); 
    219219 
    220220            $tags_added++; 
    221              
    222         } 
    223          
     221 
     222        } 
     223 
    224224        // that's it, all posts should be linked to their tags properly, pending any errors we just spit out! 
    225225        return $tags_added; 
    226          
    227          
    228     } 
    229      
    230      
     226 
     227 
     228    } 
     229 
     230 
    231231    function cleanup_import ( ) { 
    232          
     232 
    233233        delete_option('utwimp_tags'); 
    234234        delete_option('utwimp_posts'); 
    235          
     235 
    236236        $this->done(); 
    237          
    238     } 
    239      
    240      
     237 
     238    } 
     239 
     240 
    241241    function done ( ) { 
    242          
     242 
    243243        echo '<div class="narrow">'; 
    244244        echo '<p><h3>'.__('Import Complete!').'</h3></p>'; 
    245          
     245 
    246246        echo '<p>' . __('OK, so we lied about this being a 5-step program! You&#8217;re done!') . '</p>'; 
    247          
     247 
    248248        echo '<p>' . __('Now wasn&#8217;t that easy?') . '</p>'; 
    249          
    250         echo '</div>'; 
    251          
    252     } 
    253      
     249 
     250        echo '</div>'; 
     251 
     252    } 
     253 
    254254 
    255255    function UTW_Import ( ) { 
    256          
     256 
    257257        // Nothing. 
    258          
    259     } 
    260      
     258 
     259    } 
     260 
    261261} 
    262262 
  • trunk/wp-admin/import/wordpress.php

    r5448 r5700  
    252252        echo '<h3>'.sprintf(__('All done.').' <a href="%s">'.__('Have fun!').'</a>', get_option('home')).'</h3>'; 
    253253    } 
    254    
     254 
    255255    function process_post($post) { 
    256256        global $wpdb; 
     
    259259        if ( $post_ID && !empty($this->posts_processed[$post_ID][1]) ) // Processed already 
    260260            return 0; 
    261        
     261 
    262262        // There are only ever one of these 
    263263        $post_title     = $this->get_tag( $post, 'title' ); 
     
    312312            if ( $post_id && $post_ID && $this->posts_processed[$post_ID] ) 
    313313                $this->posts_processed[$post_ID][1] = $post_id; // New ID. 
    314              
     314 
    315315            // Add categories. 
    316316            if (count($categories) > 0) { 
  • trunk/wp-admin/import/wp-cat2tag.php

    r5554 r5700  
    44    var $categories_to_convert = array(); 
    55    var $all_categories = array(); 
    6      
     6 
    77    function header() { 
    88        print '<div class="wrap">'; 
    99        print '<h2>' . __('Convert Categories to Tags') . '</h2>'; 
    1010    } 
    11      
     11 
    1212    function footer() { 
    1313        print '</div>'; 
    1414    } 
    15      
     15 
    1616    function populate_all_categories() { 
    1717        global $wpdb; 
    18          
     18 
    1919        $this->all_categories = get_categories('get=all'); 
    2020    } 
    21      
     21 
    2222    function welcome() { 
    2323        $this->populate_all_categories(); 
    24          
     24 
    2525        print '<div class="narrow">'; 
    26          
     26 
    2727        if (count($this->all_categories) > 0) { 
    2828            print '<p>' . __('Howdy! This converter allows you to selectively convert existing categories to tags. To get started, check the checkboxes of the categories you wish to be converted, then click the Convert button.') . '</p>'; 
    2929            print '<p>' . __('Keep in mind that if you convert a category with child categories, those child categories get their parent setting removed, so they\'re in the root.') . '</p>'; 
    30          
     30 
    3131            $this->categories_form(); 
    3232        } else { 
    3333            print '<p>'.__('You have no categories to convert!').'</p>'; 
    3434        } 
    35          
     35 
    3636        print '</div>'; 
    3737    } 
    38      
     38 
    3939    function categories_form() { 
    4040        print '<form action="admin.php?import=wp-cat2tag&amp;step=2" method="post">'; 
    4141        print '<ul style="list-style:none">'; 
    42          
     42 
    4343        $hier = _get_term_hierarchy('category'); 
    44          
     44 
    4545        foreach ($this->all_categories as $category) { 
    4646            if ((int) $category->parent == 0) { 
    4747                print '<li><label><input type="checkbox" name="cats_to_convert[]" value="' . intval($category->term_id) . '" /> ' . $category->name . ' (' . $category->count . ')</label>'; 
    48                  
     48 
    4949                if (isset($hier[$category->term_id])) { 
    5050                    $this->_category_children($category, $hier); 
    5151                } 
    52                  
     52 
    5353                print '</li>'; 
    5454            } 
    5555        } 
    56          
     56 
    5757        print '</ul>'; 
    58          
     58 
    5959        print '<p class="submit"><input type="submit" name="maybe_convert_all_cats" value="' . __('Convert All Categories') . '" /> <input type="submit" name="submit" value="' . __('Convert &raquo;') . '" /></p>'; 
    6060        print '</form>'; 
    6161    } 
    62      
     62 
    6363    function _category_children($parent, $hier) { 
    6464        print '<ul style="list-style:none">'; 
    65          
     65 
    6666        foreach ($hier[$parent->term_id] as $child_id) { 
    6767            $child =& get_category($child_id); 
    68              
     68 
    6969            print '<li><label><input type="checkbox" name="cats_to_convert[]" value="' . intval($child->term_id) . '" /> ' . $child->name . ' (' . $child->count . ')</label>'; 
    70              
     70 
    7171            if (isset($hier[$child->term_id])) { 
    7272                $this->_category_children($child, $hier); 
    7373            } 
    74              
     74 
    7575            print '</li>'; 
    7676        } 
    77          
     77 
    7878        print '</ul>'; 
    7979    } 
    80      
     80 
    8181    function _category_exists($cat_id) { 
    8282        global $wpdb; 
    83          
     83 
    8484        $cat_id = (int) $cat_id; 
    85          
     85 
    8686        $maybe_exists = category_exists($cat_id); 
    87          
     87 
    8888        if ( $maybe_exists ) { 
    8989            return true; 
     
    9292        } 
    9393    } 
    94      
     94 
    9595    function convert_them() { 
    9696        global $wpdb; 
    97          
     97 
    9898        if (!isset($_POST['cats_to_convert']) || !is_array($_POST['cats_to_convert'])) { 
    9999            print '<div class="narrow">'; 
     
    101101            print '</div>'; 
    102102        } 
    103          
    104          
     103 
     104 
    105105        if ( empty($this->categories_to_convert) ) 
    106106            $this->categories_to_convert = $_POST['cats_to_convert']; 
    107107        $hier = _get_term_hierarchy('category'); 
    108          
     108 
    109109        print '<ul>'; 
    110          
     110 
    111111        foreach ($this->categories_to_convert as $cat_id) { 
    112112            $cat_id = (int) $cat_id; 
    113              
     113 
    114114            print '<li>' . __('Converting category') . ' #' . $cat_id . '... '; 
    115              
     115 
    116116            if (!$this->_category_exists($cat_id)) { 
    117117                _e('Category doesn\'t exist!'); 
    118118            } else { 
    119119                $category =& get_category($cat_id); 
    120                  
     120 
    121121                // Set the category itself to $type from above 
    122122                $wpdb->query("UPDATE $wpdb->term_taxonomy SET taxonomy = 'post_tag' WHERE term_id = '{$category->term_id}' AND taxonomy = 'category'"); 
    123                  
     123 
    124124                // Set all parents to 0 (root-level) if their parent was the converted tag 
    125125                $wpdb->query("UPDATE $wpdb->term_taxonomy SET parent = 0 WHERE parent = '{$category->term_id}' AND taxonomy = 'category'"); 
    126                  
     126 
    127127                // Clean the cache 
    128128                clean_category_cache($category->term_id); 
    129                  
     129 
    130130                _e('Converted successfully.'); 
    131131            } 
    132              
     132 
    133133            print '</li>'; 
    134134        } 
    135          
     135 
    136136        print '</ul>'; 
    137137    } 
    138      
     138 
    139139    function convert_all_confirm() { 
    140140        print '<div class="narrow">'; 
    141          
     141 
    142142        print '<h3>' . __('Confirm') . '</h3>'; 
    143          
     143 
    144144        print '<p>' . __('You are about to convert all categories to tags. Are you sure you want to continue?') . '</p>'; 
    145          
     145 
    146146        print '<form action="admin.php?import=wp-cat2tag" method="post">'; 
    147147        print '<p style="text-align:center" class="submit"><input type="submit" value="' . __('Yes') . '" name="yes_convert_all_cats" />&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="' . __('No') . '" name="no_dont_do_it" /></p>'; 
    148148        print '</form>'; 
    149          
     149 
    150150        print '</div>'; 
    151151    } 
    152      
     152 
    153153    function convert_all() { 
    154154        global $wpdb; 
     
    157157        clean_category_cache($category->term_id); 
    158158    } 
    159      
     159 
    160160    function init() { 
    161161        echo '<!--'; print_r($_POST); print_r($_GET); echo '-->'; 
    162          
     162 
    163163        if (isset($_POST['maybe_convert_all_cats'])) { 
    164164            $step = 3; 
     
    170170            $step = (isset($_GET['step'])) ? (int) $_GET['step'] : 1; 
    171171        } 
    172          
     172 
    173173        $this->header(); 
    174          
     174 
    175175        if (!current_user_can('manage_categories')) { 
    176176            print '<div class="narrow">'; 
     
    182182                    $this->welcome(); 
    183183                break; 
    184                  
     184 
    185185                case 2 : 
    186186                    $this->convert_them(); 
    187187                break; 
    188                  
     188 
    189189                case 3 : 
    190190                    $this->convert_all_confirm(); 
    191191                break; 
    192                  
     192 
    193193                case 4 : 
    194194                    $this->convert_all(); 
     
    196196            } 
    197197        } 
    198          
     198 
    199199        $this->footer(); 
    200200    } 
    201      
     201 
    202202    function WP_Categories_to_Tags() { 
    203203        // Do nothing. 
  • trunk/wp-admin/includes/bookmark.php

    r5637 r5700  
    4747 
    4848    $wpdb->query("DELETE FROM $wpdb->links WHERE link_id = '$link_id'"); 
    49      
     49 
    5050    do_action('deleted_link', $link_id); 
    5151 
  • trunk/wp-admin/includes/file.php

    r5566 r5700  
    139139        if ( ( !$type || !$ext ) && !current_user_can( 'unfiltered_upload' ) ) 
    140140            return $upload_error_handler( $file, __( 'File type does not meet security guidelines. Try another.' )); 
    141          
     141 
    142142        if ( !$ext ) 
    143143            $ext = strrchr($file['name'], '.'); 
  • trunk/wp-admin/includes/image.php

    r5566 r5700  
    122122    if (function_exists('imageantialias')) 
    123123        imageantialias( $dst, true ); 
    124      
     124 
    125125    imagecopyresampled( $dst, $src, 0, 0, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h ); 
    126126 
  • trunk/wp-admin/includes/plugin.php

    r5630 r5700  
    88    preg_match( '|Author:(.*)$|mi', $plugin_data, $author_name ); 
    99    preg_match( '|Author URI:(.*)$|mi', $plugin_data, $author_uri ); 
    10      
     10 
    1111    if ( preg_match( "|Version:(.*)|i", $plugin_data, $version )) 
    1212        $version = trim( $version[1] ); 
  • trunk/wp-admin/includes/schema.php

    r5551 r5700  
    393393function populate_roles_230() { 
    394394    $role = get_role( 'administrator' ); 
    395      
     395 
    396396    if ( !empty( $role ) ) { 
    397397        $role->add_cap( 'unfiltered_upload' ); 
  • trunk/wp-admin/includes/template.php

    r5692 r5700  
    150150 
    151151    $categories = get_terms('link_category', 'orderby=count&hide_empty=0'); 
    152      
     152 
    153153    if ( empty($categories) ) 
    154154        return; 
     
    422422    if ( $for_post ) 
    423423        $edit = ( ('draft' == $post->post_status ) && (!$post->post_date || '0000-00-00 00:00:00' == $post->post_date ) ) ? false : true; 
    424   
     424 
    425425    echo '<fieldset><legend><input type="checkbox" class="checkbox" name="edit_date" value="1" id="timestamp" /> <label for="timestamp">'.__( 'Edit timestamp' ).'</label></legend>'; 
    426426 
  • trunk/wp-admin/includes/theme.php

    r5630 r5700  
    3434        foreach ( $templates as $template ) { 
    3535            $template_data = implode( '', file( ABSPATH.$template )); 
    36              
     36 
    3737            preg_match( '|Template Name:(.*)$|mi', $template_data, $name ); 
    3838            preg_match( '|Description:(.*)$|mi', $template_data, $description ); 
  • trunk/wp-admin/includes/upgrade.php

    r5643 r5700  
    188188    if ( $wp_current_db_version < 4351 ) 
    189189        upgrade_old_slugs(); 
    190      
     190 
    191191    if ( $wp_current_db_version < 5539 ) 
    192192        upgrade_230(); 
    193193 
    194      
     194 
    195195    maybe_disable_automattic_widgets(); 
    196196 
     
    577577function upgrade_230() { 
    578578    global $wp_current_db_version, $wpdb; 
    579      
     579 
    580580    if ( $wp_current_db_version < 5200 ) { 
    581581        populate_roles_230(); 
     
    629629            $tt_ids[$term_id][$taxonomy] = (int) $wpdb->insert_id; 
    630630        } 
    631          
     631 
    632632        if ( empty($count) ) { 
    633633            $count = 0; 
     
    757757function __get_option($setting) { 
    758758    global $wpdb; 
    759      
     759 
    760760    if ( $setting == 'home' && defined( 'WP_HOME' ) ) { 
    761761        return preg_replace( '|/+$|', '', constant( 'WP_HOME' ) ); 
    762762    } 
    763      
     763 
    764764    if ( $setting == 'siteurl' && defined( 'WP_SITEURL' ) ) { 
    765765        return preg_replace( '|/+$|', '', constant( 'WP_SITEURL' ) ); 
    766766    } 
    767      
     767 
    768768    $option = $wpdb->get_var("SELECT option_value FROM $wpdb->options WHERE option_name = '$setting'"); 
    769769 
     
    12091209function maybe_disable_automattic_widgets() { 
    12101210    $plugins = __get_option( 'active_plugins' ); 
    1211      
     1211 
    12121212    foreach ( (array) $plugins as $plugin ) { 
    12131213        if ( basename( $plugin ) == 'widgets.php' ) { 
  • trunk/wp-admin/link-import.php

    r5439 r5700  
    9999                $opml = file_get_contents($opml_url); 
    100100            } 
    101              
     101 
    102102            include_once('link-parse-opml.php'); 
    103103 
  • trunk/wp-admin/moderation.php

    r5663 r5700  
    2020if ( $action == 'update' ) { 
    2121    check_admin_referer( 'moderate-comments' ); 
    22      
     22 
    2323    if ( !current_user_can( 'moderate_comments' ) ) { 
    2424        wp_die( __( 'Your level is not high enough to moderate comments.' ) ); 
    2525    } 
    26      
     26 
    2727    $item_ignored = 0; 
    2828    $item_deleted = 0; 
    2929    $item_approved = 0; 
    3030    $item_spam = 0; 
    31      
     31 
    3232    foreach ( $comment as $k => $v ) { 
    3333        if ( $feelinglucky && $v == 'later' ) { 
    3434            $v = 'delete'; 
    3535        } 
    36          
     36 
    3737        switch ( $v ) { 
    3838            case 'later' : 
    3939                $item_ignored++; 
    4040            break; 
    41              
     41 
    4242            case 'delete' : 
    4343                wp_set_comment_status( $k, 'delete' ); 
    4444                $item_deleted++; 
    4545            break; 
    46              
     46 
    4747            case 'spam' : 
    4848                wp_set_comment_status( $k, 'spam' ); 
    4949                $item_spam++; 
    5050            break; 
    51              
     51 
    5252            case 'approve' : 
    5353                wp_set_comment_status( $k, 'approve' ); 
    54                  
     54 
    5555                if ( get_option( 'comments_notify' ) == true ) { 
    5656                    wp_notify_postauthor( $k ); 
    5757                } 
    58                  
     58 
    5959                $item_approved++; 
    6060            break; 
    6161        } 
    6262    } 
    63      
     63 
    6464    wp_redirect( basename( __FILE__ ) . '?ignored=' . $item_ignored . '&deleted=' . $item_deleted . '&approved=' . $item_approved . '&spam=' . $item_spam ); 
    6565    exit; 
     
    7878    $deleted = isset( $_GET['deleted'] ) ? (int) $_GET['deleted'] : 0; 
    7979    $spam = isset( $_GET['ignored'] ) ? (int) $_GET['spam'] : 0; 
    80      
     80 
    8181    if ( $approved > 0 || $deleted > 0 || $spam > 0 ) { 
    8282        echo '<div id="moderated" class="updated fade"><p>'; 
    83      
     83 
    8484        if ( $approved > 0 ) { 
    8585            printf( __ngettext( '%s comment approved.', '%s comments approved.', $approved ), $approved ); 
    8686            echo '<br />'; 
    8787        } 
    88      
     88 
    8989        if ( $deleted > 0 ) { 
    9090            printf( __ngettext( '%s comment deleted', '%s comments deleted.', $deleted ), $deleted ); 
    9191            echo '<br />'; 
    9292        } 
    93      
     93 
    9494        if ( $spam > 0 ) { 
    9595            printf( __ngettext( '%s comment marked as spam', '%s comments marked as spam', $spam ), $spam ); 
    9696            echo '<br />'; 
    9797        } 
    98      
     98 
    9999        echo '</p></div>'; 
    100100    } 
     
    138138?> 
    139139    <h2><?php _e( 'Moderation Queue' ); ?></h2> 
    140      
     140 
    141141    <?php 
    142142        if ( $page_links ) { 
     
    144144        } 
    145145    ?> 
    146      
     146 
    147147    <form name="approval" id="approval" action="<?php echo basename( __FILE__ ); ?>" method="post"> 
    148148        <?php wp_nonce_field( 'moderate-comments' ); ?> 
     
    151151    <?php 
    152152        $i = 0; 
    153          
     153 
    154154        foreach ( $comments as $comment ) { 
    155155            $class = 'js-unapproved'; 
    156              
     156 
    157157            if ( $i++ % 2 ) { 
    158158                $class .= ' alternate'; 
     
    166166                    | <?php _e( 'IP:' ); ?> <a href="http://ws.arin.net