From d6ae552b4e5df3f124ec073e5a799ef839674924 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sun, 5 Dec 2010 03:01:42 +0000 Subject: [PATCH] Fix notice. props vericgar, fixes #11976. git-svn-id: https://develop.svn.wordpress.org/trunk@16729 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/media.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index c78720d0d9..428bf4a359 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -311,7 +311,8 @@ wp_enqueue_style( 'global' ); wp_enqueue_style( 'wp-admin' ); wp_enqueue_style( 'colors' ); // 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' ) ) +if ( ( is_array( $content_func ) && ! empty( $content_func[1] ) && 0 === strpos( (string) $content_func[1], 'media' ) ) + || ( ! is_array( $content_func ) && 0 === strpos( $content_func, 'media' ) ) ) wp_enqueue_style( 'media' ); wp_enqueue_style( 'ie' ); ?>