WordPress.org

Make WordPress Core

Ticket #2493: cats-open.diff

File cats-open.diff, 2.0 KB (added by skeltoac, 10 years ago)
  • wp-includes/js/dbx-key.js

     
    2020                '%mytitle%  [%dbxtitle%]' // pattern-match syntax for title-attribute conflicts 
    2121                ); 
    2222 
     23        // Boxes are closed by default. Open the Category box if the cookie isn't already set. 
     24        var catdiv = document.getElementById('categorydiv'); 
     25        if ( catdiv ) { 
     26                var button = catdiv.getElementsByTagName('A')[0]; 
     27                if ( dbx.cookiestate == null && /dbx\-toggle\-closed/.test(button.className) ) 
     28                        meta.toggleBoxState(button, true); 
     29        } 
     30 
    2331        var advanced = new dbxGroup( 
    2432                'advancedstuff',                // container ID [/-_a-zA-Z0-9/] 
    2533                'vertical',             // orientation ['vertical'|'horizontal'] 
  • wp-admin/edit-form-advanced.php

     
    6868<div id="moremeta"> 
    6969<div id="grabit" class="dbx-group"> 
    7070 
     71<fieldset id="categorydiv" class="dbx-box"> 
     72<h3 class="dbx-handle"><?php _e('Categories') ?></h3> 
     73<div class="dbx-content"> 
     74<p id="jaxcat"></p> 
     75<div id="categorychecklist"><?php dropdown_categories(get_settings('default_category')); ?></div></div> 
     76</fieldset> 
     77 
    7178<fieldset id="commentstatusdiv" class="dbx-box"> 
    7279<h3 class="dbx-handle"><?php _e('Discussion') ?></h3> 
    7380<div class="dbx-content"> 
     
    8996<div class="dbx-content"><input name="post_name" type="text" size="13" id="post_name" value="<?php echo $post->post_name ?>" /></div> 
    9097</fieldset> 
    9198 
    92 <fieldset id="categorydiv" class="dbx-box"> 
    93 <h3 class="dbx-handle"><?php _e('Categories') ?></h3> 
    94 <div class="dbx-content"> 
    95 <p id="jaxcat"></p> 
    96 <div id="categorychecklist"><?php dropdown_categories(get_settings('default_category')); ?></div></div> 
    97 </fieldset> 
    98  
    9999<fieldset class="dbx-box"> 
    100100<h3 class="dbx-handle"><?php _e('Post Status') ?></h3>  
    101101<div class="dbx-content"><?php if ( current_user_can('publish_posts') ) : ?>