From 6008eca7665b327ba263c93c11795662f2cbee34 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Mon, 11 Apr 2016 17:45:17 +0000 Subject: [PATCH] About Page: Use `srcset` and the w.org CDN for images. Also, flip the "Selective Refresh" and "Smart Image Resizing" section and remove script enqueues which are no longer used. Props joemcgill, melchoyce, ocean90. Fixes #36173. git-svn-id: https://develop.svn.wordpress.org/trunk@37175 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/about.php | 42 ++++++++++++++---------------------------- 1 file changed, 14 insertions(+), 28 deletions(-) diff --git a/src/wp-admin/about.php b/src/wp-admin/about.php index d23af10f0b..54ed8b7d58 100644 --- a/src/wp-admin/about.php +++ b/src/wp-admin/about.php @@ -9,18 +9,6 @@ /** 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' ); } @@ -32,8 +20,6 @@ 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 ); @@ -61,12 +47,12 @@ include( ABSPATH . 'wp-admin/admin-header.php' );

- +

- +

<code>.' ); ?>

@@ -77,7 +63,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );

- +

- +

-
-

-

It’s really cool.' ), - 'https://make.wordpress.org/core/2016/03/12/performance-improvements-for-images-in-wordpress-4-5/' - ); - ?>

-

+
+

+

It’s really cool.' ), + 'https://make.wordpress.org/core/2016/03/12/performance-improvements-for-images-in-wordpress-4-5/' + ); + ?>

+