Make WordPress Core


Ignore:
Timestamp:
11/25/2008 06:33:04 PM (16 years ago)
Author:
ryan
Message:

Add option defaults. Add arg to get_user_option() to avoid querying options table if user option is missing. see #8229

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r9835 r9871  
    436436<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>
    437437<?php
    438     $hidden = (array) get_user_option( "meta-box-hidden_post" );
     438    $hidden = (array) get_user_option( "meta-box-hidden_post", 0, false );
    439439    if ( ! in_array('commentstatusdiv', $hidden) ) { ?>
    440440        <script type="text/javascript">commentsBox.get(<?php echo $total; ?>, 10);</script>
Note: See TracChangeset for help on using the changeset viewer.