Make WordPress Core


Ignore:
Timestamp:
08/20/2008 09:42:31 PM (16 years ago)
Author:
ryan
Message:

Collapse crazyhorse to trunk. Incoming! see #7552

File:
1 edited

Legend:

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

    r8645 r8691  
    99@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
    1010if (!isset($_GET["page"])) require_once('admin.php');
    11 if ( $editing ) {
    12     if ( user_can_richedit() )
    13         wp_enqueue_script( 'wp_tiny_mce' );
    14 }
    1511wp_enqueue_script( 'wp-gears' );
    1612
     
    3329        add_filter( 'admin_body_class', 'add_minwidth' );
    3430}
     31
     32$fixed_bar_pages = array( 'post.php', 'post-new.php', 'page.php', 'page-new.php' );
     33if ( ! isset($fixed_bar) ) $fixed_bar = in_array( $the_current_page, $fixed_bar_pages ) ? true : false;
    3534
    3635get_admin_page_title();
     
    144143?>
    145144<div id="wpbody">
     145
     146<?php if ( ! $fixed_bar ) { ?>
     147<div id="wpbody-content">
     148<?php } ?>
Note: See TracChangeset for help on using the changeset viewer.