WordPress.org

Make WordPress Core

Ticket #11976: 11976.diff

File 11976.diff, 591 bytes (added by technosailor, 8 years ago)
  • trunk/wp-admin/includes/media.php

     
    306306wp_enqueue_style( 'global' );
    307307wp_enqueue_style( 'wp-admin' );
    308308wp_enqueue_style( 'colors' );
    309 if ( 0 === strpos( $content_func, 'media' ) )
     309$callback_name = ( is_array( $content_func ) ) ? (string) $content_func[1] : (string) $content_func;
     310if ( 0 === strpos( $callback_name, 'media' ) )
    310311        wp_enqueue_style( 'media' );
    311312wp_enqueue_style( 'ie' );
    312313?>