Compare commits

...

95 Commits
5.9 ... 5.7.4

Author SHA1 Message Date
desrosj
3843ae0874 Tag 5.7.4
Built from https://develop.svn.wordpress.org/tags/5.7.4@52121


git-svn-id: http://core.svn.wordpress.org/tags/5.7.4@51713 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-11-10 17:16:07 +00:00
desrosj
3ad4c815cd WordPress 5.7.4.
Built from https://develop.svn.wordpress.org/branches/5.7@52114


git-svn-id: http://core.svn.wordpress.org/branches/5.7@51706 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-11-10 17:06:59 +00:00
desrosj
242bd3b338 HTTP: Remove the DST Root CA X3 certificate expired on September 30, 2021.
> The currently recommended certificate chain as presented to Let’s Encrypt ACME clients when new certificates are issued contains an intermediate certificate (ISRG Root X1) that is signed by an old DST Root CA X3 certificate that expires on 2021-09-30. In some cases the OpenSSL 1.0.2 version will regard the certificates issued by the Let’s Encrypt CA as having an expired trust chain.
> 
> Most up-to-date CA cert trusted bundles, as provided by operating systems, contain this soon-to-be-expired certificate. The current CA cert bundles also contain an ISRG Root X1 self-signed certificate. This means that clients verifying certificate chains can find the alternative non-expired path to the ISRG Root X1 self-signed certificate in their trust store.
> 
> Unfortunately this does not apply to OpenSSL 1.0.2 which always prefers the untrusted chain and if that chain contains a path that leads to an expired trusted root certificate (DST Root CA X3), it will be selected for the certificate verification and the expiration will be reported.

