Make WordPress Core


Ignore:
Timestamp:
02/20/2010 02:01:46 AM (15 years ago)
Author:
dd32
Message:

Variable Cleanup, Unused variables, Typo'd variables, unused code blocks. Fixes #12299

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r13213 r13242  
    21122112                        $actions['spam'] = "<a href='$spam_url' class='delete:the-comment-list:comment-$comment->comment_ID::spam=1 vim-s vim-destructive' title='" . esc_attr__( 'Mark this comment as spam' ) . "'>" . /* translators: mark as spam link */ _x( 'Spam', 'verb' ) . '</a>';
    21132113                    } elseif ( 'spam' == $the_comment_status ) {
    2114                         $actions['unspam'] = "<a href='$untrash_url' class='delete:the-comment-list:comment-$comment->comment_ID:66cc66:unspam=1 vim-z vim-destructive'>" . __( 'Not Spam' ) . '</a>';
     2114                        $actions['unspam'] = "<a href='$unspam_url' class='delete:the-comment-list:comment-$comment->comment_ID:66cc66:unspam=1 vim-z vim-destructive'>" . __( 'Not Spam' ) . '</a>';
    21152115                    } elseif ( 'trash' == $the_comment_status ) {
    21162116                        $actions['untrash'] = "<a href='$untrash_url' class='delete:the-comment-list:comment-$comment->comment_ID:66cc66:untrash=1 vim-z vim-destructive'>" . __( 'Restore' ) . '</a>';
     
    26792679 */
    26802680function wp_dropdown_roles( $selected = false ) {
    2681     global $wp_roles;
    26822681    $p = '';
    26832682    $r = '';
     
    26852684    $editable_roles = get_editable_roles();
    26862685
    2687     foreach( $editable_roles as $role => $details ) {
     2686    foreach ( $editable_roles as $role => $details ) {
    26882687        $name = translate_user_role($details['name'] );
    26892688        if ( $selected == $role ) // Make default first in list
     
    32893288                <label class="screen-reader-text" for="find-posts-input"><?php _e( 'Search' ); ?></label>
    32903289                <input type="text" id="find-posts-input" name="ps" value="" />
    3291                 <input type="button" onclick="findPosts.send();" value="<?php esc_attr_e( 'Search' ); ?>" class="button" /><br />
     3290                <input type="button" onClick="findPosts.send();" value="<?php esc_attr_e( 'Search' ); ?>" class="button" /><br />
    32923291
    32933292                <input type="radio" name="find-posts-what" id="find-posts-posts" checked="checked" value="posts" />
     
    32993298        </div>
    33003299        <div class="find-box-buttons">
    3301             <input type="button" class="button alignleft" onclick="findPosts.close();" value="<?php esc_attr_e('Close'); ?>" />
     3300            <input type="button" class="button alignleft" onClick="findPosts.close();" value="<?php esc_attr_e('Close'); ?>" />
    33023301            <input id="find-posts-submit" type="submit" class="button-primary alignright" value="<?php esc_attr_e('Select'); ?>" />
    33033302        </div>
     
    35453544
    35463545function screen_meta($screen) {
    3547     global $wp_meta_boxes, $_wp_contextual_help, $post_type;
     3546    global $wp_meta_boxes, $_wp_contextual_help, $title;
    35483547
    35493548    if ( is_string($screen) )
     
    36073606<?php
    36083607    endif;
    3609 
    3610     global $title;
    36113608
    36123609    $_wp_contextual_help = apply_filters('contextual_help_list', $_wp_contextual_help, $screen);
Note: See TracChangeset for help on using the changeset viewer.