mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 21:08:44 +01:00
Properly show comments on Page edit screen. props duck_. fixes #20937 for 3.4 branch.
git-svn-id: https://develop.svn.wordpress.org/branches/3.4@21108 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8c8c759f0f
commit
3ae56a59f9
@ -483,17 +483,17 @@ function post_comment_meta_box($post) {
|
||||
if ( 1 > $total ) {
|
||||
echo '<p id="no-comments">' . __('No comments yet.') . '</p>';
|
||||
} else {
|
||||
$hidden = get_hidden_meta_boxes('post');
|
||||
$hidden = get_hidden_meta_boxes( get_current_screen() );
|
||||
if ( ! in_array('commentsdiv', $hidden) ) {
|
||||
?>
|
||||
<script type="text/javascript">jQuery(document).ready(function(){commentsBox.get(<?php echo $total; ?>, 10);});</script>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
<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>
|
||||
<?php
|
||||
?>
|
||||
<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>
|
||||
<?php
|
||||
}
|
||||
|
||||
wp_comment_trashnotice();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user