X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/9e77185fafaf4e60e2b73821e0e4b9b1a11fb85f..073c5ed6408e2f00dc1863b463fe205467628905:/wp-admin/about.php?ds=sidebyside diff --git a/wp-admin/about.php b/wp-admin/about.php index 2e2ba5cf..f43006c7 100644 --- a/wp-admin/about.php +++ b/wp-admin/about.php @@ -9,12 +9,36 @@ /** WordPress Administration Bootstrap */ require_once( dirname( __FILE__ ) . '/admin.php' ); -wp_enqueue_style( 'wp-mediaelement' ); -wp_enqueue_script( 'wp-mediaelement' ); -wp_localize_script( 'mediaelement', '_wpmejsSettings', array( - 'pluginPath' => includes_url( 'js/mediaelement/', 'relative' ), - 'pauseOtherPlayers' => '' -) ); +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/GbdhpGF3?hd=true'; +$locale = str_replace( '_', '-', get_locale() ); +list( $locale ) = explode( '-', $locale ); +if ( 'en' !== $locale ) { + $video_url = add_query_arg( 'defaultLangCode', $locale, $video_url ); +} $title = __( 'About' ); @@ -22,147 +46,177 @@ list( $display_version ) = explode( '-', $wp_version ); include( ABSPATH . 'wp-admin/admin-header.php' ); ?> - -
Version %s addressed some security issues.' ), '4.6.2' ); ?> + the release notes.' ), 'https://codex.wordpress.org/Version_4.6.2' ); ?> +
+Version %1$s addressed some security issues and fixed %2$s bug.', + 'Version %1$s addressed some security issues and fixed %2$s bugs.', 15 ), '4.6.1', number_format_i18n( 15 ) ); ?> + the release notes.' ), 'https://codex.wordpress.org/Version_4.6.1' ); ?> +
Check out all of the embeds that WordPress supports.' ); ?>
+ +Resource hints help browsers decide which resources to fetch and preprocess. WordPress 4.6 adds them automatically for your styles and scripts making your site even faster.' ), + 'https://make.wordpress.org/core/2016/07/06/resource-hints-in-4-6/' + ); + ?>
+WP_Post_Type
' );
+ ?>WP_Term_Query',
+ 'WP_Post_Type
'
+ );
+ ?>
has been expanded to support types, descriptions, and REST API visibility.' ), + 'https://make.wordpress.org/core/2016/07/08/enhancing-register_meta-in-4-6/' + ); + ?>
+WordPress.org’s community of translators.' ); ?>
+API for enforcing validation constraints. Likewise, customizer controls now support notifications, which are used to display validation errors instead of failing silently.' ); ?>
+WP_Site_Query',
+ 'WP_Network_Query
'
+ );
+ ?>