X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/874d2a2f468a0d1e69aab49b1fe2d9d79d3e1142..e8f61417994be715a90671aa87f1cd70d8ba132a:/wp-admin/about.php diff --git a/wp-admin/about.php b/wp-admin/about.php index ae847c11..8772bf04 100644 --- a/wp-admin/about.php +++ b/wp-admin/about.php @@ -9,12 +9,16 @@ /** 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 ( current_user_can( 'customize' ) ) { + wp_enqueue_script( 'customize-loader' ); +} + +$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 ); +} $title = __( 'About' ); @@ -22,155 +26,171 @@ 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.', 23 ), '4.0.1', number_format_i18n( 23 ) ); ?> - the release notes.' ), 'http://codex.wordpress.org/Version_4.0.1' ); ?> -

-
- -
-
- - - - - -
- -
- -
-
-

-

+
+

+ +
+
+ + + +
+

+

Version %s addressed some security issues.' ), '4.5.2' ); ?> + the release notes.' ), 'https://codex.wordpress.org/Version_4.5.2' ); ?> +

+

Version %1$s addressed %2$s bug.', + 'Version %1$s addressed %2$s bugs.', 12 ), '4.5.1', number_format_i18n( 12 ) ); ?> + the release notes.' ), 'https://codex.wordpress.org/Version_4.5.1' ); ?> +

-
- -
-
-
- -
-
-
- '//s.w.org/images/core/4.0/embed.mp4', - 'ogv' => '//s.w.org/images/core/4.0/embed.ogv', - 'webm' => '//s.w.org/images/core/4.0/embed.webm', - 'loop' => true, - 'autoplay' => true, - 'width' => 500, - 'height' => 352 - ) ); - ?> -
-
-
-

-

-

Check out all of the embeds that WordPress supports.' ); ?>

+
+ +
-
-
+
-
-
-

-

-
-
-
- '//s.w.org/images/core/4.0/focus.mp4', - 'ogv' => '//s.w.org/images/core/4.0/focus.ogv', - 'webm' => '//s.w.org/images/core/4.0/focus.webm', - 'loop' => true, - 'autoplay' => true, - 'width' => 500, - 'height' => 281 - ) ); - ?> +
+

+
+ +

+

+
+
+ +

+

<code>.' ); ?>

-
-
- -
-
- -
-
-

-

- +
+ +
+

+
+ +

+

+ 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.' ); + } + ?>

+
-
-
-
- -
-

+
+ +
+

+ +
+
+

+

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

+
+
+

+

+
+
-
-
-

-

-
-
-

-

ORDER BY', 'WP_Query' ); - ?>

-
-
-

-

-
-
+
+
+

+

wp_add_inline_script()' + ); + ?>

+
+
+

+

directly overridden by themes via the template hierarchy.' ), + 'https://make.wordpress.org/core/2016/03/11/embeds-changes-in-wordpress-4-5/' + ); + ?>

+
+
-
+
+ + + + | + + +
-
- - | - - +
- -
- -
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.', @@ -198,4 +224,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.' );