X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/784f914b1e4b1c62d6657e86397c2e83bcee4295..607b7e02d77e7326161e8ec15639052d2040f745:/wp-admin/about.php diff --git a/wp-admin/about.php b/wp-admin/about.php index 765ded93..51d6a8d4 100644 --- a/wp-admin/about.php +++ b/wp-admin/about.php @@ -9,11 +9,31 @@ /** 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'; +/** + * 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 ) { @@ -29,7 +49,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );

-
+

-
+

-
-

-
- -

-

-
-
- -

-

<code>.' ); ?>

-
+
+

+

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

+

+

-

+

- -

-

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

+ +

+

@@ -105,80 +125,86 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
-

+

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/' + /* translators: %s: https://make.wordpress.org/core/2016/07/06/resource-hints-in-4-6/ */ + __( '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/' ); - 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 ) ) - ); - } - } ?>

-

+

+

+
+
+

WP_Term_Query', 'WP_Post_Type' ); + ?>

It’s really cool.' ), - 'https://make.wordpress.org/core/2016/03/12/performance-improvements-for-images-in-wordpress-4-5/' + /* translators: 1: WP_Term_Query, 2: WP_Post_Type */ + __( 'A new %1$s class adds flexibility to query term information while a new %2$s object makes interacting with post types more predictable.' ), + 'WP_Term_Query', + 'WP_Post_Type' ); ?>

-
-

-

-
-
+
-

+

wp_add_inline_script()' + /* translators: %s: https://make.wordpress.org/core/2016/07/08/enhancing-register_meta-in-4-6/ */ + __( 'The Meta Registration API 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.' ); ?>

+
+
+

directly overridden by themes via the template hierarchy.' ), - 'https://make.wordpress.org/core/2016/03/11/embeds-changes-in-wordpress-4-5/' + /* translators: 1: WP_Site_Query, 2: WP_Network_Query */ + __( 'Cached and comprehensive site queries improve your network admin experience. The addition of %1$s and %2$s help craft advanced queries with less effort.' ), + 'WP_Site_Query', + 'WP_Network_Query' ); ?>

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