Make WordPress Core


Ignore:
Timestamp:
04/29/2009 05:43:03 AM (17 years ago)
Author:
azaozz
Message:

Load the menu folded (if set), load the editor earlier

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r11100 r11118  
    4040
    4141if ( in_array( $pagenow, array('post.php', 'post-new.php', 'page.php', 'page-new.php') ) ) {
    42     add_action( 'admin_print_footer_scripts', 'wp_tiny_mce', 25 );
     42    add_action( 'admin_print_footer_scripts', 'wp_tiny_mce', 5 );
    4343    wp_enqueue_script('quicktags');
    4444}
     
    6161
    6262$admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix);
     63if ( get_user_setting('mfold') ) {
     64    $admin_body_class .= ' folded';
     65}
    6366
    6467if ( $is_iphone ) { ?>
     
    7275var c = document.body.className;
    7376c = c.replace(/no-js/, 'js');
    74 <?php if ( get_user_setting('mfold') == 'f' ) { ?>
    75 c += ' folded';
    76 <?php } ?>
    7777document.body.className = c;
    7878})();
Note: See TracChangeset for help on using the changeset viewer.