X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/00dbffaf1593b0ac719d98f00839221a9ca52133..607b7e02d77e7326161e8ec15639052d2040f745:/wp-admin/about.php diff --git a/wp-admin/about.php b/wp-admin/about.php index 3f908f09..51d6a8d4 100644 --- a/wp-admin/about.php +++ b/wp-admin/about.php @@ -7,7 +7,38 @@ */ /** WordPress Administration Bootstrap */ -require_once( './admin.php' ); +require_once( dirname( __FILE__ ) . '/admin.php' ); + +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' ); @@ -15,129 +46,166 @@ list( $display_version ) = explode( '-', $wp_version ); include( ABSPATH . 'wp-admin/admin-header.php' ); ?> -
+
+

-

+

+
-
+ -
- - - -
-

-

Version %1$s addressed some security issues and fixed %2$s bug.', - 'Version %1$s addressed some security issues and fixed %2$s bugs.', 37 ), '3.5.1', number_format_i18n( 37 ) ); ?> - the release notes.' ), 'http://codex.wordpress.org/Version_3.5.1' ); ?> -

-
- -
-

- -
- - -
-

-

-
-
-

-

+
+ +
-
-
- -
-

-
- -

-

-

-

-
-
- -
-

+
+ +
+

+

+ 'https://s.w.org/images/core/4.6/streamlined-updates.mp4', + 'webm' => 'https://s.w.org/images/core/4.6/streamlined-updates.webm', + 'poster' => 'https://s.w.org/images/core/4.6/streamlined-updates-2000.png?v1', + 'loop' => true, + 'autoplay' => true, + 'width' => 1050, + 'height' => 630, + 'class' => 'wp-video-shortcode feature-video', + ) ); + remove_filter( 'wp_video_shortcode', '_wp_override_admin_video_width_limit' ); + } else { + echo ''; + } + ?> +
-
- -

-

-
-
+
-
-

+
+

+

+ +
-
- -

-

+
+ +
+

+
+ +

+

+
+
+ +

+

+
+
-

-

-
-
+
+ +
+

+ +
+
+

+

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_Term_Query', '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' + ); + ?>

+
+
+
-
-

+
-
-
-

-

WP_Comment_Query and WP_User_Query classes now support meta queries just like WP_Query. Meta queries now support querying for objects without a particular meta key.' ); ?>

+
+ + + + | + +
-
-

-

WP_Post class, which improves performance by loading selected properties on demand.' ); ?>

-
-
-

-

WP_Image_Editor class abstracts image editing functionality such as cropping and scaling, and uses ImageMagick when available.' ); ?>

-
-
-
-
-

-

switch_to_blog() is now significantly faster and more reliable.' ); ?>

-
-
-

-

WordPress API is now always enabled, and supports fetching users, editing profiles, managing post revisions, and searching posts.' ), __( 'http://codex.wordpress.org/XML-RPC_WordPress_API' ) ); ?>

-
-
-

-

Underscore and Backbone JavaScript libraries. TinyMCE, jQuery, jQuery UI, and SimplePie have all been updated to the latest versions.' ), 'http://underscorejs.org/', 'http://backbonejs.org/' ); ?>

-
-
- -
- - | - - -
- -
Version %1$s addressed a security issue.', - 'Version %1$s addressed some security issues.' ); +/* translators: %s: WordPress version number */ +__( 'Version %s addressed one security issue.' ); +/* translators: %s: WordPress version number */ +__( 'Version %s addressed some security issues.' ); /* translators: 1: WordPress version number, 2: plural number of bugs. */ _n_noop( 'Version %1$s addressed %2$s bug.', @@ -165,4 +239,5 @@ _n_noop( 'Version %1$s addressed a security issue and fixed %2$ _n_noop( 'Version %1$s addressed some security issues and fixed %2$s bug.', 'Version %1$s addressed some security issues and fixed %2$s bugs.' ); +/* translators: %s: Codex URL */ __( 'For more information, see the release notes.' );