Browse Source

Update to WordPress 5.4. For more information, see https://wordpress.org/news/2020/03/adderley/

pull/235/head 5.4
Pantheon Automation 11 months ago
parent
commit
685c2d3d2f
883 changed files with 146137 additions and 120042 deletions
  1. +1
    -1
      index.php
  2. +2
    -3
      license.txt
  3. +0
    -1
      readme.html
  4. +9
    -9
      wp-activate.php
  5. +110
    -151
      wp-admin/about.php
  6. +6
    -6
      wp-admin/admin-ajax.php
  7. +2
    -2
      wp-admin/admin-footer.php
  8. +1
    -1
      wp-admin/admin-functions.php
  9. +4
    -4
      wp-admin/admin-header.php
  10. +3
    -3
      wp-admin/admin-post.php
  11. +26
    -26
      wp-admin/admin.php
  12. +6
    -6
      wp-admin/async-upload.php
  13. +10
    -10
      wp-admin/comment.php
  14. +38
    -35
      wp-admin/credits.php
  15. +96
    -108
      wp-admin/css/about-rtl.css
  16. +1
    -1
      wp-admin/css/about-rtl.min.css
  17. +95
    -108
      wp-admin/css/about.css
  18. +1
    -1
      wp-admin/css/about.min.css
  19. +1
    -0
      wp-admin/css/admin-menu-rtl.css
  20. +1
    -0
      wp-admin/css/code-editor-rtl.css
  21. +6
    -7
      wp-admin/css/color-picker-rtl.css
  22. +1
    -1
      wp-admin/css/color-picker-rtl.min.css
  23. +5
    -7
      wp-admin/css/color-picker.css
  24. +1
    -1
      wp-admin/css/color-picker.min.css
  25. +4
    -2
      wp-admin/css/common-rtl.css
  26. +2
    -2
      wp-admin/css/common-rtl.min.css
  27. +3
    -2
      wp-admin/css/common.css
  28. +2
    -2
      wp-admin/css/common.min.css
  29. +4
    -17
      wp-admin/css/customize-controls-rtl.css
  30. +1
    -1
      wp-admin/css/customize-controls-rtl.min.css
  31. +3
    -17
      wp-admin/css/customize-controls.css
  32. +1
    -1
      wp-admin/css/customize-controls.min.css
  33. +1
    -0
      wp-admin/css/customize-nav-menus-rtl.css
  34. +33
    -32
      wp-admin/css/customize-widgets-rtl.css
  35. +32
    -32
      wp-admin/css/customize-widgets.css
  36. +2
    -1
      wp-admin/css/dashboard-rtl.css
  37. +1
    -1
      wp-admin/css/dashboard-rtl.min.css
  38. +1
    -1
      wp-admin/css/dashboard.css
  39. +1
    -1
      wp-admin/css/dashboard.min.css
  40. +1
    -0
      wp-admin/css/deprecated-media-rtl.css
  41. +86
    -10
      wp-admin/css/edit-rtl.css
  42. +1
    -1
      wp-admin/css/edit-rtl.min.css
  43. +85
    -10
      wp-admin/css/edit.css
  44. +1
    -1
      wp-admin/css/edit.min.css
  45. +1
    -0
      wp-admin/css/farbtastic-rtl.css
  46. +21
    -3
      wp-admin/css/forms-rtl.css
  47. +1
    -1
      wp-admin/css/forms-rtl.min.css
  48. +20
    -3
      wp-admin/css/forms.css
  49. +1
    -1
      wp-admin/css/forms.min.css
  50. +1
    -0
      wp-admin/css/ie-rtl.css
  51. +1
    -3
      wp-admin/css/install-rtl.css
  52. +1
    -1
      wp-admin/css/install-rtl.min.css
  53. +0
    -3
      wp-admin/css/install.css
  54. +1
    -1
      wp-admin/css/install.min.css
  55. +1
    -0
      wp-admin/css/l10n-rtl.css
  56. +2
    -17
      wp-admin/css/list-tables-rtl.css
  57. +1
    -1
      wp-admin/css/list-tables-rtl.min.css
  58. +1
    -17
      wp-admin/css/list-tables.css
  59. +1
    -1
      wp-admin/css/list-tables.min.css
  60. +19
    -0
      wp-admin/css/login-rtl.css
  61. +1
    -1
      wp-admin/css/login-rtl.min.css
  62. +18
    -0
      wp-admin/css/login.css
  63. +1
    -1
      wp-admin/css/login.min.css
  64. +9
    -1
      wp-admin/css/media-rtl.css
  65. +1
    -1
      wp-admin/css/media-rtl.min.css
  66. +8
    -1
      wp-admin/css/media.css
  67. +1
    -1
      wp-admin/css/media.min.css
  68. +1
    -0
      wp-admin/css/nav-menus-rtl.css
  69. +1
    -0
      wp-admin/css/revisions-rtl.css
  70. +6
    -4
      wp-admin/css/site-health-rtl.css
  71. +1
    -1
      wp-admin/css/site-health-rtl.min.css
  72. +5
    -4
      wp-admin/css/site-health.css
  73. +1
    -1
      wp-admin/css/site-health.min.css
  74. +1
    -0
      wp-admin/css/site-icon-rtl.css
  75. +11
    -3
      wp-admin/css/themes-rtl.css
  76. +1
    -1
      wp-admin/css/themes-rtl.min.css
  77. +10
    -3
      wp-admin/css/themes.css
  78. +1
    -1
      wp-admin/css/themes.min.css
  79. +16
    -0
      wp-admin/css/widgets-rtl.css
  80. +1
    -1
      wp-admin/css/widgets-rtl.min.css
  81. +15
    -0
      wp-admin/css/widgets.css
  82. +1
    -1
      wp-admin/css/widgets.min.css
  83. +1
    -0
      wp-admin/css/wp-admin-rtl.css
  84. +1
    -1
      wp-admin/custom-background.php
  85. +1
    -1
      wp-admin/custom-header.php
  86. +1
    -1
      wp-admin/customize.php
  87. +10
    -23
      wp-admin/edit-comments.php
  88. +11
    -11
      wp-admin/edit-form-advanced.php
  89. +31
    -13
      wp-admin/edit-form-blocks.php
  90. +26
    -8
      wp-admin/edit-form-comment.php
  91. +3
    -3
      wp-admin/edit-link-form.php
  92. +21
    -21
      wp-admin/edit-tag-form.php
  93. +44
    -41
      wp-admin/edit-tags.php
  94. +25
    -9
      wp-admin/edit.php
  95. +3
    -3
      wp-admin/erase-personal-data.php
  96. +3
    -3
      wp-admin/export-personal-data.php
  97. +5
    -5
      wp-admin/export.php
  98. +10
    -16
      wp-admin/freedoms.php
  99. +7
    -7
      wp-admin/import.php
  100. +1
    -1
      wp-admin/includes/admin-filters.php

+ 1
- 1
index.php View File

@ -14,4 +14,4 @@
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
require __DIR__ . '/wp-blog-header.php';

+ 2
- 3
license.txt View File

@ -1,6 +1,6 @@
WordPress - Web publishing software
Copyright 2011-2019 by the contributors
Copyright 2011-2020 by the contributors
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -19,8 +19,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
This program incorporates work covered by the following copyright and
permission notices:
b2 is (c) 2001, 2002 Michel Valdrighi - m@tidakada.com -
http://tidakada.com
b2 is (c) 2001, 2002 Michel Valdrighi - https://cafelog.com
Wherever third party code has been used, credit has been given in the code's
comments.

+ 0
- 1
readme.html View File

@ -33,7 +33,6 @@
<h2>Updating</h2>
<h3>Using the Automatic Updater</h3>
<p>If you are updating from version 2.7 or higher, you can use the automatic updater:</p>
<ol>
<li>Open <span class="file"><a href="wp-admin/update-core.php">wp-admin/update-core.php</a></span> in your browser and follow the instructions.</li>
<li>You wanted more, perhaps? That&#8217;s it!</li>

+ 9
- 9
wp-activate.php View File

