X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/0459461f9ea42e0b090759ff6fe5f48360bef750..refs/tags/wordpress-4.5:/wp-admin/about.php?ds=sidebyside diff --git a/wp-admin/about.php b/wp-admin/about.php index a808afca..765ded93 100644 --- a/wp-admin/about.php +++ b/wp-admin/about.php @@ -9,27 +9,17 @@ /** 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( 'install_plugins' ) ) { - add_thickbox(); - wp_enqueue_script( 'plugin-install' ); +if ( current_user_can( 'customize' ) ) { + wp_enqueue_script( 'customize-loader' ); } -$video_url = 'https://videopress.com/embed/J44FHXvg?hd=true'; +$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 ); } -wp_oembed_add_host_js(); - $title = __( 'About' ); list( $display_version ) = explode( '-', $wp_version ); @@ -39,157 +29,141 @@ 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.', 17 ), '4.4.2', number_format_i18n( 17 ) ); ?> - the release notes.' ), 'https://codex.wordpress.org/Version_4.4.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.', 52 ), '4.4.1', number_format_i18n( 52 ) ); ?> - the release notes.' ), 'https://codex.wordpress.org/Version_4.4.1' ); ?> -

-
- -
+

-
-

-
- -
-
-
-

-

-

-
-
- -
-
-
-
- -
-
-
- -
-
+

-
- -
+ +

+

-

-

+ +

+

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


-

+

-
+
-

-
-

-

'plugin-information', - 'plugin' => 'rest-api', - 'TB_iframe' => true, - 'width' => 600, - 'height' => 550 +

+

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 ) ) ); - - $plugin_link = 'WordPress REST API'; - } else { - $plugin_link = 'WordPress REST API'; } - - /* translators: WordPress REST API plugin link */ - printf( __( 'Infrastructure is the first part of a multi-stage rollout for the REST API. Inclusion of core endpoints is targeted for an upcoming release. To get a sneak peek of the core endpoints, and for more information on extending the REST API, check out the official %s plugin.' ), $plugin_link ); - ?>

-
+ } + ?>

-
- -
-

+

add_term_meta()', - 'get_term_meta()', - 'update_term_meta()' - ); + printf( + /* translators: %s: URL to the development post of the new feature */ + __( 'Generated images now load up to 50% faster with no noticeable quality loss. It’s really cool.' ), + 'https://make.wordpress.org/core/2016/03/12/performance-improvements-for-images-in-wordpress-4-5/' + ); ?>

-

+

+

+
+
+ +
+
+

WP_Comment_Query' ); + printf( + /* translators: %s: wp_add_inline_script() */ + __( 'Better support has been added for script header/footer dependencies. New %s enables adding extra code to registered scripts.' ), + 'wp_add_inline_script()' + ); ?>

-

+

WP_Term', - 'WP_Comment', - 'WP_Network' + printf( + /* translators: %s: URL to the development post of the new feature */ + __( 'Embed templates have been split into parts and can be directly overridden by themes via the template hierarchy.' ), + 'https://make.wordpress.org/core/2016/03/11/embeds-changes-in-wordpress-4-5/' ); ?>