Make WordPress Core


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

Remove unused variables. Props DD32. see #5418

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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;
Note: See TracChangeset for help on using the changeset viewer.