X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/985e04597a9f1ddc4a3b406d0fb33722e097ee8b..3d39054f012aefe514b3f5509e32f09fc4feda44:/wp-admin/about.php diff --git a/wp-admin/about.php b/wp-admin/about.php index c8512135..6e77b1b4 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,168 +46,174 @@ list( $display_version ) = explode( '-', $wp_version ); include( ABSPATH . 'wp-admin/admin-header.php' ); ?> - -
Version %1$s addressed %2$s bug.', - 'Version %1$s addressed %2$s bugs.', 21 ), '4.1.1', number_format_i18n( 21 ) ); ?> - the release notes.' ), 'http://codex.wordpress.org/Version_4.1.1' ); ?> -
-Google’s Noto font family.' ), 'https://www.google.com/get/noto/' ); ?>
- - + - -distraction-free writing mode. When you start typing, all the distractions will fade away, letting you focus solely on your writing. All your editing tools instantly return when you need them.' ); ?>
-' . 40 . ''; - $string = __( 'Right now, WordPress %1$s is already translated into %2$s languages, with more always in progress. You can switch to any translation on the General Settings screen.' ); - if ( ! current_user_can( 'manage_options' ) ) { - $string = strip_tags( $string ); - } - echo sprintf( $string, $display_version, $count, admin_url( 'options-general.php' ) ); - ?>
+full list of supported embeds.' ), 'http://codex.wordpress.org/Embeds' ); ?>
+your profile and log out everywhere.' ), get_edit_profile_url() ); ?>
-plugin installer suggests plugins for you to try. Recommendations are based on the plugins you and other users have installed.' ); - if ( ! current_user_can( 'install_plugins' ) ) { - $string = strip_tags( $string ); - } - echo sprintf( $string, network_admin_url( 'plugin-install.php?tab=recommended' ) ); - ?>
+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
'
+ );
+ ?>
A AND ( B OR C )' ); ?>
+<title>
' );
- ?>add_theme_support( 'title-tag' )" ); - ?>
- - -developer reference more complete than ever.' ), 'https://developer.wordpress.org/reference/' ); ?>
+