References:
* [https://www.openssl.org/blog/blog/2021/09/13/LetsEncryptRootCertExpire/ Old Let’s Encrypt Root Certificate Expiration and OpenSSL 1.0.2]
* [https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/ DST Root CA X3 Expiration (September 2021)]

Follow-up to [25224], [25426], [25569], [27307], [30491], [30765], [34283], [35919], [36570], [46094].

Props bradleyt, fierevere, SergeyBiryukov, peterwilsoncc.
Merges [51883] to the 5.7 branch.
Fixes #54207. See #50828.
Built from https://develop.svn.wordpress.org/branches/5.7@52097


git-svn-id: http://core.svn.wordpress.org/branches/5.7@51689 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-11-10 02:10:01 +00:00
desrosj
b06d0d90b4 WordPress 5.7.3.
Built from https://develop.svn.wordpress.org/branches/5.7@51759


git-svn-id: http://core.svn.wordpress.org/branches/5.7@51366 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-08 21:28:58 +00:00
desrosj
709e3315f3 Grouped merges for 5.7.3.
- Update `lodash` to the latest version `4.17.21`.
- Disable some attributes for rich text.

Merges [51426,50941] to the 5.7 branch.
Props ellatrix, peterwilsoncc, get_dave, mcsf, talldanwp, youknowriad, desrosj, nerrad.
Built from https://develop.svn.wordpress.org/branches/5.7@51750


git-svn-id: http://core.svn.wordpress.org/branches/5.7@51358 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-08 21:06:23 +00:00
Sergey Biryukov
e3554a9aa7 General: Only use _jsonp_wp_die_handler() for JSONP REST API requests.
Props mdawaffe, peterwilsoncc.
Merges [51740] to the 5.7 branch.
Built from https://develop.svn.wordpress.org/branches/5.7@51742


git-svn-id: http://core.svn.wordpress.org/branches/5.7@51350 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-08 17:24:01 +00:00
Sergey Biryukov
9ca0faa204 Upgrade/Install: Update sodium_compat to v1.16.1.
The latest version of sodium_compat includes polyfills for new features slated to land in PHP 8.1:
https://paragonie.com/blog/2021/05/ristretto255-for-php-community

It also fixes a race condition with the autoloader that caused an "undefined constant" error on some systems:
https://github.com/paragonie/sodium_compat/issues/122

A full list of changes in this update can be found on GitHub:
https://github.com/paragonie/sodium_compat/compare/v1.14.0...v1.16.1

Follow-up to [49741].

Props paragoninitiativeenterprises, oxyrealm.
Merges [51002] to the 5.7 branch.
Fixes #53274.
Built from https://develop.svn.wordpress.org/branches/5.7@51171


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50780 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-16 17:29:58 +00:00
Sergey Biryukov
82b478b0be External Libraries: Upgrade PHPMailer to version 6.5.0.
Release notes: https://github.com/PHPMailer/PHPMailer/releases/tag/v6.5.0

For a full list of changes in this update, see the PHPMailer GitHub:
https://github.com/PHPMailer/PHPMailer/compare/v6.4.1...v6.5.0

Props ayeshrajans, Synchro.
Merges [51169] to the 5.7 branch.
Fixes #53430.
Built from https://develop.svn.wordpress.org/branches/5.7@51170


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50779 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-16 17:27:02 +00:00
Peter Wilson
eae23abd88 Build tools: Use hashed module IDs for minified files.
Further improves webpack configuration for editor files to use hashed module IDs in the compressed (`*.min.js`) production files.

Follow up to [50940].

Props @gziolo.
Merges [51035] to the 5.7 branch.
Fixes #53192.


Built from https://develop.svn.wordpress.org/branches/5.7@51036


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50645 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-27 00:29:10 +00:00
Peter Wilson
5a721be794 Build: Use hashed/deterministic moduleIDs in webpack config
Props peterwilsoncc, desrosj, gziolo.
Merges [50940] in to the 5.7 branch.
Fixes #53192.


Built from https://develop.svn.wordpress.org/branches/5.7@50990


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50599 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-25 05:22:08 +00:00
Peter Wilson
43ac82a96f XML-RPC: Set HTTP status code in accordance with the spec.
When the XML-RPC endpoint is enabled, always return a HTTP `200 OK` status code in accordance with the XML-RPC specification. Continue to return an HTTP `405 Method Not Allowed` status code when the endpoint is disabled.

Props ariskataoka, johnbillion.
Merges [50954] in to the 5.7 branch.
Fixes #52958.


Built from https://develop.svn.wordpress.org/branches/5.7@50989


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50598 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-25 05:21:00 +00:00
Peter Wilson
1cdead833e Menus: Do not auto-set locations for new menus.
Do not auto-set new menus to all vacant locations on the Appearance > Menus screen in the dashboard.

Follow up to [48051].

Props Chouby, audrasjb, davidbaumwald, mukesh27.
Merges [50938] in to the 5.7 branch.
Fixes #52949.

Built from https://develop.svn.wordpress.org/branches/5.7@50988


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50597 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-25 05:19:05 +00:00
Peter Wilson
a6d9325574 Help/About: Reduce space below minor release log.
Reduce the size of the space below the maintenance and security release log of the WP 5.7 about page.

Props dhrumil12, audrasjb, sabernhardt, ryelle.
Fixes #53067.


Built from https://develop.svn.wordpress.org/branches/5.7@50937


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50546 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-20 04:08:01 +00:00
Peter Wilson
6688af8108 WordPress 5.7.2 post-release version bump.
Built from https://develop.svn.wordpress.org/branches/5.7@50911


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50520 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-13 01:13:02 +00:00
Peter Wilson
b6b214a557 WordPress 5.7.2.
Built from https://develop.svn.wordpress.org/branches/5.7@50869


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50478 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-12 23:11:59 +00:00
Peter Wilson
bf12394dbd About page for WordPress 5.7.2.
Built from https://develop.svn.wordpress.org/branches/5.7@50868


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50477 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-12 23:08:00 +00:00
Sergey Biryukov
962a6c6888 External Libraries: Upgrade PHPMailer to version 6.4.1.
Release notes: https://github.com/PHPMailer/PHPMailer/releases/tag/v6.4.1

For a full list of changes in this update, see the PHPMailer GitHub:
https://github.com/PHPMailer/PHPMailer/compare/v6.4.0...v6.4.1

Props ayeshrajans.
Merges [50799] to the 5.7 branch.
Fixes #53114.
Built from https://develop.svn.wordpress.org/branches/5.7@50800


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50409 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-29 20:33:13 +00:00
Peter Wilson
5ba41bd4f0 Post 5.7.1 version bump.
Built from https://develop.svn.wordpress.org/branches/5.7@50758


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50367 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-15 03:33:06 +00:00
Peter Wilson
d19b84afba Version bump for 5.7.1.
Built from https://develop.svn.wordpress.org/branches/5.7@50736


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50345 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-15 01:32:02 +00:00
Peter Wilson
42730aa8a9 About page update for 5.7.1.
Props audrasjb.

Built from https://develop.svn.wordpress.org/branches/5.7@50735


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50344 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-15 01:20:05 +00:00
Peter Wilson
1e36365912 Editor: Finalise update of @wordpress npm packages for 5.7.1.
Commit built files stored in repo following package updates.

Props gziolo, noisysocks, isabel_brison, peterwilsoncc.
Follow up to [50719].
Fixes #52912.

Built from https://develop.svn.wordpress.org/branches/5.7@50720


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50329 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-14 23:52:02 +00:00
Peter Wilson
ffc9a87780 Editor: Update @wordpress npm packages for 5.7.1.
Update @wordpress npm packages to the latest published versions for the 5.7 branch. This includes block editor bug fixes for WordPress 5.7.1.

Props gziolo, noisysocks, isabel_brison, peterwilsoncc.
Fixes #52912.

Built from https://develop.svn.wordpress.org/branches/5.7@50719


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50328 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-14 23:40:18 +00:00
desrosj
18f802b860 REST API: Allow authors to read their own password protected posts.
Allow authenticated users to read the contents of password protected posts if they have the `edit_post` meta capability for the post.

Merges [50717] to the 5.7 branch.
Props xknown, zieladam, peterwilsoncc, swissspidy, timothyblynjacobs.
Built from https://develop.svn.wordpress.org/branches/5.7@50718


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50327 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-14 23:27:00 +00:00
desrosj
c29db9c1e3 External libraries: Include upstream GetID3 fix for PHP 8.
Merges [50714] to the 5.7 branch.
Props jrf, xknown.
Built from https://develop.svn.wordpress.org/branches/5.7@50715


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50324 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-14 23:16:03 +00:00
Sergey Biryukov
5162106aa1 Site Health: Correct test result status for the HTTPS test.
The supported status values for Site Health tests are `good`, `recommended`, and `critical`.

Follow-up to [50660].

Props TimothyBlynJacobs.
Merges [50710] to the 5.7 branch.
Fixes #52783.
Built from https://develop.svn.wordpress.org/branches/5.7@50711


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50320 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-14 13:15:05 +00:00
Peter Wilson
bf8239a30c Bundled Themes: Bump versions for WordPress 5.7.1.
Twenty Twenty-One: Bump version to 1.3
Twenty Seventeen: Bump version to 2.7

Props desrosj, mukesh27, peterwilsoncc.
Merges [50708] to the 5.7 branch.
Fixes #52859.


Built from https://develop.svn.wordpress.org/branches/5.7@50709


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50318 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-14 00:00:05 +00:00
Peter Wilson
70c6bb2d83 5.7 branch post 5.7.1 RC1 version bump.
Built from https://develop.svn.wordpress.org/branches/5.7@50691


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50300 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-07 23:33:02 +00:00
Peter Wilson
6689f11a42 5.7 branch is now 5.7.1 RC1.
Built from https://develop.svn.wordpress.org/branches/5.7@50690


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50299 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-07 23:08:09 +00:00
ryelle
f5e008b193 Accessibility: Administration: Update various background colors for increased contrast.
This ensures that contrast between text color and background meets the WCAG 2.0 AA recommended value. The following locations were changed:

 - Network List Tables: Use lighter background colors for site status indicator.
 - Nav Menus: Use a lighter background color for invalid menu items.
 - Pointers: Use a darker background for pointer header.
 - Themes: Use darker background on filter button hover.
 - Customizer: Use darker background for selected widget.

Follow-up to [50025], [50571].
Props kebbet, melchoyce, peterwilsoncc.
Merges [50687] to the 5.7 branch.
Fixes #52760.


Built from https://develop.svn.wordpress.org/branches/5.7@50688


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50297 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-07 17:44:09 +00:00
Peter Wilson
bc8b720e01 Media: Do not lazy load hidden images or embeds.
Improve the check for sourceless or dimensionless media when determining if the lazy loading attribute should be added to iframes and images. Never include the lazy loading attribute on embeds of WordPress posts as the iframe is initially hidden.

Including `loading="lazy"` on initially hidden iframes and images can prevent the media from loading in some browsers.

Props adamsilverstein, fabianpimminger, flixos90, johnbillion, jonkastonka, joyously, peterwilsoncc, SergeyBiryukov, SirStuey, swissspidy.
Merges [50682], [50683] to the 5.7 branch.
Fixes #52768.


Built from https://develop.svn.wordpress.org/branches/5.7@50684


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50293 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-07 01:52:02 +00:00
Peter Wilson
fcbd087303 Bundled Themes: Update the “Tested up to” value.
“Tested up to” is not displayed on the theme directory or within the WordPress dashboard, but should be updated to be accurate for anyone reading the theme’s source code.

Follow up to [50508].

Props desrosj.
Merges [50669] to the 5.7 branch.
Fixes #52982.

Built from https://develop.svn.wordpress.org/branches/5.7@50681


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50290 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-06 23:56:02 +00:00
Peter Wilson
eff1fa7e1e Twenty Twenty-One: Rebuild IE specific editor stylesheet.
This was not updated to include the changes from [50493].

Props desrosj.
Merges [50667] to the 5.7 branch.
Fixes #52981. See #52702.

Built from https://develop.svn.wordpress.org/branches/5.7@50680


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50289 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-06 23:54:03 +00:00
Peter Wilson
4a193e9847 Options, Meta APIs: Update default color scheme swatch to match CSS changes.
Update the default/fresh theme color swatch displayed on user profile pages to match CSS changes made during the 5.7 release cycle.

Props audrasjb, desrosj, ninetyninew, ryelle.
Merges [50663] to the 5.7 branch.
Fixes #52750.


Built from https://develop.svn.wordpress.org/branches/5.7@50679


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50288 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-06 23:52:03 +00:00
Peter Wilson
6587ec5372 Editor: Update @wordpress npm packages for 5.7.1 RC1.
Update @wordpress npm packages to the latest published versions for the 5.7 branch. This includes block editor bug fixes for WordPress 5.7.1.

Props gziolo, noisysocks, youknowriad.
See #52912.


Built from https://develop.svn.wordpress.org/branches/5.7@50678


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50287 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-06 23:50:28 +00:00
desrosj
0a0f6dfb77 Build/Test Tools: Prevent PHPUnit tests on push for forks/private mirrors.
The reorganization of the PHPUnit workflow in [50441] unintentionally caused the tests to be run for every `push` event, even for forks and private mirrors.

Previously, the second job required the first one to pass, and the conditional check on the first prevented both from running. Because the first job is no longer required for the second, both jobs must have the appropriate conditional check.

Merges [50670] to the 5.7 branch.
Fixes #52983.
Built from https://develop.svn.wordpress.org/branches/5.7@50671


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50283 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-06 15:26:07 +00:00
Peter Wilson
2c8182fcba Media: Conditionally pass 2nd parameter to getimagesize().
In the wrapper function `wp_getimagesize()` check if the second parameter was passed before sending it to the PHP function `getimagesize()`.

The PHP function has a different execution path depending on the number of parameters passed, this ensures the wrapper function follows the appropriate path.

Follow up to [50552].
Props azaozz, hellofromtonya, Mista-Flo, peterwilsoncc, rinatkhaziev, RogerTheriault, SergeyBiryukov, terriann, whyisjake.
Merges [50586] to the 5.7 branch.
Fixes #52826.

Built from https://develop.svn.wordpress.org/branches/5.7@50662


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50274 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-06 03:44:02 +00:00
Peter Wilson
894f140b12 Script Loader: Escape HTML5 boolean attribute names.
Add escaping of boolean attribute names in `wp_sanitize_script_attributes()` for themes supporting HTML5 script elements.

Props tmatsuur, johnbillion, joyously.
Merges [50575] to the 5.7 branch.
Fixes #52894.

Built from https://develop.svn.wordpress.org/branches/5.7@50661


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50273 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-06 03:42:01 +00:00
Peter Wilson
1d0be627a9 Site Health: Reduce false reports of HTTPS failures.
Reduce severity of failing HTTPS tests from critical to warning. Stop reporting failures if the site is being accessed over HTTPS but `wp_is_https_supported()` indicates a lack of support.

Props annalamprou, AnotherDave, ayeshrajans, bobbingwide, Clorith, dragongate, eatsleepcode, gab81, geoffrey1963, Ipstenu, k3nsai, mmuyskens, nicegamer7, peterwilsoncc, pwallner, SergeyBiryukov, TimothyBlynJacobs, Toru.
Merges [50659] to the 5.7 branch.
Fixes #52783.

Built from https://develop.svn.wordpress.org/branches/5.7@50660


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50272 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-06 03:40:06 +00:00
Sergey Biryukov
551b6260da REST API: Correct enum validation for numeric values.
When validating `enum` values as `integer` or `number`, consider a number with a zero fractional part to be equivalent to an integer of the same value.

In `rest_are_values_equal()`, when comparing two values of type `int` or `float` (in any combination), first cast both of them to `float` and then compare.

This matches some test cases from the official JSON Schema test suite.

Follow-up to [50010].

Props yakimun, stefanjoebstl, TimothyBlynJacobs, rachelbaker.
Merges [50653] to the 5.7 branch.
Fixes #52932.
Built from https://develop.svn.wordpress.org/branches/5.7@50656


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50268 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-04 19:13:03 +00:00
Sergey Biryukov
69bfd1ff63 Coding Standards: Move some translator comments to the correct place.
Follow-up to [46273], [50060], [50117].

Merges [50654] to the 5.7 branch.
See #52627.
Built from https://develop.svn.wordpress.org/branches/5.7@50655


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50267 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-04 18:34:04 +00:00
Sergey Biryukov
8bda8b2847 KSES: Add object-position to the list of safe CSS properties.
This resolves an issue with the Cover block, where the `object-position` property is removed from the content when a non-admin user saves the post, leading to block recovery loop.

Props Mamaduka, aristath.
Merges [50634] to the 5.7 branch.
Fixes #52961.
Built from https://develop.svn.wordpress.org/branches/5.7@50649


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-02 19:31:06 +00:00
Sergey Biryukov
4fa46b8d14 External Libraries: Upgrade PHPMailer from 6.3.0 to 6.4.0.
6.4.0 reverts a change that made the `mail()` and sendmail transports set the envelope sender if one isn't explicitly provided, as it was causing problems in specific PHP/server configurations.

Release post: https://github.com/PHPMailer/PHPMailer/releases/tag/v6.4.0
Changelog: https://github.com/PHPMailer/PHPMailer/compare/v6.3.0...v6.4.0

Props Synchro, tigertech, ayeshrajans, galbaras, audrasjb, SergeyBiryukov, desrosj, ocean90.
Merges [50628] to the 5.7 branch.
Fixes #52822.
Built from https://develop.svn.wordpress.org/branches/5.7@50630


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50242 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-01 13:01:06 +00:00
davidbaumwald
35592e1ffa Privacy: Print screen reader text for the "Copy suggested policy text..." action button.
This change switches out sprintf for printf on the "Copy suggested policy text from..." button screen reader text. Also, wrap the actual button text in a <span aria-hidden="true"> to prevent both the button text and the screen reader text from being spoken.

Props mukesh27, SergeyBiryukov, sabernhardt, desrosj.
Merges [50585] to the 5.7 branch.
Fixes #52891.
Built from https://develop.svn.wordpress.org/branches/5.7@50609


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50222 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-26 20:32:04 +00:00
davidbaumwald
6e556a478a Revert [50607].
Unprops davidbaumwald.
Built from https://develop.svn.wordpress.org/branches/5.7@50608


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50221 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-26 20:18:02 +00:00
davidbaumwald
0a198192c7 Built from https://develop.svn.wordpress.org/branches/5.7@50607
git-svn-id: http://core.svn.wordpress.org/branches/5.7@50220 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-26 20:09:03 +00:00
desrosj
d59cfc17b6 Build/Test Tools: Backport several build tool fixes & improvements.
This backports a handful of test fixes related to generating code coverage reporting, as well as some `devDependency` updates.

Backports [50591-50595,50597-50598] to the 5.7 branch.
See #52624, #52786, #51734.
Built from https://develop.svn.wordpress.org/branches/5.7@50601


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50214 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-26 16:09:18 +00:00
desrosj
fe2ee5b8cd Revert [50599].
Unprops desrosj.
Built from https://develop.svn.wordpress.org/branches/5.7@50600


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50213 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-26 15:56:17 +00:00
desrosj
12ba6aa8ed Built from https://develop.svn.wordpress.org/branches/5.7@50599
git-svn-id: http://core.svn.wordpress.org/branches/5.7@50212 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-26 15:52:16 +00:00
desrosj
14b4fdff54 Twenty Twelve: Change theme version back to 3.3.
Because the changes in Twenty Twelve did not impact site look or functionality, version 3.4 of Twenty Twelve was not released in coordination with WordPress 5.7.

This reverts the portion of [50508] relevant to Twenty Twelve, changing the version back to 3.3 so that version 3.4 is not skipped accidentally when there are changes that should be released.

Merges [50596] to the 5.7 branch.
See #52704.
Built from https://develop.svn.wordpress.org/branches/5.7@50597


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50210 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-26 15:30:01 +00:00
desrosj
eaf88218f3 Build/Test Tools: Run test workflows on old branches on a schedule.
On TravisCI, old branches still receiving security updates were tested on a regular basis. This ensured tests continued to pass as time passed even if updates were not made to these branches.

On GitHub Actions, there is no interface to configure this (TravisCI had a UI), but there is a `schedule` event that can trigger workflow runs on cron that can be used to accomplish the same thing.

This introduces a workflow file that runs twice a month (on the 1st and 15th) to verify the tests within older branches.

Because the `schedule` event only runs within the primary branch, the appropriate workflows in each old branch will be triggered manually through the `workflow_dispatch` trigger using the GitHub REST API. `workflow_dispatch` will need to be added to all workflows in all old branches in order for the event to dispatch successfully.

Merges [50590] to the 5.7 branch.
See #52653.
Built from https://develop.svn.wordpress.org/branches/5.7@50591


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50204 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-26 13:18:03 +00:00
Peter Wilson
37dc8f3fc0 Twenty Seventeen: Remove extra space around post editor.
The editor uses the full height of its container, so the added margins cause the visual editor to break out of the container. This removes the top & bottom margins, and makes the left & right margins consistent with the meta box area.

Follow-up to [50465].

Props joseeyoast, audrasjb, SergeyBiryukov.
Merges [50534] to the 5.7 branch.
Fixes #52816.

Built from https://develop.svn.wordpress.org/branches/5.7@50588


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50201 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-26 04:10:06 +00:00
Peter Wilson
6c5e9f3656 Robots: Remove contradictory directive check in wp_robots().
Removes the mutually exclusive directives check in `wp_robots()`, ie allow both `follow` and `nofollow` to be specified and for `archive` and `noarchive` to be specified.

This fixes a bug in which WordPress would defer to the most permissive over the least permissive. When contradictory instructions are included, WordPress will defer to the search engine's or archivist's resolution policy: generally this is to observe the least, not most permissive.

Props Cybr, flixos90, SergeyBiryukov.
Merges [50566] to the 5.7 branch.
Fixes #52713.

Built from https://develop.svn.wordpress.org/branches/5.7@50587


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50200 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-26 00:28:03 +00:00
desrosj
12ecbce0b2 Build/Test Tools: Backport several GitHub Action improvements and dependency updates.
This backports several GitHub Action improvements and `devDependency` updates to the 5.7 branch.

Backports [50432,50435-50436,50479,50485-50487,50545,50579] to the 5.7 branch.
See #52667, #52643, #52658, #52660, #52624, #52625.
Built from https://develop.svn.wordpress.org/branches/5.7@50584


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50197 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-25 20:02:19 +00:00
ryelle
8df014b082 Pointers: Make pointer border darker to match arrow tip.
Props johnjamesjacoby, melchoyce, SergeyBiryukov.
Merges [50551] to the 5.7 branch.
Fixes #52670.


Built from https://develop.svn.wordpress.org/branches/5.7@50581


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50194 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-25 15:38:02 +00:00
ryelle
6bc61cc749 Login, Registration: Prevent button misalignment on login screen.
Replace the CSS removed in [50569], which is used to align the login & register buttons.

Props mukesh27, audrasjb.
Reviewed by SergeyBiryukov.
Merges [50577] to the 5.7 branch.
Fixes #52834.


Built from https://develop.svn.wordpress.org/branches/5.7@50580


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50193 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-25 15:33:02 +00:00
Sergey Biryukov
85bde2e551 Accessibility: Administration: Use a darker gray color for various admin UI items.
This ensures that the color meets the WCAG 2.0 AA recommended contrast ratio.

Follow-up to [50025], [50525].

Props sabernhardt, ryelle.
Merges [50571] to the 5.7 branch.
Fixes #52760.
Built from https://develop.svn.wordpress.org/branches/5.7@50578


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50191 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-25 14:44:06 +00:00
Peter Wilson
7d19c6d338 Privacy: Wrap text in buttons on privacy policy guide.
On narrow screens allow the text to wrap in the copy buttons on the privacy policy guide screen to avoid horizontal overflow of the parent container.

Props audrasjb, davidbaumwald, jaymanpandya, paaljoachim, palmiak, sabernhardt, SergeyBiryukov, sumitsingh.
Merges [50568] to the 5.7 branch.
Fixes #52751.

Built from https://develop.svn.wordpress.org/branches/5.7@50574


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50187 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-25 00:07:04 +00:00
Peter Wilson
a37595b941 REST API: Prevent database error when deleting meta data.
Add a check to `WP_REST_Meta_Fields::delete_meta_value()` ensuring meta data is set before attempting to delete it from the database. If the data does not exist, the delete is considered successful as the data matches the desired state.

Props BrechtVds, goaroundagain, TimothyBlynJacobs.
Merges [50567] to the 5.7 branch.
Fixes #52787.

Built from https://develop.svn.wordpress.org/branches/5.7@50573


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50186 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-25 00:04:02 +00:00
Peter Wilson
59e1fddb58 Login, Registration: Prevent button misalignment on password reset screen.
Prevent misalignment of "generate password" and "save password" buttons on the password reset screen on narrow screens and in languages requiring longer text than English.

Props audrasjb, grapplerulrich, ryelle.
Merges [50569] to the 5.7 branch.
Fixes #52834.

Built from https://develop.svn.wordpress.org/branches/5.7@50572


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50185 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-25 00:01:05 +00:00
Peter Wilson
37d01e0346 Media: Pass the appropriate reference into wp_getimagesize.
With changes that were introduced in #49889 the second parameter for getimagesize() function is expecting a a reference.

Previously, most calls did not pass the 2nd param, and as a result, we are getting unexpected results.

This was only a problem with applications that are using a custom stream wrapper, and the image contained EXIF data.

For more see:

    https://github.com/humanmade/S3-Uploads/issues/496
    https://github.com/aws/aws-sdk-php/issues/1923 

Fixes #52826.
Merges [50552] to the 5.7 branch.
Props terriann, SergeyBiryukov, Mista-Flo, hellofromTonya, rinatkhaziev, whyisjake.

Built from https://develop.svn.wordpress.org/branches/5.7@50553


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50166 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-19 02:13:05 +00:00
desrosj
b1855cb9d0 Build/Test Tools: Pin NodeJS 14.x in the .nvmrc file for the 5.7 branch.
See #52341.
Built from https://develop.svn.wordpress.org/branches/5.7@50539


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50152 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-17 19:46:04 +00:00
ryelle
ef272f47a3 Help/About: Run image comparison script after all assets have loaded.
If the callback is called before the images are loaded, the comparison doesn't work. `wp.domReady` uses `DOMContentLoaded`, which does not guarantee that the images are loaded. This switches to use the `load` event, which waits for all resources to load.

Props vladytimy, joyously, sergeybiryukov.
Merges [50535] to the 5.7 branch.
Fixes #52758.


Built from https://develop.svn.wordpress.org/branches/5.7@50536


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50149 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-15 19:57:05 +00:00
Sergey Biryukov
c46deb4cb6 Accessibility: Administration: Use a darker color for post dates in the Activity and Quick Draft dashboard widgets.
This ensures that the color meets the WCAG 2.0 AA recommended contrast ratio.

Follow-up to [50025].

Props sabernhardt, Otshelnik-Fm, audrasjb.
Merges [50525] to the 5.7 branch.
Fixes #52760.
Built from https://develop.svn.wordpress.org/branches/5.7@50526


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50139 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-12 12:08:13 +00:00
ryelle
e78b4f2b69 Help/About: Use absolute URLs for inline images on About pages.
This ensures the images are loaded correctly from both single site and network About pages.

Props TobiasBg, audrasjb.
Merges [50523] to the 5.7 branch.
Fixes #52743.


Built from https://develop.svn.wordpress.org/branches/5.7@50524


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50137 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-11 21:50:08 +00:00
Sergey Biryukov
f3a89c4ee8 Help/About: Correct the WebM video URL on About page.
Props mihdan, audrasjb.
Merges [50518] to the 5.7 branch.
Fixes #52756.
Built from https://develop.svn.wordpress.org/branches/5.7@50519


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50132 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-10 10:30:05 +00:00
desrosj
4d8d6310ec Post WordPress 5.7 version bump.
The 5.7 branch is now 5.7.1 alpha.
Built from https://develop.svn.wordpress.org/branches/5.7@50515


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50128 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-09 21:09:05 +00:00
Sergey Biryukov
9072030480 WordPress 5.7.
Built from https://develop.svn.wordpress.org/branches/5.7@50513


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50126 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-09 20:15:12 +00:00
Sergey Biryukov
c63ebe7525 Update $_old_files for 5.7.
Follow up to [50066].

Props desrosj.
Reviewed by davidbaumwald, SergeyBiryukov.
Fixes #52334.
Built from https://develop.svn.wordpress.org/branches/5.7@50511


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50124 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-08 19:05:07 +00:00
desrosj
6137b9efe0 Build/Test Tools: Ensure the test_php_and_js_shortcode_attribute_regexes_match() test can run when testing using either the src or build directory.
Reviewed by desrosj, johnbillion.
Props alexstine, desrosj.
Merges [50501] to the 5.7 branch.
Fixes #51734.
Built from https://develop.svn.wordpress.org/branches/5.7@50509


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50122 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-08 15:16:02 +00:00
desrosj
a9d4c88ff1 Bundled Themes: Bump theme version numbers for WordPres 5.7.
This updates all new default themes to new versions, which will be released shortly after WordPress 5.7. The new versions are:

- Twenty Twenty-One: 1.2
- Twenty Twenty: 1.7
- Twenty Nineteen: 2.0
- Twenty Seventeen: 2.6
- Twenty Sixteen: 2.4
- Twenty Fifteen: 2.9
- Twenty Fourteen: 3.1
- Twenty Thirteen: 3.3
- Twenty Twelve: 3.4
- Twenty Eleven: 3.7
- Twenty Ten: 3.3

Reviewed by desrosj, williampatton.
Merges [50507] to the 5.7 branch.
Fixes #52704.
Built from https://develop.svn.wordpress.org/branches/5.7@50508


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50121 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-08 14:56:04 +00:00
Sergey Biryukov
95694600e8 Post WordPress 5.7 RC3 version bump.
Built from https://develop.svn.wordpress.org/branches/5.7@50503


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50116 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-05 20:25:02 +00:00
Sergey Biryukov
5737a63b49 WordPress 5.7 RC3.
Built from https://develop.svn.wordpress.org/branches/5.7@50502


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50115 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-05 20:11:03 +00:00
Sergey Biryukov
c696886f57 XML-RPC: Pass an empty array to the xmlrpc_call action in methods that have no arguments.
This avoids an "Undefined variable" PHP notice in the `::mt_supportedMethods()` and `::mt_supportedTextFilters()` methods.

Follow-up to [50353].

Props dd32.
Reviewed by dd32, SergeyBiryukov.
Merges [50499] to the 5.7 branch.
Fixes #52524.
Built from https://develop.svn.wordpress.org/branches/5.7@50500


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50113 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-05 11:06:03 +00:00
Sergey Biryukov
7bb43234fb Help/About: Clarify two strings.
The intro text has been updated for accuracy and to make it easier for translation. The button text has been updated for accuracy.

Props jdy68, audrasjb, marybaum, davidbaumwald.
Reviewed by ryelle, SergeyBiryukov.
Merges [50495] to the 5.7 branch.
See #52347.
Built from https://develop.svn.wordpress.org/branches/5.7@50498


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50111 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-05 10:42:02 +00:00
noisysocks
eed48e29b8 Editor: Update @wordpress npm packages
Update @wordpress npm packages to the latest published versions. This includes
block editor bug fixes for WordPress 5.7 RC 3.

See #52718.

Built from https://develop.svn.wordpress.org/branches/5.7@50497


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50110 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-05 04:13:27 +00:00
desrosj
8538424c7f Twenty Twenty-One: Make text readable when dark background is selected for the Media & Text block.
This change ensures that the text in the Media & Text block is readable when dark background colors are selected.

This is a regression that was introduced in [49987].

Props hellofromTonya, poena, paaljoachim, ryelle.
Merges [50493] to the 5.7 branch.
Fixes #52702.
Built from https://develop.svn.wordpress.org/branches/5.7@50494


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50107 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-04 17:00:03 +00:00
desrosj
ad6d163cfa Help/About: Clarify a string about lazy-loading iframes.
Props davidbaumwald, audrasjb, hellofromTonya.
See #52347.
Built from https://develop.svn.wordpress.org/branches/5.7@50492


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50105 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-04 16:46:05 +00:00
noisysocks
8d05380afc Block Editor: Fix color support for dynamic blocks
Changes wp_apply_colors_support to check for for color instead of
experimentalColor when determining block support for color.

Props nosolosw, rafhun, youknowriad.
See #52709.

Built from https://develop.svn.wordpress.org/branches/5.7@50489


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50102 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-03 23:33:06 +00:00
Dion Hulse
cd0cb23aca Bump Akismet external to 4.1.9.
See #52245.


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50096 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-03 00:46:24 +00:00
desrosj
0447adfdbf Post WordPress 5.7 RC2 version bump.
Built from https://develop.svn.wordpress.org/branches/5.7@50482


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50093 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-02 20:47:03 +00:00
desrosj
64d9828155 WordPress 5.7 RC2.
Built from https://develop.svn.wordpress.org/branches/5.7@50481


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-02 20:33:03 +00:00
ryelle
b5e412fc3e Help/About: Iterate on the 5.7 About Page.
Adds a more obviously interactive comparison for viewing the color scheme differences. Improvements on RTL and IE11. Update strings to be more clear and consistent. Switch to the CDN for loading images.

Props sarahricker, desrosj, melchoyce, SergeyBiryukov, tikifez, clorith, marybaum, audrasjb, francina, hellofromTonya.
Reviewed by SergeyBiryukov.
Merges [50478] to the 5.7 branch.
Fixes #52693. See #52347.


Built from https://develop.svn.wordpress.org/branches/5.7@50480


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50091 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-02 20:14:04 +00:00
Mike Schroder
41f4aae738 Upgrade/Install: Invalidate OPcache for version.php during update.
Invalidate OPcache for wp-content/version.php on update individually, since it's copied separately.

Props stodorovic, krstarica, cenay, desrosj, pbiron, sergeybiryukov, mikeschroder.

Reviewed by mikeschroder, SergeyBiryukov.
Merges [50460] and [50475] to the 5.7 branch.
Fixes #51686, #51281.
See #36455.



Built from https://develop.svn.wordpress.org/branches/5.7@50477


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50088 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-02 18:21:03 +00:00
Sergey Biryukov
1adcc5bb83 Security, Site Health: Do not store HTTPS request error messages in an option.
This changes the logic in `update_https_detection_errors()` to never store error messages from the actual request since they could use a different encoding, which would make storing them in an option potentially fail, leading WordPress to then falsely assume that HTTPS is supported.

While this doesn't actually fix the encoding issue, it is not crucial to do so anyway, since these messages are not used anywhere. A simple differentiation between whether the overall HTTPS request or only the SSL verification failed should be sufficient for the purpose of this function.

Props flixos90, tmatsuur, lukecarbis.
Reviewed by flixos90, SergeyBiryukov.
Merges [50471] to the 5.7 branch.
Fixes #52484.
Built from https://develop.svn.wordpress.org/branches/5.7@50472


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50083 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-02 15:16:02 +00:00
Sergey Biryukov
b18d2e5fda REST API: Correct error code for the maxItems keyword.
Follow-up to [50007].

Props TimothyBlynJacobs.
Reviewed by desrosj, SergeyBiryukov.
Merges [50461] to the 5.7 branch.
Fixes #52317.
Built from https://develop.svn.wordpress.org/branches/5.7@50470


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50081 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-02 12:55:03 +00:00
Sergey Biryukov
e0058af83d Twenty Twenty-One: Correct inner container background color for Cover Blocks.
Adjust the background color palette rules so they don't show up on inner containers when they're not supposed to:
- When an inner container block is present, it only applies them to direct children of the block with the background color assigned.
- Since the background color should only be applied to the Cover block's overlay, not to the inner container, it opts that specific block out of this rule.

Props dianeco, kjellr, paaljoachim.
Reviewed by ryelle, SergeyBiryukov.
Merges [50466] to the 5.7 branch.
Fixes #52676.
Built from https://develop.svn.wordpress.org/branches/5.7@50469


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50080 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-02 12:52:03 +00:00
Sergey Biryukov
11ce2fe256 Twenty Fifteen & Twenty Sixteen: Remove extra space around post editor.
The editor uses the full height of its container, so the added margins cause the visual editor to break out of the container. This removes the top & bottom margins, and makes the left & right margins consistent with the meta box area.

Props antonlukin, paaljoachim, felipeelia.
Reviewed by ryelle, SergeyBiryukov.
Merges [50465] to the 5.7 branch.
Fixes #52646.
Built from https://develop.svn.wordpress.org/branches/5.7@50468


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50079 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-02 12:47:06 +00:00
noisysocks
9588f78d86 Editor: Update @wordpress npm packages
Update @wordpress npm packages to the latest published versions. This includes
block editor bug fixes for WordPress 5.7 RC 2.

Fixes #52680.

Built from https://develop.svn.wordpress.org/branches/5.7@50467


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50078 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-02 00:46:20 +00:00
John Blackbourn
23f58f8af4 Build/Test Tools: PHPUnit test improvements:
* Switch back to running the PHPUnit test suite against the `src` directory instead of `build`
* Increase the reliability of backing up the `mu-plugins` directory during tests
* Split the PHPUnit tests for PHP versions below 7.0 in half, allowing them to run in parallel and reduce the overall test run duration on GitHub Actions

Merges [50441-50444] to the 5.7 branch.

Fixes #51734, #51735, #52645

Built from https://develop.svn.wordpress.org/branches/5.7@50464


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50075 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-01 20:23:03 +00:00
Peter Wilson
b997fb4eac External Libraries: Install jQuery via NPM.
Previously, jQuery 1.12.4 was added to the WordPress SVN repo in order to backport an upstream security patch from jQuery 3.4.0.

Now that WordPress includes an unmodified version of jQuery 3.5.1 and no longer needs to maintain a fork, it can be removed from the SVN repo and installed via NPM again as part of the build.

Follow-up to [45342], [49101].

Props peterwilsoncc, SergeyBiryukov.
Merges [50445] to the 5.7 branch.
Fixes #52647.


Built from https://develop.svn.wordpress.org/branches/5.7@50457


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50068 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-01 00:54:18 +00:00
Sergey Biryukov
fea7422a14 Users: Use localized site title for password reset emails.
When sending password reset emails, switch to the user's locale prior to obtaining the site title to allow for plugins filtering based on locale.

Follow up to [50129,50139-50141,50152,50415].

Props chouby.
Merges [50439] to the 5.7 branch.
Fixes #52605. See #34281.
Built from https://develop.svn.wordpress.org/branches/5.7@50440


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50051 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-02-26 11:17:05 +00:00
Peter Wilson
6072eb4497 Help/About: Remove extra space in the 5.7 About page copy.
Props tobifjellner, audrasjb, desrosj, ryelle.
Merges [50430] to the 5.7 branch.
Fixes #52632.

Built from https://develop.svn.wordpress.org/branches/5.7@50438


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50049 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-02-25 23:37:04 +00:00
Peter Wilson
a531b8f403 Administration: Revert the change to click event handler for fly-out submenus.
The `click()` method there is not the jQuery method, but is an HTML DOM method instead.

This makes the fly-out submenu header clickable again when the menu is folded.

Follow-up to [50420].

Props peterwilsoncc, SergeyBiryukov.
Merges [50429] to the 5.7 branch.
Fixes #52638. See #51812.

Built from https://develop.svn.wordpress.org/branches/5.7@50437


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50048 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-02-25 22:52:04 +00:00
desrosj
6d6beaec8c Security: Update the Security Policy to include WordPress 5.7.
Reviewed by desrosj, SergeyBiryukov.
Merges [50428] to the 5.7 branch.
Fixes #52633.
Built from https://develop.svn.wordpress.org/branches/5.7@50431


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50042 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-02-24 15:57:54 +00:00
desrosj
932518e519 Branch 5.7
Built from https://develop.svn.wordpress.org/branches/5.7@50426


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50037 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-02-23 21:02:09 +00:00
340 changed files with 84517 additions and 81938 deletions

View File

@@ -9,6 +9,9 @@
/** WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';
wp_enqueue_script( 'wp-components' );
wp_enqueue_style( 'wp-components' );
/* translators: Page title of the About WordPress page in the admin. */
$title = _x( 'About', 'page title' );
@@ -20,7 +23,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<div class="about__header">
<div class="about__header-image">
<img alt="<?php _e( 'Code is Poetry' ); ?>" src="images/about-badge.svg" />
<img alt="<?php _e( 'Code is Poetry' ); ?>" src="<?php echo admin_url( 'images/about-badge.svg' ); ?>" />
</div>
<div class="about__header-title">
@@ -53,19 +56,116 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
);
?>
</h1>
<p>
<?php
_e( 'With this new version, WordPress brings you fresh colors. The editor helps you work in a few places you couldnt before—at least, not without getting into code or hiring a pro. The controls you use most, like changing font sizes, are in more places—right where you need them. And layout changes that should be simple, like full-height images, are even simpler to make.' );
?>
</p>
</div>
</div>
<hr />
<div class="about__section changelog">
<div class="column has-border has-subtle-background-color">
<h2 class="is-smaller-heading"><?php _e( 'Maintenance and Security Releases' ); ?></h2>
<p>
<?php
printf(
/* translators: %s: The current WordPress version number. */
__( 'With this new version, the editor cleans up the colors and helps you work in a few places you couldnt before—at least, not without getting into code or hiring a pro. The controls you use most, like changing type sizes, are in more places—right where you need them. And layout changes that should be simple, like full-height images, get even simpler to make.' ),
$display_version
/* translators: %s: WordPress version number. */
__( '<strong>Version %s</strong> addressed one security issue.' ),
'5.7.4'
);
?>
<?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.7.4' )
)
);
?>
</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.',
5
),
'5.7.3',
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.7.3' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: %s: WordPress version number. */
__( '<strong>Version %s</strong> addressed one security issue.' ),
'5.7.2'
);
?>
<?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.7.2' )
)
);
?>
</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.',
26
),
'5.7.1',
number_format_i18n( 26 )
);
?>
<?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.7.1' )
)
);
?>
</p>
</div>
</div>
<hr class="is-large" />
<hr />
<div class="about__section has-2-columns">
<h2 class="is-section-header is-smaller-heading">
@@ -90,7 +190,8 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
</div>
<div class="column about__image">
<video controls>
<source src="https://make.wordpress.org/core/files/2021/02/about-57-drag-drop-image.mp4" type="video/mp4" />
<source src="https://s.w.org/images/core/5.7/about-57-drag-drop-image.mp4" type="video/mp4" />
<source src="https://s.w.org/images/core/5.7/about-57-drag-drop-image.webm" type="video/webm" />
</video>
</div>
</div>
@@ -107,17 +208,17 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
</p>
<p>
<?php
_e( '<strong>Buttons block:</strong> now you can align the content in buttons vertically. And you can set the width of a button to a preset percentage.' );
_e( '<strong>Buttons block:</strong> now you can choose a vertical or a horizontal layout. And you can set the width of a button to a preset percentage.' );
?>
</p>
<p>
<?php
_e( '<strong>Social Icons block:</strong> you can now change the size of the icons in the Social Icons block.' );
_e( '<strong>Social Icons block:</strong> now you can change the size of the icons.' );
?>
</p>
</div>
<div class="column about__image">
<img src="https://make.wordpress.org/core/files/2021/02/about-57-cover-1.jpg" alt="" />
<img src="https://s.w.org/images/core/5.7/about-57-cover.jpg" alt="" />
</div>
</div>
@@ -130,14 +231,15 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
</div>
<div class="about__section has-subtle-background-color">
<div class="column about__image">
<div class="about__image-comparison">
<figure class="column about__image" id="about-image-comparison">
<div class="about__image-comparison no-js">
<img src="https://s.w.org/images/core/5.7/about-57-color-old.png" alt="<?php esc_attr_e( 'Dashboard with old color scheme.' ); ?>" />
<div class="about__image-comparison-resize">
<img src="https://make.wordpress.org/core/files/2021/02/about-57-color-new.png" />
<img src="https://s.w.org/images/core/5.7/about-57-color-new.png" alt="<?php esc_attr_e( 'Dashboard with new color scheme.' ); ?>" />
</div>
<img src="https://make.wordpress.org/core/files/2021/02/about-57-color-old.png" />
</div>
</div>
<figcaption><?php _e( 'Above, the Dashboard before and after the color update in 5.7.' ); ?></figcaption>
</figure>
</div>
<div class="about__section has-2-columns has-subtle-background-color">
@@ -178,8 +280,8 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<div class="about__section has-subtle-background-color">
<div class="column about__image">
<picture>
<source media="(max-width: 600px)" srcset="images/about-color-palette-vert.svg" />
<img alt="" src="images/about-color-palette.svg" />
<source media="(max-width: 600px)" srcset="<?php echo admin_url( 'images/about-color-palette-vert.svg' ); ?>" />
<img alt="" src="<?php echo admin_url( 'images/about-color-palette.svg' ); ?>" />
</picture>
</div>
</div>
@@ -193,16 +295,16 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<h3><?php _e( 'New Robots API' ); ?></h3>
<p>
<?php
_e( 'The new Robots API lets you include the filter directives in the robots meta tag, and the API includes the directive <code>max-image-preview: large</code> by default. That means search engines can show bigger image previews (unless the blog is marked as not public), which can boost your traffic.' )
_e( 'The new Robots API lets you include the filter directives in the robots meta tag, and the API includes the <code>max-image-preview: large</code> directive by default. That means search engines can show bigger image previews, which can boost your traffic (unless the site is marked <em>not-public</em>).' );
?>
</p>
</div>
<div class="column">
<h3><?php _e( 'Ongoing cleanup after update to jQuery 3.5.1' ); ?></h3>
<p><?php _e( 'For years jQuery helped make things move on the screen in ways the basic tools couldnt—but that keeps changing, and so does jQuery.' ); ?></p>
<p><?php _e( 'One side effect: it generated a set of cryptic messages on the dashboard that informed only developers. In 5.7, you will get far fewer of those messages, and they will be in plain language.' ); ?></p>
<p><?php _e( 'In 5.7, jQuery gets more focused and less intrusive, with fewer messages in the console.' ); ?></p>
<h3><?php _e( 'Lazy-load your iframes' ); ?></h3>
<p><?php _e( 'Now its simple to let iframes lazy-load. Just add the <code>loading="lazy"</code> attribute to iframe tags on the front end.' ); ?></p>
<p><?php _e( 'Now its simple to let iframes lazy-load. By default, WordPress will add a <code>loading="lazy"</code> attribute to iframe tags when both width and height are specified.' ); ?></p>
</div>
</div>
@@ -234,9 +336,87 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<a href="<?php echo esc_url( self_admin_url() ); ?>"><?php is_blog_admin() ? _e( 'Go to Dashboard &rarr; Home' ) : _e( 'Go to Dashboard' ); ?></a>
</div>
</div>
<?php
require_once ABSPATH . 'wp-admin/admin-footer.php';
<?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>
<script>
window.addEventListener( 'load', function() {
var createElement = wp.element.createElement;
var Fragment = wp.element.Fragment;
var render = wp.element.render;
var useState = wp.element.useState;
var ResizableBox = wp.components.ResizableBox;
var container = document.getElementById( 'about-image-comparison' );
var images = container ? container.querySelectorAll( 'img' ) : [];
if ( ! images.length ) {
// Something's wrong, return early.
return;
}
var beforeImage = images.item( 0 );
var afterImage = images.item( 1 );
var caption = container.querySelector( 'figcaption' ).innerText;
function ImageComparison( props ) {
var stateHelper = useState( props.width );
var width = stateHelper[0];
var setWidth = stateHelper[1];
return createElement(
'div',
{
className: 'about__image-comparison'
},
createElement( 'img', { src: beforeImage.src, alt: beforeImage.alt } ),
createElement(
ResizableBox,
{
size: {
width: width,
height: props.height
},
onResizeStop: function( event, direction, elt, delta ) {
setWidth( parseInt( width + delta.width, 10 ) );
},
showHandle: true,
enable: {
top: false,
right: ! wp.i18n.isRTL(),
bottom: false,
left: wp.i18n.isRTL(),
},
className: 'about__image-comparison-resize'
},
createElement(
'div',
{
style: { width: '100%', height: '100%', overflow: 'hidden' }
},
createElement('img', { src: afterImage.src, alt: afterImage.alt } )
)
)
);
}
render(
createElement(
Fragment,
{},
createElement(
ImageComparison,
{
width: beforeImage.clientWidth / 2,
height: beforeImage.clientHeight
}
),
createElement( 'figcaption', {}, caption )
),
container
);
} );
</script>
<?php
// These are strings we may use to describe maintenance/security releases, where we aim for no new strings.
return;

