X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/e8f61417994be715a90671aa87f1cd70d8ba132a..073c5ed6408e2f00dc1863b463fe205467628905:/wp-admin/about.php diff --git a/wp-admin/about.php b/wp-admin/about.php index 8772bf04..f43006c7 100644 --- a/wp-admin/about.php +++ b/wp-admin/about.php @@ -9,11 +9,31 @@ /** WordPress Administration Bootstrap */ require_once( dirname( __FILE__ ) . '/admin.php' ); -if ( current_user_can( 'customize' ) ) { - wp_enqueue_script( 'customize-loader' ); +if ( ! wp_is_mobile() ) { + wp_enqueue_style( 'wp-mediaelement' ); + wp_enqueue_script( 'wp-mediaelement' ); + wp_localize_script( 'mediaelement', '_wpmejsSettings', array( + 'pluginPath' => includes_url( 'js/mediaelement/', 'relative' ), + 'pauseOtherPlayers' => '', + ) ); } -$video_url = 'https://videopress.com/embed/scFdjVo6?hd=true'; +/** + * Replaces the height and width attributes with values for full size. + * + * wp_video_shortcode() limits the width to 640px. + * + * @since 4.6.0 + * @ignore + * + * @param $output Video shortcode HTML output. + * @return string Filtered HTML content to display video. + */ +function _wp_override_admin_video_width_limit( $output ) { + return str_replace( array( '640', '384' ), array( '1050', '630' ), $output ); +} + +$video_url = 'https://videopress.com/embed/GbdhpGF3?hd=true'; $locale = str_replace( '_', '-', get_locale() ); list( $locale ) = explode( '-', $locale ); if ( 'en' !== $locale ) { @@ -29,7 +49,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );

-
+