WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/23/2010 07:49:25 PM (10 years ago)
Author:
nacin
Message:

Don't show the admin bar in the plugin/theme installers. Inserts condition directly into iframe_header(). Allows show_admin_bar() to be called after init by unsetting wp_admin_bar, thus preventing render once those hooks are fired. see #14772.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r15918 r15938  
    15301530 */
    15311531function iframe_header( $title = '', $limit_styles = false ) {
    1532 global $hook_suffix;
     1532    show_admin_bar( false );
     1533    global $hook_suffix;
    15331534?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    15341535<html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
Note: See TracChangeset for help on using the changeset viewer.