mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Add option defaults. Add arg to get_user_option() to avoid querying options table if user option is missing. see #8229
git-svn-id: https://develop.svn.wordpress.org/trunk@9871 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -435,7 +435,7 @@ wp_nonce_field( 'get-comments', 'add_comment_nonce', false );
|
||||
</table>
|
||||
<p class="hide-if-no-js"><a href="#commentstatusdiv" id="show-comments" onclick="commentsBox.get(<?php echo $total; ?>);return false;"><?php _e('Show comments'); ?></a> <img class="waiting" style="display:none;" src="images/loading.gif" alt="" /></p>
|
||||
<?php
|
||||
$hidden = (array) get_user_option( "meta-box-hidden_post" );
|
||||
$hidden = (array) get_user_option( "meta-box-hidden_post", 0, false );
|
||||
if ( ! in_array('commentstatusdiv', $hidden) ) { ?>
|
||||
<script type="text/javascript">commentsBox.get(<?php echo $total; ?>, 10);</script>
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user