Some 'Show on screen' metabox settings styling, see #7552

git-svn-id: https://develop.svn.wordpress.org/trunk@8726 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2008-08-25 10:17:41 +00:00
parent 31b0b05b56
commit 513f9fea23
6 changed files with 136 additions and 57 deletions
+1 -3
View File
@@ -1367,7 +1367,6 @@ function meta_box_prefs($page) {
$hidden = (array) get_user_option( "meta-box-hidden_$page" );
echo '<ul class="metabox-prefs">';
foreach ( array_keys($wp_meta_boxes[$page]) as $context ) {
foreach ( array_keys($wp_meta_boxes[$page][$context]) as $priority ) {
foreach ( $wp_meta_boxes[$page][$context][$priority] as $box ) {
@@ -1376,10 +1375,9 @@ function meta_box_prefs($page) {
$box_id = $box['id'];
echo '<label for="' . $box_id . '-hide">';
echo '<input class="hide-postbox-tog" name="' . $box_id . '-hide" type="checkbox" id="' . $box_id . '-hide" value="' . $box_id . '"' . (! in_array($box_id, $hidden) ? ' checked="checked"' : '') . ' />';
echo "{$box['title']}</label>";
echo "{$box['title']}</label>\n";
}
}
}
echo '</ul>';
}
?>