Make WordPress Core

Changeset 14459


Ignore:
Timestamp:
05/04/2010 10:28:51 PM (14 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r14407 r14459  
    28772877                    $i++;
    28782878                    $style = '';
    2879                     if ( in_array($box['id'], $hidden) )
    2880                         $style = 'style="display:none;"';
    2881                     echo '<div id="' . $box['id'] . '" class="postbox ' . postbox_classes($box['id'], $page) . '" ' . $style . '>' . "\n";
     2879                    $hidden_class = in_array($box['id'], $hidden) ? ' hide-if-js' : '';
     2880                    echo '<div id="' . $box['id'] . '" class="postbox ' . postbox_classes($box['id'], $page) . $hidden_class . '" ' . '>' . "\n";
    28822881                    echo '<div class="handlediv" title="' . __('Click to toggle') . '"><br /></div>';
    28832882                    echo "<h3 class='hndle'><span>{$box['title']}</span></h3>\n";
Note: See TracChangeset for help on using the changeset viewer.