From 73f3896134f262a1300bdbd9402da4451c0fd9f3 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Wed, 10 Aug 2016 23:57:30 +0000 Subject: [PATCH] About Page: Updates for 4.6. Merge of [38213], [38215], [38234], and [38244] to the 4.6 branch. Props hugobaeta, Ipstenu, SergeyBiryukov, Presskopp, jeremyfelt, afragen, helen, Clorith, macmanx, DrewAPicture, voldemortensen, jorbin, joemcgill, MattyRob, ocean90. Fixes #37246. Built from https://develop.svn.wordpress.org/branches/4.6@38245 git-svn-id: http://core.svn.wordpress.org/branches/4.6@38186 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/about.php | 129 +++++++++++++++++++++++---------- wp-admin/credits.php | 2 +- wp-admin/css/about-rtl.css | 28 +++++-- wp-admin/css/about-rtl.min.css | 2 +- wp-admin/css/about.css | 28 +++++-- wp-admin/css/about.min.css | 2 +- wp-admin/freedoms.php | 2 +- wp-includes/version.php | 2 +- 8 files changed, 136 insertions(+), 59 deletions(-) diff --git a/wp-admin/about.php b/wp-admin/about.php index 029ea04c3c..9a46414fce 100644 --- a/wp-admin/about.php +++ b/wp-admin/about.php @@ -9,8 +9,28 @@ /** 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' => '', + ) ); +} + +/** + * 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/scFdjVo6?hd=true'; @@ -29,7 +49,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );

-

+