Show meta boxes when no JS, as we don't have screen options to turn them on. props filosofo, fixes #13253.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14459 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7c47fba666
commit
aaf3bf031f
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue