Make WordPress Core


Ignore:
Timestamp:
10/04/2010 04:16:33 AM (14 years ago)
Author:
dd32
Message:

Do not load adminbar css in media uploader. See #14772

File:
1 edited

Legend:

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

    r15695 r15696  
    230230    global $pagenow, $wp_locale;
    231231
    232     if ( !is_user_logged_in() )
    233         return false;
    234 
    235     if ( 'press-this.php' == $pagenow || 'update.php' == $pagenow )
     232    if ( !is_user_logged_in() || 'press-this.php' == $pagenow || 'update.php' == $pagenow || 'media-upload.php' == $pagenow )
    236233        return;
    237234
     
    295292                var children = par.children('ul');
    296293                if ( root.hasClass('ab-sadmin') )
    297                     jQuery(children[0]).css('<?php echo( is_rtl() ? 'left'  : 'right' ); ?>',par.parents('ul').width() - 1 +'px' );
     294                    jQuery(children[0]).css('<?php echo( is_rtl() ? 'left' : 'right' ); ?>',par.parents('ul').width() - 1 +'px' );
    298295                else
    299                     jQuery(children[0]).css('<?php echo( is_rtl() ? 'right'  : 'left' ); ?>',par.parents('ul').width() +'px' );
     296                    jQuery(children[0]).css('<?php echo( is_rtl() ? 'right' : 'left' ); ?>',par.parents('ul').width() +'px' );
    300297               
    301298                jQuery(children[0]).css('top', '0' );
Note: See TracChangeset for help on using the changeset viewer.