mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-24 01:57:53 +01:00
Allow class/method array pair in wp_iframe() when checking callback name in determining whether to include media stylessheet. Props technosailor, fixes #11976
git-svn-id: http://svn.automattic.com/wordpress/trunk@13243 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
679250491d
commit
d93a202841
@ -306,7 +306,8 @@ function wp_iframe($content_func /* ... */) {
|
||||
wp_enqueue_style( 'global' );
|
||||
wp_enqueue_style( 'wp-admin' );
|
||||
wp_enqueue_style( 'colors' );
|
||||
if ( 0 === strpos( $content_func, 'media' ) )
|
||||
// Check callback name for 'media'
|
||||
if ( ( is_array( $content_func ) && ! empty( $content_func[1] ) && 0 === strpos( (string) $content_func[1], 'media' ) ) || 0 === strpos( $content_func, 'media' ) )
|
||||
wp_enqueue_style( 'media' );
|
||||
wp_enqueue_style( 'ie' );
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user