WordPress.org

Make WordPress Core

Changeset 21108


Ignore:
Timestamp:
06/25/12 19:59:10 (22 months ago)
Author:
markjaquith
Message:

Properly show comments on Page edit screen. props duck_. fixes #20937 for 3.4 branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.4/wp-admin/includes/meta-boxes.php

    r20896 r21108  
    484484        echo '<p id="no-comments">' . __('No comments yet.') . '</p>'; 
    485485    } else { 
    486         $hidden = get_hidden_meta_boxes('post'); 
     486        $hidden = get_hidden_meta_boxes( get_current_screen() ); 
    487487        if ( ! in_array('commentsdiv', $hidden) ) { 
    488488            ?> 
     
    490490            <?php 
    491491        } 
     492 
     493        ?> 
     494        <p class="hide-if-no-js" id="show-comments"><a href="#commentstatusdiv" onclick="commentsBox.get(<?php echo $total; ?>);return false;"><?php _e('Show comments'); ?></a> <img class="waiting" style="display:none;" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" /></p> 
     495        <?php 
    492496    } 
    493  
    494     ?> 
    495     <p class="hide-if-no-js hidden" id="show-comments"><a href="#commentstatusdiv" onclick="commentsBox.get(<?php echo $total; ?>);return false;"><?php _e('Show comments'); ?></a> <img class="waiting" style="display:none;" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" /></p> 
    496     <?php 
    497497 
    498498    wp_comment_trashnotice(); 
Note: See TracChangeset for help on using the changeset viewer.