WordPress.org

Make WordPress Core

Ticket #17704: 17704.diff

File 17704.diff, 1.2 KB (added by mitchoyoshitaka, 8 years ago)

Patch v1, which *should* work but depends on #17704

  • wp-admin/js/post.dev.js

     
    244244jQuery(document).ready( function($) {
    245245        var stamp, visibility, sticky = '', last = 0, co = $('#content');
    246246
    247         postboxes.add_postbox_toggles(pagenow);
    248 
    249247        // multi-taxonomies
    250248        if ( $('#tagsdiv-post_tag').length ) {
    251249                tagBox.init();
  • wp-admin/js/postbox.dev.js

     
    156156                pbhide : false
    157157        };
    158158
     159        $(document).ready(function() {
     160                postboxes.add_postbox_toggles(pagenow);
     161        });
    159162}(jQuery));
  • wp-admin/includes/template.php

     
    17491749                $show_screen = true;
    17501750
    17511751        $show_screen = apply_filters('screen_options_show_screen', $show_screen, $screen);
     1752        if ( $show_screen )
     1753                wp_enqueue_script( 'postbox' );
    17521754
    17531755?>
    17541756<div id="screen-meta">