Show meta boxes when no JS, as we don't have screen options to turn them on. props filosofo, fixes #13253.

git-svn-id: https://develop.svn.wordpress.org/trunk@14459 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-05-04 22:28:51 +00:00
parent e4fd58acb4
commit c2c58d26d8
1 changed files with 2 additions and 3 deletions

View File

@ -2876,9 +2876,8 @@ function do_meta_boxes($page, $context, $object) {
continue;
$i++;
$style = '';
if ( in_array($box['id'], $hidden) )
$style = 'style="display:none;"';
echo '<div id="' . $box['id'] . '" class="postbox ' . postbox_classes($box['id'], $page) . '" ' . $style . '>' . "\n";
$hidden_class = in_array($box['id'], $hidden) ? ' hide-if-js' : '';
echo '<div id="' . $box['id'] . '" class="postbox ' . postbox_classes($box['id'], $page) . $hidden_class . '" ' . '>' . "\n";
echo '<div class="handlediv" title="' . __('Click to toggle') . '"><br /></div>';
echo "<h3 class='hndle'><span>{$box['title']}</span></h3>\n";
echo '<div class="inside">' . "\n";