View File

@@ -22,7 +22,7 @@ $credits = wp_credits();
<div class="about__header">
<div class="about__header-image">
<img alt="<?php _e( 'Code is Poetry' ); ?>" src="images/about-badge.svg" />
<img alt="<?php _e( 'Code is Poetry' ); ?>" src="<?php echo admin_url( 'images/about-badge.svg' ); ?>" />
</div>
<div class="about__header-container">

View File

@@ -113,6 +113,11 @@
color: var(--text-light);
}
.about__container .has-accent-background-color a {
color: #fff;
color: var(--text-light);
}
.about__container .has-transparent-background-color {
background-color: transparent;
}
@@ -552,6 +557,11 @@
height: auto;
}
.about__container .about__image figcaption {
margin-top: 0.5em;
text-align: center;
}
.about__container .about__image .wp-video {
margin-right: auto;
margin-left: auto;
@@ -560,7 +570,6 @@
.about__container .about__image-comparison {
position: relative;
display: inline-block;
line-height: 0;
max-width: 100%;
}
@@ -576,29 +585,26 @@
}
.about__container .about__image-comparison-resize {
position: absolute;
position: absolute !important; /* Needed to override inline style on ResizableBox */
top: 0;
bottom: 0;
right: 0;
width: 50%;
max-width: 100%;
overflow: hidden;
resize: horizontal;
border-left: 2px solid white;
}
.about__container .about__image-comparison-resize:after {
content: "";
display: block;
position: absolute;
left: 0;
bottom: 0;
width: 20px;
height: 20px;
font-family: dashicons;
font-size: 20px;
line-height: 1;
.about__container .about__image-comparison.no-js .about__image-comparison-resize {
overflow: hidden;
border-left: 2px solid #007cba;
border-left: 2px solid var(--wp-admin-theme-color);
}
.about__container .about__image-comparison-resize .components-resizable-box__side-handle::before {
width: 4px;
left: calc(50% - 2px);
transition: none;
animation: none;
opacity: 1;
}
.about__container .about__image + h3 {

File diff suppressed because one or more lines are too long

View File

@@ -112,6 +112,11 @@
color: var(--text-light);
}
.about__container .has-accent-background-color a {
color: #fff;
color: var(--text-light);
}
.about__container .has-transparent-background-color {
background-color: transparent;
}
@@ -551,6 +556,11 @@
height: auto;
}
.about__container .about__image figcaption {
margin-top: 0.5em;
text-align: center;
}
.about__container .about__image .wp-video {
margin-left: auto;
margin-right: auto;
@@ -559,7 +569,6 @@
.about__container .about__image-comparison {
position: relative;
display: inline-block;
line-height: 0;
max-width: 100%;
}
@@ -575,29 +584,26 @@
}
.about__container .about__image-comparison-resize {
position: absolute;
position: absolute !important; /* Needed to override inline style on ResizableBox */
top: 0;
bottom: 0;
left: 0;
width: 50%;
max-width: 100%;
overflow: hidden;
resize: horizontal;
border-right: 2px solid white;
}
.about__container .about__image-comparison-resize:after {
content: "";
display: block;
position: absolute;
right: 0;
bottom: 0;
width: 20px;
height: 20px;
font-family: dashicons;
font-size: 20px;
line-height: 1;
.about__container .about__image-comparison.no-js .about__image-comparison-resize {
overflow: hidden;
border-right: 2px solid #007cba;
border-right: 2px solid var(--wp-admin-theme-color);
}
.about__container .about__image-comparison-resize .components-resizable-box__side-handle::before {
width: 4px;
right: calc(50% - 2px);
transition: none;
animation: none;
opacity: 1;
}
.about__container .about__image + h3 {

File diff suppressed because one or more lines are too long

View File

@@ -103,16 +103,16 @@
}
.wp-color-picker::-webkit-input-placeholder {
color: #787c82;
color: #646970;
}
.wp-color-picker::-moz-placeholder {
color: #787c82;
color: #646970;
opacity: 1;
}
.wp-color-picker:-ms-input-placeholder {
color: #787c82;
color: #646970;
}
.wp-picker-container input[type="text"].iris-error {

View File

@@ -1,2 +1,2 @@
/*! This file is auto-generated */
.wp-color-picker{width:80px;direction:ltr}.wp-picker-container .hidden{display:none}.wp-picker-container .wp-color-result.button{min-height:30px;margin:0 0 6px 6px;padding:0 30px 0 0;font-size:11px}.wp-color-result-text{background:#f6f7f7;border-radius:2px 0 0 2px;border-right:1px solid #c3c4c7;color:#50575e;display:block;line-height:2.54545455;padding:0 6px;text-align:center}.wp-color-result:focus,.wp-color-result:hover{background:#f6f7f7;border-color:#8c8f94;color:#1d2327}.wp-color-result:focus:after,.wp-color-result:hover:after{color:#1d2327;border-color:#a7aaad;border-right:1px solid #8c8f94}.wp-picker-container{display:inline-block}.wp-color-result:focus{border-color:#4f94d4;box-shadow:0 0 3px rgba(34,113,177,.8)}.wp-color-result:active{transform:none!important}.wp-picker-open+.wp-picker-input-wrap{display:inline-block;vertical-align:top}.wp-picker-input-wrap label{display:inline-block;vertical-align:top}.form-table .wp-picker-input-wrap label{margin:0!important}.wp-customizer .wp-picker-input-wrap .button.wp-picker-clear,.wp-customizer .wp-picker-input-wrap .button.wp-picker-default,.wp-picker-input-wrap .button.wp-picker-clear,.wp-picker-input-wrap .button.wp-picker-default{margin-right:6px;padding:0 8px;line-height:2.54545455;min-height:30px}.wp-picker-container .iris-square-slider .ui-slider-handle:focus{background-color:#50575e}.wp-picker-container .iris-picker{border-radius:0;border-color:#dcdcde;margin-top:6px}.wp-picker-container input[type=text].wp-color-picker{width:4rem;font-size:12px;font-family:monospace;line-height:2.33333333;margin:0;padding:0 5px;vertical-align:top;min-height:30px}.wp-color-picker::-webkit-input-placeholder{color:#787c82}.wp-color-picker::-moz-placeholder{color:#787c82;opacity:1}.wp-color-picker:-ms-input-placeholder{color:#787c82}.wp-picker-container input[type=text].iris-error{background-color:#fcf0f1;border-color:#d63638;color:#000}.iris-picker .iris-strip .ui-slider-handle:focus,.iris-picker .ui-square-handle:focus{border-color:#3582c4;border-style:solid;box-shadow:0 0 0 1px #3582c4;outline:2px solid transparent}.iris-picker .iris-palette:focus{box-shadow:0 0 0 2px #3582c4}@media screen and (max-width:782px){.wp-picker-container input[type=text].wp-color-picker{width:5rem;font-size:16px;line-height:1.875;min-height:32px}.wp-customizer .wp-picker-container input[type=text].wp-color-picker{padding:0 5px}.wp-picker-input-wrap .button.wp-picker-clear,.wp-picker-input-wrap .button.wp-picker-default{padding:0 8px;line-height:2.14285714;min-height:32px}.wp-customizer .wp-picker-input-wrap .button.wp-picker-clear,.wp-customizer .wp-picker-input-wrap .button.wp-picker-default{padding:0 8px;font-size:14px;line-height:2.14285714;min-height:32px}.wp-picker-container .wp-color-result.button{padding:0 40px 0 0;font-size:14px;line-height:2.14285714}.wp-customizer .wp-picker-container .wp-color-result.button{font-size:14px;line-height:2.14285714}.wp-picker-container .wp-color-result-text{padding:0 14px;font-size:inherit;line-height:inherit}.wp-customizer .wp-picker-container .wp-color-result-text{padding:0 10px}}
.wp-color-picker{width:80px;direction:ltr}.wp-picker-container .hidden{display:none}.wp-picker-container .wp-color-result.button{min-height:30px;margin:0 0 6px 6px;padding:0 30px 0 0;font-size:11px}.wp-color-result-text{background:#f6f7f7;border-radius:2px 0 0 2px;border-right:1px solid #c3c4c7;color:#50575e;display:block;line-height:2.54545455;padding:0 6px;text-align:center}.wp-color-result:focus,.wp-color-result:hover{background:#f6f7f7;border-color:#8c8f94;color:#1d2327}.wp-color-result:focus:after,.wp-color-result:hover:after{color:#1d2327;border-color:#a7aaad;border-right:1px solid #8c8f94}.wp-picker-container{display:inline-block}.wp-color-result:focus{border-color:#4f94d4;box-shadow:0 0 3px rgba(34,113,177,.8)}.wp-color-result:active{transform:none!important}.wp-picker-open+.wp-picker-input-wrap{display:inline-block;vertical-align:top}.wp-picker-input-wrap label{display:inline-block;vertical-align:top}.form-table .wp-picker-input-wrap label{margin:0!important}.wp-customizer .wp-picker-input-wrap .button.wp-picker-clear,.wp-customizer .wp-picker-input-wrap .button.wp-picker-default,.wp-picker-input-wrap .button.wp-picker-clear,.wp-picker-input-wrap .button.wp-picker-default{margin-right:6px;padding:0 8px;line-height:2.54545455;min-height:30px}.wp-picker-container .iris-square-slider .ui-slider-handle:focus{background-color:#50575e}.wp-picker-container .iris-picker{border-radius:0;border-color:#dcdcde;margin-top:6px}.wp-picker-container input[type=text].wp-color-picker{width:4rem;font-size:12px;font-family:monospace;line-height:2.33333333;margin:0;padding:0 5px;vertical-align:top;min-height:30px}.wp-color-picker::-webkit-input-placeholder{color:#646970}.wp-color-picker::-moz-placeholder{color:#646970;opacity:1}.wp-color-picker:-ms-input-placeholder{color:#646970}.wp-picker-container input[type=text].iris-error{background-color:#fcf0f1;border-color:#d63638;color:#000}.iris-picker .iris-strip .ui-slider-handle:focus,.iris-picker .ui-square-handle:focus{border-color:#3582c4;border-style:solid;box-shadow:0 0 0 1px #3582c4;outline:2px solid transparent}.iris-picker .iris-palette:focus{box-shadow:0 0 0 2px #3582c4}@media screen and (max-width:782px){.wp-picker-container input[type=text].wp-color-picker{width:5rem;font-size:16px;line-height:1.875;min-height:32px}.wp-customizer .wp-picker-container input[type=text].wp-color-picker{padding:0 5px}.wp-picker-input-wrap .button.wp-picker-clear,.wp-picker-input-wrap .button.wp-picker-default{padding:0 8px;line-height:2.14285714;min-height:32px}.wp-customizer .wp-picker-input-wrap .button.wp-picker-clear,.wp-customizer .wp-picker-input-wrap .button.wp-picker-default{padding:0 8px;font-size:14px;line-height:2.14285714;min-height:32px}.wp-picker-container .wp-color-result.button{padding:0 40px 0 0;font-size:14px;line-height:2.14285714}.wp-customizer .wp-picker-container .wp-color-result.button{font-size:14px;line-height:2.14285714}.wp-picker-container .wp-color-result-text{padding:0 14px;font-size:inherit;line-height:inherit}.wp-customizer .wp-picker-container .wp-color-result-text{padding:0 10px}}

View File

@@ -102,16 +102,16 @@
}
.wp-color-picker::-webkit-input-placeholder {
color: #787c82;
color: #646970;
}
.wp-color-picker::-moz-placeholder {
color: #787c82;
color: #646970;
opacity: 1;
}
.wp-color-picker:-ms-input-placeholder {
color: #787c82;
color: #646970;
}
.wp-picker-container input[type="text"].iris-error {

View File

@@ -1,2 +1,2 @@
/*! This file is auto-generated */
.wp-color-picker{width:80px;direction:ltr}.wp-picker-container .hidden{display:none}.wp-picker-container .wp-color-result.button{min-height:30px;margin:0 6px 6px 0;padding:0 0 0 30px;font-size:11px}.wp-color-result-text{background:#f6f7f7;border-radius:0 2px 2px 0;border-left:1px solid #c3c4c7;color:#50575e;display:block;line-height:2.54545455;padding:0 6px;text-align:center}.wp-color-result:focus,.wp-color-result:hover{background:#f6f7f7;border-color:#8c8f94;color:#1d2327}.wp-color-result:focus:after,.wp-color-result:hover:after{color:#1d2327;border-color:#a7aaad;border-left:1px solid #8c8f94}.wp-picker-container{display:inline-block}.wp-color-result:focus{border-color:#4f94d4;box-shadow:0 0 3px rgba(34,113,177,.8)}.wp-color-result:active{transform:none!important}.wp-picker-open+.wp-picker-input-wrap{display:inline-block;vertical-align:top}.wp-picker-input-wrap label{display:inline-block;vertical-align:top}.form-table .wp-picker-input-wrap label{margin:0!important}.wp-customizer .wp-picker-input-wrap .button.wp-picker-clear,.wp-customizer .wp-picker-input-wrap .button.wp-picker-default,.wp-picker-input-wrap .button.wp-picker-clear,.wp-picker-input-wrap .button.wp-picker-default{margin-left:6px;padding:0 8px;line-height:2.54545455;min-height:30px}.wp-picker-container .iris-square-slider .ui-slider-handle:focus{background-color:#50575e}.wp-picker-container .iris-picker{border-radius:0;border-color:#dcdcde;margin-top:6px}.wp-picker-container input[type=text].wp-color-picker{width:4rem;font-size:12px;font-family:monospace;line-height:2.33333333;margin:0;padding:0 5px;vertical-align:top;min-height:30px}.wp-color-picker::-webkit-input-placeholder{color:#787c82}.wp-color-picker::-moz-placeholder{color:#787c82;opacity:1}.wp-color-picker:-ms-input-placeholder{color:#787c82}.wp-picker-container input[type=text].iris-error{background-color:#fcf0f1;border-color:#d63638;color:#000}.iris-picker .iris-strip .ui-slider-handle:focus,.iris-picker .ui-square-handle:focus{border-color:#3582c4;border-style:solid;box-shadow:0 0 0 1px #3582c4;outline:2px solid transparent}.iris-picker .iris-palette:focus{box-shadow:0 0 0 2px #3582c4}@media screen and (max-width:782px){.wp-picker-container input[type=text].wp-color-picker{width:5rem;font-size:16px;line-height:1.875;min-height:32px}.wp-customizer .wp-picker-container input[type=text].wp-color-picker{padding:0 5px}.wp-picker-input-wrap .button.wp-picker-clear,.wp-picker-input-wrap .button.wp-picker-default{padding:0 8px;line-height:2.14285714;min-height:32px}.wp-customizer .wp-picker-input-wrap .button.wp-picker-clear,.wp-customizer .wp-picker-input-wrap .button.wp-picker-default{padding:0 8px;font-size:14px;line-height:2.14285714;min-height:32px}.wp-picker-container .wp-color-result.button{padding:0 0 0 40px;font-size:14px;line-height:2.14285714}.wp-customizer .wp-picker-container .wp-color-result.button{font-size:14px;line-height:2.14285714}.wp-picker-container .wp-color-result-text{padding:0 14px;font-size:inherit;line-height:inherit}.wp-customizer .wp-picker-container .wp-color-result-text{padding:0 10px}}
.wp-color-picker{width:80px;direction:ltr}.wp-picker-container .hidden{display:none}.wp-picker-container .wp-color-result.button{min-height:30px;margin:0 6px 6px 0;padding:0 0 0 30px;font-size:11px}.wp-color-result-text{background:#f6f7f7;border-radius:0 2px 2px 0;border-left:1px solid #c3c4c7;color:#50575e;display:block;line-height:2.54545455;padding:0 6px;text-align:center}.wp-color-result:focus,.wp-color-result:hover{background:#f6f7f7;border-color:#8c8f94;color:#1d2327}.wp-color-result:focus:after,.wp-color-result:hover:after{color:#1d2327;border-color:#a7aaad;border-left:1px solid #8c8f94}.wp-picker-container{display:inline-block}.wp-color-result:focus{border-color:#4f94d4;box-shadow:0 0 3px rgba(34,113,177,.8)}.wp-color-result:active{transform:none!important}.wp-picker-open+.wp-picker-input-wrap{display:inline-block;vertical-align:top}.wp-picker-input-wrap label{display:inline-block;vertical-align:top}.form-table .wp-picker-input-wrap label{margin:0!important}.wp-customizer .wp-picker-input-wrap .button.wp-picker-clear,.wp-customizer .wp-picker-input-wrap .button.wp-picker-default,.wp-picker-input-wrap .button.wp-picker-clear,.wp-picker-input-wrap .button.wp-picker-default{margin-left:6px;padding:0 8px;line-height:2.54545455;min-height:30px}.wp-picker-container .iris-square-slider .ui-slider-handle:focus{background-color:#50575e}.wp-picker-container .iris-picker{border-radius:0;border-color:#dcdcde;margin-top:6px}.wp-picker-container input[type=text].wp-color-picker{width:4rem;font-size:12px;font-family:monospace;line-height:2.33333333;margin:0;padding:0 5px;vertical-align:top;min-height:30px}.wp-color-picker::-webkit-input-placeholder{color:#646970}.wp-color-picker::-moz-placeholder{color:#646970;opacity:1}.wp-color-picker:-ms-input-placeholder{color:#646970}.wp-picker-container input[type=text].iris-error{background-color:#fcf0f1;border-color:#d63638;color:#000}.iris-picker .iris-strip .ui-slider-handle:focus,.iris-picker .ui-square-handle:focus{border-color:#3582c4;border-style:solid;box-shadow:0 0 0 1px #3582c4;outline:2px solid transparent}.iris-picker .iris-palette:focus{box-shadow:0 0 0 2px #3582c4}@media screen and (max-width:782px){.wp-picker-container input[type=text].wp-color-picker{width:5rem;font-size:16px;line-height:1.875;min-height:32px}.wp-customizer .wp-picker-container input[type=text].wp-color-picker{padding:0 5px}.wp-picker-input-wrap .button.wp-picker-clear,.wp-picker-input-wrap .button.wp-picker-default{padding:0 8px;line-height:2.14285714;min-height:32px}.wp-customizer .wp-picker-input-wrap .button.wp-picker-clear,.wp-customizer .wp-picker-input-wrap .button.wp-picker-default{padding:0 8px;font-size:14px;line-height:2.14285714;min-height:32px}.wp-picker-container .wp-color-result.button{padding:0 0 0 40px;font-size:14px;line-height:2.14285714}.wp-customizer .wp-picker-container .wp-color-result.button{font-size:14px;line-height:2.14285714}.wp-picker-container .wp-color-result-text{padding:0 14px;font-size:inherit;line-height:inherit}.wp-customizer .wp-picker-container .wp-color-result-text{padding:0 10px}}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1021,7 +1021,7 @@ th.action-links {
top: -1px;
padding: 4px 10px;
border-radius: 30px;
background: #787c82;
background: #646970;
color: #fff;
font-size: 14px;
font-weight: 600;
@@ -1119,7 +1119,7 @@ th.action-links {
.wp-filter .drawer-toggle:before {
content: "\f111";
margin: 0 0 0 5px;
color: #787c82;
color: #646970;
font: normal 16px/1 dashicons;
vertical-align: text-bottom;
-webkit-font-smoothing: antialiased;
@@ -1174,13 +1174,13 @@ th.action-links {
.show-filters .wp-filter .button.drawer-toggle {
border-radius: 2px;
background: #787c82;
background: #646970;
color: #fff;
}
.show-filters .wp-filter .drawer-toggle:hover,
.show-filters .wp-filter .drawer-toggle:focus {
background: #72aee6;
background: #2271b1;
}
.show-filters .wp-filter .drawer-toggle:before {

File diff suppressed because one or more lines are too long

View File

@@ -1020,7 +1020,7 @@ th.action-links {
top: -1px;
padding: 4px 10px;
border-radius: 30px;
background: #787c82;
background: #646970;
color: #fff;
font-size: 14px;
font-weight: 600;
@@ -1118,7 +1118,7 @@ th.action-links {
.wp-filter .drawer-toggle:before {
content: "\f111";
margin: 0 5px 0 0;
color: #787c82;
color: #646970;
font: normal 16px/1 dashicons;
vertical-align: text-bottom;
-webkit-font-smoothing: antialiased;
@@ -1173,13 +1173,13 @@ th.action-links {
.show-filters .wp-filter .button.drawer-toggle {
border-radius: 2px;
background: #787c82;
background: #646970;
color: #fff;
}
.show-filters .wp-filter .drawer-toggle:hover,
.show-filters .wp-filter .drawer-toggle:focus {
background: #72aee6;
background: #2271b1;
}
.show-filters .wp-filter .drawer-toggle:before {

File diff suppressed because one or more lines are too long

View File

@@ -2604,7 +2604,7 @@ body.adding-widget .add-new-widget:before,
height: 30px;
line-height: 2.1;
text-align: center;
color: #787c82;
color: #646970;
}
#available-widgets-filter .clear-results,
@@ -2672,7 +2672,7 @@ body.adding-widget .add-new-widget:before,
top: 7px;
right: 26px;
z-index: 1;
color: #787c82;
color: #646970;
height: 30px;
width: 30px;
line-height: 2;

File diff suppressed because one or more lines are too long

View File

@@ -2603,7 +2603,7 @@ body.adding-widget .add-new-widget:before,
height: 30px;
line-height: 2.1;
text-align: center;
color: #787c82;
color: #646970;
}
#available-widgets-filter .clear-results,
@@ -2671,7 +2671,7 @@ body.adding-widget .add-new-widget:before,
top: 7px;
left: 26px;
z-index: 1;
color: #787c82;
color: #646970;
height: 30px;
width: 30px;
line-height: 2;

File diff suppressed because one or more lines are too long

View File

@@ -138,7 +138,7 @@
#customize-theme-controls .move-widget-area {
display: none;
background: #fff;
border: 1px solid #dcdcde;
border: 1px solid #c3c4c7;
border-top: none;
cursor: auto;
}
@@ -164,7 +164,7 @@
margin: 0;
padding: 13px 42px 15px 15px;
color: #50575e;
border-top: 1px solid #f0f0f1;
border-top: 1px solid #c3c4c7;
cursor: pointer;
-webkit-user-select: none;
-ms-user-select: none;
@@ -183,13 +183,12 @@
}
#customize-theme-controls .widget-area-select li:last-child {
border-bottom: 1px solid #f0f0f1;
border-bottom: 1px solid #c3c4c7;
}
#customize-theme-controls .widget-area-select .selected {
color: #fff;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
background: #72aee6;
background: #2271b1;
}
#customize-theme-controls .widget-area-select .selected:before {
@@ -262,7 +261,7 @@
#available-widgets .widget .widget-description {
padding: 0;
color: #787c82;
color: #646970;
}
#customize-preview {

File diff suppressed because one or more lines are too long

View File

@@ -137,7 +137,7 @@
#customize-theme-controls .move-widget-area {
display: none;
background: #fff;
border: 1px solid #dcdcde;
border: 1px solid #c3c4c7;
border-top: none;
cursor: auto;
}
@@ -163,7 +163,7 @@
margin: 0;
padding: 13px 15px 15px 42px;
color: #50575e;
border-top: 1px solid #f0f0f1;
border-top: 1px solid #c3c4c7;
cursor: pointer;
-webkit-user-select: none;
-ms-user-select: none;
@@ -182,13 +182,12 @@
}
#customize-theme-controls .widget-area-select li:last-child {
border-bottom: 1px solid #f0f0f1;
border-bottom: 1px solid #c3c4c7;
}
#customize-theme-controls .widget-area-select .selected {
color: #fff;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
background: #72aee6;
background: #2271b1;
}
#customize-theme-controls .widget-area-select .selected:before {
@@ -261,7 +260,7 @@
#available-widgets .widget .widget-description {
padding: 0;
color: #787c82;
color: #646970;
}
#customize-preview {

File diff suppressed because one or more lines are too long

View File

@@ -141,7 +141,7 @@
}
.welcome-panel p {
color: #787c82;
color: #646970;
}
.welcome-panel li a {
@@ -513,7 +513,7 @@ body #dashboard-widgets .postbox form .submit {
}
.rssSummary {
color: #787c82;
color: #646970;
margin-top: 4px;
}
@@ -533,7 +533,7 @@ body #dashboard-widgets .postbox form .submit {
#dashboard_primary .rss-widget span,
#dashboard_primary .rss-widget span.rss-date {
color: #787c82;
color: #646970;
}
#dashboard_primary .rss-widget span.rss-date {
@@ -694,7 +694,7 @@ body #dashboard-widgets .postbox form .submit {
margin-bottom: 1em;
}
#dashboard_quick_press .drafts li time {
color: #787c82;
color: #646970;
}
#dashboard_quick_press .drafts p {
@@ -757,7 +757,7 @@ body #dashboard-widgets .postbox form .submit {
}
#dashboard_activity .no-activity p {
color: #787c82;
color: #646970;
font-size: 16px;
}
@@ -770,7 +770,7 @@ body #dashboard-widgets .postbox form .submit {
#dashboard_activity .subsubsub a .count,
#dashboard_activity .subsubsub a.current .count {
color: #787c82; /* white background on the dashboard but #f1f1f1 on list tables */
color: #646970; /* white background on the dashboard but #f0f0f1 on list tables */
}
#future-posts ul,
@@ -789,7 +789,7 @@ body #dashboard-widgets .postbox form .submit {
display: inline-block;
margin-left: 5px;
min-width: 150px;
color: #787c82;
color: #646970;
}
.activity-block {
@@ -996,7 +996,7 @@ a.rsswidget {
}
.rss-widget span.rss-date {
color: #787c82;
color: #646970;
font-size: 13px;
margin-right: 3px;
}

File diff suppressed because one or more lines are too long

View File

@@ -140,7 +140,7 @@
}
.welcome-panel p {
color: #787c82;
color: #646970;
}
.welcome-panel li a {
@@ -512,7 +512,7 @@ body #dashboard-widgets .postbox form .submit {
}
.rssSummary {
color: #787c82;
color: #646970;
margin-top: 4px;
}
@@ -532,7 +532,7 @@ body #dashboard-widgets .postbox form .submit {
#dashboard_primary .rss-widget span,
#dashboard_primary .rss-widget span.rss-date {
color: #787c82;
color: #646970;
}
#dashboard_primary .rss-widget span.rss-date {
@@ -693,7 +693,7 @@ body #dashboard-widgets .postbox form .submit {
margin-bottom: 1em;
}
#dashboard_quick_press .drafts li time {
color: #787c82;
color: #646970;
}
#dashboard_quick_press .drafts p {
@@ -756,7 +756,7 @@ body #dashboard-widgets .postbox form .submit {
}
#dashboard_activity .no-activity p {
color: #787c82;
color: #646970;
font-size: 16px;
}
@@ -769,7 +769,7 @@ body #dashboard-widgets .postbox form .submit {
#dashboard_activity .subsubsub a .count,
#dashboard_activity .subsubsub a.current .count {
color: #787c82; /* white background on the dashboard but #f1f1f1 on list tables */
color: #646970; /* white background on the dashboard but #f0f0f1 on list tables */
}
#future-posts ul,
@@ -788,7 +788,7 @@ body #dashboard-widgets .postbox form .submit {
display: inline-block;
margin-right: 5px;
min-width: 150px;
color: #787c82;
color: #646970;
}
.activity-block {
@@ -995,7 +995,7 @@ a.rsswidget {
}
.rss-widget span.rss-date {
color: #787c82;
color: #646970;
font-size: 13px;
margin-left: 3px;
}

File diff suppressed because one or more lines are too long

View File

@@ -71,7 +71,7 @@ div#media-upload-header {
.media-upload-form label.form-help,
td.help {
color: #787c82;
color: #646970;
}
form {

File diff suppressed because one or more lines are too long

View File

@@ -70,7 +70,7 @@ div#media-upload-header {
.media-upload-form label.form-help,
td.help {
color: #787c82;
color: #646970;
}
form {

File diff suppressed because one or more lines are too long

View File

@@ -69,7 +69,7 @@
}
#titlediv #title-prompt-text {
color: #787c82;
color: #646970;
position: absolute;
font-size: 1.7em;
padding: 10px;
@@ -964,6 +964,11 @@ form#tags-filter {
input#create-page {
margin-top: 10px;
}
.wp-core-ui button.privacy-text-copy {
white-space: normal;
line-height: 1.8;
}
}
@media only screen and (max-width: 1004px) {
@@ -1437,7 +1442,7 @@ p.popular-tags a {
content: "(" attr( href ) ")";
display: inline-block;
padding: 0 4px;
color: #787c82;
color: #646970;
font-size: 13px;
word-break: break-all;
}

File diff suppressed because one or more lines are too long

View File

@@ -68,7 +68,7 @@
}
#titlediv #title-prompt-text {
color: #787c82;
color: #646970;
position: absolute;
font-size: 1.7em;
padding: 10px;
@@ -963,6 +963,11 @@ form#tags-filter {
input#create-page {
margin-top: 10px;
}
.wp-core-ui button.privacy-text-copy {
white-space: normal;
line-height: 1.8;
}
}
@media only screen and (max-width: 1004px) {
@@ -1436,7 +1441,7 @@ p.popular-tags a {
content: "(" attr( href ) ")";
display: inline-block;
padding: 0 4px;
color: #787c82;
color: #646970;
font-size: 13px;
word-break: break-all;
}

File diff suppressed because one or more lines are too long

View File

@@ -227,16 +227,16 @@ textarea[readonly] {
}
::-webkit-input-placeholder {
color: #787c82;
color: #646970;
}
::-moz-placeholder {
color: #787c82;
color: #646970;
opacity: 1;
}
:-ms-input-placeholder {
color: #787c82;
color: #646970;
}
.form-invalid .form-required,
@@ -1318,7 +1318,7 @@ table.form-table td .updated p {
.status-label.status-request-pending {
font-weight: 400;
font-style: italic;
color: #787c82;
color: #646970;
}
.status-label.status-request-failed {

File diff suppressed because one or more lines are too long

View File

@@ -226,16 +226,16 @@ textarea[readonly] {
}
::-webkit-input-placeholder {
color: #787c82;
color: #646970;
}
::-moz-placeholder {
color: #787c82;
color: #646970;
opacity: 1;
}
:-ms-input-placeholder {
color: #787c82;
color: #646970;
}
.form-invalid .form-required,
@@ -1317,7 +1317,7 @@ table.form-table td .updated p {
.status-label.status-request-pending {
font-weight: 400;
font-style: italic;
color: #787c82;
color: #646970;
}
.status-label.status-request-failed {

File diff suppressed because one or more lines are too long

View File

@@ -56,7 +56,7 @@
min-width: 24px;
height: 2em;
border-radius: 5px;
background-color: #787c82;
background-color: #646970;
color: #fff;
font-size: 11px;
line-height: 1.90909090;
@@ -72,7 +72,7 @@
margin-right: 8px;
width: 0;
height: 0;
border-top: 5px solid #787c82;
border-top: 5px solid #646970;
border-left: 5px solid transparent;
}
@@ -1578,20 +1578,16 @@ div.action-links,
/* ms */
/* Background Color for Site Status */
.wp-list-table .site-deleted,
.wp-list-table tr.site-deleted {
background: #ff8085;
}
.wp-list-table .site-spammed,
.wp-list-table tr.site-spammed {
background: #ffabaf;
}
.wp-list-table tr.site-deleted,
.wp-list-table .site-archived,
.wp-list-table tr.site-archived {
background: #fcf0f1;
}
.wp-list-table .site-spammed,
.wp-list-table tr.site-spammed,
.wp-list-table .site-mature,
.wp-list-table tr.site-mature {
background: #facfd2;
background: #fcf9e8;
}
.sites.fixed .column-lastupdated,

File diff suppressed because one or more lines are too long

View File

@@ -55,7 +55,7 @@
min-width: 24px;
height: 2em;
border-radius: 5px;
background-color: #787c82;
background-color: #646970;
color: #fff;
font-size: 11px;
line-height: 1.90909090;
@@ -71,7 +71,7 @@
margin-left: 8px;
width: 0;
height: 0;
border-top: 5px solid #787c82;
border-top: 5px solid #646970;
border-right: 5px solid transparent;
}
@@ -1577,20 +1577,16 @@ div.action-links,
/* ms */
/* Background Color for Site Status */
.wp-list-table .site-deleted,
.wp-list-table tr.site-deleted {
background: #ff8085;
}
.wp-list-table .site-spammed,
.wp-list-table tr.site-spammed {
background: #ffabaf;
}
.wp-list-table tr.site-deleted,
.wp-list-table .site-archived,
.wp-list-table tr.site-archived {
background: #fcf0f1;
}
.wp-list-table .site-spammed,
.wp-list-table tr.site-spammed,
.wp-list-table .site-mature,
.wp-list-table tr.site-mature {
background: #facfd2;
background: #fcf9e8;
}
.sites.fixed .column-lastupdated,

File diff suppressed because one or more lines are too long

View File

@@ -132,7 +132,7 @@ p {
.login form {
margin-top: 20px;
margin-right: 0;
padding: 26px 24px 46px;
padding: 26px 24px 34px;
font-weight: 400;
overflow: hidden;
background: #fff;
@@ -191,6 +191,18 @@ p {
float: left;
}
.login .reset-pass-submit {
display: flex;
flex-flow: row wrap;
justify-content: space-between;
}
.login .reset-pass-submit .button {
display: inline-block;
float: none;
margin-bottom: 6px;
}
.login .admin-email-confirm-form .submit {
text-align: center;
}

File diff suppressed because one or more lines are too long

View File

@@ -131,7 +131,7 @@ p {
.login form {
margin-top: 20px;
margin-left: 0;
padding: 26px 24px 46px;
padding: 26px 24px 34px;
font-weight: 400;
overflow: hidden;
background: #fff;
@@ -190,6 +190,18 @@ p {
float: right;
}
.login .reset-pass-submit {
display: flex;
flex-flow: row wrap;
justify-content: space-between;
}
.login .reset-pass-submit .button {
display: inline-block;
float: none;
margin-bottom: 6px;
}
.login .admin-email-confirm-form .submit {
text-align: center;
}

File diff suppressed because one or more lines are too long

View File

@@ -136,7 +136,7 @@ ul.add-menu-item-tabs li {
}
.theme-location-set {
color: #787c82;
color: #646970;
font-size: 11px;
}
@@ -456,8 +456,8 @@ ul.add-menu-item-tabs li {
}
#menu-to-edit .menu-item-invalid .menu-item-handle {
background: #facfd2;
border-color: #ffabaf;
background: #fcf0f1;
border-color: #d63638;
}
.no-js .menu-item-edit-active .item-edit {
@@ -483,7 +483,7 @@ ul.add-menu-item-tabs li {
}
.menu-item-handle .menu-item-title.no-title {
color: #787c82;
color: #646970;
}
/* Sortables */
@@ -690,7 +690,7 @@ body.menu-max-depth-11 { min-width: 1280px !important; }
margin: 0 0 15px;
padding: 3px 5px 5px;
border: 1px solid #dcdcde;
color: #787c82;
color: #646970;
font-size: 12px;
}

File diff suppressed because one or more lines are too long

View File

@@ -135,7 +135,7 @@ ul.add-menu-item-tabs li {
}
.theme-location-set {
color: #787c82;
color: #646970;
font-size: 11px;
}
@@ -455,8 +455,8 @@ ul.add-menu-item-tabs li {
}
#menu-to-edit .menu-item-invalid .menu-item-handle {
background: #facfd2;
border-color: #ffabaf;
background: #fcf0f1;
border-color: #d63638;
}
.no-js .menu-item-edit-active .item-edit {
@@ -482,7 +482,7 @@ ul.add-menu-item-tabs li {
}
.menu-item-handle .menu-item-title.no-title {
color: #787c82;
color: #646970;
}
/* Sortables */
@@ -689,7 +689,7 @@ body.menu-max-depth-11 { min-width: 1280px !important; }
margin: 0 0 15px;
padding: 3px 5px 5px;
border: 1px solid #dcdcde;
color: #787c82;
color: #646970;
font-size: 12px;
}

File diff suppressed because one or more lines are too long

View File

@@ -132,7 +132,7 @@ body.folded .revisions .loading-indicator {
}
.revisions-controls .author-card .date {
color: #787c82;
color: #646970;
}
.revisions-controls .author-card.autosave {

File diff suppressed because one or more lines are too long

View File

@@ -131,7 +131,7 @@ body.folded .revisions .loading-indicator {
}
.revisions-controls .author-card .date {
color: #787c82;
color: #646970;
}
.revisions-controls .author-card.autosave {

File diff suppressed because one or more lines are too long

View File

@@ -662,7 +662,7 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
}
.theme-overlay .theme-version {
color: #787c82;
color: #646970;
font-size: 13px;
font-weight: 400;
float: none;
@@ -672,7 +672,7 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
.theme-overlay .theme-author {
margin: 15px 0 25px;
color: #787c82;
color: #646970;
font-size: 16px;
font-weight: 400;
line-height: inherit;
@@ -705,7 +705,7 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
.theme-overlay .theme-tags {
border-top: 3px solid #f0f0f1;
color: #8c8f94;
color: #646970;
font-size: 13px;
font-weight: 400;
margin: 30px 0 0 0;
@@ -1124,7 +1124,7 @@ p.no-themes-local {
.theme-details .num-ratings,
.theme-details .no-rating {
font-size: 11px;
color: #787c82;
color: #646970;
}
.theme-details .no-rating {
@@ -1856,7 +1856,7 @@ body.full-overlay-active {
.theme-details .theme-description {
float: right;
color: #787c82;
color: #646970;
line-height: 1.6;
max-width: 100%;
}

File diff suppressed because one or more lines are too long

View File

@@ -661,7 +661,7 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
}
.theme-overlay .theme-version {
color: #787c82;
color: #646970;
font-size: 13px;
font-weight: 400;
float: none;
@@ -671,7 +671,7 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
.theme-overlay .theme-author {
margin: 15px 0 25px;
color: #787c82;
color: #646970;
font-size: 16px;
font-weight: 400;
line-height: inherit;
@@ -704,7 +704,7 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
.theme-overlay .theme-tags {
border-top: 3px solid #f0f0f1;
color: #8c8f94;
color: #646970;
font-size: 13px;
font-weight: 400;
margin: 30px 0 0 0;
@@ -1123,7 +1123,7 @@ p.no-themes-local {
.theme-details .num-ratings,
.theme-details .no-rating {
font-size: 11px;
color: #787c82;
color: #646970;
}
.theme-details .no-rating {
@@ -1855,7 +1855,7 @@ body.full-overlay-active {
.theme-details .theme-description {
float: left;
color: #787c82;
color: #646970;
line-height: 1.6;
max-width: 100%;
}

File diff suppressed because one or more lines are too long

View File

@@ -355,7 +355,7 @@
padding: 0 0 15px;
margin: 0;
font-style: normal;
color: #787c82;
color: #646970;
}
.widget-holder .description,

File diff suppressed because one or more lines are too long

View File

@@ -354,7 +354,7 @@
padding: 0 0 15px;
margin: 0;
font-style: normal;
color: #787c82;
color: #646970;
}
.widget-holder .description,

File diff suppressed because one or more lines are too long

View File

@@ -25,7 +25,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<div class="about__header">
<div class="about__header-image">
<img alt="<?php _e( 'Code is Poetry' ); ?>" src="images/about-badge.svg" />
<img alt="<?php _e( 'Code is Poetry' ); ?>" src="<?php echo admin_url( 'images/about-badge.svg' ); ?>" />
</div>
<div class="about__header-container">

View File

@@ -420,11 +420,11 @@ final class WP_Privacy_Policy_Content {
<div class="privacy-settings-accordion-actions">
<span class="success" aria-hidden="true"><?php _e( 'Copied!' ); ?></span>
<button type="button" class="privacy-text-copy button">
<?php _e( 'Copy suggested policy text to clipboard' ); ?>
<span aria-hidden="true"><?php _e( 'Copy suggested policy text to clipboard' ); ?></span>
<span class="screen-reader-text">
<?php
/* translators: %s: Plugin name. */
sprintf( __( 'Copy suggested policy text from %s.' ), $plugin_name );
printf( __( 'Copy suggested policy text from %s.' ), $plugin_name );
?>
</span>
</button>

View File

@@ -1528,7 +1528,7 @@ class WP_Site_Health {
if ( ! wp_is_using_https() ) {
// If the website is not using HTTPS, provide more information about whether it is supported and how it can
// be enabled.
$result['status'] = 'critical';
$result['status'] = 'recommended';
$result['label'] = __( 'Your website does not use HTTPS' );
if ( wp_is_site_url_using_https() ) {
@@ -1630,36 +1630,6 @@ class WP_Site_Health {
);
}
}
} elseif ( ! wp_is_https_supported() ) {
// If the website is using HTTPS, but HTTPS is actually not supported, inform the user about the potential
// problems.
$result['status'] = 'critical';
$result['label'] = __( 'There are problems with the HTTPS connection of your website' );
$https_detection_errors = get_option( 'https_detection_errors' );
if ( ! empty( $https_detection_errors['ssl_verification_failed'] ) ) {
$result['description'] = sprintf(
'<p>%s</p>',
sprintf(
/* translators: %s: URL to Settings > General > WordPress Address. */
__( 'Your <a href="%s">WordPress Address</a> is set up to use HTTPS, but the SSL certificate appears to be invalid.' ),
esc_url( admin_url( 'options-general.php' ) . '#siteurl' )
)
);
} else {
$result['description'] = sprintf(
'<p>%s</p>',
sprintf(
/* translators: %s: URL to Settings > General > WordPress Address. */
__( 'Your <a href="%s">WordPress Address</a> is set up to use HTTPS, but your website appears to be unavailable when using an HTTPS connection.' ),
esc_url( admin_url( 'options-general.php' ) . '#siteurl' )
)
);
}
$result['description'] .= sprintf(
'<p>%s</p>',
__( 'Talk to your web host about resolving this HTTPS issue for your website.' )
);
}
return $result;

View File

@@ -711,6 +711,7 @@ function wp_read_image_metadata( $file ) {
);
$iptc = array();
$info = array();
/*
* Read IPTC first, since it might contain data not available in exif such
* as caption, description etc.

View File

@@ -801,6 +801,8 @@ $_old_files = array(
// 5.6
'wp-includes/js/jquery/ui/position.min.js',
'wp-includes/js/jquery/ui/widget.min.js',
// 5.7
'wp-includes/blocks/classic/block.json',
);
/**
@@ -937,7 +939,7 @@ function update_core( $from, $to ) {
* Import $wp_version, $required_php_version, and $required_mysql_version from the new version.
* DO NOT globalise any variables imported from `version-current.php` in this function.
*
* BC Note: $wp_filesystem->wp_content_dir() returned unslashed pre-2.8
* BC Note: $wp_filesystem->wp_content_dir() returned unslashed pre-2.8.
*/
$versions_file = trailingslashit( $wp_filesystem->wp_content_dir() ) . 'upgrade/version-current.php';
if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $versions_file ) ) {
@@ -946,6 +948,15 @@ function update_core( $from, $to ) {
}
$wp_filesystem->chmod( $versions_file, FS_CHMOD_FILE );
/*
* `wp_opcache_invalidate()` only exists in WordPress 5.5 or later,
* so don't run it when upgrading from older versions.
*/
if ( function_exists( 'wp_opcache_invalidate' ) ) {
wp_opcache_invalidate( $versions_file );
}
require WP_CONTENT_DIR . '/upgrade/version-current.php';
$wp_filesystem->delete( $versions_file );
@@ -1117,6 +1128,14 @@ function update_core( $from, $to ) {
$result = new WP_Error( 'copy_failed_for_version_file', __( 'The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions.' ), 'wp-includes/version.php' );
}
$wp_filesystem->chmod( $to . 'wp-includes/version.php', FS_CHMOD_FILE );
/*
* `wp_opcache_invalidate()` only exists in WordPress 5.5 or later,
* so don't run it when upgrading from older versions.
*/
if ( function_exists( 'wp_opcache_invalidate' ) ) {
wp_opcache_invalidate( $to . 'wp-includes/version.php' );
}
}
// Check to make sure everything copied correctly, ignoring the contents of wp-content.
@@ -1373,7 +1392,10 @@ function _copy_dir( $from, $to, $skip_list = array() ) {
}
}
// `wp_opcache_invalidate()` only exists in WordPress 5.5, so don't run it when upgrading to 5.5.
/*
* `wp_opcache_invalidate()` only exists in WordPress 5.5 or later,
* so don't run it when upgrading from older versions.
*/
if ( function_exists( 'wp_opcache_invalidate' ) ) {
wp_opcache_invalidate( $to . $filename );
}

View File

@@ -840,7 +840,7 @@ $document.ready( function() {
* @return {void}
*/
$adminmenu.on('click.wp-submenu-head', '.wp-submenu-head', function(e){
$(e.target).parent().siblings('a').get(0).trigger( 'click' );
$(e.target).parent().siblings('a').get(0).click();
});
/**

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,2 +1,2 @@
/*! This file is auto-generated */
window.wp=window.wp||{},wp.svgPainter=function(e,o,n){"use strict";var t,r,a,m,i,s,c,u,l,f={},g=[];function p(){for(;l<256;)m=String.fromCharCode(l),s+=m,u[l]=l,c[l]=i.indexOf(m),++l}function d(n,t,e,a,i,o){for(var r,s=0,c=0,u="",l=0,f=(n=String(n)).length;c<f;){for(s=(s<<i)+(m=(m=n.charCodeAt(c))<256?e[m]:-1),l+=i;o<=l;)r=s>>(l-=o),u+=a.charAt(r),s^=r<<l;++c}return!t&&0<l&&(u+=a.charAt(s<<o-l)),u}return e(n).ready(function(){n.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")&&(e(n.body).removeClass("no-svg").addClass("svg"),wp.svgPainter.init())}),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s="",c=[256],u=[256],l=0,r={atob:function(n){var t;for(m||p(),n=n.replace(/[^A-Za-z0-9\+\/\=]/g,""),n=String(n).split("="),t=n.length;n[--t]=d(n[t],!0,c,s,6,8),0<t;);return n=n.join("")},btoa:function(n){return m||p(),(n=d(n,!1,u,i,8,6))+"====".slice(n.length%4||4)}},{init:function(){a=this,t=e("#adminmenu .wp-menu-image, #wpadminbar .ab-item"),this.setColors(),this.findElements(),this.paint()},setColors:function(n){(n=void 0===n&&void 0!==o._wpColorScheme?o._wpColorScheme:n)&&n.icons&&n.icons.base&&n.icons.current&&n.icons.focus&&(f=n.icons)},findElements:function(){t.each(function(){var n=e(this),t=n.css("background-image");t&&-1!=t.indexOf("data:image/svg+xml;base64")&&g.push(n)})},paint:function(){e.each(g,function(n,t){var e=t.parent().parent();e.hasClass("current")||e.hasClass("wp-has-current-submenu")?a.paintElement(t,"current"):(a.paintElement(t,"base"),e.on("mouseenter",function(){a.paintElement(t,"focus")}).on("mouseleave",function(){o.setTimeout(function(){a.paintElement(t,"base")},100)}))})},paintElement:function(n,t){var e,a,i;if(t&&f.hasOwnProperty(t)&&(i=f[t],i.match(/^(#[0-9a-f]{3}|#[0-9a-f]{6})$/i)&&"none"!==(e=n.data("wp-ui-svg-"+i)))){if(!e){if(!(a=n.css("background-image").match(/.+data:image\/svg\+xml;base64,([A-Za-z0-9\+\/\=]+)/))||!a[1])return void n.data("wp-ui-svg-"+i,"none");try{e=("atob"in o?o:r).atob(a[1])}catch(n){}if(!e)return void n.data("wp-ui-svg-"+i,"none");e=(e=(e=e.replace(/fill="(.+?)"/g,'fill="'+i+'"')).replace(/style="(.+?)"/g,'style="fill:'+i+'"')).replace(/fill:.*?;/g,"fill: "+i+";"),e=("btoa"in o?o:r).btoa(e),n.data("wp-ui-svg-"+i,e)}n.attr("style",'background-image: url("data:image/svg+xml;base64,'+e+'") !important;')}}}}(jQuery,window,document);
window.wp=window.wp||{},wp.svgPainter=function(e,i,n){"use strict";var t,o,a,m,r,s,c,u,l,f={},g=[];function p(){for(;l<256;)m=String.fromCharCode(l),s+=m,u[l]=l,c[l]=r.indexOf(m),++l}function d(n,t,e,a,i,o){for(var r,s=0,c=0,u="",l=0,f=(n=String(n)).length;c<f;){for(s=(s<<i)+(m=(m=n.charCodeAt(c))<256?e[m]:-1),l+=i;o<=l;)l-=o,u+=a.charAt(r=s>>l),s^=r<<l;++c}return!t&&0<l&&(u+=a.charAt(s<<o-l)),u}return e(n).ready(function(){n.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")&&(e(n.body).removeClass("no-svg").addClass("svg"),wp.svgPainter.init())}),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s="",c=[256],u=[256],l=0,o={atob:function(n){var t;for(m||p(),n=n.replace(/[^A-Za-z0-9\+\/\=]/g,""),n=String(n).split("="),t=n.length;n[--t]=d(n[t],!0,c,s,6,8),0<t;);return n=n.join("")},btoa:function(n){return m||p(),(n=d(n,!1,u,r,8,6))+"====".slice(n.length%4||4)}},{init:function(){a=this,t=e("#adminmenu .wp-menu-image, #wpadminbar .ab-item"),this.setColors(),this.findElements(),this.paint()},setColors:function(n){(n=void 0===n&&void 0!==i._wpColorScheme?i._wpColorScheme:n)&&n.icons&&n.icons.base&&n.icons.current&&n.icons.focus&&(f=n.icons)},findElements:function(){t.each(function(){var n=e(this),t=n.css("background-image");t&&-1!=t.indexOf("data:image/svg+xml;base64")&&g.push(n)})},paint:function(){e.each(g,function(n,t){var e=t.parent().parent();e.hasClass("current")||e.hasClass("wp-has-current-submenu")?a.paintElement(t,"current"):(a.paintElement(t,"base"),e.on("mouseenter",function(){a.paintElement(t,"focus")}).on("mouseleave",function(){i.setTimeout(function(){a.paintElement(t,"base")},100)}))})},paintElement:function(n,t){var e,a;if(t&&f.hasOwnProperty(t)&&(a=f[t],a.match(/^(#[0-9a-f]{3}|#[0-9a-f]{6})$/i)&&"none"!==(e=n.data("wp-ui-svg-"+a)))){if(!e){if(!(t=n.css("background-image").match(/.+data:image\/svg\+xml;base64,([A-Za-z0-9\+\/\=]+)/))||!t[1])return void n.data("wp-ui-svg-"+a,"none");try{e=("atob"in i?i:o).atob(t[1])}catch(n){}if(!e)return void n.data("wp-ui-svg-"+a,"none");e=(e=(e=e.replace(/fill="(.+?)"/g,'fill="'+a+'"')).replace(/style="(.+?)"/g,'style="fill:'+a+'"')).replace(/fill:.*?;/g,"fill: "+a+";"),e=("btoa"in i?i:o).btoa(e),n.data("wp-ui-svg-"+a,e)}n.attr("style",'background-image: url("data:image/svg+xml;base64,'+e+'") !important;')}}}}(jQuery,window,document);

View File

@@ -1,2 +1,2 @@
/*! This file is auto-generated */
!function(o){var r=wp.i18n._x(",","tag delimiter")||",";window.array_unique_noempty=function(t){var a=[];return o.each(t,function(t,e){(e=o.trim(e))&&-1===o.inArray(e,a)&&a.push(e)}),a},window.tagBox={clean:function(t){return t=(t=","!==r?t.replace(new RegExp(r,"g"),","):t).replace(/\s*,\s*/g,",").replace(/,+/g,",").replace(/[,\s]+$/,"").replace(/^[,\s]+/,""),t=","!==r?t.replace(/,/g,r):t},parseTags:function(t){var e=t.id.split("-check-num-")[1],a=o(t).closest(".tagsdiv"),i=a.find(".the-tags"),t=i.val().split(r),n=[];return delete t[e],o.each(t,function(t,e){(e=o.trim(e))&&n.push(e)}),i.val(this.clean(n.join(r))),this.quickClicks(a),!1},quickClicks:function(t){var a,e=o(".the-tags",t),i=o(".tagchecklist",t),n=o(t).attr("id");e.length&&(a=e.prop("disabled"),e=e.val().split(r),i.empty(),o.each(e,function(t,e){(e=o.trim(e))&&(e=o("<li />").text(e),a||((t=o('<button type="button" id="'+n+"-check-num-"+t+'" class="ntdelbutton"><span class="remove-tag-icon" aria-hidden="true"></span><span class="screen-reader-text">'+wp.i18n.__("Remove term:")+" "+e.html()+"</span></button>")).on("click keypress",function(t){"click"!==t.type&&13!==t.keyCode&&32!==t.keyCode||(13!==t.keyCode&&32!==t.keyCode||o(this).closest(".tagsdiv").find("input.newtag").trigger("focus"),tagBox.userAction="remove",tagBox.parseTags(this))}),e.prepend("&nbsp;").prepend(t)),i.append(e))}),tagBox.screenReadersMessage())},flushTags:function(t,e,a){var i,n,s=o(".the-tags",t),c=o("input.newtag",t);return void 0===(n=(e=e||!1)?o(e).text():c.val())||""===n||(n=(i=s.val())?i+r+n:n,n=this.clean(n),n=array_unique_noempty(n.split(r)).join(r),s.val(n),this.quickClicks(t),e||c.val(""),void 0===a&&c.trigger("focus")),!1},get:function(a){var i=a.substr(a.indexOf("-")+1);o.post(ajaxurl,{action:"get-tagcloud",tax:i},function(t,e){0!==t&&"success"==e&&(t=o('<div id="tagcloud-'+i+'" class="the-tagcloud">'+t+"</div>"),o("a",t).on("click",function(){return tagBox.userAction="add",tagBox.flushTags(o("#"+i),this),!1}),o("#"+a).after(t))})},userAction:"",screenReadersMessage:function(){var t;switch(this.userAction){case"remove":t=wp.i18n.__("Term removed.");break;case"add":t=wp.i18n.__("Term added.");break;default:return}window.wp.a11y.speak(t,"assertive")},init:function(){var t=o("div.ajaxtag");o(".tagsdiv").each(function(){tagBox.quickClicks(this)}),o(".tagadd",t).on("click",function(){tagBox.userAction="add",tagBox.flushTags(o(this).closest(".tagsdiv"))}),o("input.newtag",t).on("keypress",function(t){13==t.which&&(tagBox.userAction="add",tagBox.flushTags(o(this).closest(".tagsdiv")),t.preventDefault(),t.stopPropagation())}).each(function(t,e){o(e).wpTagsSuggest()}),o("#post").on("submit",function(){o("div.tagsdiv").each(function(){tagBox.flushTags(this,!1,1)})}),o(".tagcloud-link").on("click",function(){tagBox.get(o(this).attr("id")),o(this).attr("aria-expanded","true").off().on("click",function(){o(this).attr("aria-expanded","false"===o(this).attr("aria-expanded")?"true":"false").siblings(".the-tagcloud").toggle()})})}}}(jQuery);
!function(o){var r=wp.i18n._x(",","tag delimiter")||",";window.array_unique_noempty=function(t){var a=[];return o.each(t,function(t,e){(e=o.trim(e))&&-1===o.inArray(e,a)&&a.push(e)}),a},window.tagBox={clean:function(t){return t=(t=","!==r?t.replace(new RegExp(r,"g"),","):t).replace(/\s*,\s*/g,",").replace(/,+/g,",").replace(/[,\s]+$/,"").replace(/^[,\s]+/,""),t=","!==r?t.replace(/,/g,r):t},parseTags:function(t){var e=t.id.split("-check-num-")[1],a=o(t).closest(".tagsdiv"),i=a.find(".the-tags"),t=i.val().split(r),n=[];return delete t[e],o.each(t,function(t,e){(e=o.trim(e))&&n.push(e)}),i.val(this.clean(n.join(r))),this.quickClicks(a),!1},quickClicks:function(t){var a,e=o(".the-tags",t),i=o(".tagchecklist",t),n=o(t).attr("id");e.length&&(a=e.prop("disabled"),e=e.val().split(r),i.empty(),o.each(e,function(t,e){(e=o.trim(e))&&(e=o("<li />").text(e),a||((t=o('<button type="button" id="'+n+"-check-num-"+t+'" class="ntdelbutton"><span class="remove-tag-icon" aria-hidden="true"></span><span class="screen-reader-text">'+wp.i18n.__("Remove term:")+" "+e.html()+"</span></button>")).on("click keypress",function(t){"click"!==t.type&&13!==t.keyCode&&32!==t.keyCode||(13!==t.keyCode&&32!==t.keyCode||o(this).closest(".tagsdiv").find("input.newtag").trigger("focus"),tagBox.userAction="remove",tagBox.parseTags(this))}),e.prepend("&nbsp;").prepend(t)),i.append(e))}),tagBox.screenReadersMessage())},flushTags:function(t,e,a){var i,n,s=o(".the-tags",t),c=o("input.newtag",t);return void 0===(n=(e=e||!1)?o(e).text():c.val())||""===n||(i=s.val(),n=this.clean(n=i?i+r+n:n),n=array_unique_noempty(n.split(r)).join(r),s.val(n),this.quickClicks(t),e||c.val(""),void 0===a&&c.trigger("focus")),!1},get:function(a){var i=a.substr(a.indexOf("-")+1);o.post(ajaxurl,{action:"get-tagcloud",tax:i},function(t,e){0!==t&&"success"==e&&(t=o('<div id="tagcloud-'+i+'" class="the-tagcloud">'+t+"</div>"),o("a",t).on("click",function(){return tagBox.userAction="add",tagBox.flushTags(o("#"+i),this),!1}),o("#"+a).after(t))})},userAction:"",screenReadersMessage:function(){var t;switch(this.userAction){case"remove":t=wp.i18n.__("Term removed.");break;case"add":t=wp.i18n.__("Term added.");break;default:return}window.wp.a11y.speak(t,"assertive")},init:function(){var t=o("div.ajaxtag");o(".tagsdiv").each(function(){tagBox.quickClicks(this)}),o(".tagadd",t).on("click",function(){tagBox.userAction="add",tagBox.flushTags(o(this).closest(".tagsdiv"))}),o("input.newtag",t).on("keypress",function(t){13==t.which&&(tagBox.userAction="add",tagBox.flushTags(o(this).closest(".tagsdiv")),t.preventDefault(),t.stopPropagation())}).each(function(t,e){o(e).wpTagsSuggest()}),o("#post").on("submit",function(){o("div.tagsdiv").each(function(){tagBox.flushTags(this,!1,1)})}),o(".tagcloud-link").on("click",function(){tagBox.get(o(this).attr("id")),o(this).attr("aria-expanded","true").off().on("click",function(){o(this).attr("aria-expanded","false"===o(this).attr("aria-expanded")?"true":"false").siblings(".the-tagcloud").toggle()})})}}}(jQuery);

File diff suppressed because one or more lines are too long

View File

@@ -339,15 +339,6 @@ switch ( $action ) {
wp_save_nav_menu_items( $nav_menu_selected_id, absint( $_REQUEST['menu-item'] ) );
}
// Set the menu_location value correctly for the newly created menu.
foreach ( $menu_locations as $location => $id ) {
if ( 0 === $id ) {
$menu_locations[ $location ] = $nav_menu_selected_id;
}
}
set_theme_mod( 'nav_menu_locations', $menu_locations );
if ( isset( $_REQUEST['zero-menu-state'] ) || ! empty( $_POST['auto-add-pages'] ) ) {
// If there are menu items, add them.
wp_nav_menu_update_menu_items( $nav_menu_selected_id, $nav_menu_selected_title );
@@ -1042,7 +1033,14 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<legend class="menu-settings-group-name howto"><?php _e( 'Display location' ); ?></legend>
<?php
foreach ( $locations as $location => $description ) :
$checked = isset( $menu_locations[ $location ] ) && $menu_locations[ $location ] === $nav_menu_selected_id;
$checked = false;
if ( isset( $menu_locations[ $location ] )
&& 0 !== $nav_menu_selected_id
&& $menu_locations[ $location ] === $nav_menu_selected_id
) {
$checked = true;
}
?>
<div class="menu-settings-input checkbox-input">
<input type="checkbox"<?php checked( $checked ); ?> name="menu-locations[<?php echo esc_attr( $location ); ?>]" id="locations-<?php echo esc_attr( $location ); ?>" value="<?php echo esc_attr( $nav_menu_selected_id ); ?>" />

Some files were not shown because too many files have changed in this diff Show More