WordPress.org

Make WordPress Core

Changeset 17020


Ignore:
Timestamp:
12/17/10 08:32:53 (4 years ago)
Author:
westi
Message:

If we are previewing don't show the admin bar. See #15856

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme.php

    r16958 r17020  
    11481148        return; 
    11491149 
     1150    // Admin Thickbox requests 
     1151    if ( isset( $_GET['preview_iframe'] ) ) 
     1152        show_admin_bar( false ); 
     1153         
    11501154    $_GET['template'] = preg_replace('|[^a-z0-9_./-]|i', '', $_GET['template']); 
    11511155 
     
    11611165        add_filter( 'stylesheet', '_preview_theme_stylesheet_filter' ); 
    11621166    } 
    1163  
     1167     
    11641168    // Prevent theme mods to current theme being used on theme being previewed 
    11651169    add_filter( 'pre_option_mods_' . get_current_theme(), '__return_empty_array' ); 
Note: See TracChangeset for help on using the changeset viewer.