diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 5df9c126eb..5ef39cc013 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -68,6 +68,13 @@ addLoadEvent(focusit);
+
+

+
+

+
+
+

@@ -89,13 +96,6 @@ addLoadEvent(focusit);
-
-

-
-

-
-
-

diff --git a/wp-includes/js/dbx-key.js b/wp-includes/js/dbx-key.js index f7155de880..bd13da85e8 100644 --- a/wp-includes/js/dbx-key.js +++ b/wp-includes/js/dbx-key.js @@ -20,6 +20,14 @@ addLoadEvent( function() '%mytitle% [%dbxtitle%]' // pattern-match syntax for title-attribute conflicts ); + // Boxes are closed by default. Open the Category box if the cookie isn't already set. + var catdiv = document.getElementById('categorydiv'); + if ( catdiv ) { + var button = catdiv.getElementsByTagName('A')[0]; + if ( dbx.cookiestate == null && /dbx\-toggle\-closed/.test(button.className) ) + meta.toggleBoxState(button, true); + } + var advanced = new dbxGroup( 'advancedstuff', // container ID [/-_a-zA-Z0-9/] 'vertical', // orientation ['vertical'|'horizontal']