Make WordPress Core

Changeset 6363


Ignore:
Timestamp:
12/06/2007 06:37:30 AM (17 years ago)
Author:
ryan
Message:

Remove unused variables. Props DD32. see #5418

Location:
trunk/wp-admin
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/custom-header.php

    r6354 r6363  
    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 ) {
  • trunk/wp-admin/edit-link-form.php

    r6354 r6363  
    1212}
    1313
    14 function xfn_check($class, $value = '', $depreciated = null) {
     14function xfn_check($class, $value = '', $deprecated = '') {
    1515    global $link;
    1616
  • trunk/wp-admin/includes/bookmark.php

    r5906 r6363  
    152152
    153153function wp_update_link($linkdata) {
    154     global $wpdb;
    155 
    156154    $link_id = (int) $linkdata['link_id'];
    157155
  • trunk/wp-admin/includes/image.php

    r6313 r6363  
    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 );
  • trunk/wp-admin/includes/schema.php

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

    r6329 r6363  
    4141
    4242function wp_delete_category($cat_ID) {
    43     global $wpdb;
    44 
    4543    $cat_ID = (int) $cat_ID;
    4644    $default = get_option('default_category');
     
    5452
    5553function wp_insert_category($catarr, $wp_error = false) {
    56     global $wpdb;
    57 
    5854    extract($catarr, EXTR_SKIP);
    5955
     
    9692
    9793function wp_update_category($catarr) {
    98     global $wpdb;
    99 
    10094    $cat_ID = (int) $catarr['cat_ID'];
    10195
     
    120114
    121115function get_tags_to_edit( $post_id ) {
    122     global $wpdb;
    123 
    124116    $post_id = (int) $post_id;
    125117    if ( !$post_id )
  • trunk/wp-admin/includes/template.php

    r6362 r6363  
    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) ) {
     
    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 )
     
    258258
    259259<?php
    260         if ( $hierarchy ) page_rows( $id, $level + 1, $pages );
     260        if ( $hierarchy )
     261            page_rows( $id, $level + 1, $pages );
    261262    }
    262263}
     
    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;
     
    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' );
     
    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;
  • trunk/wp-admin/includes/upgrade.php

    r6269 r6363  
    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
  • trunk/wp-admin/includes/upload.php

    r6354 r6363  
    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 );
  • trunk/wp-admin/install-helper.php

    r6291 r6363  
    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 ) {
     
    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 ) {
     
    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 ) {
Note: See TracChangeset for help on using the changeset viewer.