X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/784f914b1e4b1c62d6657e86397c2e83bcee4295..4ea0dca21bda49aab5ccb91ec12bb4ef5924ed3e:/wp-admin/about.php diff --git a/wp-admin/about.php b/wp-admin/about.php index 765ded93..72b20ba5 100644 --- a/wp-admin/about.php +++ b/wp-admin/about.php @@ -9,27 +9,32 @@ /** 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'; -$locale = str_replace( '_', '-', get_locale() ); -list( $locale ) = explode( '-', $locale ); -if ( 'en' !== $locale ) { - $video_url = add_query_arg( 'defaultLangCode', $locale, $video_url ); +$video_url = 'https://videopress.com/embed/AHz0Ca46?hd=true'; +$lang_code = str_replace( '_', '-', get_user_locale() ); +list( $lang_code ) = explode( '-', $lang_code ); +if ( 'en' !== $lang_code ) { + $video_url = add_query_arg( 'defaultLangCode', $lang_code, $video_url ); } $title = __( 'About' ); -list( $display_version ) = explode( '-', $wp_version ); +list( $display_version ) = explode( '-', get_bloginfo( 'version' ) ); include( ABSPATH . 'wp-admin/admin-header.php' ); ?>

-
+

-
+
+

+

Version %s addressed some security issues.' ), '4.7.2' ); ?> + the release notes.' ), 'https://codex.wordpress.org/Version_4.7.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.', 62 ), '4.7.1', number_format_i18n( 62 ) ); ?> + the release notes.' ), 'https://codex.wordpress.org/Version_4.7.1' ); ?> +

+
+ +
-
+
+ +
+

+

+ + + + + +

+
+ +
+ +
+

+

+
-

- -

-

+

+

- -

-

<code>.' ); ?>

+ 'https://s.w.org/images/core/4.7/starter-content-v1.mp4', + 'poster' => 'https://s.w.org/images/core/4.7/starter-content.jpg?v2', + 'loop' => true, + 'autoplay' => true, + 'width' => 1140, + 'height' => 624, + // 'class' => 'wp-video-shortcode feature-video', + ) ); + ?>
-
+
+
+

+ 'https://s.w.org/images/core/4.7/edit-shortcuts-v1.mp4', + 'poster' => 'https://s.w.org/images/core/4.7/edit-shortcuts.jpg?v2', + 'loop' => true, + 'autoplay' => true, + 'width' => 2520, + 'height' => 1454, + // 'class' => 'wp-video-shortcode feature-video', + ) ); + ?> +

+
+
+

+ 'https://s.w.org/images/core/4.7/header-video-v1.mp4', + 'poster' => 'https://s.w.org/images/core/4.7/header-video.jpg?v2', + 'loop' => true, + 'autoplay' => true, + 'width' => 2520, + 'height' => 1454, + // 'class' => 'wp-video-shortcode feature-video', + ) ); + ?> +

+
+
-

- -

-

- customizer.' ), - esc_url( $customize_url ) - ); - } else { - _e( 'Preview mobile, tablet, and desktop views directly in the customizer.' ); - } - ?>

+

+ +

- -

-

- Site Identity section of the customizer.' ), - esc_url( add_query_arg( array( 'autofocus' => array( 'section' => 'title_tagline' ) ), $customize_url ) ) - ); - } else { - _e( 'The Twenty Fifteen and Twenty Sixteen themes have been updated to support custom logos, which can be found in the Site Identity section of the customizer.' ); - } - ?>

+

+ +


+
+
+

+ +

+
+
+

+ +

+
+
+ +
+ +
+

+

+ +

Check out the REST API reference.' ), + 'https://developer.wordpress.org/rest-api/reference/' + ); + ?>

+
+ +
+
-

+

-

-

comprehensive framework for rendering parts of the preview without rewriting your PHP code in JavaScript.' ), - 'https://make.wordpress.org/core/2016/02/16/selective-refresh-in-the-customizer/' - ); - if ( current_user_can( 'customize' ) && current_user_can( 'edit_theme_options' ) ) { - if ( current_theme_supports( 'menus' ) && ! current_theme_supports( 'customize-selective-refresh-widgets' ) ) { - printf( - /* translators: %s: URL to Menus section of the customizer */ - ' ' . __( 'See it in action with Menus.' ), - esc_url( add_query_arg( array( 'autofocus' => array( 'panel' => 'nav_menus' ) ), $customize_url ) ) - ); - } elseif ( current_theme_supports( 'customize-selective-refresh-widgets' ) ) { // If widgets are supported, menus are also because of the menus widget. - printf( - /* translators: 1: URL to Menus section of the customizer, 2: URL to Widgets section of the customizer */ - ' ' . __( 'See it in action with Menus or Widgets.' ), - esc_url( add_query_arg( array( 'autofocus' => array( 'panel' => 'nav_menus' ) ), $customize_url ) ), - esc_url( add_query_arg( array( 'autofocus' => array( 'panel' => 'widgets' ) ), $customize_url ) ) - ); - } - } - ?>

+

+

-

+

It’s really cool.' ), - 'https://make.wordpress.org/core/2016/03/12/performance-improvements-for-images-in-wordpress-4-5/' + /* translators: %s: https://make.wordpress.org/core/2016/09/09/new-functions-hooks-and-behaviour-for-theme-developers-in-wordpress-4-7/ */ + __( 'WordPress 4.7 includes new functions, hooks, and behavior for theme developers.' ), + 'https://make.wordpress.org/core/2016/09/09/new-functions-hooks-and-behaviour-for-theme-developers-in-wordpress-4-7/' ); ?>

-

-

+

+

-
+
-

+

WP_Hook

wp_add_inline_script()' + /* translators: %s: https://make.wordpress.org/core/2016/09/08/wp_hook-next-generation-actions-and-filters/ */ + __( 'The code that lies beneath actions and filters has been overhauled and modernized, fixing bugs along the way.' ), + 'https://make.wordpress.org/core/2016/09/08/wp_hook-next-generation-actions-and-filters/' ); ?>

-

+

directly overridden by themes via the template hierarchy.' ), - 'https://make.wordpress.org/core/2016/03/11/embeds-changes-in-wordpress-4-5/' + /* translators: 1: register_setting(), 2: https://make.wordpress.org/core/2016/10/26/registering-your-settings-in-wordpress-4-7/ */ + __( '%1$s has been enhanced to include type, description, and REST API visibility.' ), + 'register_setting()', + 'https://make.wordpress.org/core/2016/10/26/registering-your-settings-in-wordpress-4-7/' ); ?>

+
+

+

+
-
- - - - | - - -
+
+
+ +
+ + + + | + +
+