Make WordPress Core


Ignore:
Timestamp:
11/28/2008 10:35:01 PM (17 years ago)
Author:
ryan
Message:

Hide slug box by default. Allow turning it on via screen options. fixes #8332

File:
1 edited

Legend:

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

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