WordPress.org

Make WordPress Core

Changeset 13243


Ignore:
Timestamp:
02/20/10 08:19:44 (4 years ago)
Author:
nacin
Message:

Allow class/method array pair in wp_iframe() when checking callback name in determining whether to include media stylessheet. Props technosailor, fixes #11976

File:
1 edited

Legend:

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

    r13242 r13243  
    307307wp_enqueue_style( 'wp-admin' ); 
    308308wp_enqueue_style( 'colors' ); 
    309 if ( 0 === strpos( $content_func, 'media' ) ) 
     309// Check callback name for 'media' 
     310if ( ( is_array( $content_func ) && ! empty( $content_func[1] ) && 0 === strpos( (string) $content_func[1], 'media' ) ) || 0 === strpos( $content_func, 'media' ) ) 
    310311    wp_enqueue_style( 'media' ); 
    311312wp_enqueue_style( 'ie' ); 
Note: See TracChangeset for help on using the changeset viewer.