@ -9,9 +9,9 @@
define( 'WP_INSTALLING', true );
/** Sets up the WordPress Environment. */
require( dirname( __FILE__ ) . '/wp-load.php' );
require __DIR__ . '/wp-load.php';
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
require __DIR__ . '/wp-blog-header.php';
if ( ! is_multisite() ) {
wp_redirect( wp_registration_url() );
@ -37,7 +37,7 @@ if ( isset( $_GET['key'] ) && isset( $_POST['key'] ) && $_GET['key'] !== $_POST[
if ( $key ) {
$redirect_url = remove_query_arg( 'key' );
if ( $redirect_url !== remove_query_arg( false ) ) {
if ( remove_query_arg( false ) !== $redirect_url ) {
setcookie( $activate_cookie, $key, 0, $activate_path, COOKIE_DOMAIN, is_ssl(), true );
wp_safe_redirect( $redirect_url );
exit;
@ -46,13 +46,13 @@ if ( $key ) {
}
}
if ( $result === null && isset( $_COOKIE[ $activate_cookie ] ) ) {
if ( null === $result && isset( $_COOKIE[ $activate_cookie ] ) ) {
$key = $_COOKIE[ $activate_cookie ];
$result = wpmu_activate_signup( $key );
setcookie( $activate_cookie, ' ', time() - YEAR_IN_SECONDS, $activate_path, COOKIE_DOMAIN, is_ssl(), true );
}
if ( $result === null || ( is_wp_error( $result ) && 'invalid_key' === $result->get_error_code() ) ) {
if ( null === $result || ( is_wp_error( $result ) && 'invalid_key' === $result->get_error_code() ) ) {
status_header( 404 );
} elseif ( is_wp_error( $result ) ) {
$error_code = $result->get_error_code();
@ -68,7 +68,7 @@ if ( is_object( $wp_object_cache ) ) {
$wp_object_cache->cache_enabled = false;
}
// Fix for page title
// Fix for page title.
$wp_query->is_404 = false;
/**
@ -142,7 +142,7 @@ get_header( 'wp-activate' );
<h2><?php _e( 'Your account is now active!' ); ?></h2>
<?php
echo '<p class="lead-in">';
if ( $signup->domain . $signup->path == '' ) {
if ( '' === $signup->domain . $signup->path ) {
printf(
/* translators: 1: Login URL, 2: Username, 3: User email address, 4: Lost password URL. */
__( 'Your account has been activated. You may now <a href="%1$s">log in</a> to the site using your chosen username of &#8220;%2$s&#8221;. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%4$s">reset your password</a>.' ),
@ -162,7 +162,7 @@ get_header( 'wp-activate' );
);
}
echo '</p>';
} elseif ( $result === null || is_wp_error( $result ) ) {
} elseif ( null === $result || is_wp_error( $result ) ) {
?>
<h2><?php _e( 'An error occurred during the activation' ); ?></h2>
<?php if ( is_wp_error( $result ) ) : ?>
@ -181,7 +181,7 @@ get_header( 'wp-activate' );
</div>
<?php
if ( $url && $url != network_home_url( '', 'http' ) ) :
if ( $url && network_home_url( '', 'http' ) !== $url ) :
switch_to_blog( (int) $result['blog_id'] );
$login_url = wp_login_url();
restore_current_blog();

+ 110
- 151
wp-admin/about.php View File

@ -7,36 +7,28 @@
*/
/** WordPress Administration Bootstrap */
require_once( dirname( __FILE__ ) . '/admin.php' );
require_once __DIR__ . '/admin.php';
/* translators: Page title of the About WordPress page in the admin. */
$title = _x( 'About', 'page title' );
list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
include( ABSPATH . 'wp-admin/admin-header.php' );
require_once ABSPATH . 'wp-admin/admin-header.php';
?>
<div class="wrap about__container">
<div class="about__header">
<div class="about__header-title">
<h1>
<span><?php echo $display_version; ?></span>
<p>
<?php _e( 'WordPress' ); ?>
</h1>
<span><?php echo $display_version; ?></span>
</p>
</div>
<div class="about__header-badge"></div>
<div class="about__header-text">
<p>
<?php
printf(
/* translators: %s: The current WordPress version number. */
__( 'Introducing our most refined user experience with the improved block editor in WordPress %s!' ),
$display_version
);
?>
<?php _e( 'Building more with blocks, faster and easier.' ); ?>
</p>
</div>
@ -48,199 +40,166 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
</nav>
</div>
<div class="about__section changelog">
<div class="about__section is-feature has-accent-background-color">
<h1><?php _e( 'Say hello to more and better.' ); ?></h1>
<p><?php _e( 'More ways to make your pages come alive. With easier ways to get it all done and looking better than ever&mdash;and boosts in speed you can feel.' ); ?></p>
</div>
<hr />
<div class="about__section has-2-columns has-subtle-background-color">
<h2 class="is-section-header">
<?php
printf(
/* translators: %s: The current WordPress version number. */
__( 'Welcome to WordPress %s.' ),
$display_version
);
?>
</h2>
<div class="column">
<h2><?php _e( 'Maintenance and Security Releases' ); ?></h2>
<p>
<?php
printf(
/* translators: 1: WordPress version number, 2: plural number of bugs. More than one security issue. */
_n(
'<strong>Version %1$s</strong> addressed %2$s bug.',
'<strong>Version %1$s</strong> addressed %2$s bugs.',
5
),
'5.3.2',
number_format_i18n( 5 )
);
?>
<?php
printf(
/* translators: %s: HelpHub URL */
__( 'For more information, see <a href="%s">the release notes</a>.' ),
sprintf(
/* translators: %s: WordPress version */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
sanitize_title( '5.3.2' )
)
);
?>
<?php _e( 'Every major release adds more to the block editor.' ); ?>
</p>
<p>
<?php
printf(
/* translators: 1: WordPress version number, 2: plural number of bugs. More than one security issue. */
_n(
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.',
46
),
'5.3.1',
number_format_i18n( 46 )
);
?>
<?php
printf(
/* translators: %s: HelpHub URL */
__( 'For more information, see <a href="%s">the release notes</a>.' ),
sprintf(
/* translators: %s: WordPress version */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
sanitize_title( '5.3.1' )
)
);
?>
<?php _e( 'More ways to make posts and pages come alive with your best images.' ); ?>
<?php _e( 'More ways to bring your visitors in, and keep them engaged, with the richness of embedded media from the web&#8217;s top services.' ); ?>
</p>
</div>
<div class="column">
<p>
<?php _e( 'More ways to make your vision real, and put blocks in the perfect place&mdash;even if a particular kind of block is new to you. More efficient processes.' ); ?>
</p>
<p>
<?php _e( 'And more speed everywhere, so as you build sections or galleries, or just type in a line of prose, you can feel how much faster your work flows.' ); ?>
</p>
</div>
</div>
<hr />
<div class="about__section is-feature">
<p>
<?php _e( '5.3 expands and refines the block editor introduced in WordPress 5.0 with a new block, more intuitive interactions, and improved accessibility. New features in the editor increase design freedoms, provide additional layout options and style variations to allow designers complete control over the look of a site. This release also introduces the Twenty Twenty theme giving the user more design flexibility and integration with the block editor. Creating beautiful web pages and advanced layouts has never been easier.' ); ?>
</p>
</div>
<hr />
<div class="about__section has-2-columns">
<div class="column is-edge-to-edge has-accent-background-color">
<div class="column is-edge-to-edge">
<div class="about__image aligncenter">
<img src="data:image/svg+xml;charset=utf8,%3Csvg width='660' height='818' viewbox='0 0 660 818' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='99' y='178' width='132' height='132' fill='%23F4EFE1'/%3E%3Crect x='231' y='310' width='99' height='99' fill='%2344141E'/%3E%3Crect x='330' y='409' width='132' height='132' fill='%23F4EFE1'/%3E%3Crect x='462' y='541' width='99' height='99' fill='%2344141E'/%3E%3C/svg%3E" alt="" />
<img src="data:image/svg+xml;charset=utf8,%3Csvg width='500' height='500' viewbox='0 0 500 500' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23F3F4F5' d='M0 0h500v500H0z'/%3E%3Cpath d='M346.7 37.645s100.5-2.8 102.6 0c2.1 2.8 0 124.999 0 124.999l-106.9 2.8 4.3-127.8z' fill='%232CA8EB'/%3E%3Cpath d='M343.5 185.844s100.5-1.9 102.6 0c2.1 1.9 1.1 125.9 4.3 127.8 3.2 1.9-100.5 1.9-104.8 2.8-4.3.9-2.1-130.6-2.1-130.6z' fill='%237CAED2'/%3E%3Cpath d='M195.6 186.744s102.7 2.8 106.9 2.8c4.2 0 7.4 120.4 4.2 122.2-3.2 1.9-106.9 2.8-106.9 2.8s2.1-126.9-4.2-127.8z' fill='%2381A4D4'/%3E%3Cpath d='M152.8 192.344s2.1 124.1 4.3 126.9c2.1 2.7-109.1 1.8-109.1 1.8v-128.7h104.8z' fill='%235DC3D8'/%3E%3Cpath d='M152 464.544H56v-119.8l101-1.7s-8.9 118-5 121.5z' fill='%230574E2'/%3E%3Cpath d='M195 35.844h101.6s-8.6 119.4 0 125c8.6 5.6-101.6 3.7-101.6 3.7v-128.7z' fill='%23216BCE'/%3E%3Cpath d='M302.3 463.844s-102.9 2.8-105.1 0c-2.2-2.8 0-125 0-125l109.5-2.8-4.4 127.8z' fill='%231C99D1'/%3E%3Cpath d='M346.2 464.544s-2.1-124.1-4.3-126.9c-2.1-2.8 109.1-1.9 109.1-1.9v128.7H346.2v.1z' fill='%231B44DD'/%3E%3Cpath d='M50.2 35.844s100.5-1.9 102.6 0c2.1 1.9 1.1 125.9 4.3 127.8 3.2 1.9-100.5 1.9-104.8 2.8-4.3.9-2.1-130.6-2.1-130.6z' fill='%231B36BC'/%3E%3C/svg%3E" alt="" />
</div>
</div>
<div class="column is-vertically-aligned-center">
<h2><?php _e( 'Block Editor Improvements' ); ?></h2>
<p>
<?php _e( 'This enhancement-focused update introduces over 150 new features and usability improvements, including improved large image support for uploading non-optimized, high-resolution pictures taken from your smartphone or other high-quality cameras. Combined with larger default image sizes, pictures always look their best.' ); ?>
</p>
<p>
<?php _e( 'Accessibility improvements include the integration of block editor styles in the admin interface. These improved styles fix many accessibility issues: color contrast on form fields and buttons, consistency between editor and admin interfaces, new snackbar notices, standardizing to the default WordPress color scheme, and the introduction of Motion to make interacting with your blocks feel swift and natural. For people who use a keyboard to navigate the dashboard, the block editor now has a Navigation mode. This lets you jump from block to block without tabbing through every part of the block controls.' ); ?>
</p>
<h2><?php _e( 'Two new blocks. And better blocks overall.' ); ?></h2>
<ul>
<li><?php _e( 'Two brand-new blocks: Social Icons and Buttons make adding interactive features fast and easy.' ); ?></li>
<li><?php _e( 'New ways with color: Gradients in the Buttons and Cover block, toolbar access to color options in Rich Text blocks, and for the first time, color options in the Group and Columns blocks.' ); ?></li>
<li><?php _e( 'Guess a whole lot less! Version 5.4 streamlines the whole process for placing and replacing multimedia in every block. Now it works the same way in almost every block!' ); ?></li>
<li><?php _e( 'And if you&#8217;ve ever thought your image in the Media+Text block should link to something else&mdash;perhaps a picture of a brochure should download that brochure as a document? Well, now it can.' ); ?></li>
</ul>
</div>
</div>
<div class="about__section has-2-columns">
<div class="column is-vertically-aligned-center">
<h2><?php _e( 'Expanded Design Flexibility' ); ?></h2>
<p>
<?php
printf(
/* translators: %s: The current WordPress version number. */
__( 'WordPress %s adds even more robust tools for creating amazing designs.' ),
$display_version
);
?>
</p>
<h2><?php _e( 'Cleaner UI, clearer navigation—and easier tabbing!' ); ?></h2>
<ul>
<li><?php _e( 'The new Group block lets you easily divide your page into colorful sections' ); ?></li>
<li><?php _e( 'The Columns block now supports fixed column widths' ); ?></li>
<li><?php _e( 'The new Predefined layouts make it a cinch to arrange content into advanced designs' ); ?></li>
<li><?php _e( 'Heading blocks now offer controls for text color' ); ?></li>
<li><?php _e( 'Additional style options allow you to set your preferred style for any block that supports this feature' ); ?></li>
<li><?php _e( 'Clearer block navigation with block breadcrumbs. And easier selection once you get there.' ); ?></li>
<li><?php _e( 'For when you need to navigate with the keyboard, better tabbing and focus. Plus, you can tab over to the sidebar of nearly any block.' ); ?></li>
<li><?php _e( 'Speed! 14% faster loading of the editor, 51% faster time-to-type!' ); ?></li>
<li><?php _e( 'Tips are gone. In their place, a Welcome Guide window you can bring up when you need it&mdash;and only when you need it&mdash;again and again.' ); ?></li>
<li><?php _e( 'Know at a glance whether you&#8217;re in a block&#8217;s Edit or Navigation mode. Or, if you have restricted vision, your screen reader will tell you which mode you&#8217;re in.' ); ?></li>
</ul>
</div>
<div class="column is-edge-to-edge has-accent-background-color">
<div class="about__image aligncenter">
<img src="data:image/svg+xml;charset=utf8,%3Csvg width='500' height='500' viewbox='0 0 500 500' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='75' y='200' width='150' height='75' fill='%2344141E'/%3E%3Crect x='175' y='75' width='50' height='100' fill='%2385273B'/%3E%3Crect x='75' y='75' width='75' height='100' fill='%23F4EFE1'/%3E%3Crect x='250' y='200' width='175' height='75' fill='%2344141E'/%3E%3Crect x='350' y='75' width='75' height='100' fill='%2385273B'/%3E%3Crect x='250' y='75' width='75' height='100' fill='%23F4EFE1'/%3E%3Crect x='75' y='375' width='150' height='50' fill='%2344141E'/%3E%3Crect x='175' y='300' width='50' height='50' fill='%2385273B'/%3E%3Crect x='75' y='300' width='75' height='50' fill='%23F4EFE1'/%3E%3Crect x='250' y='372.5' width='175' height='52.5' fill='%2344141E'/%3E%3Crect x='350' y='300' width='75' height='50' fill='%2385273B'/%3E%3Crect x='250' y='300' width='75' height='50' fill='%23F4EFE1'/%3E%3C/svg%3E%0A" alt="">
</div>
</div>
</div>
<div class="about__section has-2-columns has-subtle-background-color">
<div class="column is-vertically-aligned-center">
<h2><?php _e( 'Introducing Twenty Twenty' ); ?></h2>
<p><?php _e( 'As the block editor celebrates its first birthday, we are proud that Twenty Twenty is designed with flexibility at its core. Show off your services or products with a combination of columns, groups, and media blocks. Set your content to wide or full alignment for dynamic and engaging layouts. Or let your thoughts be the star with a centered content column!' ); ?></p>
<p>
<?php
printf(
/* translators: %s: Link to the Inter font website. */
__( 'As befits a theme called Twenty Twenty, clarity and readability is also a big focus. The theme includes the typeface <a href="%s">Inter</a>, designed by Rasmus Andersson. Inter comes in a Variable Font version, a first for default themes, which keeps load times short by containing all weights and styles of Inter in just two font files.' ),
'https://rsms.me/inter/'
);
?>
</p>
<p><?php _e( 'Of course, if you want to work with the very latest tools and features, install the <a href="https://wordpress.org/plugins/gutenberg/">Gutenberg plugin</a>. You&#8217;ll get to be the first to use new and exciting features in the block editor, before anyone else has seen them!' ); ?></p>
</div>
<div class="column is-edge-to-edge">
<div class="about__image aligncenter">
<img src="https://s.w.org/images/core/5.3/twentytwenty-mobile.png" alt="" />
<img src="data:image/svg+xml;charset=utf8,%3Csvg width='500' height='500' viewbox='0 0 500 500' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23F3F4F5' d='M0 0h500v500H0z'/%3E%3Cg clip-path='url(%23clip0)'%3E%3Cpath d='M169.6 171.55l-.3 72.3 330.7-1v-72.6l-330.4 1.3z' fill='%230740B3'/%3E%3Cpath d='M291.2 97.85l-1.3-14.8-63.4-.7v76c0 3.6 176.7 4.1 273.5 4.1v-64.5H291.2v-.1z' fill='%230285D7'/%3E%3Cpath d='M500 27.75l-215.5-5.9 5.4 61.2 210.1 2.5v-57.8z' fill='%231730E5'/%3E%3Cpath d='M500 97.85v-12.3l-210.1-2.5 1.3 14.8H500z' fill='%230285D7'/%3E%3Cpath d='M500 97.85v-12.3l-210.1-2.5 1.3 14.8H500z' fill='%231730E5' style='mix-blend-mode:multiply'/%3E%3Cpath d='M255.2 379.75l-1-49.2-229.2.3-2 69.7 477-1.3v-24.3l-244.8 4.8z' fill='%230285D7'/%3E%3Cpath d='M500 424.35v-15l-430.8 1.2-4 51.5 134.6-.5v-34.4c.1-2.8 214.4-2.9 300.2-2.8z' fill='%230878FF'/%3E%3Cpath d='M500 290.05l-246.4 4.3.6 36.2 245.8-.3v-40.2z' fill='%23072CF0'/%3E%3Cpath d='M500 374.95v-44.7l-245.8.3 1 49.2 244.8-4.8z' fill='%230285D7'/%3E%3Cpath d='M500 374.95v-44.7l-245.8.3 1 49.2 244.8-4.8z' fill='%23072CF0' style='mix-blend-mode:multiply'/%3E%3Cpath d='M199.9 461.55v17.6l300.1-2.4v-16.3l-300.1 1.1z' fill='%230285D7'/%3E%3Cpath d='M500 424.35c-85.8-.1-300.1 0-300.1 2.8v34.4l300.1-1.1v-36.1z' fill='%230878FF'/%3E%3Cpath d='M500 424.35c-85.8-.1-300.1 0-300.1 2.8v34.4l300.1-1.1v-36.1z' fill='%230285D7' style='mix-blend-mode:multiply'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0'%3E%3Cpath transform='rotate(-90 23 479.15)' fill='%23fff' d='M23 479.15h457.3v477H23z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E" alt="">
</div>
</div>
</div>
<div class="about__section has-subtle-background-color">
<div class="about__section has-2-columns">
<div class="column is-edge-to-edge">
<div class="about__image aligncenter">
<img src="https://s.w.org/images/core/5.3/twentytwenty-desktop.png" alt="" />
<img src="data:image/svg+xml;charset=utf8,%3Csvg width='500' height='500' viewbox='0 0 500 500' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23F3F4F5' d='M0 0h500v500H0z'/%3E%3Cpath d='M31.3 284.4c-2-.1 12.2-250.6 12.2-250.6s94.8 4.4 99.7 5.2c.3 21.8 4.1 250.1 4.1 250.1l-116-4.7z' fill='%231730E5'/%3E%3Cpath d='M346.8 467.4l-11.7-305.9 138.2 2.4-3 304.1-123.5-.6z' fill='%230840B3'/%3E%3Cpath d='M287.7 34.9c2.3 0 5.9 398.5 5.9 398.5s-109.6-2.2-115 .6c-5.4 2.8 10.6-400.5 10.6-400.5l98.5 1.4z' fill='%23018BDE'/%3E%3Cpath d='M372.3 138c32.585 0 59-26.415 59-59s-26.415-59-59-59-59 26.415-59 59 26.415 59 59 59z' fill='%23062EF7'/%3E%3Cpath d='M35.8 315c-12.8 0-24.9 2.9-35.8 8.1v148.7c10.8 5.2 22.9 8.1 35.8 8.1 45.6 0 82.5-36.9 82.5-82.5S81.3 315 35.8 315z' fill='%231C87C0'/%3E%3C/svg%3E" alt="" />
</div>
</div>
<div class="column is-vertically-aligned-center">
<h2><?php _e( 'Your fundamental right: privacy' ); ?></h2>
<p><?php _e( '5.4 helps with a variety of privacy issues around the world. So when users and stakeholders ask about regulatory compliance, or how your team handles user data, the answers should be a lot easier to get right.' ); ?></p>
<p><?php _e( 'Take a look:' ); ?></p>
<ul>
<li><?php _e( 'Now personal data exports include users session information and users location data from the community events widget. Plus, a table of contents!' ); ?></li>
<li><?php _e( 'See progress as you process export and erasure requests through the privacy tools.' ); ?></li>
<li><?php _e( 'Plus, little enhancements throughout give the privacy tools a little cleaner look. Your eyes will thank you!' ); ?></li>
</ul>
</div>
</div>
<hr />
<div class="about__section has-3-columns">
<h2 class="is-section-header"><?php _e( 'Improvements for Everyone' ); ?></h2>
<div class="column">
<h3><?php _e( 'Automatic Image Rotation' ); ?></h3>
<p><?php _e( 'Your images will be correctly rotated upon upload according to the embedded orientation data. This feature was first proposed nine years ago and made possible through the perserverance of many dedicated contributors.' ); ?></p>
</div>
<div class="column">
<h3><?php _e( 'Site Health Checks' ); ?></h3>
<p><?php _e( 'The improvements introduced in 5.3 make it even easier to identify issues. Expanded recommendations highlight areas that may need troubleshooting on your site from the Health Check screen.' ); ?></p>
</div>
<div class="column">
<h3><?php _e( 'Admin Email Verification' ); ?></h3>
<p><?php _e( 'You’ll now be periodically asked to confirm that your admin email address is up to date when you log in as an administrator. This reduces the chance of getting locked out of your site if you change your email address.' ); ?></p>
<div class="about__section ">
<div class="column has-subtle-background-color">
<h2 class="is-section-header"><?php _e( 'Just for developers' ); ?></h2>
</div>
</div>
<hr class="is-small" />
<div class="about__section">
<div class="column is-edge-to-edge">
<div class="about__image aligncenter">
<img src="data:image/svg+xml;charset=utf8,%3Csvg width='1000' height='498' viewbox='0 0 1000 498' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='865.463' y='36.8596' width='133.8' height='132.326' fill='%23942F44'/%3E%3Crect x='865.463' y='180.98' width='133.8' height='132.326' fill='%23942F44'/%3E%3Crect x='866.2' y='328.05' width='133.8' height='132.694' fill='%23942F44'/%3E%3Crect y='331.736' width='405.455' height='134.169' fill='%234E1521'/%3E%3Crect y='36.8596' width='405.455' height='129.008' fill='%234E1521'/%3E%3Crect y='184.298' width='387.025' height='133.8' fill='%234E1521'/%3E%3Crect x='719.13' y='34.6479' width='133.8' height='428.677' fill='%23BD3854'/%3E%3Crect x='571.323' y='18.4297' width='133.8' height='423.885' fill='%23BD3854'/%3E%3Crect x='423.516' y='35.0164' width='133.8' height='425.728' fill='%23BD3854'/%3E%3C/svg%3E" alt="" />
</div>
<div class="about__image aligncenter">
<img src="data:image/svg+xml;charset=utf8,%3Csvg width='1000' height='500' viewbox='0 0 1000 500' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M761 360.917H428v66.8h333v-66.8z' fill='%230574E2'/%3E%3Cpath d='M921 399.801H592.2v99.7H921v-99.7z' fill='%231C99D1'/%3E%3Cpath d='M288.1 378.963c46.392 0 84-37.496 84-83.749 0-46.253-37.608-83.748-84-83.748s-84 37.495-84 83.748c0 46.253 37.608 83.749 84 83.749z' fill='%230F7DEA'/%3E%3Cpath d='M553.3 191.426H272.5v85.742h280.8v-85.742z' fill='%231730E5'/%3E%3Cpath d='M785 151.545H499.4v77.169H785v-77.169z' fill='%231C99D1'/%3E%3Cpath d='M777.3 284.247c50.258 0 91-40.62 91-90.728 0-50.107-40.742-90.727-91-90.727s-91 40.62-91 90.727c0 50.108 40.742 90.728 91 90.728z' fill='%231826D3'/%3E%3Cpath d='M635 33.898H413v101.695h222V33.898zM1000 303.091H708v76.769h292v-76.769zM366 102.692H0v66.799h366v-66.799z' fill='%230574E2'/%3E%3Cpath d='M275 24.925H96v93.719h179V24.925z' fill='%231C99D1'/%3E%3Cpath d='M861 0H573v66.8h288V0z' fill='%231730E5'/%3E%3Cpath d='M436 440.678c35.346 0 64-28.568 64-63.809 0-35.24-28.654-63.808-64-63.808-35.346 0-64 28.568-64 63.808 0 35.241 28.654 63.809 64 63.809z' fill='%23236FE8'/%3E%3Cpath d='M428 449.651H171.4V500H428v-50.349z' fill='%231C99D1'/%3E%3Cpath d='M318 404.786H77v63.908h241v-63.908z' fill='%231826D3'/%3E%3Cpath d='M818 258.225H600v73.281h218v-73.281zM613 117.647H456v93.719h157v-93.719zM96.1 198.604c18.833 0 34.1-15.221 34.1-33.998 0-18.776-15.267-33.998-34.1-33.998-18.833 0-34.1 15.222-34.1 33.998 0 18.777 15.267 33.998 34.1 33.998z' fill='%231C99D1'/%3E%3C/svg%3E" alt="">
</div>
</div>
<hr />
<div class="about__section has-2-columns has-subtle-background-color">
<h2 class="is-section-header"><?php _e( 'For Developers' ); ?></h2>
<hr class="is-small" />
<div class="about__section has-2-columns">
<div class="column">
<h3><?php _e( 'Date/Time Component Fixes' ); ?></h3>
<h3><?php _e( 'Add custom fields to menu items—natively' ); ?></h3>
<p>
<?php _e( 'Two new actions let you add custom fields to menu items&mdash;without a plugin and without writing custom walkers.' ); ?>
</p>
<p>
<?php
printf(
/* translators: %s: 'wp_nav_menu_item_custom_fields' action name. */
__( 'On the Menus admin screen, %s fires just before the move buttons of a nav menu item in the menu editor.' ),
'<code>wp_nav_menu_item_custom_fields</code>'
);
?>
</p>
<p>
<?php
printf(
/* translators: %s: Link to the date/time developer notes. */
__( 'Developers can now work with <a href="%s">dates and timezones</a> in a more reliable way. Date and time functionality has received a number of new API functions for unified timezone retrieval and PHP interoperability, as well as many bug fixes.' ),
'https://make.wordpress.org/core/2019/09/23/date-time-improvements-wp-5-3/'
/* translators: %s: 'wp_nav_menu_item_custom_fields_customize_template' action name. */
__( 'In the Customizer, %s fires at the end of the menu-items form-fields template.' ),
'<code>wp_nav_menu_item_custom_fields_customize_template</code>'
);
?>
</p>
<p>
<?php _e( 'Check your code and see where these new actions can replace your custom code, and if you&#8217;re concerned about duplication, add a check for the WordPress version.' ); ?>
</p>
</div>
<div class="column">
<h3><?php _e( 'PHP 7.4 Compatibility' ); ?></h3>
<h3><?php _e( 'Blocks! Simpler styling, new APIs and embeds' ); ?></h3>
<ul>
<li><?php _e( '<strong>Radically</strong> simpler block styling. Negative margins and default padding are gone! Now you can style blocks the way you need them. And, a refactor got rid of four redundant wrapper divs.' ); ?></li>
<li><?php _e( 'If you build plugins, now you can register collections of your blocks by namespace across categories—a great way to get more brand visibility.' ); ?></li>
<li><?php _e( 'Let users do more with two new APIs: block variations and gradients.' ); ?></li>
<li><?php _e( 'In embeds, now the block editor supports TikTok—and CollegeHumor is gone.' ); ?></li>
</ul>
</div>
</div>
<hr class="is-small" />
<div class="about__section">
<div class="column">
<p>
<?php
printf(
/* translators: %s: Link to the PHP 7 developer notes. */
__( 'WordPress 5.3 aims to fully support PHP 7.4. This release contains <a href="%s">multiple changes</a> to remove deprecated functionality and ensure compatibility. WordPress continues to encourage all users to run the latest and greatest versions of PHP.' ),
'https://make.wordpress.org/core/2019/10/11/wordpress-and-php-7-4/'
/* translators: %s: WordPress 5.4 Field Guide link. */
__( 'There&#8217;s lots more for developers to love in WordPress 5.4. To discover more and learn how to make these changes shine on your sites, themes, plugins and more, check the <a href="%s">WordPress 5.4 Field Guide</a>.' ),
'https://make.wordpress.org/core/2020/03/03/wordpress-5-4-field-guide/'
);
?>
</p>
@ -260,7 +219,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
</div>
<?php
include( ABSPATH . 'wp-admin/admin-footer.php' );
require_once ABSPATH . 'wp-admin/admin-footer.php';
// These are strings we may use to describe maintenance/security releases, where we aim for no new strings.
return;

+ 6
- 6
wp-admin/admin-ajax.php View File

@ -19,7 +19,7 @@ if ( ! defined( 'WP_ADMIN' ) ) {
}
/** Load WordPress Bootstrap */
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
require_once dirname( __DIR__ ) . '/wp-load.php';
/** Allow for cross-domain requests (from the front end). */
send_origin_headers();
@ -27,16 +27,16 @@ send_origin_headers();
header( 'Content-Type: text/html; charset=' . get_option( 'blog_charset' ) );
header( 'X-Robots-Tag: noindex' );
// Require an action parameter
// Require an action parameter.
if ( empty( $_REQUEST['action'] ) ) {
wp_die( '0', 400 );
}
/** Load WordPress Administration APIs */
require_once( ABSPATH . 'wp-admin/includes/admin.php' );
require_once ABSPATH . 'wp-admin/includes/admin.php';
/** Load Ajax Handlers for WordPress Core */
require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' );
require_once ABSPATH . 'wp-admin/includes/ajax-actions.php';
send_nosniff_header();
nocache_headers();
@ -141,7 +141,7 @@ $core_actions_post = array(
'health-check-get-sizes',
);
// Deprecated
// Deprecated.
$core_actions_post_deprecated = array( 'wp-fullscreen-save-post', 'press-this-save-post', 'press-this-add-category' );
$core_actions_post = array_merge( $core_actions_post, $core_actions_post_deprecated );
@ -189,5 +189,5 @@ if ( is_user_logged_in() ) {
*/
do_action( "wp_ajax_nopriv_{$action}" );
}
// Default status
// Default status.
wp_die( '0' );

+ 2
- 2
wp-admin/admin-footer.php View File

@ -6,7 +6,7 @@
* @subpackage Administration
*/
// don't load directly
// Don't load directly.
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
@ -104,7 +104,7 @@ do_action( 'admin_print_footer_scripts' );
*/
do_action( "admin_footer-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
// get_site_option() won't exist when auto upgrading from <= 2.7
// get_site_option() won't exist when auto upgrading from <= 2.7.
if ( function_exists( 'get_site_option' ) ) {
if ( false === get_site_option( 'can_compress_scripts' ) ) {
compression_test();

+ 1
- 1
wp-admin/admin-functions.php View File

@ -12,4 +12,4 @@
_deprecated_file( basename( __FILE__ ), '2.5.0', 'wp-admin/includes/admin.php' );
/** WordPress Administration API: Includes all Administration functions. */
require_once( ABSPATH . 'wp-admin/includes/admin.php' );
require_once ABSPATH . 'wp-admin/includes/admin.php';

+ 4
- 4
wp-admin/admin-header.php View File

@ -8,7 +8,7 @@
header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) );
if ( ! defined( 'WP_ADMIN' ) ) {
require_once( dirname( __FILE__ ) . '/admin.php' );
require_once __DIR__ . '/admin.php';
}
/**
@ -233,7 +233,7 @@ if ( current_user_can( 'customize' ) ) {
?>
<div id="wpwrap">
<?php require( ABSPATH . 'wp-admin/menu-header.php' ); ?>
<?php require ABSPATH . 'wp-admin/menu-header.php'; ?>
<div id="wpcontent">
<?php
@ -288,6 +288,6 @@ if ( is_network_admin() ) {
*/
do_action( 'all_admin_notices' );
if ( $parent_file == 'options-general.php' ) {
require( ABSPATH . 'wp-admin/options-head.php' );
if ( 'options-general.php' === $parent_file ) {
require ABSPATH . 'wp-admin/options-head.php';
}

+ 3
- 3
wp-admin/admin-post.php View File

@ -14,15 +14,15 @@ if ( ! defined( 'WP_ADMIN' ) ) {
}
if ( defined( 'ABSPATH' ) ) {
require_once( ABSPATH . 'wp-load.php' );
require_once ABSPATH . 'wp-load.php';
} else {
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
require_once dirname( __DIR__ ) . '/wp-load.php';
}
/** Allow for cross-domain requests (from the front end). */
send_origin_headers();
require_once( ABSPATH . 'wp-admin/includes/admin.php' );
require_once ABSPATH . 'wp-admin/includes/admin.php';
nocache_headers();

+ 26
- 26
wp-admin/admin.php View File

@ -31,7 +31,7 @@ if ( isset( $_GET['import'] ) && ! defined( 'WP_LOAD_IMPORTERS' ) ) {
define( 'WP_LOAD_IMPORTERS', true );
}
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
require_once dirname( __DIR__ ) . '/wp-load.php';
nocache_headers();
@ -72,8 +72,8 @@ if ( get_option( 'db_upgraded' ) ) {
* If there are 50 or fewer sites, run every time. Otherwise, throttle to reduce load:
* attempt to do no more than threshold value, with some +/- allowed.
*/
if ( $c <= 50 || ( $c > 50 && mt_rand( 0, (int) ( $c / 50 ) ) == 1 ) ) {
require_once( ABSPATH . WPINC . '/http.php' );
if ( $c <= 50 || ( $c > 50 && mt_rand( 0, (int) ( $c / 50 ) ) === 1 ) ) {
require_once ABSPATH . WPINC . '/http.php';
$response = wp_remote_get(
admin_url( 'upgrade.php?step=1' ),
array(
@ -89,16 +89,16 @@ if ( get_option( 'db_upgraded' ) ) {
}
}
require_once( ABSPATH . 'wp-admin/includes/admin.php' );
require_once ABSPATH . 'wp-admin/includes/admin.php';
auth_redirect();
// Schedule trash collection
// Schedule Trash collection.
if ( ! wp_next_scheduled( 'wp_scheduled_delete' ) && ! wp_installing() ) {
wp_schedule_event( time(), 'daily', 'wp_scheduled_delete' );
}
// Schedule Transient cleanup.
// Schedule transient cleanup.
if ( ! wp_next_scheduled( 'delete_expired_transients' ) && ! wp_installing() ) {
wp_schedule_event( time(), 'daily', 'delete_expired_transients' );
}
@ -146,11 +146,11 @@ if ( isset( $_REQUEST['taxonomy'] ) && taxonomy_exists( $_REQUEST['taxonomy'] )
}
if ( WP_NETWORK_ADMIN ) {
require( ABSPATH . 'wp-admin/network/menu.php' );
require ABSPATH . 'wp-admin/network/menu.php';
} elseif ( WP_USER_ADMIN ) {
require( ABSPATH . 'wp-admin/user/menu.php' );
require ABSPATH . 'wp-admin/user/menu.php';
} else {
require( ABSPATH . 'wp-admin/menu.php' );
require ABSPATH . 'wp-admin/menu.php';
}
if ( current_user_can( 'manage_options' ) ) {
@ -181,8 +181,8 @@ if ( isset( $plugin_page ) ) {
$page_hook = get_plugin_page_hook( $plugin_page, $plugin_page );
// Back-compat for plugins using add_management_page().
if ( empty( $page_hook ) && 'edit.php' == $pagenow && '' != get_plugin_page_hook( $plugin_page, 'tools.php' ) ) {
// There could be plugin specific params on the URL, so we need the whole query string
if ( empty( $page_hook ) && 'edit.php' === $pagenow && get_plugin_page_hook( $plugin_page, 'tools.php' ) ) {
// There could be plugin specific params on the URL, so we need the whole query string.
if ( ! empty( $_SERVER['QUERY_STRING'] ) ) {
$query_string = $_SERVER['QUERY_STRING'];
} else {
@ -231,7 +231,7 @@ if ( isset( $plugin_page ) ) {
*/
do_action( "load-{$page_hook}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
if ( ! isset( $_GET['noheader'] ) ) {
require_once( ABSPATH . 'wp-admin/admin-header.php' );
require_once ABSPATH . 'wp-admin/admin-header.php';
}
/**
@ -277,17 +277,17 @@ if ( isset( $plugin_page ) ) {
do_action( "load-{$plugin_page}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
if ( ! isset( $_GET['noheader'] ) ) {
require_once( ABSPATH . 'wp-admin/admin-header.php' );
require_once ABSPATH . 'wp-admin/admin-header.php';
}
if ( file_exists( WPMU_PLUGIN_DIR . "/$plugin_page" ) ) {
include( WPMU_PLUGIN_DIR . "/$plugin_page" );
include WPMU_PLUGIN_DIR . "/$plugin_page";
} else {
include( WP_PLUGIN_DIR . "/$plugin_page" );
include WP_PLUGIN_DIR . "/$plugin_page";
}
}
include( ABSPATH . 'wp-admin/admin-footer.php' );
require_once ABSPATH . 'wp-admin/admin-footer.php';
exit();
} elseif ( isset( $_GET['import'] ) ) {
@ -322,10 +322,10 @@ if ( isset( $plugin_page ) ) {
$title = __( 'Import' );
if ( ! isset( $_GET['noheader'] ) ) {
require_once( ABSPATH . 'wp-admin/admin-header.php' );
require_once ABSPATH . 'wp-admin/admin-header.php';
}
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
require_once ABSPATH . 'wp-admin/includes/upgrade.php';
define( 'WP_IMPORTING', true );
@ -345,9 +345,9 @@ if ( isset( $plugin_page ) ) {
call_user_func( $wp_importers[ $importer ][2] );
include( ABSPATH . 'wp-admin/admin-footer.php' );
require_once ABSPATH . 'wp-admin/admin-footer.php';
// Make sure rules are flushed
// Make sure rules are flushed.
flush_rewrite_rules( false );
exit();
@ -370,16 +370,16 @@ if ( isset( $plugin_page ) ) {
* The following hooks are fired to ensure backward compatibility.
* In all other cases, 'load-' . $pagenow should be used instead.
*/
if ( $typenow == 'page' ) {
if ( $pagenow == 'post-new.php' ) {
if ( 'page' === $typenow ) {
if ( 'post-new.php' === $pagenow ) {
do_action( 'load-page-new.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
} elseif ( $pagenow == 'post.php' ) {
} elseif ( 'post.php' === $pagenow ) {
do_action( 'load-page.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
}
} elseif ( $pagenow == 'edit-tags.php' ) {
if ( $taxnow == 'category' ) {
} elseif ( 'edit-tags.php' === $pagenow ) {
if ( 'category' === $taxnow ) {
do_action( 'load-categories.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
} elseif ( $taxnow == 'link_category' ) {
} elseif ( 'link_category' === $taxnow ) {
do_action( 'load-edit-link-categories.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
}
} elseif ( 'term.php' === $pagenow ) {

+ 6
- 6
wp-admin/async-upload.php View File

@ -15,17 +15,17 @@ if ( ! defined( 'WP_ADMIN' ) ) {
}
if ( defined( 'ABSPATH' ) ) {
require_once( ABSPATH . 'wp-load.php' );
require_once ABSPATH . 'wp-load.php';
} else {
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
require_once dirname( __DIR__ ) . '/wp-load.php';
}
require_once( ABSPATH . 'wp-admin/admin.php' );
require_once ABSPATH . 'wp-admin/admin.php';
header( 'Content-Type: text/plain; charset=' . get_option( 'blog_charset' ) );
if ( isset( $_REQUEST['action'] ) && 'upload-attachment' === $_REQUEST['action'] ) {
include( ABSPATH . 'wp-admin/includes/ajax-actions.php' );
require ABSPATH . 'wp-admin/includes/ajax-actions.php';
send_nosniff_header();
nocache_headers();
@ -38,7 +38,7 @@ if ( ! current_user_can( 'upload_files' ) ) {
wp_die( __( 'Sorry, you are not allowed to upload files.' ) );
}
// just fetch the detail form for that attachment
// Just fetch the detail form for that attachment.
if ( isset( $_REQUEST['attachment_id'] ) && intval( $_REQUEST['attachment_id'] ) && $_REQUEST['fetch'] ) {
$id = intval( $_REQUEST['attachment_id'] );
$post = get_post( $id );
@ -112,7 +112,7 @@ if ( $_REQUEST['short'] ) {
// Short form response - attachment ID only.
echo $id;
} else {
// Long form response - big chunk of html.
// Long form response - big chunk of HTML.
$type = $_REQUEST['type'];
/**

+ 10
- 10
wp-admin/comment.php View File

@ -7,7 +7,7 @@
*/
/** Load WordPress Bootstrap */
require_once( dirname( __FILE__ ) . '/admin.php' );
require_once __DIR__ . '/admin.php';
$parent_file = 'edit-comments.php';
$submenu_file = 'edit-comments.php';
@ -58,7 +58,7 @@ switch ( $action ) {
);
wp_enqueue_script( 'comment' );
require_once( ABSPATH . 'wp-admin/admin-header.php' );
require_once ABSPATH . 'wp-admin/admin-header.php';
$comment_id = absint( $_GET['c'] );
@ -77,7 +77,7 @@ switch ( $action ) {
$comment = get_comment_to_edit( $comment_id );
include( ABSPATH . 'wp-admin/edit-form-comment.php' );
require ABSPATH . 'wp-admin/edit-form-comment.php';
break;
@ -101,12 +101,12 @@ switch ( $action ) {
}
// No need to re-approve/re-trash/re-spam a comment.
if ( $action == str_replace( '1', 'approve', $comment->comment_approved ) ) {
if ( str_replace( '1', 'approve', $comment->comment_approved ) == $action ) {
wp_redirect( admin_url( 'edit-comments.php?same=' . $comment_id ) );
die();
}
require_once( ABSPATH . 'wp-admin/admin-header.php' );
require_once ABSPATH . 'wp-admin/admin-header.php';
$formaction = $action . 'comment';
$nonce_action = 'approve' == $action ? 'approve-comment_' : 'delete-comment_';
@ -137,7 +137,7 @@ switch ( $action ) {
break;
}
if ( $comment->comment_approved != '0' ) { // if not unapproved
if ( '0' != $comment->comment_approved ) { // If not unapproved.
$message = '';
switch ( $comment->comment_approved ) {
case '1':
@ -207,9 +207,9 @@ switch ( $action ) {
$submitted = sprintf(
/* translators: 1: Comment date, 2: Comment time. */
__( '%1$s at %2$s' ),
/* translators: Comment date format. See https://secure.php.net/date */
/* translators: Comment date format. See https://www.php.net/date */
get_comment_date( __( 'Y/m/d' ), $comment ),
/* translators: Comment time format. See https://secure.php.net/date */
/* translators: Comment time format. See https://www.php.net/date */
get_comment_date( __( 'g:i a' ), $comment )
);
if ( 'approved' === wp_get_comment_status( $comment ) && ! empty( $comment->comment_post_ID ) ) {
@ -355,6 +355,6 @@ switch ( $action ) {
default:
wp_die( __( 'Unknown action.' ) );
} // end switch
} // End switch.
include( ABSPATH . 'wp-admin/admin-footer.php' );
require_once ABSPATH . 'wp-admin/admin-footer.php';

+ 38
- 35
wp-admin/credits.php View File

@ -7,14 +7,14 @@
*/
/** WordPress Administration Bootstrap */
require_once( dirname( __FILE__ ) . '/admin.php' );
require_once( dirname( __FILE__ ) . '/includes/credits.php' );
require_once __DIR__ . '/admin.php';
require_once __DIR__ . '/includes/credits.php';
$title = __( 'Credits' );
list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
include( ABSPATH . 'wp-admin/admin-header.php' );
require_once ABSPATH . 'wp-admin/admin-header.php';
$credits = wp_credits();
?>
@ -22,23 +22,15 @@ $credits = wp_credits();
<div class="about__header">
<div class="about__header-title">
<h1>
<span><?php echo $display_version; ?></span>
<p>
<?php _e( 'WordPress' ); ?>
</h1>
<span><?php echo $display_version; ?></span>
</p>
</div>
<div class="about__header-badge"></div>
<div class="about__header-text">
<p>
<?php
printf(
/* translators: %s: The current WordPress version number. */
__( 'Introducing our most refined user experience with the improved block editor in WordPress %s!' ),
$display_version
);
?>
<?php _e( 'Building more with blocks, faster and easier.' ); ?>
</p>
</div>
@ -50,39 +42,50 @@ $credits = wp_credits();
</nav>
</div>
<div class="about__section">
<div class="about__section is-feature">
<div class="column">
<h2><?php _e( 'WordPress is created by a worldwide team of passionate individuals.' ); ?></h2>
<h1><?php _e( 'Credits' ); ?></h1>
<?php if ( ! $credits ) : ?>
<p>
<?php
printf(
/* translators: 1: https://wordpress.org/about/, 2: https://make.wordpress.org/ */
__( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ),
__( 'https://wordpress.org/about/' ),
__( 'https://make.wordpress.org/' )
);
?>
</p>
<?php else : ?>
<p>
<?php _e( 'WordPress is created by a worldwide team of passionate individuals.' ); ?>
</p>
<p>
<?php
if ( ! $credits ) {
printf(
/* translators: 1: https://wordpress.org/about/, 2: https://make.wordpress.org/ */
__( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ),
__( 'https://wordpress.org/about/' ),
__( 'https://make.wordpress.org/' )
);
} else {
printf(
/* translators: %s: https://make.wordpress.org/ */
__( 'Want to see your name in lights on this page? <a href="%s">Get involved in WordPress</a>.' ),
__( 'https://make.wordpress.org/' )
);
}
printf(
/* translators: %s: https://make.wordpress.org/ */
__( 'Want to see your name in lights on this page? <a href="%s">Get involved in WordPress</a>.' ),
__( 'https://make.wordpress.org/' )
);
?>
</p>
<?php endif; ?>
</div>
<div class="about__image aligncenter">
<img src="data:image/svg+xml;charset=utf8,%3Csvg width='1320' height='350' viewbox='0 0 1320 350' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='72' height='220' transform='matrix(1 0 0 -1 61 220)' fill='%23321017'/%3E%3Crect width='72' height='250' transform='matrix(1 0 0 -1 166 300)' fill='%23BD3854'/%3E%3Crect width='72' height='220' transform='matrix(1 0 0 -1 272 220)' fill='%23321017'/%3E%3Crect width='71' height='220' transform='matrix(1 0 0 -1 378 220)' fill='%235F1B29'/%3E%3Crect width='71' height='220' transform='matrix(1 0 0 -1 483 220)' fill='%23321017'/%3E%3Crect width='71' height='220' transform='matrix(1 0 0 -1 587 220)' fill='%235F1B29'/%3E%3Crect width='71.28' height='250' transform='matrix(1 0 0 -1 689 300)' fill='%23BD3854'/%3E%3Crect width='72' height='220' transform='matrix(1 0 0 -1 884 220)' fill='%235F1B29'/%3E%3Crect width='72' height='220' transform='matrix(1 0 0 -1 789 220)' fill='%23321017'/%3E%3Crect width='71' height='220' transform='matrix(1 0 0 -1 985 220)' fill='%23321017'/%3E%3Crect width='72' height='220' transform='matrix(1 0 0 -1 1084 220)' fill='%235F1B29'/%3E%3Crect width='72' height='220' transform='matrix(1 0 0 -1 1179 220)' fill='%233D0F19'/%3E%3C/svg%3E%0A" alt="" />
<img src="data:image/svg+xml;charset=utf8,%3Csvg width='1000' height='300' viewbox='0 0 1000 300' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23F3F4F5' d='M0 0h1000v300H0z'/%3E%3Cpath style='mix-blend-mode:multiply' d='M39.6 140.22l931.1 3.36.8 76.5-929.5 6.6-2.4-86.46z' fill='%23216DD2'/%3E%3Cpath style='mix-blend-mode:multiply' d='M963.7 275.14s-.9-59.58-1-64.14c-.1-4.2-932.3 1.74-932.3 1.74L29 268.48v8.4' fill='%237FCDE6'/%3E%3Cpath style='mix-blend-mode:multiply' d='M958 73.32L47.8 70.26l1.2 78.66 907.3 4.26 1.7-79.86z' fill='%23072CF0'/%3E%3Cpath style='mix-blend-mode:multiply' d='M34 91.32l910.4-2.16L939.2 21 33.3 23.82l.7 67.5z' fill='%230188D9'/%3E%3C/svg%3E" alt="" />
</div>
</div>
<?php
if ( ! $credits ) {
echo '</div>';
include( ABSPATH . 'wp-admin/admin-footer.php' );
require_once ABSPATH . 'wp-admin/admin-footer.php';
exit;
}
?>
@ -129,11 +132,11 @@ if ( ! $credits ) {
</div>
<?php
include( ABSPATH . 'wp-admin/admin-footer.php' );
require_once ABSPATH . 'wp-admin/admin-footer.php';
return;
// These are strings returned by the API that we want to be translatable
// These are strings returned by the API that we want to be translatable.
__( 'Project Leaders' );
/* translators: %s: The current WordPress version number. */
__( 'Core Contributors to WordPress %s' );

+ 96
- 108
wp-admin/css/about-rtl.css View File

@ -1,3 +1,4 @@
/*! This file is auto-generated */
/*------------------------------------------------------------------------------
22.0 - About Pages
@ -20,17 +21,19 @@
.about__container {
/* Section backgrounds */
--background: #f4efe1;
--subtle-background: #d7d2c5;
--background: #f3f4f5;
--subtle-background: #bde7f0;
/* Main text color */
--text: #413e38;
--text: #32373c;
--text-light: #f3f4f5;
/* Navigation colors. */
--nav-background: #fefcf7;
--nav-color: #716d64;
--nav-background: #216bce;
--nav-border: #1730e5;
--nav-color: #f3f4f5;
/* Reds, used as accents & in header. */
--accent-1: #bd3854;
--accent-2: #5f1b29;
--accent-3: #321017;
--accent-1: #1730e5;
--accent-2: #216bce;
--accent-3: #bde7f0;
}
/*------------------------------------------------------------------------------
@ -95,17 +98,20 @@
}
.about__section {
background: #F4EFE1;
background: #f3f4f5;
background: var(--background);
clear: both;
}
.about__container .has-accent-background-color {
background-color: #BD3854;
color: #f3f4f5;
color: var(--text-light);
background-color: #1730e5;
background-color: var(--accent-1);
}
.about__container .has-subtle-background-color {
background-color: #D7D2C5;
background-color: #bde7f0;
background-color: var(--subtle-background);
}
@ -123,6 +129,10 @@
padding: 0;
}
.about__section .column p:first-of-type {
margin-top: 0;
}
.about__section .column p:last-of-type {
margin-bottom: 0;
}
@ -132,6 +142,11 @@
padding: 32px 32px 0;
}
/* Section header is alone in a container. */
.about__section .is-section-header:first-child:last-child {
padding: 0;
}
.about__section.is-feature {
padding: 32px;
}
@ -140,6 +155,10 @@
margin: 0;
}
.about__section.is-feature p + p {
margin-top: 1rem;
}
.about__section.has-2-columns,
.about__section.has-3-columns,
.about__section.has-4-columns {
@ -286,13 +305,17 @@
}
.about__container h1 {
font-size: 5em;
line-height: 1;
margin: 0 0 1em;
padding: 0;
font-weight: 600;
color: inherit;
}
.about__container h1,
.about__container h2 {
margin-top: 0;
font-size: 1.4em;
line-height: 1.4;
}
.about__container h3 {
@ -306,7 +329,8 @@
}
.about__section a {
color: #5f1b29;
color: #1730e5;
color: var(--accent-1);
text-decoration: underline;
}
@ -342,6 +366,7 @@
align-items: center;
justify-content: center;
height: 100%;
overflow: hidden;
}
.about__container .about__image img {
@ -356,6 +381,10 @@
border: none;
}
.about__container hr.is-small {
height: 8px;
}
.about__container div.updated,
.about__container div.error,
.about__container .notice {
@ -369,19 +398,10 @@
.about__section.is-feature {
font-size: 1.6em;
font-weight: 600;
}
@media screen and (max-width: 782px) {
.about__container h1 {
font-size: 4em;
}
text-align: center;
}
@media screen and (max-width: 480px) {
.about__container h1 {
font-size: 3.2em;
}
.about__section.is-feature {
font-size: 1.4em;
font-weight: 500;
@ -391,16 +411,17 @@
/* 1.3 - Header */
.about__header {
display: -ms-grid;
display: grid;
-ms-grid-columns: 1fr 1fr;
grid-template-columns: 1fr 1fr;
-ms-grid-rows: 1fr 1fr;
grid-template-rows: 1fr 1fr;
min-height: 28em;
max-height: 36em;
height: 90vh;
margin-bottom: 32px;
background-color: #f3f4f5;
background-color: var(--background);
background-repeat: no-repeat;
background-position: top left;
background-size: contain;
background-image: url('https://s.w.org/images/core/5.4/header-diagonal.svg');
}
.rtl .about__header {
background-image: url('https://s.w.org/images/core/5.4/header-diagonal-rtl.svg');
}
.about__header > div {
@ -412,56 +433,30 @@
}
.about__header-title {
-ms-grid-column: 1;
grid-column: 1;
-ms-grid-row: 1;
-ms-grid-row-span: 2;
grid-row: 1/span 2;
padding: 32px;
background-color: #BD3854;
background-color: var(--accent-1);
color: white;
padding: 32px;
min-height: 24em;
max-height: 32em;
height: 80vh;
padding: 0 32px;
}
.about__header-title h1 {
.about__header-title p {
margin: 0;
padding: 0;
color: inherit;
}
.about__header-title h1 span {
display: block;
font-weight: 600;
font-size: 1.2em;
font-size: 4em;
line-height: 1;
font-weight: 500;
color: #1730e5;
color: var(--accent-1);
}
.about__header-badge {
-ms-grid-column: 2;
grid-column: 2;
-ms-grid-row: 1;
grid-row: 1;
background-color: #5f1b29;
background-color: var(--accent-2);
margin: 0;
padding: 32px;
justify-content: flex-end;
}
.about__header-badge img {
align-self: flex-start;
max-width: 100%;
.about__header-title p span {
display: inline-block;
color: #216bce;
color: var(--accent-2);
}
.about__header-text {
-ms-grid-column: 2;
grid-column: 2;
-ms-grid-row: 2;
grid-row: 2;
padding: 32px;
background-color: #321017;
background-color: var(--accent-3);
color: white;
padding: 16px 32px 32px;
font-size: 1.5em;
line-height: 1.4;
}
@ -471,17 +466,13 @@
}
.about__header-navigation {
-ms-grid-column: 1;
-ms-grid-column-span: 2;
grid-column: 1/span 2;
-ms-grid-row: 3;
grid-row: 3;
padding-top: 0;
background: #FEFCF7;
background: #216bce;
background: var(--nav-background);
color: #716d64;
color: #f3f4f5;
color: var(--nav-color);
border-bottom: 3px solid currentColor;
border-bottom: 3px solid #1730e5;
border-bottom: 3px solid var(--nav-border);
}
.about__header-navigation .nav-tab {
@ -498,40 +489,39 @@
.about__header-navigation .nav-tab:hover,
.about__header-navigation .nav-tab:active {
background-color: #F4EFE1;
background-color: var(--background);
background-color: #1730e5;
background-color: var(--accent-1);
}
.about__header-navigation .nav-tab-active {
margin-bottom: -3px;
border-width: 0 0 6px;
color: #BD3854;
color: var(--accent-1);
border-color: currentColor;
border-color: #bde7f0;
border-color: var(--accent-3);
}
.about__header-navigation .nav-tab-active:hover,
.about__header-navigation .nav-tab-active:active {
background-color: transparent;
border-color: currentColor;
background-color: #1730e5;
background-color: var(--accent-1);
border-color: #bde7f0;
border-color: var(--accent-3);
}
@media screen and (max-width: 782px) {
.about__container .about__header-text {
font-size: 1.4em;
}
}
@media screen and (max-width: 600px) {
.about__header {
display: block;
min-height: unset;
max-height: unset;
.about__header-title {
min-height: 0;
max-height: none;
height: auto;
}
.about__header-badge {
justify-content: flex-start;
/*
* 60% is a "magic" number to create a top offset approx-equal to the height of the background image,
* which scales to match the container width.
*/
padding-top: 60%;
}
.about__header-navigation .nav-tab {
@ -542,20 +532,22 @@
}
@media screen and (max-width: 480px) {
.about__header-title p {
font-size: 3.2em;
}
.about__header-navigation .nav-tab {
float: none;
display: block;
margin-bottom: 0;
padding: 16px 16px;
border-right-width: 3px;
border-right-width: 6px;
border-bottom: none;
}
.about__header-navigation .nav-tab-active {
border-bottom: none;
border-right-width: 3px;
background: #F4EFE1;
background: var(--background);
border-right-width: 6px;
}
}
@ -603,7 +595,7 @@
font-size: 1.4em;
font-weight: 600;
text-decoration: none;
color: #413E38;
color: #32373c;
color: var(--text);
}
@ -1089,10 +1081,6 @@
margin: 0.6em 0;
}
.freedoms-php .has-4-columns {
margin-bottom: 40px;
}
.freedoms-php .column .freedoms-image {
background-image: url('https://s.w.org/wp-content/themes/pub/wporg-main/images/freedoms-2x.png');
background-size: 100%;

+ 1
- 1
wp-admin/css/about-rtl.min.css
File diff suppressed because it is too large
View File


+ 95
- 108
wp-admin/css/about.css View File

@ -20,17 +20,19 @@
.about__container {
/* Section backgrounds */
--background: #f4efe1;
--subtle-background: #d7d2c5;
--background: #f3f4f5;
--subtle-background: #bde7f0;
/* Main text color */
--text: #413e38;
--text: #32373c;
--text-light: #f3f4f5;
/* Navigation colors. */
--nav-background: #fefcf7;
--nav-color: #716d64;
--nav-background: #216bce;
--nav-border: #1730e5;
--nav-color: #f3f4f5;