Ticket #5418: 5418.wp-admin.2.diff

File 5418.wp-admin.2.diff, 7.1 KB (added by DD32, 4 years ago)

typos, Missed items

  • wp-admin/custom-header.php

     
    228228 
    229229                if ( $width == HEADER_IMAGE_WIDTH && $height == HEADER_IMAGE_HEIGHT ) { 
    230230                        set_theme_mod('header_image', clean_url($url)); 
    231                         $header = apply_filters('wp_create_file_in_uploads', $file, $id); // For replication 
     231                        apply_filters('wp_create_file_in_uploads', $file, $id); // For replication 
    232232                        return $this->finished(); 
    233233                } elseif ( $width > HEADER_IMAGE_WIDTH ) { 
    234234                        $oitar = $width / HEADER_IMAGE_WIDTH; 
  • wp-admin/edit-link-form.php

     
    1111        $nonce_action = 'add-bookmark'; 
    1212} 
    1313 
    14 function xfn_check($class, $value = '', $depreciated = null) { 
     14function xfn_check($class, $value = '', $deprecated = '') { 
    1515        global $link; 
    1616 
    1717        $link_rel = $link->link_rel; 
  • wp-admin/includes/bookmark.php

     
    151151}       // wp_set_link_cats() 
    152152 
    153153function wp_update_link($linkdata) { 
    154         global $wpdb; 
    155  
    156154        $link_id = (int) $linkdata['link_id']; 
    157155 
    158156        $link = get_link($link_id, ARRAY_A); 
  • wp-admin/includes/image.php

     
    1616 * This function can handle most image file formats which PHP supports. 
    1717 * If PHP does not have the functionality to save in a file of the same format, the thumbnail will be created as a jpeg. 
    1818 */ 
    19 function wp_create_thumbnail( $file, $max_side, $depreciated = '' ) { 
     19function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) { 
    2020        if ( ctype_digit( $file ) ) // Handle int as attachment ID 
    2121                $file = get_attached_file( $file ); 
    2222 
  • wp-admin/includes/schema.php

     
    254254} 
    255255 
    256256function populate_roles_160() { 
    257         global $wp_roles; 
    258  
    259257        // Add roles 
    260258        add_role('administrator', _c('Administrator|User role')); 
    261259        add_role('editor', _c('Editor|User role')); 
  • wp-admin/includes/taxonomy.php

     
    4040} 
    4141 
    4242function wp_delete_category($cat_ID) { 
    43         global $wpdb; 
    44  
    4543        $cat_ID = (int) $cat_ID; 
    4644        $default = get_option('default_category'); 
    4745 
     
    5351} 
    5452 
    5553function wp_insert_category($catarr, $wp_error = false) { 
    56         global $wpdb; 
    57  
    5854        extract($catarr, EXTR_SKIP); 
    5955 
    6056        if ( trim( $cat_name ) == '' ) 
     
    9591} 
    9692 
    9793function wp_update_category($catarr) { 
    98         global $wpdb; 
    99  
    10094        $cat_ID = (int) $catarr['cat_ID']; 
    10195 
    10296        if ( $cat_ID == $catarr['category_parent'] ) 
     
    119113// 
    120114 
    121115function get_tags_to_edit( $post_id ) { 
    122         global $wpdb; 
    123  
    124116        $post_id = (int) $post_id; 
    125117        if ( !$post_id ) 
    126118                return false; 
  • wp-admin/includes/template.php

     
    124124} 
    125125 
    126126function get_nested_categories( $default = 0, $parent = 0 ) { 
    127         global $post_ID, $wpdb, $checked_categories; 
     127        global $post_ID, $checked_categories; 
    128128 
    129129        if ( empty($checked_categories) ) { 
    130130                if ( $post_ID ) { 
     
    226226} 
    227227 
    228228function page_rows( $parent = 0, $level = 0, $pages = 0, $hierarchy = true ) { 
    229         global $wpdb, $class, $post; 
     229        global $class, $post; 
    230230 
    231231        if (!$pages ) 
    232232                $pages = get_pages( 'sort_column=menu_order' ); 
     
    257257  </tr> 
    258258 
    259259<?php 
    260                 if ( $hierarchy ) page_rows( $id, $level + 1, $pages ); 
     260                if ( $hierarchy ) 
     261                        page_rows( $id, $level + 1, $pages ); 
    261262        } 
    262263} 
    263264 
     
    322323} 
    323324 
    324325function _wp_comment_list_item( $id, $alt = 0 ) { 
    325         global $authordata, $comment, $wpdb; 
     326        global $authordata, $comment; 
    326327        $comment =& get_comment( $id ); 
    327328        $id = (int) $comment->comment_ID; 
    328329        $class = ''; 
     
    367368} 
    368369 
    369370function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0 ) { 
    370         global $wpdb; 
    371371        if (!$categories ) 
    372372                $categories = get_categories( 'hide_empty=0' ); 
    373373 
     
    440440        $r .= "\n\t\t<td align='center'><input name='updatemeta' type='submit' tabindex='6' value='".attribute_escape(__( 'Update' ))."' class='add:the-list:meta-{$entry['meta_id']} updatemeta' /><br />"; 
    441441        $r .= "\n\t\t<input name='deletemeta[{$entry['meta_id']}]' type='submit' "; 
    442442        $r .= "class='delete:the-list:meta-{$entry['meta_id']} deletemeta' tabindex='6' value='".attribute_escape(__( 'Delete' ))."' />"; 
    443         $r .= "<input type='hidden' name='_ajax_nonce' value='$nonce' />"; 
    444443        $r .= "</td>\n\t</tr>"; 
    445444        return $r; 
    446445} 
  • wp-admin/includes/upgrade.php

     
    66require_once(ABSPATH . 'wp-admin/includes/schema.php'); 
    77 
    88if ( !function_exists('wp_install') ) : 
    9 function wp_install($blog_title, $user_name, $user_email, $public, $meta='') { 
     9function wp_install($blog_title, $user_name, $user_email, $public, $deprecated='') { 
    1010        global $wp_rewrite; 
    1111 
    1212        wp_check_mysql_version(); 
  • wp-admin/includes/upload.php

     
    7878} 
    7979 
    8080function wp_upload_view() { 
    81         global $style, $style; 
     81        global $style; 
    8282        $id = get_the_ID(); 
    8383        $attachment_data = wp_get_attachment_metadata( $id ); 
    8484?> 
  • wp-admin/install-helper.php

     
    1616                } 
    1717        } 
    1818        //didn't find it try to create it. 
    19         $q = $wpdb->query($create_ddl); 
     19        $wpdb->query($create_ddl); 
    2020        // we cannot directly tell that whether this succeeded! 
    2121        foreach ($wpdb->get_col("SHOW TABLES",0) as $table ) { 
    2222                if ($table == $table_name) { 
     
    4141                        } 
    4242        } 
    4343        //didn't find it try to create it. 
    44         $q = $wpdb->query($create_ddl); 
     44        $wpdb->query($create_ddl); 
    4545        // we cannot directly tell that whether this succeeded! 
    4646        foreach ($wpdb->get_col("DESC $table_name",0) as $column ) { 
    4747                if ($column == $column_name) { 
     
    6363        foreach ($wpdb->get_col("DESC $table_name",0) as $column ) { 
    6464                if ($column == $column_name) { 
    6565                        //found it try to drop it. 
    66                         $q = $wpdb->query($drop_ddl); 
     66                        $wpdb->query($drop_ddl); 
    6767                        // we cannot directly tell that whether this succeeded! 
    6868                        foreach ($wpdb->get_col("DESC $table_name",0) as $column ) { 
    6969                                if ($column == $column_name) {