Compare commits

...

148 Commits
6.0 ... 5.8.6

Author SHA1 Message Date
Sergey Biryukov
8f1610822d Tag 5.8.6
Built from https://develop.svn.wordpress.org/tags/5.8.6@54602


git-svn-id: http://core.svn.wordpress.org/tags/5.8.6@54156 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-17 20:18:08 +00:00
audrasjb
060a547a9f WordPress 5.8.6.
Built from https://develop.svn.wordpress.org/branches/5.8@54583


git-svn-id: http://core.svn.wordpress.org/branches/5.8@54137 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-17 19:47:19 +00:00
desrosj
74ecc7cf27 Editor: Bump @wordpress packages for 5.8.6.
Package updates for bug fixes:

* @wordpress/block-directory: 2.1.23
* @wordpress/block-library: 3.2.21
* @wordpress/customize-widgets: 1.0.22
* @wordpress/edit-post: 4.1.23
* @wordpress/edit-widgets: 2.1.23
* @wordpress/widgets: 1.1.21
Built from https://develop.svn.wordpress.org/branches/5.8@54565


git-svn-id: http://core.svn.wordpress.org/branches/5.8@54119 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-17 18:11:40 +00:00
audrasjb
d8ffe4fe33 Grouped backports to the 5.8 branch.
- Editor: Bump @wordpress packages for the 5.9 branch,
- Media: Refactor search by filename within the admin,
- REST API: Lockdown post parameter of the terms endpoint,
- Customize: Escape blogname option in underscores templates,
- Query: Validate relation in `WP_Date_Query`,
- Users: Revert use of shared objects for current user,
- Posts, Post types: Apply KSES to post-by-email content,
- General: Validate host on "Are you sure?" screen,
- Posts, Post types: Remove emails from post-by-email logs,
- Pings/trackbacks: Apply KSES to all trackbacks,
- Mail: Reset PHPMailer properties between use,
- Comments: Apply kses when editing comments,
- Widgets: Escape RSS error messages for display.

Merges [54521-54530] to the 5.8 branch.
Props audrasjb, costdev, cu121, dd32, davidbaumwald, ehtis, johnbillion, johnjamesjacoby, martinkrcho, matveb, oztaser, paulkevan, peterwilsoncc, ravipatel, SergeyBiryukov, talldanwp, timothyblynjacobs, tykoted, voldemortensen, vortfu, xknown.

Built from https://develop.svn.wordpress.org/branches/5.8@54548


git-svn-id: http://core.svn.wordpress.org/branches/5.8@54103 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-17 17:48:01 +00:00
Peter Wilson
0bad0b3e48 Security: Introduce strings to indicate support status.
Add strings for use in future maintenance/security releases to indicate the security support status of the version of WordPress.

Two strings are introduced:

* indicating the version of WordPress is not receiving security updates, and,
* indicating the version of WordPress will shortly stop receiving security updates.

This change does not make use of the strings, the purpose is to make them available to translators prior to dropping support of selected versions of WordPress.

Props costdev, chesio, robinwpdeveloper, desrosj, rudlinkon, mukesh27, sumitbagthariya16.
Merges [54322] to the 5.8 branch.
See #56532.

Built from https://develop.svn.wordpress.org/branches/5.8@54432


git-svn-id: http://core.svn.wordpress.org/branches/5.8@53991 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-10 04:51:09 +00:00
desrosj
1fe18d5a70 WordPress 5.8.5.
Built from https://develop.svn.wordpress.org/branches/5.8@53989


git-svn-id: http://core.svn.wordpress.org/branches/5.8@53548 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-08-30 17:27:06 +00:00
Sergey Biryukov
d8dd6b5902 Grouped backports to the 5.8 branch.
- Posts, Post Types: Escape output within `the_meta()`.
- General: Ensure bookmark query limits are numeric.
- Plugins: Escape output in error messages.
- Build/Test Tools: Allow the PHPCS plugin in Composer configuration.

Merges [52412,53958-53960] to the 5.8 branch.
Props tykoted, martinkrcho, xknown, dd32, peterwilsoncc, paulkevan, timothyblynjacobs.

Built from https://develop.svn.wordpress.org/branches/5.8@53965


git-svn-id: http://core.svn.wordpress.org/branches/5.8@53524 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-08-30 15:29:59 +00:00
Sergey Biryukov
45f4c51ec4 Block Patterns: Update the value used for keywords.
Patterns on the [https://wordpress.org/patterns/ Pattern Directory] can have keywords for better discoverability while searching. The way these are stored [69548ff1f0 was changed from a taxonomy to meta value], but the `/wp/v2/pattern-directory/patterns` endpoint was still pulling from that old value.

The correct property to use for this field is `meta.wpop_keywords`, which returns a single string with comma-separated keywords.

Follow-up to [51021].

Props ryelle, TimothyBlynJacobs.
Merges [53665] to the 5.8 branch.
See #56126.
Built from https://develop.svn.wordpress.org/branches/5.8@53675


git-svn-id: http://core.svn.wordpress.org/branches/5.8@53234 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-07-06 16:28:01 +00:00
jorgefilipecosta
e6ce4269a3 Update WordPress packages.
Updates the WordPress packages to their most recent patch versions.

Props xknown, sergey, audrasjb.
Built from https://develop.svn.wordpress.org/branches/5.8@52887


git-svn-id: http://core.svn.wordpress.org/branches/5.8@52476 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-10 22:15:19 +00:00
audrasjb
47e5d13a47 WordPress 5.8.4.
Built from https://develop.svn.wordpress.org/branches/5.8@52880


git-svn-id: http://core.svn.wordpress.org/branches/5.8@52469 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-10 22:08:15 +00:00
audrasjb
d67264d17c External Librairies: Update jQuery.query to version 2.2.3.
This updates the "jquery-query" library from version 2.1.7 to 2.2.3.

Props jorbin, peterwilsoncc, xknown, audrasjb, jorgefilipecosta.
Merges [52844] to the 5.8 branch.

Built from https://develop.svn.wordpress.org/branches/5.8@52848


git-svn-id: http://core.svn.wordpress.org/branches/5.8@52437 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-10 20:49:03 +00:00
desrosj
c4666346ad Post WordPress 5.8.3 version bump.
The 5.8 branch is now 5.8.4 alpha.
Built from https://develop.svn.wordpress.org/branches/5.8@52533


git-svn-id: http://core.svn.wordpress.org/branches/5.8@52123 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-06 20:56:02 +00:00
desrosj
eea95fdec8 WordPress 5.8.3.
Built from https://develop.svn.wordpress.org/branches/5.8@52487


git-svn-id: http://core.svn.wordpress.org/branches/5.8@52079 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-06 18:45:01 +00:00
desrosj
949270aa6f Formatting: Correctly encode ASCII characters in post slugs.
Merges [52457] to the 5.8 branch.
Props zieladam, whyisjake, xknown, peterwilsoncc, desrosj, iandunn.
Built from https://develop.svn.wordpress.org/branches/5.8@52465


git-svn-id: http://core.svn.wordpress.org/branches/5.8@52057 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-06 17:37:02 +00:00
desrosj
66bb979049 Upgrade/Install: Avoid using unserialize() unnecessarily.
Merges [52456] to the 5.8 branch.
Props vortfu, xknown, dd32.
Built from https://develop.svn.wordpress.org/branches/5.8@52463


git-svn-id: http://core.svn.wordpress.org/branches/5.8@52055 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-06 17:29:56 +00:00
desrosj
7d20ea9c50 Query: Improve sanitization within WP_Meta_Query.
Merges [52455] to the 5.8 branch.
Props vortfu, xknown, dd32.
Built from https://develop.svn.wordpress.org/branches/5.8@52461


git-svn-id: http://core.svn.wordpress.org/branches/5.8@52053 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-06 17:25:00 +00:00
desrosj
6f7032dcf4 Query: Improve sanitization within WP_Tax_Query.
Merges [52454] to the 5.8 branch.
Props dd32, xknown, peterwilsoncc, ehtis.
Built from https://develop.svn.wordpress.org/branches/5.8@52459


git-svn-id: http://core.svn.wordpress.org/branches/5.8@52051 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-06 17:22:00 +00:00
desrosj
266c585188 Help/About: Use the correct number of bugs fixed in 5.8.2.
Follow up to [52112].
Built from https://develop.svn.wordpress.org/branches/5.8@52113


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51705 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-11-10 17:05:56 +00:00
desrosj
04a101e4d0 WordPress 5.8.2.
Built from https://develop.svn.wordpress.org/branches/5.8@52112


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51704 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-11-10 17:03:58 +00:00
Dion Hulse
58a71bf8d5 Bump Akismet external to 4.2.1
See #54004.


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51598 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-11-04 02:36:18 +00:00
desrosj
276b489dc9 Post WordPress 5.8.2 RC1 version bump.
Built from https://develop.svn.wordpress.org/branches/5.8@51987


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51576 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-11-02 20:09:57 +00:00
desrosj
4ec018ad06 WordPress 5.8.2 RC1.
Built from https://develop.svn.wordpress.org/branches/5.8@51986


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51575 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-11-02 19:46:58 +00:00
Sergey Biryukov
fb283a3c27 Media: Use WP_Query::get() method to retrieve the posts_per_page value in wp_ajax_query_attachments().
This avoids a PHP notice and ensures that a default value is always provided if none is set by the user.

Follow-up to [51145], [51485].

Props davidwebca, mukesh27, circlecube, desrosj.
Merges [51982] to the 5.8 branch.
Fixes #54129.
Built from https://develop.svn.wordpress.org/branches/5.8@51983


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51572 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-11-02 18:33:59 +00:00
desrosj
dd352f4d54 Script Loader: Correct the number of arguments passed to the closure in enqueue_block_styles_assets().
This avoids an `Uncaught ArgumentCountError: Too few arguments to function {closure}(), 1 passed` PHP fatal error when registering a block style with the `should_load_separate_core_block_assets` filter enabled.

Follow-up to [51471].

Props aristath, shimon246, jrf, gziolo, SergeyBiryukov.
Merges [54323] to the 5.8 branch.
Fixes #54323.
Built from https://develop.svn.wordpress.org/branches/5.8@51981


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51570 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-11-02 18:23:01 +00:00
desrosj
8488afbb66 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.
Merges [51883] to the 5.8 branch.
Fixes #54207. See #50828.
Built from https://develop.svn.wordpress.org/branches/5.8@51948


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51537 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-10-28 19:22:00 +00:00
desrosj
d34152cfae Build/Test Tools: Change the patch version used for testing the 5.6 branch of PHP.
This unpins the version of PHP 5.6.20 used when testing the 5.6 branch of PHP.

Using 5.6.20 was an intentional decision in [49162], as that patch version is the oldest version of PHP 5.6 still supported by WordPress. However, as of September 30, 2021, the `5.6.20` image contains a version of OpenSSL with an expired certificate, sometimes resulting in an expired trust chain.

Props Clorith, hellofromTonya, SergeyBiryukov, desrosj.
Fixes #54223.
Built from https://develop.svn.wordpress.org/branches/5.8@51889


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51482 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-10-05 17:25:02 +00:00
hellofromTonya
211e1f1156 Build/Test Tools: Fix test forward-compatibility layer.
In [51838], the test wrapper methods were not being called due to the names not being recognized as supported PHPUnit "hook" names for fixtures.

This commit:
- Fixes the problem by adding extra camelCase wrappers to the `WP_UnitTestCase` to call the methods in the right order.
- Adds wrappers for the `assertPreConditions()` and `assertPostConditions()` fixture methods to make the backport feature complete for the fixture wrappers.

Test wrapper methods call fix:

By adding method overloads for the PHPUnit native camelCase fixture methods and letting those call the (camelCase) parent method first and only calling the snake_case fixture methods after, the snake_case methods can be supported and the typical run order safeguarded.

As not all test classes will have declared snake_case fixture methods, the snake_case fixture methods are also declared in the `WP_UnitTestCase`. Why? This prevents having to wrap these method calls in `method_exists()` conditions checking for the existence of the snake_case methods in an unknown Test child class. And with the normal inheritance rules in combination with calling the method using `static`, the right method will be called anyway without fatal "calling undeclared method" errors.

Note: While it will be rare, there ''may'' be cases where a test class does not adhere to the normal execution order for fixtures, i.e. for the setup methods, parent first, own code second; and for the teardown methods, own code first, parent second. For example a test class which has "some code - `parent::setUp()` call - some more code" in their `setUp()` method. In those (rare) cases, the execution order of the code will now be changed, which may have side-effects. This rare case will be identified in the dev note.

Follow-up to [51838].

Props bjorsch, swisspidy, jrf, hellofromTonya.
See #53911.
Built from https://develop.svn.wordpress.org/branches/5.8@51861


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51460 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-24 13:20:01 +00:00
desrosj
6d84519fd5 Build/Test Tools: Introduce the PHPUnit Polyfills package for easier cross branch testing.
This backports the PHPUnit Polyfills package and related test infrastructure changes to make it easier for developers to continue testing on multiple versions WordPress while adding tests for newer versions of PHP, which require more modern PHPUnit practices.

One of the changes included is the addition of wrappers for the new snake_case fixture methods in PHPUnit. This allows the native camelCase standard in PHPUnit to be used, but allows for developers to transition to the new naming conventions.

Props hellofromTonya, jrf, SergeyBiryukov, johnbillion, netweb, schlessera, jeherve, lucatume, desrosj.
Merges [51559,51560,51810-51813,51828] to the 5.8 branch.
See #53911.
Built from https://develop.svn.wordpress.org/branches/5.8@51838


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51445 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-21 19:06:00 +00:00
desrosj
4fa7af0ce1 Post WordPress 5.8.1 version bump.
The 5.8 branch is now 5.8.2 alpha.
Built from https://develop.svn.wordpress.org/branches/5.8@51778


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51385 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-09 03:16:02 +00:00
desrosj
87fd7274b4 WordPress 5.8.1.
Built from https://develop.svn.wordpress.org/branches/5.8@51771


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51378 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-09 02:12:58 +00:00
Andrew Ozz
3744b979ad Editor: Revert [51748] and [51649]. They intorduced a bug where wp.editor may be replaced with wp.oldEditor in certain cases.
Props desrosj, davidbinda, azaozz.
Merges [51768] to the 5.8 branch.
Fixes #53762.

Built from https://develop.svn.wordpress.org/branches/5.8@51770


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51377 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-09 02:00:57 +00:00
desrosj
71adb4a0bf Help/About: Update the About page for WordPress 5.8.1.
Props audrasjb, circlecube, mukesh27.
Fixes #54083.
Built from https://develop.svn.wordpress.org/branches/5.8@51767


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51374 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-08 22:51:59 +00:00
Sergey Biryukov
ca5652bc3e Editor: fix the replacement of wp.editor with wp.oldEditor in the inline script outputted when enqueueing the old editor.
Props fullofcaffeine, davidbinda, grantmkin, get_dave, azaozz.
Merges [51748] to the 5.8 branch.
Fixes #53762.
Built from https://develop.svn.wordpress.org/branches/5.8@51749


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51357 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-08 19:24:57 +00:00
Sergey Biryukov
0fdb93612f General: Only use _jsonp_wp_die_handler() for JSONP REST API requests.
Props mdawaffe, peterwilsoncc.
Merges [51740] to the 5.8 branch.
Built from https://develop.svn.wordpress.org/branches/5.8@51741


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51349 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-08 17:21:02 +00:00
Dion Hulse
05277136f6 Bump Akismet external to 4.1.12.
See #54004.


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51340 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-07 02:27:48 +00:00
desrosj
a5a23683a0 Post WordPress 5.8.1 RC1 version bump.
Built from https://develop.svn.wordpress.org/branches/5.8@51723


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51329 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-01 19:57:58 +00:00
desrosj
d71865a750 WordPress 5.8.1 RC1.
Built from https://develop.svn.wordpress.org/branches/5.8@51722


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51328 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-01 19:46:57 +00:00
desrosj
00c29d0f49 Editor: Update block editor packages for WordPress 5.8.1.
The following packages were updated:
- @wordpress/a11y to `3.1.2`
- @wordpress/annotations to `2.1.6`
- @wordpress/api-fetch to `5.1.2`
- @wordpress/autop to `3.1.2`
- @wordpress/babel-preset-default to `6.2.1`
- @wordpress/blob to `3.1.2`
- @wordpress/block-directory to `2.1.21`
- @wordpress/block-editor to `6.1.14`
- @wordpress/block-library to `3.2.19`
- @wordpress/block-serialization-default-parser to `4.1.2`
- @wordpress/blocks to `9.1.8`
- @wordpress/components to `14.1.11`
- @wordpress/compose to `4.1.6`
- @wordpress/core-data to `3.1.12`
- @wordpress/customize-widgets to `1.0.20`
- @wordpress/data-controls to `2.1.6`
- @wordpress/data to `5.1.6`
- @wordpress/date to `4.1.2`
- @wordpress/deprecated to `3.1.2`
- @wordpress/dom-ready to `3.1.2`
- @wordpress/dom to `3.1.5`
- @wordpress/e2e-test-utils to `5.3.1`
- @wordpress/edit-post to `4.1.21`
- @wordpress/edit-widgets to `2.1.21`
- @wordpress/editor to `10.1.17`
- @wordpress/element to `3.1.2`
- @wordpress/escape-html to `2.1.2`
- @wordpress/format-library to `2.1.14`
- @wordpress/html-entities to `3.1.2`
- @wordpress/i18n to `4.1.2`
- @wordpress/icons to `4.0.3`
- @wordpress/interface to `3.1.12`
- @wordpress/keyboard-shortcuts to `2.1.7`
- @wordpress/keycodes to `3.1.2`
- @wordpress/list-reusable-blocks to `2.1.11`
- @wordpress/media-utils to `2.1.2`
- @wordpress/notices to `3.1.6`
- @wordpress/nux to `4.1.11`
- @wordpress/plugins to `3.1.6`
- @wordpress/primitives to `2.1.2`
- @wordpress/priority-queue to `2.1.2`
- @wordpress/react-i18n to `2.1.2`
- @wordpress/redux-routine to `4.1.2`
- @wordpress/reusable-blocks to `2.1.17`
- @wordpress/rich-text to `4.1.6`
- @wordpress/scripts to `16.1.5`
- @wordpress/server-side-render to `2.1.12`
- @wordpress/shortcode to `3.1.2`
- @wordpress/url to `3.1.2`
- @wordpress/viewport to `3.1.6`
- @wordpress/warning to `2.1.2`
- @wordpress/widgets to `1.1.19`
- @wordpress/wordcount to `3.1.2`

Props oandregal, juanmaguitar, gziolo, jblz, talldanwp, ribaricplusplus, peterwisoncc, youknowriad, paaljoachim, kreppar, ellatrix, aristath, walbo, ajlende, kevin940726, mamaduka, ntsekouras, toro_unit, mkaz, joen, noisysocks, zieladam, andraganescu, antonvlasenko, terraling, dariak, vladytimy, circlecube, desrosj.
Merges [51719] to the 5.8 branch.
Fixes #54052, #52818.
Built from https://develop.svn.wordpress.org/branches/5.8@51721


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51327 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-01 19:28:24 +00:00
desrosj
9134e272c6 Customize: Add wp-embed-responsive class to body if using widgets block editor
Appends the wp-embed-responsive class to the body if the widgets block editor is enabled. This fixes a bug preventing embeds (e.g. YouTube embeds) appearing in the widgets block editor.

Props walbo, kevin940726, noisysocks.
Merges [51716] to the 5.8 branch.
Fixes #53609.
Built from https://develop.svn.wordpress.org/branches/5.8@51720


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51326 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-01 19:09:57 +00:00
desrosj
2a23de5be9 Media: Remove documentation detailing specific edge cases in the image_editor_output_format filter.
In [51422], a few specific edge cases were detailed so that developers using the hook were aware of known pitfalls.

These edge cases have been fixed in 5.8.1 through [51653] and [51704], so the documentation is no longer necessary.

Props azaozz, audrasjb.
Merges [51717] to the 5.8 branch.
Fixes #53955.
Built from https://develop.svn.wordpress.org/branches/5.8@51718


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51324 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-01 17:31:58 +00:00
Peter Wilson
bde718d703 Build: Clean css/dist as part of the webpack build step.
Move the cleaning of the `wp-includes/css/dist` folder from `clean:css` to `clean:webpack-assets` to avoid an order of operations issue in which the files were built shortly before been deleted later in the build process.

Follow up to [51689].

Props netweb, ramonopoly, peterwilsoncc.
Merges [51713] to the 5.8 branch.
Fixes #53719.


Built from https://develop.svn.wordpress.org/branches/5.8@51714


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51320 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-01 04:05:58 +00:00
desrosj
9ae8a61247 Media: apply the wp_editor_set_quality filter not only when loading an image in the editor but also when saving an converted image, after the mime-type of the output image has changed.
Props mikeschroder, desrosj, azaozz.
Merges [51704] to the 5.8 branch.
Fixes #53667.
Built from https://develop.svn.wordpress.org/branches/5.8@51712


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51318 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-01 00:44:56 +00:00
desrosj
cc684968ae Widgets: Pass correct context to get_block_categories() calls.
The `get_block_categories()` function expects either a `WP_Post` or a `WP_Block_Editor_Context` instance as the context argument, not a string.

Follow-up to [50996], [50997].

Props Enchiridion, pbearne, audrasjb, SergeyBiryukov.
Merges [51700] to the 5.8 branch.
Fixes #53757.
Built from https://develop.svn.wordpress.org/branches/5.8@51711


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51317 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-01 00:34:58 +00:00
desrosj
a80100db11 Widgets: Show title and media select fields in Accessibility Mode.
This updates the Custom HTML and Media widgets to display the correct fields when adding or editing a widget when using accessibility mode through the Classic Widgets experience.

Follow up to [49973].

Props mark-k, sabernhardt, alexstine, circlecube, audrasjb.
Merges [51701] to the 5.8 branch.
Fixes #53641.
Built from https://develop.svn.wordpress.org/branches/5.8@51710


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51316 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-01 00:29:58 +00:00
desrosj
af2f290084 Media: fix showing of the "Filter Media" filds when replacing an image from the media modal.
Props mhuntdesign, sabernhardt, azaozz.
Merges [51703] to the 5.8 branch.
Fixes #53833.
Built from https://develop.svn.wordpress.org/branches/5.8@51708


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51314 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-01 00:14:59 +00:00
desrosj
03d74022be Coding Standards: Apply some minor alignment fixes.
These are updates caused by running `composer format`.

Follow up to [51653].

Partially merges [51693] to the 5.8 branch.
See #53668.
Built from https://develop.svn.wordpress.org/branches/5.8@51707


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51313 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-01 00:11:57 +00:00
desrosj
c909ee1c74 Media: Fix wp_unique_filename() to check for name collisions with all alternate file names when an image may be converted after uploading. This includes possible collinions with pre-existing images whose sub-sizes/thumbnails are regenerated.
Props ianmjones, azaozz.
Merges [51653] to the 5.8 branch.
Fixes #53668.
Built from https://develop.svn.wordpress.org/branches/5.8@51706


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51312 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-08-31 23:57:59 +00:00
desrosj
dc6b47047b Editor: Conditionally load registered styles for block variations
In WordPress 5.8 we added the ability to only load styles for blocks when these blocks are rendered. However, these optimizations left out block-styles that get added using the register_block_style() function/API.

Props aristath, gziolo.
Merges [51471] to the 5.8 branch.
Fixes #53616.
Built from https://develop.svn.wordpress.org/branches/5.8@51696


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51302 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-08-30 15:37:58 +00:00
desrosj
bbda256d9c Filesystem API: Make sure to only call fread() on non-empty files in PclZip::privAddFile().
This avoids a fatal error on PHP 8 caused by passing a zero value to `fread()` as the `$length` argument, which must be greater than zero.

This commit also amends the previous solution for similar issues elsewhere in the file to ensure consistent type for string values, instead of changing the type from `string` to `bool` when trying to read from an empty file.

Follow-up to [50355].

Props DavidAnderson, jrf, SergeyBiryukov.
Merges [51686] to the 5.8 branch.
Fixes #54036.
Built from https://develop.svn.wordpress.org/branches/5.8@51694


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51300 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-08-30 14:28:57 +00:00
desrosj
ccb796fb1e Build: Remove css/dist in grunt clean command.
Modify the `grunt clean:css` command to include the folder `wp-includes/css/dist` to ensure legacy files do not remain if the built files are removed/relocated.

Props desrosj, netweb., peterwilsoncc.
Merges [51689] to the 5.8 branch.
Fixes #53719.
Built from https://develop.svn.wordpress.org/branches/5.8@51691


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51297 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-08-30 13:40:57 +00:00
desrosj
ff0c04e257 Menus: Save display locations for new menus.
Fixes a bug preventing the locations saving when creating a new menu. Introduced in [50938].

Props dlh, andraganescu, mukesh27, desrosj, peterwilsoncc.
Merges [51688] to the 5.8 branch.
Fixes #53877.
Built from https://develop.svn.wordpress.org/branches/5.8@51690


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51296 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-08-30 13:39:56 +00:00
Peter Wilson
eb0d45bb63 Customize: Prevent collapsing expanded panel/section/control when Esc is pressed on a block editor instance.
This ensures that the current panel is not collapsed when hitting `Esc` with the focus on the widget block editor.

Follow-up to [37347], [39120].

Props gwwar, dlh, SergeyBiryukov.
Merges [51682,51683] to the 5.8 branch.
Fixes #54030.

Built from https://develop.svn.wordpress.org/branches/5.8@51687


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51293 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-08-30 03:30:57 +00:00
desrosj
1660108b59 Editor: Ensure block attribute serialization in PHP matches the JavaScript equivalent.
The `serializeAttributes()` function in JavaScript uses `JSON.stringify`, which does not encode slashes and unicode characters by default. This resulted in the PHP serialization through `json_encode()` producing different results.

This also switches from `json_encode()` to `wp_json_encode()` to prevent failures when any non UTF-8 characters are included.

Props kevinfodness, SergeyBiryukov, timothyblynjacobs.
Merges [51674] to the 5.8 branch.
Fixes #53936.
Built from https://develop.svn.wordpress.org/branches/5.8@51681


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51287 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-08-27 19:09:58 +00:00
desrosj
eded09c12f Build/Test Tools: Use list format when defining environment variables in Docker compose file.
This is the correct formatting detailed in the Docker `compose` documentation examples and helps to avoid ambiguities in the yaml parser when values that may cause warnings.

Props pbrearne, ocean90, johnbillion, desrosj.
Merges [51673] to the 5.8 branch.
Fixes #53820.
Built from https://develop.svn.wordpress.org/branches/5.8@51680


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51286 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-08-27 19:07:58 +00:00
desrosj
24d4730dd1 Editor: Replace the remaining references to wp.editor with wp.oldEditor.
Props zieladam, azaozz.
Merges [51649] to the 5.8 branch.
Fixes #53762.
Built from https://develop.svn.wordpress.org/branches/5.8@51656


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51262 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-08-25 18:49:00 +00:00
desrosj
8718b2cae6 Media: Increase number of media items displayed per page.
Increase the number of media items displayed per page from 40 to 80 to improve the experience for users navigating the library on sites with a large quantity of media in the library.

Props AlGala, antpb, hellofromTonya, joedolson, SergeyBiryukov, wb1234, peterwilsoncc.
Merges [51632] to the 5.8 branch.
Fixes #53827.
Built from https://develop.svn.wordpress.org/branches/5.8@51643


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51249 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-08-19 15:01:57 +00:00
desrosj
8145e21ca2 Media: Fix layout of media library modal on narrow screens.
Reduces the right margin of the media library modal on small and medium width screens to remove excess white-space. On very narrow screens this was preventing the media icons from displaying.

Props andraganescu, desrosj, joedolson, moch11, mukesh27, sabernhardt, SergeyBiryukov, zieladam, peterwilsoncc.
Merges [51631] to the 5.8 branch.
Fixes #53679.
Built from https://develop.svn.wordpress.org/branches/5.8@51642


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51248 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-08-19 15:00:59 +00:00
desrosj
b9d1f9170d Customize: Hide native control on background position field.
Hide the browser's native radio button on the custom background position selector in the Customizer and the legacy background screen. This fixes an issue causing both to display.

Props mukesh27, ravipatel, sabernhardt, walbo, peterwilsoncc.
Merges [51637] to the 5.8 branch.
Fixes #53803.
Built from https://develop.svn.wordpress.org/branches/5.8@51640


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51246 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-08-19 13:47:00 +00:00
desrosj
d6c021e728 Docs: Fix typo in the get_block_editor_settings() description.
Follow-up to [50776].

Props tmatsuur, pbearne, SergeyBiryukov.
Merges [51611] to the 5.8 branch.
Fixes #53922.
Built from https://develop.svn.wordpress.org/branches/5.8@51621


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51227 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-08-16 18:42:57 +00:00
desrosj
0609cdd83c Editor: Preserve the original template keys when preparing a list of page templates.
Previously, the original "404" template key was lost when "Default template" is merged into the available templates array, as the `array_merge()` function renumbers numeric keys. Later, when we merge templates on the client side, this caused duplicate "404" templates to appear in the dropdown.

By replacing the `array_merge()` call with `array_replace()`, we make sure to keep the original numeric keys.

Props Mamaduka, Toro_Unit, youknowriad, SergeyBiryukov.
Merges [51595] to the 5.8 branch.
Fixes #53898.
Built from https://develop.svn.wordpress.org/branches/5.8@51620


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51226 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-08-16 18:41:00 +00:00
desrosj
77cdaf8e92 Menus: Hide bulk-select on new menu page.
Prevent the bulk-select option from displaying when adding a new menu. This also prevents the option from displaying when an administrator first visits the menu page and no menus are set.

Props dlh, sabernhardt, peterwilsoncc.
Merges [51539] to the 5.8 branch.
Fixes #53654.
Built from https://develop.svn.wordpress.org/branches/5.8@51596


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51207 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-08-10 19:36:59 +00:00
desrosj
3616f5bf0b Editor: Prevent block-editor JavaScript loading in other editors.
Add a check to `wp_add_iframed_editor_assets_html()` confirming the edit post screen is using the block-editor before including block-editor specific JavaScript. For the classic and other editors the function returns early without any output.

Props swissspidy, desrosj, peterwilsoncc.
Merges [51540] to the 5.8 branch.
Fixes #53696.
Built from https://develop.svn.wordpress.org/branches/5.8@51593


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51204 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-08-10 16:35:04 +00:00
Peter Wilson
2b90cc4361 Block Editor: Add missing border setting on button block.
This commit fixes a regression on WordPress 5.8 that made the border radius setting on the buttons block disappear.

Props Mamaduka, daisyo, priethor, desrosj, mikeschroder.
Merges [51538] to the 5.8 branch.
Fixes #53697.


Built from https://develop.svn.wordpress.org/branches/5.8@51547


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51158 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-08-05 00:44:58 +00:00
Peter Wilson
e9dd9dddb1 Upgrade/Install: Avoid creating nonce during installation.
This avoids a "Table `wp_options` doesn't exist" database error when trying to create a nonce for password reset button.

When installing and using database-saved salts, `wp_create_nonce()` causes database errors as `wp_salt()` attempts to insert into the not-yet-created options table. Since authentication is not available during installation, we can safely skip creating a nonce.

Follow-up to [39684], [50129].

Props schlessera, swissspidy, sanketchodavadiya, hellofromTonya, SergeyBiryukov.
Merges [51525] to the 5.8 branch.
Fixes #53830.


Built from https://develop.svn.wordpress.org/branches/5.8@51546


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51157 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-08-05 00:33:00 +00:00
desrosj
720a2a7035 Themes: Add "Template Editing" to the list of WordPress theme features.
Follow-up to [meta11158].

Props poena, desrosj, SergeyBiryukov.
Merges [51510] to the 5.8 branch.
Fixes #53556. See #meta5802.
Built from https://develop.svn.wordpress.org/branches/5.8@51516


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51127 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-30 12:24:59 +00:00
desrosj
2c3326126b I18n: Fix broken loop in WP_Theme_JSON_Resolver
Related issue in Gutenberg: https://github.com/WordPress/gutenberg/issues/33552.

The loop in `WP_Theme_JSON_Resolver` to extract translatable paths was broken, as it contained an immediate and unconditional return. This caused the loop to immediately exit again after the first iteration, thus never actually looping.

Follow-up to [50959].

Props schlessera.
Merges [51472] to the 5.8 branch.
Fixes #53738.
Built from https://develop.svn.wordpress.org/branches/5.8@51515


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51126 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-30 12:22:00 +00:00
desrosj
89bd77009b Upgrade/Install: Add files for 5.8 to the $_old_files list that were missed.
Follow up to [51133], [51459].

Props WFMattR, audrasjb, ocean90, johnbillion, pbiron.
Merges [51497] to the 5.8 branch.
Fixes #53702.
Built from https://develop.svn.wordpress.org/branches/5.8@51509


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51120 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-28 13:06:58 +00:00
desrosj
94da59e312 Docs: Correct a comment about WebP constants in wp-includes/compat.php.
Follow-up to [50810], [50814].

Props GaryJ, rtm909, SergeyBiryukov.
Merges [51474] to the 5.8 branch.
Fixes #53680.
Built from https://develop.svn.wordpress.org/branches/5.8@51508


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51119 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-28 13:05:01 +00:00
desrosj
f6b7f4c3e9 Media: Check the posts_per_page value in wp_ajax_query_attachments() before using it as a divisor.
This avoids a "Division by zero" PHP warning if a plugin changes the `posts_per_page` value to zero.

Follow-up to [51145].

Props 2linctools, kapilpaul, audrasjb, SergeyBiryukov.
Merges [51485] to the 5.8 branch.
Fixes #53773.
Built from https://develop.svn.wordpress.org/branches/5.8@51507


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51118 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-28 13:02:58 +00:00
desrosj
a1a9f6c5c6 Help/About: Add / character to <img> and <source> tags.
While this has no effect on void elements in HTML5, it fixes a minor inconsistency with the rest of core.

Follow-up to [47493], [48834], [50556], [51418].

Props radixweb, ankitmaru, TobiasBg, sabernhardt, audrasjb, SergeyBiryukov.
Merges [51473] to the 5.8 branch.
Fixes #53716.
Built from https://develop.svn.wordpress.org/branches/5.8@51506


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51117 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-28 12:55:56 +00:00
desrosj
839f0444e3 External Libraries: Correct the underscore version used when registering.
The correct version is `1.13.1`.

Follow up to [50650], [50778].

Props david.binda.
Merges [51469] to the 5.8 branch.
Fixes #53713.
Built from https://develop.svn.wordpress.org/branches/5.8@51505


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51116 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-28 12:54:58 +00:00
desrosj
34e087e366 External Libraries: Correct the jquery-form version used when registering.
The correct version is `4.3.0`.

Follow up to [50546].

Props david.binda.
Merges [51468] to the 5.8 branch.
Fixes #53714.
Built from https://develop.svn.wordpress.org/branches/5.8@51504


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51115 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-28 12:53:59 +00:00
desrosj
f093f1bbae External Libraries: Correct the hoverIntent version used when registering.
Follow up to [50521].

Props david.binda.
Merges [51467] to the 5.8 branch.
Fixes #53715.
Built from https://develop.svn.wordpress.org/branches/5.8@51503


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51114 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-28 12:52:58 +00:00
desrosj
8de7e19046 Build/Test Tools: Remove the check for changes to version-controlled files in the Test Old Branch workflow.
This workflow does not perform a `git checkout` and is only used to dispatch workflows for old branches, so this check is not needed here.

Merges [51498] to the 5.8 branch.
Fixes #53799.
Built from https://develop.svn.wordpress.org/branches/5.8@51502


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51113 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-28 12:51:00 +00:00
Peter Wilson
ae830d4e4b Bundled Themes: Version Bump 2010, 2011 and 2012.
Version bump three bundled themes to avoid file not found and fatal errors introduced for child themes during the 5.8 release cycle.

* Twenty Ten: Version 3.5 (fatal error & 404)
* Twenty Eleven: Version 3.9 (404)
* Twenty Twelve: Version 3.5 (404)

These updates will be released mid 5.8.1 cycle due to the severity of the issues.

Follow up to [51482,51483].

Props dd32, peterwilsoncc.
Merges [51486] to the 5.8 branch.
Fixes #53777.


Built from https://develop.svn.wordpress.org/branches/5.8@51489


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51100 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-26 03:26:57 +00:00
Peter Wilson
22bbec22de Bundled Themes: Use correct path for loading images in block patterns.
By using `get_template_directory_uri()` instead of `get_stylesheet_directory_uri()`, we make sure to include the images from the parent theme.

This avoids displaying missing images in block patterns when using a child theme of Twenty Ten, Twenty Eleven, or Twenty Twelve.

Follow-up to [51033], [51103], [51106].

Props audrasjb, SergeyBiryukov.
Merges [51483] to the 5.8 branch.
Fixes #53769.


Built from https://develop.svn.wordpress.org/branches/5.8@51488


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51099 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-26 03:24:57 +00:00
Peter Wilson
538f14245c Twenty Ten: Use correct path for loading block patterns.
By using `get_template_directory()` instead of `get_stylesheet_directory()`, we make sure to include the `block-patterns.php` file from the parent theme.

This avoids a PHP fatal error when using a child theme of Twenty Ten.

Follow-up to [51106].

Props ryelle, sabernhardt, loranrendel, SergeyBiryukov.
Merges [51482] to the 5.8 branch.
Fixes #53752.

Built from https://develop.svn.wordpress.org/branches/5.8@51487


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51098 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-26 03:20:59 +00:00
desrosj
3658f5d190 Post WordPress 5.8 version bump.
The 5.8 branch is now 5.8.1-alpha.
Built from https://develop.svn.wordpress.org/branches/5.8@51466


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51077 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-20 17:48:58 +00:00
desrosj
add7651d0b WordPress 5.8.
Built from https://develop.svn.wordpress.org/branches/5.8@51464


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51075 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-20 16:07:00 +00:00
Peter Wilson
ce8a07686a Upgrade/Install: Add additional files to $_old_files for 5.8.
Follow up to [51134].

Props desrosj.
Merges [51459] to the 5.8 branch.
Fixes #53367.


Built from https://develop.svn.wordpress.org/branches/5.8@51460


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51071 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-19 01:27:57 +00:00
Peter Wilson
6b59938770 Build/Test Tools: Update the caniuse browser data and regenerate CSS.
This includes three minor updates to generated CSS files:

- A single `-webkit-` prefix is removed for `min-width`, which was required for Safari <= 10.1 (0.06% total global usage). WordPress only supports the last two versions.
- 2 instances where the `-o-` prefix are added for `tab-size`. This appears to be for Opera Mobile, which has creeped back over the 1% global usage.

Props peterwilsoncc, jorbin, desrosj.
Merges [51456] to the 5.8 branch.
Fixes #53686.

Built from https://develop.svn.wordpress.org/branches/5.8@51458


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51069 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-19 00:56:57 +00:00
desrosj
ee3c9c41bc Bundled Themes: Bump bundled theme versions for WordPress 5.8.
This bumps the version for all bundle themes in preparation for release with WordPress 5.8. The new versions are as follows:

- Twenty Twenty-One: 1.4
- Twenty Twenty: 1.8
- Twenty Nineteen: 2.1
- Twenty Seventeen: 2.8
- Twenty Sixteen: 2.5
- Twenty Fifteen: 3.0
- Twenty Fourteen: 3.2
- Twenty Thirteen: 3.4
- Twenty Twelve: 3.4
- Twenty Eleven: 3.8
- Twenty Ten: 3.4

Props mukesh27, kapilpaul, peterwilsoncc.
Merges [51455] to the 5.8 branch.
Fixes #53277.
Built from https://develop.svn.wordpress.org/branches/5.8@51457


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51068 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-19 00:45:00 +00:00
desrosj
cfde1a37e5 Post WordPress 5.8 RC4 version bump.
Built from https://develop.svn.wordpress.org/branches/5.8@51447


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51058 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-15 22:03:58 +00:00
desrosj
37be93859d WordPress 5.8 RC4.
Built from https://develop.svn.wordpress.org/branches/5.8@51446


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51057 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-15 21:35:57 +00:00
desrosj
a01a99951e Block Editor: Backport fixes targeted for WordPress 5.8 RC4.
This includes:

- Suggestion List: Check if a node exists to scroll into view.
- Autocomplete: reset state for empty text.
- Adds auxiliary class names for editor styles in the widgets editor.
- Extract snackbars into a separate component.
- Rich text: run input rules after composition end.
- iframe: load inline styles.
- Multi select: select all: restore ref callback.
- Writing flow: allow select all from empty selection.
- Post Excerpt: Fix excerpt_more filter conflict and remove wordCount attribute.
- Add the percent unit to the default units in Core. 

Props desrosj, youknowriad.
Merges [51443] to the 5.8 branch.
Fixes #53397.
Built from https://develop.svn.wordpress.org/branches/5.8@51445


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51056 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-15 21:14:20 +00:00
desrosj
3ffa646c8c Media: Document edge cases with the new image_editor_output_format filter.
More testing has revealed that the `image_editor_output_format` filter has some interesting edge cases that developers should be aware of when electing to use this filter (see #53667 and #53668).

Because this is a new filter that was intended to be used for experimenting with different ways to handle generating image sizes and has not yet been adopted in the wild, expanding the inline documentation is an acceptable temporary solution while these edge cases are explored further and addressed.

Props mikeschroder, antpb, desrosj, adamsilverstein, ianmjones.
Merges [51442] to the 5.8 branch.
See #53667, #53668, #35725.
Built from https://develop.svn.wordpress.org/branches/5.8@51444


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51055 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-15 21:10:59 +00:00
desrosj
41fca9e8ba Media: Fix JS error in Media Library when infinite scroll enabled.
Wrap call to this.updateLoadMoreView() is wrapped in a check that infinite scroll is disabled to prevent JS errors.

Props wildworks, joedolson.
Merges [51440] to the 5.8 branch.
Fixes #53672.
Built from https://develop.svn.wordpress.org/branches/5.8@51441


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51052 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-15 17:29:57 +00:00
desrosj
94a93212ba Widgets: Prevent widgets unintentionally being moved to the inactive sidebar.
This fixes a bug where widgets are unintentionally moved to the `wp_inactive_widgets` sidebar when batch updates occur through the REST API.

When batch requests are processed, only `$_wp_sidebars_widgets` is updated by previous calls to `WP_REST_Widgets_Controller::create_item()`. `$sidebars_widgets` is not aware of the new widget’s intended location, and `retrieve_widgets()` mistakenly flags the widget as inactive.

Calling `wp_get_sidebars_widgets()` before `retrieve_widgets()` ensures both global variables match and is intended as a temporary fix until the root cause of the problem can be fixed.

Props zieladam, htmgarcia, timothyblynjacobs.
Merges [51432] to the 5.8 branch.
Fixes #53657.
Built from https://develop.svn.wordpress.org/branches/5.8@51439


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51050 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-15 15:42:58 +00:00
desrosj
d06c747962 Media: When resizing WebP images set the compression to "lossy" by default. Fixes a bug where the compression was set to "lossless" when the uploaded WebP images have extended file format (VP8X).
Props adamsilverstein, mikeschroder, mmxxi, linux4me2, azaozz.
Merges [51435] to the 5.8 branch.
Fixes #53653.
Built from https://develop.svn.wordpress.org/branches/5.8@51437


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51048 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-15 13:01:58 +00:00
desrosj
cb85548d7c Privacy: Ensure the copy button actually copies the suggested privacy policy text.
Follow up to [50609].

Props walbo, SergeyBiryukov.
Merges [51431] to the 5.8 branch.
Fixes #53652. See #52891.
Built from https://develop.svn.wordpress.org/branches/5.8@51433


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51044 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-14 17:14:58 +00:00
desrosj
7cb25d196b Post WordPress 5.8 RC3 version bump.
Built from https://develop.svn.wordpress.org/branches/5.8@51429


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51040 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-14 01:02:56 +00:00
desrosj
73dfd406da WordPress 5.8 RC3.
Built from https://develop.svn.wordpress.org/branches/5.8@51428


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51039 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-14 00:40:58 +00:00
desrosj
82b9b1a3a5 Editor: Second round of package updates ahead of RC3.
Props ellatrix, peterwilsoncc, get_dave, mcsf, talldanwp, youknowriad, desrosj.
Merges [51426] to the 5.8 branch.
Fixes #53397.
Built from https://develop.svn.wordpress.org/branches/5.8@51427


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51038 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-14 00:03:19 +00:00
desrosj
eba698dba1 Widgets: Validate HTML before saving block widgets.
Props talldanwp, noisysocks, kevin940726, peterwilsoncc.
Merges [51414] and [51423] to the 5.8 branch.
Built from https://develop.svn.wordpress.org/branches/5.8@51424


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51035 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-13 18:04:58 +00:00
desrosj
5658a2d03c Block Editor: Include the fixes targeted for WordPress 5.8 RC3.
This includes the following fixes:
 - Safari: see if compositing layer size is more reasonable when position fixed divs are not inserted into content.
 - Site Logo Block: update Site Logo block UI and option syncing.
 - Fix moving inner blocks in the Widgets Customizer.
 - Allow themes to provide empty values for color.duotone and spacing.units
 - Update getTermsInfo() to workaround parsing issue for translatable strings.
 - Specify what settings can be part of settings.layout.
 - Update conditions to hide duotone panel.
 - Prevent entering invalid values in the Query Loop block config.
 - Prevent color panel from showing as empty.
 - Avoid calling gutenberg_ functions within code shipped through WordPress Core.

Props desrosj, youknowriad.
Merges [51421] to the 5.8 branch.
Fixes #53397.
Built from https://develop.svn.wordpress.org/branches/5.8@51422


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51033 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-13 17:15:20 +00:00
ryelle
cfba8e5850 Help/About: Update the About section for 5.8.
Update the image links to use the CDN. Use regular text color for headings. Fix two string issues. Remove unnecessary wp-components script & style.
Use a larger image for theme.json on retina screens, and update the spacing of sections on the page.

Props nao, audrasjb, karmatosed, desrosj, javiarce, milana_cap.
Merges [51413] and [51418] to the 5.8 branch.
See #52775.


Built from https://develop.svn.wordpress.org/branches/5.8@51420


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51031 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-13 16:18:59 +00:00
desrosj
52977d997c Widgets: Replace wp.editor references in the legacy text widget.
This changes the references to `wp.editor` in the text widget’s JavaScript to `wp.oldEditor`, which is the new location for the old `editor` script that was previously available at `window.wp.editor`. 

Follow up to [51387-51388,51390].

Props spacedmonkey, zieladam, SergeyBiryukov.
Merges [51409] to the 5.8 branch.
Fixes #53437.
Built from https://develop.svn.wordpress.org/branches/5.8@51416


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51027 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-13 13:46:04 +00:00
desrosj
7523e1376b Widgets: Use wp_sidebar_description() to retrieve a sidebar’s description.
This switches `WP_REST_Sidebars_Controller` to use `wp_sidebar_description()` for retrieving the description of a given sidebar instead of referencing the value in the `$wp_registered_sidebars` global variable directly.

`wp_sidebar_description()` uses `wp_kses()` to only allow the default list of `$allowed_tags` to be present in a sidebar’s description.

Props timothyblynjacobs, desrosj, SergeyBiryukov.
Merges [51408] to the 5.8 branch.
Fixes #53646.
Built from https://develop.svn.wordpress.org/branches/5.8@51412


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51023 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-13 00:10:58 +00:00
desrosj
acd6e52e4f Docs: Various documentation fixes following [51129].
- Typo corrections in filter descriptions.
- DocBlocks are now now wrapped to the next line after 80 characters, and not extending beyond 120 total characters wide.
- Remove unnecessary repeated references to the suggested replacement hooks.
- Adjustments to the indentation for consistency with other emails in Core, allowing the `phpcs:ignore` comment to be removed. 

Props SergeyBiryukov.
Merges [51410] to the 5.8 branch.
Fixes #44314.
Built from https://develop.svn.wordpress.org/branches/5.8@51411


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51022 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-13 00:07:59 +00:00
desrosj
7e8542281a TinyMCE: ensure initialization runs in all cases on 'interactive' and 'complete' readyState.
Fixes a rare bug when the init code is inserted in the DOM after the page has finished loading.

Props Collizo4sky, azaozz.
Merges [51402] to the 5.8 branch.
Fixes #53632.
Built from https://develop.svn.wordpress.org/branches/5.8@51407


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51018 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-12 13:29:00 +00:00
desrosj
ed40b04676 Bundled Themes: Correct comment formatting in inc/block-patterns.php.
Follow-up to [51045], [51103].

Props kapilpaul, SergeyBiryukov.
See #53359, #52627.
Built from https://develop.svn.wordpress.org/branches/5.8@51406


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51017 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-12 13:27:01 +00:00
desrosj
7a157307d8 Docs: Some documentation improvements for wp_check_widget_editor_deps():
- Add missing short description for the function.
- Correct function names in `_doing_it_wrong()` calls.
- Document the usage of `$wp_scripts` and `$wp_styles` globals.
- Update syntax for multi-line comment per the documentation standards. 

Follow-up to [51387], [51388].

Props SergeyBiryukov.
Merges [51390] to the 5.8 branch.
See #53437, #53569.
Built from https://develop.svn.wordpress.org/branches/5.8@51394


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51005 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-09 17:59:58 +00:00
desrosj
69868c9648 Widgets: Warn when wp-editor script or wp-edit-post style is enqueued in widgets editor
It is common that plugins erroneously have `wp-editor` or `wp-edit-post` as a
dependency in a script that is loaded in the new widgets editor. This is a smell
since both `@wordpress/editor` and `@wordpress/edit-post` assume the existence
of a global "post" object which the widgets editor does not have.

[51387] fixes the user-facing errors typically caused by this mistake, but we
can go a step further and warn developers about this by calling
`_doing_it_wrong()` when we detect that the `wp-editor` script or `wp-edit-post`
style is enqueued alongside `wp-edit-widgets` or `wp-customize-widgets`.

Props zieladam, spacedmonkey, TimothyBlynJacobs, andraganescu, dlh, noisysocks.
Merges [51388] to the 5.8 branch.
Fixes #53569. See #53437.
Built from https://develop.svn.wordpress.org/branches/5.8@51393


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51004 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-09 17:57:59 +00:00
desrosj
5962e1f19f Editor: Merge conflicting wp.editor objects into single, non-conflicting object
The `wp-editor` script (`@wordpress/editor` npm package) is exposed as
`window.wp.editor` in WP Admin. This causes problems, though, as many older
scripts expect to see the older `editor` script available at `window.wp.editor`.

The solution is to export all the members of the older `window.wp.editor` module
in the newer module to maintain backwards compatibility.

Props zieladam, spacedmonkey, TimothyBlynJacobs, andraganescu, noisysocks.
Merges [51387] to the 5.8 branch.
See #53437.
Built from https://develop.svn.wordpress.org/branches/5.8@51392


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51003 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-09 17:54:57 +00:00
desrosj
dda2b793fe Block Editor: Fix for theme.json: color.duotone and spacing.units should allow empty sets.
This commit fixes an issue with the color.duotone & spacing.units in which empty values didn't override previous origins, resulting in that a theme couldn't provide an empty set for this via its theme.json.

Props nosolosw, youknowriad, aristath, jorgefilipecosta.
Merges [51383] to the 5.8 branch.
Fixes #53175.
Built from https://develop.svn.wordpress.org/branches/5.8@51386


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50997 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-09 01:06:58 +00:00
desrosj
54a19b3fb9 REST API: Ensure a sidebar's widgets property is a list.
When a widget is removed from a sidebar, if it was removed from the middle of the list, the widgets property would become an object with numeric keys.

The sidebars controller now forces the widgets property to be a list.

Props walbo, timothyblynjacobs.
Merges [51377] to the 5.8 branch.
Fixes #53612.
Built from https://develop.svn.wordpress.org/branches/5.8@51385


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50996 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-09 01:00:56 +00:00
desrosj
bee64c88cb Script Loader: Update jQuery version to 3.6.0 following the update in [50520].
Props audrasjb, ocean90.
Merges [51380] to the 5.8 branch.
Fixes #52707.
Built from https://develop.svn.wordpress.org/branches/5.8@51384


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50995 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-09 00:59:57 +00:00
Aaron Jorbin
2360563683 Posts: Prevent an empty excerpt when groups and nested column blocks are present.
This improves the logic within excerpt_remove_blocks() to better handle innerBlocks. This prevents an empty excerpt from being returned when core/columns, core/column, and core/group blocks are present.

This issue has been surfaced in the Query Loop block, where excerpts can be set to display.

This introduces the excerpt_allowed_wrapper_blocks filter for controlling which blocks should be considered wrapper blocks.

Wrapper blocks and their nested contents are not stripped by excerpt_remove_blocks(), allowing their contents to appear in generated excerpts.

Backports [51348], [51375], [51378], and [51379] to the 5.8 branch.

Fixes #53604.
Props aristath, jorbin, SergeyBiryukov, desrosj.
Unprops jorbin.



Built from https://develop.svn.wordpress.org/branches/5.8@51382


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50993 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-08 17:28:58 +00:00
desrosj
0ed55411af Tests: Expand tests for get_block_editor_settings().
This adds unit tests to ensure `get_block_editor_settings()` properly maps some previously experimental features to their correct locations in the array of contextualized block editor settings returned by the function.

Follow up to [51149], [51213].

Props felipeelia, SergeyBiryukov.
Merges [51369] to the 5.8 branch.
Fixes #53458.
Built from https://develop.svn.wordpress.org/branches/5.8@51376


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50987 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-07 19:29:57 +00:00
desrosj
904260642f Themes: Remove mention of “FSE” in Core.
“FSE” themes are block themes.

Follow up to [51373].

Unprops desrosj.
Merges [51370-51371] to the 5.8 branch.
Fixes #53497.
Built from https://develop.svn.wordpress.org/branches/5.8@51374


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50985 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-07 19:00:57 +00:00
desrosj
ac2f54268c Themes: Remove mention of “FSE” in Core.
“FSE” themes are block themes.

Props SergeyBiryukov.
Merges [51370-51371] to the 5.8 branch.
Fixes #53497.
Built from https://develop.svn.wordpress.org/branches/5.8@51373


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50984 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-07 18:59:01 +00:00
Dion Hulse
5a656393e5 Bump Akismet external to 4.1.10.
See #53555.


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50976 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-07 01:06:24 +00:00
desrosj
9ed00cd98e Post WordPress 5.8 RC2 version bump.
Built from https://develop.svn.wordpress.org/branches/5.8@51366


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50975 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-07 01:05:58 +00:00
desrosj
dfd1094368 WordPress 5.8 RC2.
Built from https://develop.svn.wordpress.org/branches/5.8@51365


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50974 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-07 00:37:57 +00:00
desrosj
d6d75499ce Themes: Remove inline comment that is not relevant in WordPress Core.
This removes an inline comment block that was added when importing the `WP_Theme_JSON` class in [50959]. The comment is relevant to the code only when viewed within the context of the Gutenberg plugin.

Props nosolosw, jorbin, SergeyBiryukov.
Merges [51352] to the 5.8 branch.
Fixes #53576.
Built from https://develop.svn.wordpress.org/branches/5.8@51364


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50973 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-07 00:07:57 +00:00
Peter Wilson
051e04b3cc Block Editor: Update packages with latest fixes for 5.8 RC2
Includes the following fixes:

- Query Block: Type validation of `WP_Query` parameters.

Props ntsekouras, stevehenty, peterwilsoncc, desrosj.
Merges [51362] to the 5.8 branch.
Fixes #53397.


Built from https://develop.svn.wordpress.org/branches/5.8@51363


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50972 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-07 00:06:17 +00:00
desrosj
dae3e79ad8 Tests: Update the wp-api-generated.js fixture.
Follow up to [51241].

Props johnbillion, peterwilsoncc.
Merges [51351] to the 5.8 branch.
Fixes #53606.
Built from https://develop.svn.wordpress.org/branches/5.8@51361


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50970 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 23:47:58 +00:00
desrosj
2ca8b6ecd7 Help/About: Update the About section for 5.8.
Add the images for About, Freedoms, and Privacy. Update the styles on all About section pages to match the About page style. Fix string issues, missing link wrapper, duplicate copy.

Also updates placeholder links on the page.

Props chanthaboune, kellychoffman, javiarce, ryokuhi, alanjacobmathew, desrosj, SergeyBiryukov, audrasjb.
Merges [51356] and [51359] to the 5.8 branch.
See #52775.
Built from https://develop.svn.wordpress.org/branches/5.8@51360


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50969 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 23:42:59 +00:00
John Blackbourn
24500cc798 Build/Test Tools: Add assertions to ensure version-controlled files are not modified during CI, and fix the grunt clean command.
Some tests and some commands that run during the build steps modify files that are under version control. This adds assertions to ensure that these files don't remain in a modified state after the test runs on CI.

This also fixes the `grunt clean` command which erroneously deletes `script-loader-packages.php`. This file is re-populated during the build, but deleting it during the clean is undesirable.

Merges [51355] to the 5.8 branch.

Fixes #53606

Built from https://develop.svn.wordpress.org/branches/5.8@51357


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50966 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 19:13:57 +00:00
desrosj
bf186a5712 Docs: Correct the @since tag for the user_erasure_fulfillment_email_headers filter.
Props johnbillion.
See #44314, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51354


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50963 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 18:24:57 +00:00
desrosj
636f00b5f2 REST API: Add the $request parameter to methods checking permissions.
This adds the `$request` parameter to the permissions_check() methods within `WP_REST_Widgets_Controller` and adds $request as an allowed parameter to the `permissions_check()` method within `WP_REST_Templates_Controller`.

Even when this parameter is not used by default, it should be implemented to support the class being extended and the method overridden.

Props johnbillion, timothyblynjacobs.
Merges [51349] to the 5.8 branch.
Fixes #53593.
Built from https://develop.svn.wordpress.org/branches/5.8@51350


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50959 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 15:56:59 +00:00
desrosj
c58dfa9dfe Editor: Ensure global styles are loaded in the footer when loading core assets individually.
This fixes the logic in `wp_enqueue_global_styles()` to ensure that global styles are loaded in the footer when a site opts-in to loading Core block assets individually.

This fixes a bug where styles defined in `themes.json` are not respected.

Props walbo, nosolosw, mcsf, aristath, desrosj, jorbin.
Merges [51309] to the 5.8 branch.
Fixes #53494.
Built from https://develop.svn.wordpress.org/branches/5.8@51347


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50956 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 15:17:59 +00:00
desrosj
fcfaf186fa Block Editor: Update packages with latest fixes for 5.8 RC2
Includes the following fixes:

- [Block Library]: Less warnings when blocks try to render themselves.
- Reset z-index on focused widget form
- Refactor appender margin.
- Fix slash inserter for widgets screen.
- Widget screens: set html block as freeform content handler.
- Widget Block: widget_id is undefined when a widget is placed.
- Add <CopyHandler> to WidgetAreasBlockEditorProvider
- Add width: 100% to components-base-control inside wp-block-legacy-widget
- [Widgets editor] Replace the "technical" error notice a more user-friendly one
- Fix legacy widget height overflow
- Fix "Select all" behavior in the editor
- Increase specificity of the NoPreview CSS rules to avoid conflicts with theme styles
- Fix move to widget area checkmark
- Replace legacy widget icon with its new version
- [Block Library - Query Loop]: Set default block variations not to inherit from global query 

Merges [51344] to the 5.8 branch.
Fixes #53397.
Built from https://develop.svn.wordpress.org/branches/5.8@51346


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50955 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 15:16:19 +00:00
Aaron Jorbin
21ec6417a4 Bundled Themes: Correct customzier typo.
Merges [51343] to 5.8 branch.

This was found in Twenty Twenty-One and Twenty Nineteen.

Props audrasjb, spytzo, sabernhardt, desrosj.
Fixes #53598.

Built from https://develop.svn.wordpress.org/branches/5.8@51345


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50954 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 14:47:58 +00:00
desrosj
65474b08f6 Docs: Correct @see references for hooks in the get_option() description.
Follow-up to [51050].

Props SergeyBiryukov.
Merges [51324] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51340


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50949 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 12:44:58 +00:00
desrosj
fa62b16d6d Bundled Themes: Correct @since tags for block patterns.
Follow-up to [49347], [49348], [49583], [49584], [49763], [51103].

Props SergeyBiryukov.
Merges [51324] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51339


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50948 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 12:41:02 +00:00
desrosj
474bb753b3 Twenty Twenty: Add missing documentation for some filters.
Add missing `@since` tags for some functions.

Correct alignment of some `@param` tags.

Follow-up to [46271], [46278], [51304].

Props SergeyBiryukov.
Merges [51322] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51338


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50947 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 12:35:57 +00:00
desrosj
6641ddca11 Twenty Twenty-One: Ensure the dropdown arrow displays for <select> elements when focused.
Props isabel_brison, zieladam, poena.
Merges [51296] to the 5.8 branch.
Fixes #53560.
Built from https://develop.svn.wordpress.org/branches/5.8@51336


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50945 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 12:29:57 +00:00
desrosj
0d0a8817d6 Update the IRC link from Freenode to Libera.chat.
Update follows the update to https://make.wordpress.org/support/handbook/appendix/other-support-locations/introduction-to-irc/.

Fixes #53590.
Props empatogen, audrasjb, jorbin.
Built from https://develop.svn.wordpress.org/branches/5.8@51334


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50943 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 12:23:58 +00:00
Aaron Jorbin
782af9f9d5 Remove unnecessary function_exists check in get_the_block_template_html
Merges [51321] to the 5.8 branch. Reviewed by SergeyBiryukov.

WordPress can be confident that WordPress functions exist.

I forgot this function existed.
And I thought that it would fatal, but it didn't
And it was so nice
So peaceful and quiet
I forgot this function existed
It isn't love, it isn't hate, it's just indifference

Introduced in [51003].

Props walbo.
Fixes #53578. See #53176.


Built from https://develop.svn.wordpress.org/branches/5.8@51325


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50934 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-03 15:15:56 +00:00
desrosj
47c74865db Twenty Twenty-One: Add missing documentation for some filters.
Add missing `@since` tags for some functions.

Follow-up to [49216], [49220], [49854], [51294].

Props SergeyBiryukov.
Merges [51304] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51320


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50929 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 19:08:57 +00:00
desrosj
b6c637f5d4 Twenty Twenty-One: Improve documentation per the documentation standards:
- Remove unnecessary `@access` tags that were previously removed from core.
- Remove an empty line between `@param` and `@return` tags.
- Correct alignment of `@param` tags. 

Follow-up to [41161], [41162], [41168], [49216], [49220].

Props SergeyBiryukov.
Merges [51294] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51319


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50928 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 19:06:57 +00:00
desrosj
23805b2511 Docs: Improve documentation for optional parameters in WP_Theme_JSON methods per the documentation standards.
Additionally:

- Remove an empty line between `@param` and `@return` tags.
- Correct alignment of `@param` tags. 

Follow-up to [50959], [50973], [51149], [51284], [51289].

Props SergeyBiryukov.
Merges [51292] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51318


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50927 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 19:05:57 +00:00
desrosj
aacf626adf Docs: Remove an empty line between @param and @return tags in some newly added REST API methods, per the documentation standards.
Follow-up to [48242], [49925], [51003], [51021].

Props SergeyBiryukov.
Merges [51289] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51317


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50926 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 19:04:56 +00:00
desrosj
f51b2d6845 Docs: List the expected type first instead of WP_Error in some REST API methods added in 5.8.
Follow-up to [46696], [49929], [50995], [51021].

Props SergeyBiryukov.
Merges [51286] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51316


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50925 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 19:03:57 +00:00
desrosj
872b22de7a Docs: Improve documentation for optional parameters in WP_Theme_JSON_Resolver methods per the documentation standards.
Move `add_action()` call to `wp-includes/default-filters.php`.

Follow-up to [50959], [51221].

Props SergeyBiryukov.
Merges [51284] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51315


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50924 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 19:02:58 +00:00
desrosj
9870ce6213 Docs: Add missing @since tags for some WP_Theme_JSON methods.
Docs: Update syntax for multi-line comments per the documentation standards.

Follow-up to [50959], [50967], [50973], [51051], [51089], [51149].

Props SergeyBiryukov.
Merges [51283] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51314


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50923 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 19:00:57 +00:00
desrosj
6dafb3154f Docs: Adjust wp_dashboard_browser_nag() DocBlock per the documentation standards.
Follow-up to [51117], [51119], [51120].

Props SergeyBiryukov.
Merges [51282] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51313


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50922 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 18:59:56 +00:00
desrosj
6673ddf2a1 Docs: Add @ticket references to some WP_Theme_JSON tests.
Follow-up to [50973], [51054].

Props SergeyBiryukov.
Merges [51280] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51312


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50921 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 18:58:58 +00:00
desrosj
20b93039f3 Docs: Add missing @since tags for some REST API methods added in 5.8.
Follow-up to [50995], [51021].

Props SergeyBiryukov.
Merges [51280] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51311


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50920 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 18:55:00 +00:00
desrosj
8d871746a4 Docs: Document the globals used in WP_REST_Widget_Types_Controller and WP_REST_Widgets_Controller.
Follow-up to [50995].

Props SergeyBiryukov.
Merges [51279] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51310


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50919 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 18:53:00 +00:00
desrosj
07533bff1e Editor: Ensure the Query block pattern category is translatable.
Because the `__()` translation function was used here, the Query block pattern category string is not translatable. `_x()` is the correct function here as that passes the second parameter as context and not text domain.

Follow up to [50948].

Props walbo.
Merges [51307] to the 5.8 branch.
Fixes #53577.
Built from https://develop.svn.wordpress.org/branches/5.8@51308


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50917 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 18:38:57 +00:00
desrosj
4522b57280 Coding Standards: Add missing visibility keywords to WP_Theme, WP_Theme_JSON, and WP_Theme_JSON_Resolver tests.
Follow-up to [50959], [50960], [50967].

Props SergeyBiryukov.
Merges [51287] to the 5.8 branch.
Fixes #52627.
Built from https://develop.svn.wordpress.org/branches/5.8@51305


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50914 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 12:25:58 +00:00
desrosj
fe3ecbcade Docs: Correct documentation for rest_{$post_type}_query and rest_{$taxonomy}_query` filters.
Synchronize documentation for related `rest_{$object_type}_query` filters for consistency.

Props dlh.
Merges [51293] to the 5.8 branch.
Fixes #53568.
Built from https://develop.svn.wordpress.org/branches/5.8@51295


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50904 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-01 18:51:02 +00:00
desrosj
0420eac464 Script Loader: Revert [51267].
This was missed in [51268] when reverting [51259-51260,51265].

Props pbiron.
Merges [51288] to the 5.8 branch.
See #53397.
Built from https://develop.svn.wordpress.org/branches/5.8@51291


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50900 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-30 18:48:58 +00:00
desrosj
337cfb97c1 REST API: Allow multiple widgets to be deleted in a single batch request.
This resets the `WP_Widget::$updated` flag when deleting a widget, to avoid blocking all future updates in a request.

Props noisysocks, andraganescu.
Merges [51277] to the 5.8 branch.
Fixes #53557.
Built from https://develop.svn.wordpress.org/branches/5.8@51290


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50899 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-30 18:47:01 +00:00
Peter Wilson
e59db27f8c Security: Add 5.8 to the list of versions receiving security updates.
Props desrosj.
Merges [51274] to the 5.8 branch.

Built from https://develop.svn.wordpress.org/branches/5.8@51275


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50884 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-30 04:14:49 +00:00
desrosj
7df5273e8b Branch 5.8
Built from https://develop.svn.wordpress.org/branches/5.8@51271


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50880 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-30 03:53:09 +00:00
275 changed files with 4113 additions and 2167 deletions

View File

@@ -76,7 +76,7 @@
<dt><a href="https://wordpress.org/support/forums/">WordPress Support Forums</a></dt>
<dd>If you&#8217;ve looked everywhere and still can&#8217;t find an answer, the support forums are very active and have a large community ready to help. To help them help you be sure to use a descriptive thread title and describe your question in as much detail as possible.</dd>
<dt><a href="https://make.wordpress.org/support/handbook/appendix/other-support-locations/introduction-to-irc/">WordPress <abbr>IRC</abbr> (Internet Relay Chat) Channel</a></dt>
<dd>There is an online chat channel that is used for discussion among people who use WordPress and occasionally support topics. The above wiki page should point you in the right direction. (<a href="irc://irc.freenode.net/wordpress">irc.freenode.net #wordpress</a>)</dd>
<dd>There is an online chat channel that is used for discussion among people who use WordPress and occasionally support topics. The above wiki page should point you in the right direction. (<a href="https://web.libera.chat/#wordpress">irc.libera.chat #wordpress</a>)</dd>
</dl>
<h2>Final Notes</h2>

View File

@@ -9,9 +9,6 @@
/** 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' );
@@ -43,14 +40,154 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<hr />
<div class="about__section changelog">
<div class="column">
<h2><?php _e( 'Maintenance and Security Releases' ); ?></h2>
<p>
<?php
printf(
/* translators: %s: WordPress version number. */
__( '<strong>Version %s</strong> addressed some security issues.' ),
'5.8.6'
);
?>
<?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.8.6' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: %s: WordPress version number. */
__( '<strong>Version %s</strong> addressed some security issues.' ),
'5.8.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.8.5' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: %s: WordPress version number. */
__( '<strong>Version %s</strong> addressed some security issues.' ),
'5.8.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.8.4' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: %s: WordPress version number. */
__( '<strong>Version %s</strong> addressed some security issues.' ),
'5.8.3'
);
?>
<?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.8.3' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: 1: WordPress version number, 2: plural number of bugs. */
_n(
'<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
'<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.',
2
),
'5.8.2',
number_format_i18n( 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.8.2' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: 1: WordPress version number, 2: plural number of bugs. */
_n(
'<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
'<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.',
60
),
'5.8.1',
number_format_i18n( 60 )
);
?>
<?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.8.1' )
)
);
?>
</p>
</div>
</div>
<hr class="is-large" />
<div class="about__section">
<h2 class="aligncenter has-accent-color">
<h2 class="aligncenter">
<?php _e( 'Three Essential Powerhouses' ); ?>
</h2>
</div>
<div class="about__section has-2-columns is-wider-left">
<div class="column about__image has-subtle-background-color"></div>
<div class="column about__image is-vertically-aligned-center">
<img src="https://s.w.org/images/core/5.8/about-widgets-blocks.png" alt="" />
</div>
<div class="column">
<h3>
<?php _e( 'Manage Widgets with Blocks' ); ?>
@@ -60,37 +197,31 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
printf(
/* translators: %s: Widgets dev note link. */
__( 'After months of hard work, the power of blocks has come to both the Block Widgets Editor and the Customizer. Now you can add blocks both in widget areas across your site and with live preview through the Customizer. This opens up new possibilities to create content: from no-code mini layouts to the vast library of core and third-party blocks. For our developers, you can find more details in the <a href="%s">Widgets dev note</a>.' ),
'#'
'https://make.wordpress.org/core/2021/06/29/block-based-widgets-editor-in-wordpress-5-8/'
);
?>
</p>
</div>
</div>
<hr />
<div class="about__section has-2-columns is-wider-right">
<div class="column">
<h3>
<?php _e( 'Display Posts with New Blocks and Patterns' ); ?>
</h3>
<p>
<?php
printf(
/* translators: %s: Query Loop dev note link. */
__( 'The Query Loop Block makes it possible to display posts based on specified parameters; like a PHP loop without the code. Easily display posts from a specific category, to do things like create a portfolio or a page full of your favorite recipes. Think of it as a more complex and powerful Latest Posts Block! Plus, pattern suggestions make it easier than ever to create a list of posts with the design you want. For our theme authors, learn more about experimenting with this awesome tool in the <a href="%s">Query Loop Block dev note</a>.' ),
'#'
);
?>
<?php _e( 'The Query Loop Block makes it possible to display posts based on specified parameters; like a PHP loop without the code. Easily display posts from a specific category, to do things like create a portfolio or a page full of your favorite recipes. Think of it as a more complex and powerful Latest Posts Block! Plus, pattern suggestions make it easier than ever to create a list of posts with the design you want.' ); ?>
</p>
</div>
<div class="column about__image has-subtle-background-color"></div>
<div class="column about__image is-vertically-aligned-center">
<img src="https://s.w.org/images/core/5.8/about-query-loop.png" alt="" />
</div>
</div>
<hr />
<div class="about__section has-2-columns is-wider-left">
<div class="column about__image has-subtle-background-color"></div>
<div class="column about__image is-vertically-aligned-center">
<img src="https://s.w.org/images/core/5.8/about-template.png" alt="" />
</div>
<div class="column">
<h3>
<?php _e( 'Edit the Templates Around Posts' ); ?>
@@ -106,13 +237,15 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<hr class="is-large" />
<div class="about__section">
<h2 class="aligncenter has-accent-color">
<h2 class="aligncenter">
<?php _e( 'Three Workflow Helpers' ); ?>
</h2>
</div>
<div class="about__section has-2-columns is-wider-left">
<div class="column about__image has-subtle-background-color"></div>
<div class="column about__image is-vertically-aligned-center">
<img src="https://s.w.org/images/core/5.8/about-list-view.png" alt="" />
</div>
<div class="column">
<h3>
<?php _e( 'Overview of the Page Structure' ); ?>
@@ -125,8 +258,6 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
</div>
</div>
<hr />
<div class="about__section has-2-columns is-wider-right">
<div class="column">
<h3>
@@ -138,13 +269,15 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
?>
</p>
</div>
<div class="column about__image has-subtle-background-color"></div>
<div class="column about__image is-vertically-aligned-center">
<img src="https://s.w.org/images/core/5.8/about-pattern-suggestions.png" alt="" />
</div>
</div>
<hr />
<div class="about__section has-2-columns is-wider-left">
<div class="column about__image has-subtle-background-color"></div>
<div class="column about__image is-vertically-aligned-center">
<img src="https://s.w.org/images/core/5.8/about-duotone.png" alt="" />
</div>
<div class="column">
<h3>
<?php _e( 'Style and Colorize Images' ); ?>
@@ -160,10 +293,15 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<hr class="is-large" />
<div class="about__section">
<h2 class="aligncenter has-accent-color">
<h2 class="aligncenter" style="margin-bottom:0;">
<?php _e( 'For Developers to Explore' ); ?>
</h2>
<div class="column about__image has-subtle-background-color" style="margin:32px 0;height:360px;"></div>
<div class="column about__image is-vertically-aligned-center">
<picture>
<source srcset="https://s.w.org/images/core/5.8/about-theme-json.png, https://s.w.org/images/core/5.8/about-theme-json-2x.png 2x" />
<img src="https://s.w.org/images/core/5.8/about-theme-json.png" alt="" />
</picture>
</div>
</div>
<div class="about__section has-1-column">
@@ -173,14 +311,16 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
</h3>
<p>
<?php
_e( 'Introducing the Global Styles and Global Settings APIs: control the editor settings, available customization tools, and style blocks using a theme.json file in the active theme. This configuration file enables or disables features and sets default styles for both a website and blocks. If you build themes, you can experiment with this early iteration of a useful new feature. For more about what is currently available and how it works, check out this dev note.' );
printf(
/* translators: %s: Theme.json dev note link. */
__( 'Introducing the Global Styles and Global Settings APIs: control the editor settings, available customization tools, and style blocks using a theme.json file in the active theme. This configuration file enables or disables features and sets default styles for both a website and blocks. If you build themes, you can experiment with this early iteration of a useful new feature. For more about what is currently available and how it works, <a href="%s">check out this dev note</a>.' ),
'https://make.wordpress.org/core/2021/06/25/introducing-theme-json-in-wordpress-5-8/'
);
?>
</p>
</div>
</div>
<hr />
<div class="about__section has-3-columns">
<div class="column">
<h3>
@@ -213,8 +353,8 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<p>
<?php
printf(
/* translators: %1$s: Link to 5.6's block dev notes. %2$s: Link to 5.7's block dev notes. %1$s: Link to 5.8's block dev notes. */
__( 'Expanding on previously implemented block supports in WordPress <a href="%1$s">5.6</a> and <a href="%2$s">5.7</a>, WordPress 5.8 introduces several new block <code>supports</code> flags and new options to customize your registered blocks. More information is available in the <a href="%3$s">block supports dev note</a>.' ),
/* translators: %1$s: Link to 5.6's block dev notes. %2$s: Link to 5.7's block dev notes. %3$s: Link to 5.8's block dev notes. */
__( 'Expanding on previously implemented block supports in WordPress <a href="%1$s">5.6</a> and <a href="%2$s">5.7</a>, WordPress 5.8 introduces several new block support flags and new options to customize your registered blocks. More information is available in the <a href="%3$s">block supports dev note</a>.' ),
'https://make.wordpress.org/core/2020/11/18/block-supports-in-wordpress-5-6/',
'https://make.wordpress.org/core/2021/02/24/changes-to-block-editor-components-and-blocks/',
'https://make.wordpress.org/core/2021/06/25/block-supports-api-updates-for-wordpress-5-8/'
@@ -234,7 +374,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
printf(
/* translators: %s: WordPress 5.8 Field Guide link. */
__( 'Check out the latest version of the WordPress Field Guide. It highlights developer notes for each change you may want to be aware of. <a href="%s">WordPress 5.8 Field Guide.</a>' ),
'#'
'https://make.wordpress.org/core/2021/07/03/wordpress-5-8-field-guide/'
);
?>
</p>
@@ -294,3 +434,9 @@ _n_noop(
/* translators: %s: Documentation URL. */
__( 'For more information, see <a href="%s">the release notes</a>.' );
/* translators: 1: WordPress version number, 2: Link to update WordPress */
__( 'Important! Your version of WordPress (%1$s) is no longer supported, you will not receive any security updates for your website. To keep your site secure, please <a href="%2$s">update to the latest version of WordPress</a>.' );
/* translators: 1: WordPress version number, 2: Link to update WordPress */
__( 'Important! Your version of WordPress (%1$s) will stop receiving security updates in the near future. To keep your site secure, please <a href="%2$s">update to the latest version of WordPress</a>.' );

View File

@@ -39,34 +39,28 @@ $credits = wp_credits();
</nav>
</div>
<div class="about__section is-feature">
<div class="about__section has-1-column">
<div class="column aligncenter">
<?php if ( ! $credits ) : ?>
<p>
<?php
printf(
/* translators: 1: https://wordpress.org/about/, 2: https://make.wordpress.org/ */
__( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ),
__( 'https://wordpress.org/about/' ),
__( 'https://make.wordpress.org/' )
/* translators: 1: https://wordpress.org/about/ */
__( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals.' ),
__( 'https://wordpress.org/about/' )
);
?>
<br />
<a href="https://make.wordpress.org/"><?php _e( 'Get involved in WordPress.' ); ?></a>
</p>
<?php else : ?>
<p>
<?php _e( 'WordPress is created by a worldwide team of passionate individuals.' ); ?>
</p>
<p>
<?php
printf(
/* translators: %s: https://make.wordpress.org/ */
__( 'Want to see your name in lights on this page? <a href="%s">Get involved in WordPress</a>.' ),
__( 'https://make.wordpress.org/' )
);
?>
<?php _e( 'Want to see your name in lights on this page?' ); ?>
<br />
<a href="https://make.wordpress.org/"><?php _e( 'Get involved in WordPress.' ); ?></a>
</p>
<?php endif; ?>

View File

@@ -792,16 +792,16 @@
.about__section .wp-person-avatar {
display: block;
margin: 0 auto calc(var(--gap) / 2);
width: 160px;
height: 160px;
width: 140px;
height: 140px;
border-radius: 100%;
overflow: hidden;
background: var(--accent-1);
}
.about__section .wp-person .gravatar {
width: 160px;
height: 160px;
width: 140px;
height: 140px;
filter: grayscale(100%);
mix-blend-mode: screen;
}
@@ -880,8 +880,9 @@
3.0 - Freedoms Page
------------------------------------------------------------------------------*/
.about__section .column .freedoms-image {
margin-bottom: 1em;
.about__section .column .freedom-image {
margin-bottom: var(--gap);
max-height: 140px;
}

File diff suppressed because one or more lines are too long

View File

@@ -791,16 +791,16 @@
.about__section .wp-person-avatar {
display: block;
margin: 0 auto calc(var(--gap) / 2);
width: 160px;
height: 160px;
width: 140px;
height: 140px;
border-radius: 100%;
overflow: hidden;
background: var(--accent-1);
}
.about__section .wp-person .gravatar {
width: 160px;
height: 160px;
width: 140px;
height: 140px;
filter: grayscale(100%);
mix-blend-mode: screen;
}
@@ -879,8 +879,9 @@
3.0 - Freedoms Page
------------------------------------------------------------------------------*/
.about__section .column .freedoms-image {
margin-bottom: 1em;
.about__section .column .freedom-image {
margin-bottom: var(--gap);
max-height: 140px;
}

File diff suppressed because one or more lines are too long

View File

@@ -3154,6 +3154,7 @@ img {
font-size: 13px;
background: #f6f7f7;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
}

File diff suppressed because one or more lines are too long

View File

@@ -3153,6 +3153,7 @@ img {
font-size: 13px;
background: #f6f7f7;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
}

File diff suppressed because one or more lines are too long

View File

@@ -1579,6 +1579,7 @@ p.customize-section-description {
font-size: 12px;
padding: 6px 8px;
-moz-tab-size: 2;
-o-tab-size: 2;
tab-size: 2;
}
.customize-control-code_editor textarea,

File diff suppressed because one or more lines are too long

View File

@@ -1578,6 +1578,7 @@ p.customize-section-description {
font-size: 12px;
padding: 6px 8px;
-moz-tab-size: 2;
-o-tab-size: 2;
tab-size: 2;
}
.customize-control-code_editor textarea,

File diff suppressed because one or more lines are too long

View File

@@ -976,6 +976,10 @@ form#tags-filter {
margin: 0 0 1em;
}
.privacy-text-copy span {
pointer-events: none;
}
.privacy-settings-accordion-panel .wp-suggested-text > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help):not(.privacy-text-copy):not(span.success):not(.notice p),
.privacy-settings-accordion-panel .wp-suggested-text div > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help):not(.privacy-text-copy):not(span.success):not(.notice p),
.privacy-settings-accordion-panel > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help):not(.privacy-text-copy):not(span.success):not(.notice p),

File diff suppressed because one or more lines are too long

View File

@@ -975,6 +975,10 @@ form#tags-filter {
margin: 0 0 1em;
}
.privacy-text-copy span {
pointer-events: none;
}
.privacy-settings-accordion-panel .wp-suggested-text > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help):not(.privacy-text-copy):not(span.success):not(.notice p),
.privacy-settings-accordion-panel .wp-suggested-text div > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help):not(.privacy-text-copy):not(span.success):not(.notice p),
.privacy-settings-accordion-panel > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help):not(.privacy-text-copy):not(span.success):not(.notice p),

File diff suppressed because one or more lines are too long

View File

@@ -144,6 +144,10 @@ if ( is_rtl() ) {
}
$body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_user_locale() ) ) );
if ( wp_use_widgets_block_editor() ) {
$body_class .= ' wp-embed-responsive';
}
$admin_title = sprintf( $wp_customize->get_document_title_template(), __( 'Loading&hellip;' ) );
?>

View File

@@ -119,7 +119,7 @@ wp_add_inline_script(
* besides the default value.
*/
$available_templates = wp_get_theme()->get_page_templates( get_post( $post->ID ) );
$available_templates = ! empty( $available_templates ) ? array_merge(
$available_templates = ! empty( $available_templates ) ? array_replace(
array(
/** This filter is documented in wp-admin/includes/meta-boxes.php */
'' => apply_filters( 'default_page_template_title', __( 'Default template' ), 'rest-api' ),

View File

@@ -42,38 +42,36 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
</nav>
</div>
<div class="about__section has-subtle-background-color is-feature">
<div class="about__section is-feature">
<p class="about-description">
<?php
printf(
/* translators: %s: https://wordpress.org/about/license/ */
__( 'WordPress is Free and open source software, built by a distributed community of mostly volunteer developers from around the world. WordPress comes with some awesome, worldview-changing rights courtesy of its <a href="%s">license</a>, the GPL.' ),
__( 'WordPress comes with some awesome, worldview-changing rights courtesy of its <a href="%s">license</a>, the GPL.' ),
__( 'https://wordpress.org/about/license/' )
);
?>
</p>
</div>
<hr />
<div class="about__section has-4-columns">
<div class="column">
<div class="freedoms-image"></div>
<div class="about__section has-2-columns">
<div class="column aligncenter">
<img class="freedom-image" src="<?php echo esc_url( admin_url( 'images/freedom-1.svg' ) ); ?>" alt="" />
<h2 class="is-smaller-heading"><?php _e( 'The 1st Freedom' ); ?></h2>
<p><?php _e( 'To run the program for any purpose.' ); ?></p>
</div>
<div class="column">
<div class="freedoms-image"></div>
<div class="column aligncenter">
<img class="freedom-image" src="<?php echo esc_url( admin_url( 'images/freedom-2.svg' ) ); ?>" alt="" />
<h2 class="is-smaller-heading"><?php _e( 'The 2nd Freedom' ); ?></h2>
<p><?php _e( 'To study how the program works and change it to make it do what you wish.' ); ?></p>
</div>
<div class="column">
<div class="freedoms-image"></div>
<div class="column aligncenter">
<img class="freedom-image" src="<?php echo esc_url( admin_url( 'images/freedom-3.svg' ) ); ?>" alt="" />
<h2 class="is-smaller-heading"><?php _e( 'The 3rd Freedom' ); ?></h2>
<p><?php _e( 'To redistribute.' ); ?></p>
</div>
<div class="column">
<div class="freedoms-image"></div>
<div class="column aligncenter">
<img class="freedom-image" src="<?php echo esc_url( admin_url( 'images/freedom-4.svg' ) ); ?>" alt="" />
<h2 class="is-smaller-heading"><?php _e( 'The 4th Freedom' ); ?></h2>
<p><?php _e( 'To distribute copies of your modified versions to others.' ); ?></p>
</div>

View File

@@ -0,0 +1,12 @@
<svg width="157" height="148" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M146.643 77.521c.122-1.213.122-2.547.122-3.76C146.765 33.622 114.143 1 74.003 1S1.24 33.621 1.24 73.762c0 40.14 32.622 72.761 72.762 72.761 33.713 0 62.09-22.919 70.336-53.965" fill="#fff"/>
<path d="M146.643 77.521c.122-1.213.122-2.547.122-3.76C146.765 33.622 114.143 1 74.003 1S1.24 33.621 1.24 73.762c0 40.14 32.622 72.761 72.762 72.761 33.713 0 62.09-22.919 70.336-53.965" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M156.224 67.941l-9.517 10.182-9.401-10.182" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M74.003 124.694c28.129 0 50.933-22.803 50.933-50.933s-22.804-50.933-50.933-50.933c-28.13 0-50.934 22.804-50.934 50.933 0 28.13 22.804 50.933 50.934 50.933z" fill="url(#paint0_linear)" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<defs>
<linearGradient id="paint0_linear" x1="74.003" y1="22.828" x2="74.003" y2="124.694" gradientUnits="userSpaceOnUse">
<stop stop-color="#ECF5FF"/>
<stop offset="1" stop-color="#fff"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -0,0 +1,13 @@
<svg width="165" height="143" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M71.035 140.703c38.578 0 69.852-31.274 69.852-69.852S109.613 1 71.035 1C32.458 1 1.185 32.273 1.185 70.851s31.273 69.852 69.85 69.852z" fill="url(#paint0_linear)" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M70.962 78.994a8.122 8.122 0 100-16.245 8.122 8.122 0 000 16.245z" fill="#fff" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M104.862 44.282c18.029 12.1 24.216 35.21 15.548 54.243l35.054 23.526a7.105 7.105 0 01-7.918 11.797l-35.054-23.526c-14.33 15.231-38.06 18.261-56.089 6.161-20.048-13.456-25.453-40.527-12.071-60.465 13.381-19.938 40.482-25.192 60.53-11.736zm-6.478 9.652c14.688 9.858 18.648 29.692 8.844 44.299s-29.659 18.456-44.347 8.598c-14.688-9.858-18.648-29.692-8.844-44.299s29.659-18.456 44.347-8.598z" fill="#fff" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<rect x="88.861" y="68.954" width="10.585" height="26.464" rx="5.293" transform="rotate(-8.376 88.861 68.954)" fill="#fff" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M81.965 86.033l-4.21 16.373-12.163-12.163 16.373-4.21z" fill="#fff" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<defs>
<linearGradient id="paint0_linear" x1="71.035" y1="1" x2="71.035" y2="140.703" gradientUnits="userSpaceOnUse">
<stop stop-color="#ECF5FF"/>
<stop offset="1" stop-color="#fff"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -0,0 +1,37 @@
<svg width="193" height="213" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M96.591 47.235c12.623 0 22.856-10.233 22.856-22.856 0-12.623-10.233-22.856-22.856-22.856-12.623 0-22.856 10.233-22.856 22.856 0 12.623 10.233 22.856 22.856 22.856z" fill="url(#paint0_linear)" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M22.402 89.438c12.193 3.267 24.726-3.969 27.993-16.162 3.267-12.193-3.969-24.725-16.162-27.992-12.192-3.267-24.725 3.968-27.992 16.161-3.267 12.193 3.968 24.726 16.161 27.993z" fill="url(#paint1_linear)" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M170.78 89.438c12.193-3.267 19.428-15.8 16.161-27.992-3.267-12.193-15.8-19.43-27.992-16.162-12.193 3.267-19.429 15.8-16.162 27.992 3.267 12.193 15.8 19.43 27.993 16.162z" fill="url(#paint2_linear)" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M34.234 167.57c12.193-3.268 19.428-15.8 16.161-27.993-3.267-12.193-15.8-19.429-27.992-16.162-12.193 3.267-19.429 15.8-16.162 27.993 3.267 12.193 15.8 19.429 27.993 16.162z" fill="url(#paint3_linear)" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M157.423 167.569c12.193 3.267 24.726-3.968 27.993-16.161 3.267-12.193-3.969-24.726-16.162-27.993-12.193-3.267-24.725 3.969-27.992 16.162-3.267 12.193 3.968 24.725 16.161 27.992z" fill="url(#paint4_linear)" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M95.83 211.329c12.622 0 22.855-10.233 22.855-22.855 0-12.623-10.233-22.856-22.856-22.856-12.622 0-22.855 10.233-22.855 22.856 0 12.622 10.233 22.855 22.855 22.855z" fill="url(#paint5_linear)" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M96.59 144.377c21.073 0 38.158-17.158 38.158-38.324 0-21.165-17.085-38.323-38.159-38.323-21.074 0-38.158 17.157-38.158 38.323s17.084 38.324 38.158 38.324z" fill="#fff" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M79.243 108.789c0 9.705 7.93 17.42 17.345 17.42 9.416 0 17.345-7.964 17.345-17.42" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M90.883 95.351a3.72 3.72 0 01-3.71 3.73 3.72 3.72 0 01-3.71-3.73 3.72 3.72 0 013.71-3.729 3.72 3.72 0 013.71 3.73zM109.715 95.351a3.72 3.72 0 01-3.71 3.73 3.72 3.72 0 01-3.71-3.73 3.72 3.72 0 013.71-3.729 3.72 3.72 0 013.71 3.73z" fill="#3858E9" stroke="#3858E9" stroke-width="1.5"/>
<defs>
<linearGradient id="paint0_linear" x1="96.591" y1="1.523" x2="96.591" y2="47.235" gradientUnits="userSpaceOnUse">
<stop stop-color="#ECF5FF"/>
<stop offset="1" stop-color="#fff"/>
</linearGradient>
<linearGradient id="paint1_linear" x1="34.233" y1="45.284" x2="22.402" y2="89.438" gradientUnits="userSpaceOnUse">
<stop stop-color="#ECF5FF"/>
<stop offset="1" stop-color="#fff"/>
</linearGradient>
<linearGradient id="paint2_linear" x1="158.949" y1="45.284" x2="170.78" y2="89.438" gradientUnits="userSpaceOnUse">
<stop stop-color="#ECF5FF"/>
<stop offset="1" stop-color="#fff"/>
</linearGradient>
<linearGradient id="paint3_linear" x1="22.403" y1="123.415" x2="34.234" y2="167.57" gradientUnits="userSpaceOnUse">
<stop stop-color="#ECF5FF"/>
<stop offset="1" stop-color="#fff"/>
</linearGradient>
<linearGradient id="paint4_linear" x1="169.254" y1="123.415" x2="157.423" y2="167.569" gradientUnits="userSpaceOnUse">
<stop stop-color="#ECF5FF"/>
<stop offset="1" stop-color="#fff"/>
</linearGradient>
<linearGradient id="paint5_linear" x1="95.829" y1="165.618" x2="95.829" y2="211.329" gradientUnits="userSpaceOnUse">
<stop stop-color="#ECF5FF"/>
<stop offset="1" stop-color="#fff"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

@@ -0,0 +1,28 @@
<svg width="245" height="155" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M66.54 55.02L39.693 9.126 12.96 55.02h53.58z" fill="url(#paint0_linear)" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M39.75 153.084c21.074 0 38.158-17.158 38.158-38.324 0-21.165-17.084-38.323-38.159-38.323-21.074 0-38.158 17.158-38.158 38.323 0 21.166 17.084 38.324 38.158 38.324z" fill="#fff" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M22.404 117.499c0 9.706 7.929 17.42 17.345 17.42 9.415 0 17.344-7.963 17.344-17.42" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M34.044 104.061c0 2.063-1.664 3.73-3.71 3.73-2.046 0-3.71-1.667-3.71-3.73a3.72 3.72 0 013.71-3.729 3.72 3.72 0 013.71 3.729zM52.872 104.061a3.72 3.72 0 01-3.71 3.729 3.72 3.72 0 01-3.71-3.729c0-2.063 1.664-3.73 3.71-3.73 2.046 0 3.71 1.667 3.71 3.73z" fill="#3858E9" stroke="#3858E9" stroke-width="1.5"/>
<path d="M122.734 85.772c21.074 0 38.158-17.158 38.158-38.324 0-21.165-17.084-38.323-38.158-38.323-21.075 0-38.159 17.158-38.159 38.323 0 21.166 17.084 38.324 38.159 38.324z" fill="#fff" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M105.392 50.188c0 9.705 7.929 17.42 17.344 17.42 9.416 0 17.345-7.964 17.345-17.42" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M117.031 36.75a3.72 3.72 0 01-3.71 3.728 3.72 3.72 0 01-3.71-3.729 3.72 3.72 0 013.71-3.73 3.72 3.72 0 013.71 3.73zM135.864 36.748a3.72 3.72 0 01-3.711 3.73 3.72 3.72 0 01-3.71-3.73 3.72 3.72 0 013.71-3.729 3.72 3.72 0 013.711 3.73z" fill="#3858E9" stroke="#3858E9" stroke-width="1.5"/>
<path fill="url(#paint1_linear)" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round" d="M99.782 107.435h45.894v45.894H99.782z"/>
<path d="M218.946 37.371l17.518-5.453-17.518-5.454 8.494-16.284-16.229 8.483-5.536-17.496-5.46 17.496-16.305-8.483 8.57 16.284-17.518 5.454 17.518 5.453-8.57 16.285 16.305-8.483 5.46 17.496 5.536-17.496 16.229 8.483-8.494-16.285z" fill="url(#paint2_linear)" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M205.714 153.083c21.074 0 38.159-17.158 38.159-38.323 0-21.166-17.085-38.324-38.159-38.324-21.074 0-38.158 17.158-38.158 38.324 0 21.165 17.084 38.323 38.158 38.323z" fill="#fff" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M188.368 117.499c0 9.705 7.929 17.419 17.344 17.419 9.416 0 17.345-7.963 17.345-17.419" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M200.008 104.06a3.72 3.72 0 01-3.711 3.73c-2.046 0-3.71-1.667-3.71-3.73a3.72 3.72 0 013.71-3.729 3.72 3.72 0 013.711 3.729zM218.839 104.06a3.72 3.72 0 01-3.71 3.729 3.72 3.72 0 01-3.71-3.729 3.72 3.72 0 013.71-3.729 3.72 3.72 0 013.71 3.729z" fill="#3858E9" stroke="#3858E9" stroke-width="1.5"/>
<defs>
<linearGradient id="paint0_linear" x1="39.749" y1="55.02" x2="39.749" y2="9.126" gradientUnits="userSpaceOnUse">
<stop stop-color="#ECF5FF"/>
<stop offset="1" stop-color="#fff"/>
</linearGradient>
<linearGradient id="paint1_linear" x1="122.729" y1="107.435" x2="122.729" y2="153.329" gradientUnits="userSpaceOnUse">
<stop stop-color="#ECF5FF"/>
<stop offset="1" stop-color="#fff"/>
</linearGradient>
<linearGradient id="paint2_linear" x1="205.713" y1="1.167" x2="205.713" y2="62.669" gradientUnits="userSpaceOnUse">
<stop stop-color="#ECF5FF"/>
<stop offset="1" stop-color="#fff"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 349 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

View File

@@ -0,0 +1,30 @@
<svg width="322" height="370" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M209.004 97.757c-.11-1.762-.328-3.523-.547-5.285a86.978 86.978 0 00-1.314-7.707c-.547-2.533-1.094-5.065-1.86-7.597-.219-.881-.438-1.652-.766-2.423-13.024-42.61-52.532-73.548-99.154-73.548S19.233 32.136 6.1 74.745c-.328.771-.547 1.542-.766 2.423a79.772 79.772 0 00-2.298 10.13c-.329 1.76-.548 3.412-.766 5.174-.22 1.762-.438 3.523-.548 5.285a96.67 96.67 0 00-.328 8.037v223.178h207.938V105.794c0-2.752-.109-5.395-.328-8.037zm-186.16 44.041v-36.004h.11c0-45.802 36.882-82.907 82.519-83.017 45.527 0 82.409 37.105 82.409 83.017h.109v36.004H22.844z" fill="url(#paint0_linear)" stroke="#3858E9" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M141.808 294.4l-28.455-58.355c9.631-3.083 16.526-12.111 16.526-22.681 0-13.212-10.616-23.892-23.749-23.892s-23.749 10.68-23.749 23.892c0 10.68 7.004 19.709 16.526 22.681L70.452 294.4h71.356z" fill="#3858E9" stroke="#3858E9" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M209.332 329.082H1.394v12.882h207.938v-12.882z" fill="url(#paint1_linear)" stroke="#3858E9" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M209.332 341.854H1.394v12.882h207.938v-12.882z" fill="url(#paint2_linear)" stroke="#3858E9" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M209.332 354.735H1.394c0 7.115 5.767 12.882 12.881 12.882H196.45c7.114 0 12.882-5.767 12.882-12.882z" fill="url(#paint3_linear)" stroke="#3858E9" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M285.509 278.325v-76.301h25.28V186.94h-25.28v-9.579h32.285v-15.084h-32.285v-6.936h32.285v-15.085h-32.285v-8.257h-21.013v146.326c-21.013 4.955-36.444 24.553-35.131 47.564 1.314 22.902 19.59 41.619 42.354 43.271 26.813 1.871 49.139-19.378 49.139-45.913-.109-21.911-15.103-40.077-35.349-44.922zM275.002 347.8c-13.461 0-24.515-11.01-24.515-24.663s10.945-24.663 24.515-24.663c13.461 0 24.515 11.01 24.515 24.663S288.573 347.8 275.002 347.8z" fill="url(#paint4_linear)" stroke="#3858E9" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<defs>
<linearGradient id="paint0_linear" x1="105.363" y1="1.197" x2="105.363" y2="328.972" gradientUnits="userSpaceOnUse">
<stop offset=".099" stop-color="#ECF5FF"/>
<stop offset="1" stop-color="#ECF5FF" stop-opacity="0"/>
</linearGradient>
<linearGradient id="paint1_linear" x1="105.363" y1="329.082" x2="105.363" y2="341.964" gradientUnits="userSpaceOnUse">
<stop offset=".099" stop-color="#ECF5FF"/>
<stop offset="1" stop-color="#ECF5FF" stop-opacity="0"/>
</linearGradient>
<linearGradient id="paint2_linear" x1="105.363" y1="341.854" x2="105.363" y2="354.736" gradientUnits="userSpaceOnUse">
<stop offset=".099" stop-color="#ECF5FF"/>
<stop offset="1" stop-color="#ECF5FF" stop-opacity="0"/>
</linearGradient>
<linearGradient id="paint3_linear" x1="105.363" y1="354.735" x2="105.363" y2="367.617" gradientUnits="userSpaceOnUse">
<stop offset=".099" stop-color="#ECF5FF"/>
<stop offset="1" stop-color="#ECF5FF" stop-opacity="0"/>
</linearGradient>
<linearGradient id="paint4_linear" x1="275.073" y1="131.999" x2="275.073" y2="369.275" gradientUnits="userSpaceOnUse">
<stop offset=".099" stop-color="#ECF5FF"/>
<stop offset="1" stop-color="#ECF5FF" stop-opacity="0"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@@ -2974,7 +2974,7 @@ function wp_ajax_query_attachments() {
// Filter query clauses to include filenames.
if ( isset( $query['s'] ) ) {
add_filter( 'posts_clauses', '_filter_query_attachment_filenames' );
add_filter( 'wp_allow_query_attachment_by_filename', '__return_true' );
}
/**
@@ -3003,7 +3003,9 @@ function wp_ajax_query_attachments() {
$total_posts = $count_query->found_posts;
}
$max_pages = ceil( $total_posts / (int) $attachments_query->query['posts_per_page'] );
$posts_per_page = (int) $attachments_query->get( 'posts_per_page' );
$max_pages = $posts_per_page ? ceil( $total_posts / $posts_per_page ) : 0;
header( 'X-WP-Total: ' . (int) $total_posts );
header( 'X-WP-TotalPages: ' . (int) $max_pages );

View File

@@ -418,7 +418,7 @@ class Custom_Background {
<div class="button-group">
<?php foreach ( $group as $value => $input ) : ?>
<label>
<input class="screen-reader-text" name="background-position" type="radio" value="<?php echo esc_attr( $value ); ?>"<?php checked( $value, $background_position ); ?>>
<input class="ui-helper-hidden-accessible" name="background-position" type="radio" value="<?php echo esc_attr( $value ); ?>"<?php checked( $value, $background_position ); ?>>
<span class="button display-options position"><span class="<?php echo esc_attr( $input['icon'] ); ?>" aria-hidden="true"></span></span>
<span class="screen-reader-text"><?php echo $input['label']; ?></span>
</label>

View File

@@ -2674,7 +2674,12 @@
}
// ----- Read the file content
$v_content = @fread($v_file, $p_header['size']);
if ($p_header['size'] > 0) {
$v_content = @fread($v_file, $p_header['size']);
}
else {
$v_content = '';
}
// ----- Close the file
@fclose($v_file);
@@ -3884,11 +3889,11 @@
// ----- Read the compressed file in a buffer (one shot)
if ( $p_entry['compressed_size'] > 0 ) {
if ($p_entry['compressed_size'] > 0) {
$v_buffer = @fread($this->zip_fd, $p_entry['compressed_size']);
}
else {
$v_buffer = false;
$v_buffer = '';
}
// ----- Decompress the file
@@ -4101,11 +4106,11 @@
if ($p_entry['compressed_size'] == $p_entry['size']) {
// ----- Read the file in a buffer (one shot)
if ( $p_entry['compressed_size'] > 0 ) {
if ($p_entry['compressed_size'] > 0) {
$v_buffer = @fread($this->zip_fd, $p_entry['compressed_size']);
}
else {
$v_buffer = false;
$v_buffer = '';
}
// ----- Send the file to the output
@@ -4115,11 +4120,11 @@
else {
// ----- Read the compressed file in a buffer (one shot)
if ( $p_entry['compressed_size'] > 0 ) {
if ($p_entry['compressed_size'] > 0) {
$v_buffer = @fread($this->zip_fd, $p_entry['compressed_size']);
}
else {
$v_buffer = false;
$v_buffer = '';
}
// ----- Decompress the file
@@ -4224,21 +4229,21 @@
if ($p_entry['compression'] == 0) {
// ----- Reading the file
if ( $p_entry['compressed_size'] > 0 ) {
if ($p_entry['compressed_size'] > 0) {
$p_string = @fread($this->zip_fd, $p_entry['compressed_size']);
}
else {
$p_string = false;
$p_string = '';
}
}
else {
// ----- Reading the file
if ( $p_entry['compressed_size'] > 0 ) {
if ($p_entry['compressed_size'] > 0) {
$v_data = @fread($this->zip_fd, $p_entry['compressed_size']);
}
else {
$v_data = false;
$v_data = '';
}
// ----- Decompress the file

View File

@@ -1658,10 +1658,9 @@ function wp_dashboard_quota() {
* Displays the browser update nag.
*
* @since 3.2.0
* @since 5.8.0 Display special message for Internet Explorer users.
* @since 5.8.0 Added a special message for Internet Explorer users.
*
* @global bool $is_IE
*
*/
function wp_dashboard_browser_nag() {
global $is_IE;

View File

@@ -1284,7 +1284,7 @@ function wp_edit_attachments_query_vars( $q = false ) {
// Filter query clauses to include filenames.
if ( isset( $q['s'] ) ) {
add_filter( 'posts_clauses', '_filter_query_attachment_filenames' );
add_filter( 'wp_allow_query_attachment_by_filename', '__return_true' );
}
return $q;

View File

@@ -298,6 +298,7 @@ function get_theme_update_available( $theme ) {
* @since 5.5.0 Added 'Block Editor Patterns', 'Block Editor Styles',
* and 'Full Site Editing' features.
* @since 5.5.0 Added 'Wide Blocks' layout option.
* @since 5.8.1 Added 'Template Editing' feature.
*
* @param bool $api Optional. Whether try to fetch tags from the WordPress.org API. Defaults to true.
* @return array Array of features keyed by category with translations keyed by slug.
@@ -334,6 +335,7 @@ function get_theme_feature_list( $api = true ) {
'full-width-template' => __( 'Full Width Template' ),
'post-formats' => __( 'Post Formats' ),
'sticky-post' => __( 'Sticky Post' ),
'template-editing' => __( 'Template Editing' ),
'theme-options' => __( 'Theme Options' ),
),

View File

@@ -804,6 +804,12 @@ $_old_files = array(
// 5.7
'wp-includes/blocks/classic/block.json',
// 5.8
'wp-admin/images/freedoms.png',
'wp-admin/images/privacy.png',
'wp-admin/images/about-badge.svg',
'wp-admin/images/about-color-palette.svg',
'wp-admin/images/about-color-palette-vert.svg',
'wp-admin/images/about-header-brushes.svg',
'wp-includes/block-patterns/large-header.php',
'wp-includes/block-patterns/heading-paragraph.php',
'wp-includes/block-patterns/quote.php',
@@ -816,6 +822,10 @@ $_old_files = array(
'wp-includes/block-patterns/large-header-button.php',
'wp-includes/blocks/subhead/block.json',
'wp-includes/blocks/subhead',
'wp-includes/css/dist/editor/editor-styles.css',
'wp-includes/css/dist/editor/editor-styles.min.css',
'wp-includes/css/dist/editor/editor-styles-rtl.css',
'wp-includes/css/dist/editor/editor-styles-rtl.min.css',
);
/**

View File

@@ -1612,8 +1612,8 @@ function upgrade_280() {
$start = 0;
while ( $rows = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options ORDER BY option_id LIMIT $start, 20" ) ) {
foreach ( $rows as $row ) {
$value = $row->option_value;
if ( ! @unserialize( $value ) ) {
$value = maybe_unserialize( $row->option_value );
if ( $value === $row->option_value ) {
$value = stripslashes( $value );
}
if ( $value !== $row->option_value ) {

View File

@@ -8452,6 +8452,13 @@
return;
}
// Abort if we're inside of a block editor instance.
if ( event.target.closest( '.block-editor-writing-flow' ) !== null ||
event.target.closest( '.block-editor-block-list__block-popover' ) !== null
) {
return;
}
// Check for expanded expandable controls (e.g. widgets and nav menus items), sections, and panels.
api.control.each( function( control ) {
if ( control.expanded && control.expanded() && _.isFunction( control.collapse ) ) {

File diff suppressed because one or more lines are too long

View File

@@ -356,7 +356,7 @@ wp.customHtmlWidgets = ( function( $ ) {
return;
}
idBase = widgetForm.find( '> .widget-control-actions > .id_base' ).val();
idBase = widgetForm.find( '.id_base' ).val();
if ( -1 === component.idBases.indexOf( idBase ) ) {
return;
}

File diff suppressed because one or more lines are too long

View File

@@ -1212,7 +1212,7 @@ wp.mediaWidgets = ( function( $ ) {
return;
}
idBase = widgetForm.find( '> .widget-control-actions > .id_base' ).val();
idBase = widgetForm.find( '.id_base' ).val();
ControlConstructor = component.controlConstructors[ idBase ];
if ( ! ControlConstructor ) {

File diff suppressed because one or more lines are too long

View File

@@ -161,7 +161,7 @@ wp.textWidgets = ( function( $ ) {
control.fields.text.val( syncInput.val() );
}
} else if ( control.editor && ! control.editorFocused && syncInput.val() !== control.fields.text.val() ) {
control.editor.setContent( wp.editor.autop( syncInput.val() ) );
control.editor.setContent( wp.oldEditor.autop( syncInput.val() ) );
}
},
@@ -237,7 +237,7 @@ wp.textWidgets = ( function( $ ) {
// The user has disabled TinyMCE.
if ( typeof window.tinymce === 'undefined' ) {
wp.editor.initialize( id, {
wp.oldEditor.initialize( id, {
quicktags: true,
mediaButtons: true
});
@@ -248,7 +248,7 @@ wp.textWidgets = ( function( $ ) {
// Destroy any existing editor so that it can be re-initialized after a widget-updated event.
if ( tinymce.get( id ) ) {
restoreTextMode = tinymce.get( id ).isHidden();
wp.editor.remove( id );
wp.oldEditor.remove( id );
}
// Add or enable the `wpview` plugin.
@@ -262,7 +262,7 @@ wp.textWidgets = ( function( $ ) {
}
} );
wp.editor.initialize( id, {
wp.oldEditor.initialize( id, {
tinymce: {
wpautop: true
},

File diff suppressed because one or more lines are too long

View File

@@ -316,6 +316,7 @@ switch ( $action ) {
check_admin_referer( 'update-nav_menu', 'update-nav-menu-nonce' );
// Merge new and existing menu locations if any new ones are set.
$new_menu_locations = array();
if ( isset( $_POST['menu-locations'] ) ) {
$new_menu_locations = array_map( 'absint', $_POST['menu-locations'] );
$menu_locations = array_merge( $menu_locations, $new_menu_locations );
@@ -353,6 +354,15 @@ switch ( $action ) {
break; // There should only be 1.
}
set_theme_mod( 'nav_menu_locations', $locations );
} elseif ( count( $new_menu_locations ) > 0 ) {
// If locations have been selected for the new menu, save those.
$locations = get_nav_menu_locations();
foreach ( array_keys( $new_menu_locations ) as $location ) {
$locations[ $location ] = $nav_menu_selected_id;
}
set_theme_mod( 'nav_menu_locations', $locations );
}
@@ -981,12 +991,16 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<div class="drag-instructions post-body-plain" <?php echo $hide_style; ?>>
<p><?php echo $starter_copy; ?></p>
</div>
<div id="nav-menu-bulk-actions-top" class="bulk-actions">
<label class="bulk-select-button" for="bulk-select-switcher-top">
<input type="checkbox" id="bulk-select-switcher-top" name="bulk-select-switcher-top" class="bulk-select-switcher">
<span class="bulk-select-button-label"><?php _e( 'Bulk Select' ); ?></span>
</label>
</div>
<?php if ( ! $add_new_screen ) : ?>
<div id="nav-menu-bulk-actions-top" class="bulk-actions">
<label class="bulk-select-button" for="bulk-select-switcher-top">
<input type="checkbox" id="bulk-select-switcher-top" name="bulk-select-switcher-top" class="bulk-select-switcher">
<span class="bulk-select-button-label"><?php _e( 'Bulk Select' ); ?></span>
</label>
</div>
<?php endif; ?>
<?php
if ( isset( $edit_markup ) && ! is_wp_error( $edit_markup ) ) {
echo $edit_markup;
@@ -1012,17 +1026,21 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
$no_menus_style = 'style="display: none;"';
}
?>
<div id="nav-menu-bulk-actions-bottom" class="bulk-actions">
<label class="bulk-select-button" for="bulk-select-switcher-bottom">
<input type="checkbox" id="bulk-select-switcher-bottom" name="bulk-select-switcher-top" class="bulk-select-switcher">
<span class="bulk-select-button-label"><?php _e( 'Bulk Select' ); ?></span>
</label>
<input type="button" class="deletion menu-items-delete disabled" value="<?php _e( 'Remove Selected Items' ); ?>">
<div id="pending-menu-items-to-delete">
<p><?php _e( 'List of menu items selected for deletion:' ); ?></p>
<ul></ul>
<?php if ( ! $add_new_screen ) : ?>
<div id="nav-menu-bulk-actions-bottom" class="bulk-actions">
<label class="bulk-select-button" for="bulk-select-switcher-bottom">
<input type="checkbox" id="bulk-select-switcher-bottom" name="bulk-select-switcher-top" class="bulk-select-switcher">
<span class="bulk-select-button-label"><?php _e( 'Bulk Select' ); ?></span>
</label>
<input type="button" class="deletion menu-items-delete disabled" value="<?php _e( 'Remove Selected Items' ); ?>">
<div id="pending-menu-items-to-delete">
<p><?php _e( 'List of menu items selected for deletion:' ); ?></p>
<ul></ul>
</div>
</div>
</div>
<?php endif; ?>
<div class="menu-settings" <?php echo $no_menus_style; ?>>
<h3><?php _e( 'Menu Settings' ); ?></h3>
<?php

View File

@@ -610,7 +610,7 @@ if ( ! empty( $invalid ) ) {
/* translators: 1: Plugin file, 2: Error message. */
__( 'The plugin %1$s has been deactivated due to an error: %2$s' ),
'<code>' . esc_html( $plugin_file ) . '</code>',
$error->get_error_message()
esc_html( $error->get_error_message() )
);
echo '</p></div>';
}
@@ -674,7 +674,7 @@ elseif ( isset( $_GET['deleted'] ) ) :
printf(
/* translators: %s: Error message. */
__( 'Plugin could not be deleted due to an error: %s' ),
$delete_result->get_error_message()
esc_html( $delete_result->get_error_message() )
);
?>
</p>

View File

@@ -36,10 +36,11 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
</nav>
</div>
<div class="about__section">
<div class="column">
<p><img class="privacy-image" src="<?php echo esc_url( admin_url( 'images/privacy.png' ) ); ?>" alt="" /></p>
<div class="about__section has-2-columns is-wider-right">
<div class="column about__image">
<img class="privacy-image" src="<?php echo esc_url( admin_url( 'images/privacy.svg' ) ); ?>" alt="" />
</div>
<div class="column is-vertically-aligned-center">
<p><?php _e( 'From time to time, your WordPress site may send data to WordPress.org &#8212; including, but not limited to &#8212; the version of WordPress you are using, and a list of installed plugins and themes.' ); ?></p>
<p>

View File

@@ -52,7 +52,7 @@ wp_add_inline_script(
wp_add_inline_script(
'wp-blocks',
sprintf( 'wp.blocks.setCategories( %s );', wp_json_encode( get_block_categories( 'widgets-editor' ) ) ),
sprintf( 'wp.blocks.setCategories( %s );', wp_json_encode( get_block_categories( $block_editor_context ) ) ),
'after'
);

View File

@@ -7,10 +7,10 @@
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
* @since Twenty Eleven 3.8
*/
/**
/**
* Register Block Pattern Category.
*/
if ( function_exists( 'register_block_pattern_category' ) ) {
@@ -39,7 +39,7 @@ if ( function_exists( 'register_block_pattern' ) ) {
<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:image {"id":null,"sizeSlug":"large","linkDestination":"none"} -->
<figure class="wp-block-image size-large"><img src="' . get_stylesheet_directory_uri() . '/images/patterns/pattern-flower.jpg" alt="' . esc_attr( 'A yellow flower against a dark background.', 'twentyeleven' ) . '" /></figure>
<figure class="wp-block-image size-large"><img src="' . get_template_directory_uri() . '/images/patterns/pattern-flower.jpg" alt="' . esc_attr( 'A yellow flower against a dark background.', 'twentyeleven' ) . '" /></figure>
<!-- /wp:image -->
<!-- wp:paragraph {"dropCap":true} -->
<p class="has-drop-cap">' . esc_html__( 'This is just an example post to showcase the featured post section on the showcase page. Who doesn&#8217;t like flowers? I like flowers. Nullam hendrerit enim nunc. Vestibulum eget nulla magna! Fusce lobortis neque eu neque egestas tincidunt. Duis elementum consequat lorem, in eleifend justo mollis at. Nam quis adipiscing magna. Duis adipiscing est ac nibh feugiat rhoncus. Donec non lorem felis, eget commodo purus.', 'twentyeleven' ) . '</p>
@@ -117,7 +117,7 @@ if ( function_exists( 'register_block_pattern' ) ) {
<!-- /wp:heading --><!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:image {"id":null,"sizeSlug":"large","linkDestination":"none"} -->
<figure class="wp-block-image size-large"><img src="' . get_stylesheet_directory_uri() . '/images/patterns/pattern-woman.jpg" alt="' . esc_attr( 'Photo of a woman.', 'twentyeleven' ) . '" /></figure>
<figure class="wp-block-image size-large"><img src="' . get_template_directory_uri() . '/images/patterns/pattern-woman.jpg" alt="' . esc_attr( 'Photo of a woman.', 'twentyeleven' ) . '" /></figure>
<!-- /wp:image --></div>
<!-- /wp:column -->
<!-- wp:column -->

View File

@@ -2,7 +2,7 @@
Contributors: wordpressdotorg
Requires at least: WordPress 3.2
Tested up to: 5.8
Stable tag: 3.7
Stable tag: 3.9
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, one-column, two-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, block-patterns
@@ -47,6 +47,16 @@ Images
== Changelog ==
= 3.9 =
* Released: July 26, 2021
https://codex.wordpress.org/Twenty_Eleven_Theme_Changelog#Version_3.9
= 3.8 =
* Released: July 20, 2021
https://codex.wordpress.org/Twenty_Eleven_Theme_Changelog#Version_3.8
= 3.7 =
* Released: March 9, 2021

View File

@@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentyeleven/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: The 2011 theme for WordPress is sophisticated, lightweight, and adaptable. Make it yours with a custom menu, header image, and background -- then go further with available theme options for light or dark color scheme, custom link colors, and three layout choices. Twenty Eleven comes equipped with a Showcase page template that transforms your front page into a showcase to show off your best content, widget support galore (sidebar, three footer areas, and a Showcase page widget area), and a custom "Ephemera" widget to display your Aside, Link, Quote, or Status posts. Included are styles for print and for the admin editor, support for featured images (as custom header images on posts and pages and as large images on featured "sticky" posts), and special styles for six different post formats.
Version: 3.7
Version: 3.9
Requires PHP: 5.2.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

View File

@@ -2,7 +2,7 @@
Contributors: wordpressdotorg
Requires at least: WordPress 4.1
Tested up to: 5.8
Version: 2.9
Version: 3.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, two-columns, left-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, block-patterns
@@ -61,6 +61,11 @@ Source: https://stocksnap.io/photo/purple-yellow-ACF0693B9C
== Changelog ==
= 3.0 =
* Released: July 20, 2021
https://codex.wordpress.org/Twenty_Fifteen_Theme_Changelog#Version_3.0
= 2.9 =
* Released: March 9, 2021

View File

@@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentyfifteen/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Our 2015 default theme is clean, blog-focused, and designed for clarity. Twenty Fifteen's simple, straightforward typography is readable on a wide variety of screen sizes, and suitable for multiple languages. We designed it using a mobile-first approach, meaning your content takes center-stage, regardless of whether your visitors arrive by smartphone, tablet, laptop, or desktop computer.
Version: 2.9
Version: 3.0
Requires PHP: 5.2.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

View File

@@ -10,7 +10,7 @@
* @since Twenty Fourteen 3.2
*/
/**
/**
* Register Block Pattern Category.
*/
if ( function_exists( 'register_block_pattern_category' ) ) {

View File

@@ -2,7 +2,7 @@
Contributors: wordpressdotorg
Requires at least: WordPress 3.6
Tested up to: 5.8
Stable tag: 3.1
Stable tag: 3.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, news, two-columns, three-columns, left-sidebar, right-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready, block-patterns
@@ -58,6 +58,11 @@ Source: https://stocksnap.io/photo/fog-mountain-ZKN6UKFKEO
== Changelog ==
= 3.2 =
* Released: July 20, 2021
https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_3.2
= 3.1 =
* Released: March 9, 2021

View File

@@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentyfourteen/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: In 2014, our default theme lets you create a responsive magazine website with a sleek, modern design. Feature your favorite homepage content in either a grid or a slider. Use the three widget areas to customize your website, and change your content's layout with a full-width page template and a contributor page to show off your authors. Creating a magazine website with WordPress has never been easier.
Version: 3.1
Version: 3.2
Requires PHP: 5.2.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

View File

@@ -6,8 +6,8 @@
* @link https://developer.wordpress.org/reference/functions/register_block_pattern_category/
*
* @package WordPress
* @subpackage TwentyNineteen
* @since Twenty Nineteen 1.7
* @subpackage Twenty_Nineteen
* @since Twenty Nineteen 1.8
*/
/**

View File

@@ -3,7 +3,7 @@
* Twenty Nineteen: Color Patterns
*
* @package WordPress
* @subpackage TwentyNineteen
* @subpackage Twenty_Nineteen
* @since Twenty Nineteen 1.0
*/

View File

@@ -1,6 +1,6 @@
{
"name": "twentynineteen",
"version": "2.0.0",
"version": "2.1.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@@ -1,6 +1,6 @@
{
"name": "twentynineteen",
"version": "2.0.0",
"version": "2.1.0",
"description": "Default WP Theme",
"bugs": {
"url": "https://core.trac.wordpress.org/"

View File

@@ -3,7 +3,7 @@ Contributors: wordpressdotorg
Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready, block-patterns
Requires at least: 4.9.6
Tested up to: 5.8
Stable tag: 2.0
Stable tag: 2.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -39,6 +39,11 @@ GNU General Public License for more details.
== Changelog ==
= 2.1 =
* Released: July 20, 2021
https://codex.wordpress.org/Twenty_Nineteen_Theme_Changelog#Version_2.1
= 2.0 =
* Released: March 9, 2021

View File

@@ -1,5 +1,5 @@
/*!
Twenty Nineteen Customizer Styles
NOTE: This file is automatically populated with styles if the user selects a custom primary color in the customzier.
NOTE: This file is automatically populated with styles if the user selects a custom primary color in the customizer.
*/

View File

@@ -1,5 +1,5 @@
/*!
Twenty Nineteen Customizer Styles
NOTE: This file is automatically populated with styles if the user selects a custom primary color in the customzier.
NOTE: This file is automatically populated with styles if the user selects a custom primary color in the customizer.
*/

View File

@@ -7,7 +7,7 @@ Author URI: https://wordpress.org/
Description: Our 2019 default theme is designed to show off the power of the block editor. It features custom styles for all the default blocks, and is built so that what you see in the editor looks like what you'll see on your website. Twenty Nineteen is designed to be adaptable to a wide range of websites, whether youre running a photo blog, launching a new business, or supporting a non-profit. Featuring ample whitespace and modern sans-serif headlines paired with classic serif body text, it's built to be beautiful on all screen sizes.
Requires at least: 4.9.6
Requires PHP: 5.2.4
Version: 2.0
Version: 2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentynineteen

View File

@@ -7,7 +7,7 @@ Author URI: https://wordpress.org/
Description: Our 2019 default theme is designed to show off the power of the block editor. It features custom styles for all the default blocks, and is built so that what you see in the editor looks like what you'll see on your website. Twenty Nineteen is designed to be adaptable to a wide range of websites, whether youre running a photo blog, launching a new business, or supporting a non-profit. Featuring ample whitespace and modern sans-serif headlines paired with classic serif body text, it's built to be beautiful on all screen sizes.
Requires at least: 4.9.6
Requires PHP: 5.2.4
Version: 2.0
Version: 2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentynineteen

View File

@@ -6,7 +6,7 @@ Author URI: https://wordpress.org/
Description: Our 2019 default theme is designed to show off the power of the block editor. It features custom styles for all the default blocks, and is built so that what you see in the editor looks like what you'll see on your website. Twenty Nineteen is designed to be adaptable to a wide range of websites, whether youre running a photo blog, launching a new business, or supporting a non-profit. Featuring ample whitespace and modern sans-serif headlines paired with classic serif body text, it's built to be beautiful on all screen sizes.
Requires at least: 4.9.6
Requires PHP: 5.2.4
Version: 2.0
Version: 2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentynineteen

View File

@@ -4,7 +4,7 @@
*
* @package WordPress
* @subpackage Twenty_Seventeen
* @since Twenty Seventeen 2.4
* @since Twenty Seventeen 2.5
*/
/**

View File

@@ -1,7 +1,7 @@
=== Twenty Seventeen ===
Contributors: wordpressdotorg
Tested up to: 5.8
Version: 2.7
Version: 2.8
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, block-patterns
@@ -68,6 +68,11 @@ Source: https://stocksnap.io/photo/striped-fabric-9CBVWF2CDU
== Changelog ==
= 2.8 =
* Released: July 20, 2021
https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_2.8
= 2.7 =
* Released: April 14, 2021

View File

@@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentyseventeen/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device.
Version: 2.7
Version: 2.8
Requires at least: 4.7
Requires PHP: 5.2.4
License: GNU General Public License v2 or later

View File

@@ -2,8 +2,9 @@
/**
* Twenty Sixteen Theme: Block Patterns
*
* @package Twenty Sixteen
* @since 2.2
* @package WordPress
* @subpackage Twenty_Sixteen
* @since Twenty Sixteen 2.3
*/
/**

View File

@@ -1,7 +1,7 @@
=== Twenty Sixteen ===
Contributors: wordpressdotorg
Tested up to: 5.8
Version: 2.4
Version: 2.5
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, right-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, blog, block-patterns
@@ -55,6 +55,11 @@ Image used in screenshot.png: A photo by Austin Schmid (https://unsplash.com/sch
== Changelog ==
= 2.5 =
* Released: July 20, 2021
https://codex.wordpress.org/Twenty_Sixteen_Theme_Changelog#Version_2.5
= 2.4 =
* Released: March 9, 2021

View File

@@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentysixteen/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Twenty Sixteen is a modernized take on an ever-popular WordPress layout — the horizontal masthead with an optional right sidebar that works perfectly for blogs and websites. It has custom color options with beautiful default color schemes, a harmonious fluid grid using a mobile-first approach, and impeccable polish in every detail. Twenty Sixteen will make your WordPress look beautiful everywhere.
Version: 2.4
Version: 2.5
Requires at least: 4.4
Requires PHP: 5.2.4
License: GNU General Public License v2 or later

View File

@@ -33,7 +33,7 @@ if ( function_exists( 'register_block_pattern' ) ) {
'title' => esc_html__( 'Introduction', 'twentyten' ),
'categories' => array( 'twentyten' ),
'viewportWidth' => 700,
'content' => '<!-- wp:image {"id":null,"sizeSlug":"large","linkDestination":"none"} --><figure class="wp-block-image size-large"><img src="' . get_stylesheet_directory_uri() . '/images/patterns/pattern-barn.jpg" alt="' . esc_attr__( 'A red barn with a white roof in a field.', 'twentyten' ) . '" /><figcaption><em>' . esc_html__( 'An old barn we passed on the drive', 'twentyten' ) . '</em></figcaption></figure><!-- /wp:image --><!-- wp:heading {"style":{"typography":{"fontSize":60}}} --><h2 style="font-size:60px">' . esc_html__( 'A Weekend Away', 'twentyten' ) . '</h2><!-- /wp:heading --><!-- wp:paragraph --><p>' . esc_html__( 'Its amazing what a good weekend can do. After a tough couple weeks at work, I knew I needed to get away and be in nature. My partner and I decided to take a long weekend and stay in a cabin in the woods. We packed up after work on Friday and drove out into the country, passing through fields full of horses, old farms, and quaint little town squares. It was an idyllic drive. Eventually, we reached our destination and unpacked the car. We couldnt wait to cook up a simple dinner and then relax by the fireplace.', 'twentyten' ) . '</p><!-- /wp:paragraph -->',
'content' => '<!-- wp:image {"id":null,"sizeSlug":"large","linkDestination":"none"} --><figure class="wp-block-image size-large"><img src="' . get_template_directory_uri() . '/images/patterns/pattern-barn.jpg" alt="' . esc_attr__( 'A red barn with a white roof in a field.', 'twentyten' ) . '" /><figcaption><em>' . esc_html__( 'An old barn we passed on the drive', 'twentyten' ) . '</em></figcaption></figure><!-- /wp:image --><!-- wp:heading {"style":{"typography":{"fontSize":60}}} --><h2 style="font-size:60px">' . esc_html__( 'A Weekend Away', 'twentyten' ) . '</h2><!-- /wp:heading --><!-- wp:paragraph --><p>' . esc_html__( 'Its amazing what a good weekend can do. After a tough couple weeks at work, I knew I needed to get away and be in nature. My partner and I decided to take a long weekend and stay in a cabin in the woods. We packed up after work on Friday and drove out into the country, passing through fields full of horses, old farms, and quaint little town squares. It was an idyllic drive. Eventually, we reached our destination and unpacked the car. We couldnt wait to cook up a simple dinner and then relax by the fireplace.', 'twentyten' ) . '</p><!-- /wp:paragraph -->',
)
);
@@ -55,7 +55,7 @@ if ( function_exists( 'register_block_pattern' ) ) {
'title' => esc_html__( 'Alternating Images', 'twentyten' ),
'categories' => array( 'twentyten' ),
'viewportWidth' => 700,
'content' => '<!-- wp:columns {"verticalAlignment":"center"} --><div class="wp-block-columns are-vertically-aligned-center"><!-- wp:column {"verticalAlignment":"center","width":"66.66%"} --><div class="wp-block-column is-vertically-aligned-center" style="flex-basis:66.66%"><!-- wp:image {"id":null,"sizeSlug":"large","linkDestination":"none"} --><figure class="wp-block-image size-large"><img src="' . get_stylesheet_directory_uri() . '/images/patterns/pattern-dock.jpg" alt="' . esc_attr__( 'A lake with several boats docked. The sun is rising behind mountains in the background.', 'twentyten' ) . '" /><figcaption><em>' . esc_html__( 'The lake at 6:54 AM', 'twentyten' ) . '</em></figcaption></figure><!-- /wp:image --></div><!-- /wp:column --><!-- wp:column {"verticalAlignment":"top","width":"33.33%"} --><div class="wp-block-column is-vertically-aligned-top" style="flex-basis:33.33%"><!-- wp:paragraph --><p><em>' . esc_html__( 'Nearby our cabin was a lake. The sunrise looked beautiful as it rose over the hills beyond the water, reflecting down onto the gentle morning waves. I sat on the dock and drank a cup of coffee, enjoying the cool air on my skin. The coffee kept me warm inside.', 'twentyten' ) . '</em></p><!-- /wp:paragraph --></div><!-- /wp:column --></div><!-- /wp:columns --><!-- wp:columns --><div class="wp-block-columns"><!-- wp:column {"width":"33.33%"} --><div class="wp-block-column" style="flex-basis:33.33%"><!-- wp:paragraph --><p><em>' . esc_html__( 'Later that night, we went back to the lake and sat by the shore. It felt different at night; quieter, as if all of nature had gone to sleep for a little while. The only noises were the chirp of crickets and the soft splash of the waves lapping at the shore. What a beautiful way to end the day.', 'twentyten' ) . '</em></p><!-- /wp:paragraph --></div><!-- /wp:column --><!-- wp:column {"width":"66.66%"} --><div class="wp-block-column" style="flex-basis:66.66%"><!-- wp:image {"id":null,"sizeSlug":"large","linkDestination":"none"} --><figure class="wp-block-image size-large"><img src="' . get_stylesheet_directory_uri() . '/images/patterns/pattern-lake.jpg" alt="' . esc_attr__( 'A lake at night, with Adirondack chairs in the foreground. The sun sets in the background.', 'twentyten' ) . '" /><figcaption><em>' . esc_html__( 'Relaxing at the lake after dinner', 'twentyten' ) . '</em></figcaption></figure><!-- /wp:image --></div><!-- /wp:column --></div><!-- /wp:columns -->',
'content' => '<!-- wp:columns {"verticalAlignment":"center"} --><div class="wp-block-columns are-vertically-aligned-center"><!-- wp:column {"verticalAlignment":"center","width":"66.66%"} --><div class="wp-block-column is-vertically-aligned-center" style="flex-basis:66.66%"><!-- wp:image {"id":null,"sizeSlug":"large","linkDestination":"none"} --><figure class="wp-block-image size-large"><img src="' . get_template_directory_uri() . '/images/patterns/pattern-dock.jpg" alt="' . esc_attr__( 'A lake with several boats docked. The sun is rising behind mountains in the background.', 'twentyten' ) . '" /><figcaption><em>' . esc_html__( 'The lake at 6:54 AM', 'twentyten' ) . '</em></figcaption></figure><!-- /wp:image --></div><!-- /wp:column --><!-- wp:column {"verticalAlignment":"top","width":"33.33%"} --><div class="wp-block-column is-vertically-aligned-top" style="flex-basis:33.33%"><!-- wp:paragraph --><p><em>' . esc_html__( 'Nearby our cabin was a lake. The sunrise looked beautiful as it rose over the hills beyond the water, reflecting down onto the gentle morning waves. I sat on the dock and drank a cup of coffee, enjoying the cool air on my skin. The coffee kept me warm inside.', 'twentyten' ) . '</em></p><!-- /wp:paragraph --></div><!-- /wp:column --></div><!-- /wp:columns --><!-- wp:columns --><div class="wp-block-columns"><!-- wp:column {"width":"33.33%"} --><div class="wp-block-column" style="flex-basis:33.33%"><!-- wp:paragraph --><p><em>' . esc_html__( 'Later that night, we went back to the lake and sat by the shore. It felt different at night; quieter, as if all of nature had gone to sleep for a little while. The only noises were the chirp of crickets and the soft splash of the waves lapping at the shore. What a beautiful way to end the day.', 'twentyten' ) . '</em></p><!-- /wp:paragraph --></div><!-- /wp:column --><!-- wp:column {"width":"66.66%"} --><div class="wp-block-column" style="flex-basis:66.66%"><!-- wp:image {"id":null,"sizeSlug":"large","linkDestination":"none"} --><figure class="wp-block-image size-large"><img src="' . get_template_directory_uri() . '/images/patterns/pattern-lake.jpg" alt="' . esc_attr__( 'A lake at night, with Adirondack chairs in the foreground. The sun sets in the background.', 'twentyten' ) . '" /><figcaption><em>' . esc_html__( 'Relaxing at the lake after dinner', 'twentyten' ) . '</em></figcaption></figure><!-- /wp:image --></div><!-- /wp:column --></div><!-- /wp:columns -->',
)
);
}

View File

@@ -740,7 +740,7 @@ function twentyten_block_editor_styles() {
add_action( 'enqueue_block_editor_assets', 'twentyten_block_editor_styles' );
// Block Patterns.
require get_stylesheet_directory() . '/block-patterns.php';
require get_template_directory() . '/block-patterns.php';
if ( ! function_exists( 'wp_body_open' ) ) :
/**

View File

@@ -1,7 +1,7 @@
=== Twenty Ten ===
Contributors: wordpressdotorg
Tested up to: 5.8
Stable tag: 3.3
Stable tag: 3.5
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, two-columns, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu, flexible-header, featured-images, footer-widgets, featured-image-header, block-patterns
@@ -42,6 +42,16 @@ Images
== Changelog ==
= 3.5 =
* Released: July 26, 2021
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_3.5
= 3.4 =
* Released: July 20, 2021
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_3.4
= 3.3 =
* Released: March 9, 2021

View File

@@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentyten/
Description: The 2010 theme for WordPress is stylish, customizable, simple, and readable -- make it yours with a custom menu, header image, and background. Twenty Ten supports six widgetized areas (two in the sidebar, four in the footer) and featured images (thumbnails for gallery posts and custom header images for posts and pages). It includes stylesheets for print and the admin Visual Editor, special styles for posts in the "Asides" and "Gallery" categories, and has an optional one-column page template that removes the sidebar.
Author: the WordPress team
Author URI: https://wordpress.org/
Version: 3.3
Version: 3.5
Requires at least: 3.0
Requires PHP: 5.2.4
License: GNU General Public License v2 or later

View File

@@ -1,7 +1,7 @@
=== Twenty Thirteen ===
Contributors: wordpressdotorg
Tested up to: 5.8
Stable tag: 3.3
Stable tag: 3.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, one-column, two-columns, right-sidebar, custom-header, custom-menu, editor-style, featured-images, footer-widgets, microformats, post-formats, rtl-language-support, sticky-post, translation-ready, accessibility-ready, block-patterns
@@ -52,6 +52,11 @@ Toroidal Colony: https://www.flickr.com/photos/nasacommons/13889485757/in/album-
== Changelog ==
= 3.4 =
* Released: July 20, 2021
https://codex.wordpress.org/Twenty_Thirteen_Theme_Changelog#Version_3.4
= 3.3 =
* Released: March 9, 2021

View File

@@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentythirteen/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: The 2013 theme for WordPress takes us back to the blog, featuring a full range of post formats, each displayed beautifully in their own unique way. Design details abound, starting with a vibrant color scheme and matching header images, beautiful typography and icons, and a flexible layout that looks great on any device, big or small.
Version: 3.3
Version: 3.4
Requires at least: 3.6
Requires PHP: 5.2.4
License: GNU General Public License v2 or later

View File

@@ -40,18 +40,18 @@ if ( function_exists( 'register_block_pattern' ) ) {
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:image {"align":"center","sizeSlug":"large","linkDestination":"none"} -->
<div class="wp-block-image"><figure class="aligncenter size-large"><img src="' . esc_url( get_stylesheet_directory_uri() ) . '/images/pattern-jumble-2.jpg" alt="' . esc_attr__( 'Close up of a yellow and green leaf.', 'twentytwelve' ) . '" /></figure></div>
<div class="wp-block-image"><figure class="aligncenter size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/images/pattern-jumble-2.jpg" alt="' . esc_attr__( 'Close up of a yellow and green leaf.', 'twentytwelve' ) . '" /></figure></div>
<!-- /wp:image --></div>
<!-- /wp:column -->
<!-- wp:column {"width":"29%"} -->
<div class="wp-block-column" style="flex-basis:29%"><!-- wp:image {"align":"center","sizeSlug":"large","linkDestination":"none"} -->
<div class="wp-block-image"><figure class="aligncenter size-large"><img src="' . esc_url( get_stylesheet_directory_uri() ) . '/images/pattern-jumble-3.jpg" alt="' . esc_attr__( 'Close up of a yellow leaf.', 'twentytwelve' ) . '" /></figure></div>
<div class="wp-block-image"><figure class="aligncenter size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/images/pattern-jumble-3.jpg" alt="' . esc_attr__( 'Close up of a yellow leaf.', 'twentytwelve' ) . '" /></figure></div>
<!-- /wp:image -->
<!-- wp:spacer {"height":25} -->
<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:image {"sizeSlug":"large","linkDestination":"none"} -->
<figure class="wp-block-image size-large"><img src="' . esc_url( get_stylesheet_directory_uri() ) . '/images/pattern-jumble-4.jpg" alt="' . esc_attr__( 'Close up of a yellow and green leaf.', 'twentytwelve' ) . '" /></figure>
<figure class="wp-block-image size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/images/pattern-jumble-4.jpg" alt="' . esc_attr__( 'Close up of a yellow and green leaf.', 'twentytwelve' ) . '" /></figure>
<!-- /wp:image --></div>
<!-- /wp:column -->
<!-- wp:column {"width":"43%"} -->
@@ -59,7 +59,7 @@ if ( function_exists( 'register_block_pattern' ) ) {
<div style="height:37px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:image {"sizeSlug":"large","linkDestination":"none"} -->
<figure class="wp-block-image size-large"><img src="' . esc_url( get_stylesheet_directory_uri() ) . '/images/pattern-jumble-1.jpg" alt="' . esc_attr__( 'Close up of a yellow and green leaf.', 'twentytwelve' ) . '" /></figure>
<figure class="wp-block-image size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/images/pattern-jumble-1.jpg" alt="' . esc_attr__( 'Close up of a yellow and green leaf.', 'twentytwelve' ) . '" /></figure>
<!-- /wp:image --></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div></div>
@@ -92,7 +92,7 @@ if ( function_exists( 'register_block_pattern' ) ) {
'content' => '<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:image {"sizeSlug":"large","linkDestination":"none","className":"is-style-default"} -->
<figure class="wp-block-image size-large is-style-default"><img src="' . esc_url( get_stylesheet_directory_uri() ) . '/images/pattern-jumble-3.jpg" alt="' . esc_attr__( 'Close up of a yellow leaf.', 'twentytwelve' ) . '" /></figure>
<figure class="wp-block-image size-large is-style-default"><img src="' . esc_url( get_template_directory_uri() ) . '/images/pattern-jumble-3.jpg" alt="' . esc_attr__( 'Close up of a yellow leaf.', 'twentytwelve' ) . '" /></figure>
<!-- /wp:image --></div>
<!-- /wp:column -->
<!-- wp:column -->

View File

@@ -1,7 +1,7 @@
=== Twenty Twelve ===
Contributors: wordpressdotorg
Tested up to: 5.8
Stable tag: 3.3
Stable tag: 3.5
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, one-column, two-columns, right-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, block-patterns
@@ -46,6 +46,16 @@ Source: https://github.com/aFarkas/html5shiv
== Changelog ==
= 3.5 =
* Released: July 26, 2021
https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_3.4
= 3.4 =
* Released: July 20, 2021
https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_3.4
= 3.3 =
* Released: December 8, 2020

View File

@@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentytwelve/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: The 2012 theme for WordPress is a fully responsive theme that looks great on any device. Features include a front page template with its own widgets, an optional display font, styling for post formats on both index and single views, and an optional no-sidebar page template. Make it yours with a custom menu, header image, and background.
Version: 3.3
Version: 3.5
Requires at least: 3.5
Requires PHP: 5.2.4
License: GNU General Public License v2 or later

View File

@@ -11,6 +11,8 @@
/**
* Return a value for our partial refresh.
*
* @since Twenty Twenty 1.0
*
* @param {Object} partial Current partial.
*
* @return {jQuery.Promise} Resolved promise.
@@ -31,6 +33,8 @@
/**
* Override the refresh method.
*
* @since Twenty Twenty 1.0
*
* @return {jQuery.Promise} Resolved promise.
*/
refresh: function() {
@@ -55,6 +59,7 @@
/**
* Input attributes.
*
* @since Twenty Twenty 1.0
* @type {Object}
*/
attrs: {},
@@ -62,6 +67,8 @@
/**
* Override the refresh method.
*
* @since Twenty Twenty 1.0
*
* @return {jQuery.Promise} Resolved promise.
*/
refresh: function() {

View File

@@ -646,6 +646,8 @@ twentytwenty.toggles = {
*
* This implementation is coming from https://gomakethings.com/a-native-javascript-equivalent-of-jquerys-ready-method/
*
* @since Twenty Twenty 1.0
*
* @param {Function} fn Callback function to run.
*/
function twentytwentyDomReady( fn ) {
@@ -695,6 +697,8 @@ function twentytwentyToggleAttribute( element, attribute, trueVal, falseVal ) {
/**
* Toggle a menu item on or off.
*
* @since Twenty Twenty 1.0
*
* @param {HTMLElement} target
* @param {number} duration
*/
@@ -796,6 +800,8 @@ function twentytwentyMenuToggle( target, duration ) {
/**
* Traverses the DOM up to find elements matching the query.
*
* @since Twenty Twenty 1.0
*
* @param {HTMLElement} target
* @param {string} query
* @return {NodeList} parents matching query

View File

@@ -6,6 +6,8 @@
* This is the source file for what is minified in the twentytwenty_skip_link_focus_fix() PHP function.
*
* Learn more: https://git.io/vWdr2
*
* @since Twenty Twenty 1.0
*/
( function() {
var isIe = /(trident|msie)/i.test( navigator.userAgent );

View File

@@ -10,12 +10,16 @@
if ( ! class_exists( 'TwentyTwenty_Customize' ) ) {
/**
* CUSTOMIZER SETTINGS
*
* @since Twenty Twenty 1.0
*/
class TwentyTwenty_Customize {
/**
* Register customizer options.
*
* @since Twenty Twenty 1.0
*
* @param WP_Customize_Manager $wp_customize Theme Customizer object.
*/
public static function register( $wp_customize ) {
@@ -412,9 +416,8 @@ if ( ! class_exists( 'TwentyTwenty_Customize' ) ) {
/**
* Sanitization callback for the "accent_accessible_colors" setting.
*
* @static
* @access public
* @since Twenty Twenty 1.0
*
* @param array $value The value we want to sanitize.
* @return array Returns sanitized value. Each item in the array gets sanitized separately.
*/
@@ -436,7 +439,9 @@ if ( ! class_exists( 'TwentyTwenty_Customize' ) ) {
/**
* Sanitize select.
*
* @param string $input The input from the setting.
* @since Twenty Twenty 1.0
*
* @param string $input The input from the setting.
* @param object $setting The selected setting.
* @return string The input from the setting or the default setting.
*/
@@ -449,6 +454,8 @@ if ( ! class_exists( 'TwentyTwenty_Customize' ) ) {
/**
* Sanitize boolean for checkbox.
*
* @since Twenty Twenty 1.0
*
* @param bool $checked Whether or not a box is checked.
* @return bool
*/
@@ -469,6 +476,8 @@ if ( ! class_exists( 'TwentyTwenty_Customize' ) ) {
if ( ! function_exists( 'twentytwenty_customize_partial_blogname' ) ) {
/**
* Render the site title for the selective refresh partial.
*
* @since Twenty Twenty 1.0
*/
function twentytwenty_customize_partial_blogname() {
bloginfo( 'name' );
@@ -478,6 +487,8 @@ if ( ! function_exists( 'twentytwenty_customize_partial_blogname' ) ) {
if ( ! function_exists( 'twentytwenty_customize_partial_blogdescription' ) ) {
/**
* Render the site description for the selective refresh partial.
*
* @since Twenty Twenty 1.0
*/
function twentytwenty_customize_partial_blogdescription() {
bloginfo( 'description' );
@@ -489,6 +500,8 @@ if ( ! function_exists( 'twentytwenty_customize_partial_site_logo' ) ) {
* Render the site logo for the selective refresh partial.
*
* Doing it this way so we don't have issues with `render_callback`'s arguments.
*
* @since Twenty Twenty 1.0
*/
function twentytwenty_customize_partial_site_logo() {
twentytwenty_site_logo();
@@ -499,18 +512,22 @@ if ( ! function_exists( 'twentytwenty_customize_partial_site_logo' ) ) {
/**
* Input attributes for cover overlay opacity option.
*
* @since Twenty Twenty 1.0
*
* @return array Array containing attribute names and their values.
*/
function twentytwenty_customize_opacity_range() {
/**
* Filters the input attributes for opacity
* Filters the input attributes for opacity.
*
* @since Twenty Twenty 1.0
*
* @param array $attrs {
* The attributes
* The attributes.
*
* @type int $min Minimum value
* @type int $max Maximum value
* @type int $step Interval between numbers
* @type int $min Minimum value.
* @type int $max Maximum value.
* @type int $step Interval between numbers.
* }
*/
return apply_filters(

View File

@@ -12,6 +12,8 @@
if ( ! class_exists( 'TwentyTwenty_Non_Latin_Languages' ) ) {
/**
* Language handling.
*
* @since Twenty Twenty 1.0
*/
class TwentyTwenty_Non_Latin_Languages {
@@ -20,7 +22,9 @@ if ( ! class_exists( 'TwentyTwenty_Non_Latin_Languages' ) ) {
*
* Return CSS for non-latin language, if available, or null
*
* @param string $type Whether to return CSS for the "front-end", "block-editor" or "classic-editor".
* @since Twenty Twenty 1.0
*
* @param string $type Whether to return CSS for the "front-end", "block-editor", or "classic-editor".
* @return void
*/
public static function get_non_latin_css( $type = 'front-end' ) {
@@ -28,7 +32,13 @@ if ( ! class_exists( 'TwentyTwenty_Non_Latin_Languages' ) ) {
// Fetch site locale.
$locale = get_bloginfo( 'language' );
// Define fallback fonts for non-latin languages.
/**
* Filters the fallback fonts for non-latin languages.
*
* @since Twenty Twenty 1.0
*
* @param array $font_family An array of locales and font families.
*/
$font_family = apply_filters(
'twentytwenty_get_localized_font_family_types',
array(
@@ -98,7 +108,13 @@ if ( ! class_exists( 'TwentyTwenty_Non_Latin_Languages' ) ) {
return;
}
// Define elements to apply fallback fonts to.
/**
* Filters the elements to apply fallback fonts to.
*
* @since Twenty Twenty 1.0
*
* @param array $elements An array of elements for "front-end", "block-editor", or "classic-editor".
*/
$elements = apply_filters(
'twentytwenty_get_localized_font_family_elements',
array(

View File

@@ -14,6 +14,8 @@
if ( ! class_exists( 'TwentyTwenty_Script_Loader' ) ) {
/**
* A class that provides a way to add `async` or `defer` attributes to scripts.
*
* @since Twenty Twenty 1.0
*/
class TwentyTwenty_Script_Loader {
@@ -22,6 +24,8 @@ if ( ! class_exists( 'TwentyTwenty_Script_Loader' ) ) {
*
* If #12009 lands in WordPress, this function can no-op since it would be handled in core.
*
* @since Twenty Twenty 1.0
*
* @link https://core.trac.wordpress.org/ticket/12009
*
* @param string $tag The script tag.

View File

@@ -12,10 +12,14 @@ if ( class_exists( 'WP_Customize_Control' ) ) {
if ( ! class_exists( 'TwentyTwenty_Separator_Control' ) ) {
/**
* Separator Control.
*
* @since Twenty Twenty 1.0
*/
class TwentyTwenty_Separator_Control extends WP_Customize_Control {
/**
* Render the hr.
*
* @since Twenty Twenty 1.0
*/
public function render_content() {
echo '<hr/>';

View File

@@ -11,12 +11,16 @@ if ( ! class_exists( 'TwentyTwenty_SVG_Icons' ) ) {
/**
* SVG ICONS CLASS
* Retrieve the SVG code for the specified icon. Based on a solution in Twenty Nineteen.
*
* @since Twenty Twenty 1.0
*/
class TwentyTwenty_SVG_Icons {
/**
* GET SVG CODE
* Get the SVG code for the specified icon
*
* @since Twenty Twenty 1.0
*
* @param string $icon Icon name.
* @param string $group Icon group.
* @param string $color Color.
@@ -69,6 +73,8 @@ if ( ! class_exists( 'TwentyTwenty_SVG_Icons' ) ) {
* GET SOCIAL LINK SVG
* Detects the social network from a URL and returns the SVG code for its icon.
*
* @since Twenty Twenty 1.0
*
* @param string $uri The URL to retrieve SVG for.
*/
public static function get_social_link_svg( $uri ) {
@@ -116,6 +122,7 @@ if ( ! class_exists( 'TwentyTwenty_SVG_Icons' ) ) {
* ICON STORAGE
* Store the code for all SVGs in an array.
*
* @since Twenty Twenty 1.0
* @var array
*/
public static $ui_icons = array(
@@ -169,6 +176,7 @@ if ( ! class_exists( 'TwentyTwenty_SVG_Icons' ) ) {
* By default, each Icon ID is matched against a .com TLD. To override this behavior,
* specify all the domains it covers (including the .com TLD too, if applicable).
*
* @since Twenty Twenty 1.0
* @var array
*/
public static $social_icons_map = array(
@@ -224,6 +232,7 @@ if ( ! class_exists( 'TwentyTwenty_SVG_Icons' ) ) {
/**
* Social Icons svg sources.
*
* @since Twenty Twenty 1.0
* @var array
*/
public static $social_icons = array(

View File

@@ -11,12 +11,16 @@ if ( ! class_exists( 'TwentyTwenty_Walker_Comment' ) ) {
/**
* CUSTOM COMMENT WALKER
* A custom walker for comments, based on the walker in Twenty Nineteen.
*
* @since Twenty Twenty 1.0
*/
class TwentyTwenty_Walker_Comment extends Walker_Comment {
/**
* Outputs a comment in the HTML5 format.
*
* @since Twenty Twenty 1.0
*
* @see wp_list_comments()
* @see https://developer.wordpress.org/reference/functions/get_comment_author_url/
* @see https://developer.wordpress.org/reference/functions/get_comment_author/

View File

@@ -11,14 +11,17 @@ if ( ! class_exists( 'TwentyTwenty_Walker_Page' ) ) {
/**
* CUSTOM PAGE WALKER
* A custom walker for pages.
*
* @since Twenty Twenty 1.0
*/
class TwentyTwenty_Walker_Page extends Walker_Page {
/**
* Outputs the beginning of the current element in the tree.
*
* @since Twenty Twenty 1.0
*
* @see Walker::start_el()
* @since 2.1.0
*
* @param string $output Used to append additional content. Passed by reference.
* @param WP_Post $page Page data object.

View File

@@ -30,6 +30,8 @@
* Note that this function is hooked into the after_setup_theme hook, which
* runs before the init hook. The init hook is too late for some features, such
* as indicating support for post thumbnails.
*
* @since Twenty Twenty 1.0
*/
function twentytwenty_theme_support() {
@@ -183,6 +185,8 @@ require get_template_directory() . '/inc/block-patterns.php';
/**
* Register and Enqueue Styles.
*
* @since Twenty Twenty 1.0
*/
function twentytwenty_register_styles() {
@@ -203,6 +207,8 @@ add_action( 'wp_enqueue_scripts', 'twentytwenty_register_styles' );
/**
* Register and Enqueue Scripts.
*
* @since Twenty Twenty 1.0
*/
function twentytwenty_register_scripts() {
@@ -225,6 +231,8 @@ add_action( 'wp_enqueue_scripts', 'twentytwenty_register_scripts' );
* This does not enqueue the script because it is tiny and because it is only for IE11,
* thus it does not warrant having an entire dedicated blocking script being loaded.
*
* @since Twenty Twenty 1.0
*
* @link https://git.io/vWdr2
*/
function twentytwenty_skip_link_focus_fix() {
@@ -237,7 +245,8 @@ function twentytwenty_skip_link_focus_fix() {
}
add_action( 'wp_print_footer_scripts', 'twentytwenty_skip_link_focus_fix' );
/** Enqueue non-latin language styles
/**
* Enqueue non-latin language styles.
*
* @since Twenty Twenty 1.0
*
@@ -255,6 +264,8 @@ add_action( 'wp_enqueue_scripts', 'twentytwenty_non_latin_languages' );
/**
* Register navigation menus uses wp_nav_menu in five places.
*
* @since Twenty Twenty 1.0
*/
function twentytwenty_menus() {
@@ -274,6 +285,8 @@ add_action( 'init', 'twentytwenty_menus' );
/**
* Get the information about the logo.
*
* @since Twenty Twenty 1.0
*
* @param string $html The HTML output from get_custom_logo (core function).
* @return string
*/
@@ -331,14 +344,19 @@ if ( ! function_exists( 'wp_body_open' ) ) {
/**
* Shim for wp_body_open, ensuring backward compatibility with versions of WordPress older than 5.2.
*
* @since Twenty Twenty 1.0
*/
function wp_body_open() {
/** This action is documented in wp-includes/general-template.php */
do_action( 'wp_body_open' );
}
}
/**
* Include a skip to content link at the top of the page so that users can bypass the menu.
*
* @since Twenty Twenty 1.0
*/
function twentytwenty_skip_link() {
echo '<a class="skip-link screen-reader-text" href="#site-content">' . __( 'Skip to the content', 'twentytwenty' ) . '</a>';
@@ -349,6 +367,8 @@ add_action( 'wp_body_open', 'twentytwenty_skip_link', 5 );
/**
* Register widget areas.
*
* @since Twenty Twenty 1.0
*
* @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
*/
function twentytwenty_sidebar_registration() {
@@ -391,6 +411,8 @@ add_action( 'widgets_init', 'twentytwenty_sidebar_registration' );
/**
* Enqueue supplemental block editor styles.
*
* @since Twenty Twenty 1.0
*/
function twentytwenty_block_editor_styles() {
@@ -412,6 +434,8 @@ add_action( 'enqueue_block_editor_assets', 'twentytwenty_block_editor_styles', 1
/**
* Enqueue classic editor styles.
*
* @since Twenty Twenty 1.0
*/
function twentytwenty_classic_editor_styles() {
@@ -429,6 +453,8 @@ add_action( 'init', 'twentytwenty_classic_editor_styles' );
* Output Customizer settings in the classic editor.
* Adds styles to the head of the TinyMCE iframe. Kudos to @Otto42 for the original solution.
*
* @since Twenty Twenty 1.0
*
* @param array $mce_init TinyMCE styles.
* @return array TinyMCE styles.
*/
@@ -479,6 +505,8 @@ add_filter( 'tiny_mce_before_init', 'twentytwenty_add_classic_editor_non_latin_s
/**
* Block Editor Settings.
* Add custom colors and font sizes to the block editor.
*
* @since Twenty Twenty 1.0
*/
function twentytwenty_block_editor_settings() {
@@ -632,7 +660,7 @@ add_action( 'customize_preview_init', 'twentytwenty_customize_preview_init' );
*
* @since Twenty Twenty 1.0
*
* @param string $area The area we want to get the colors for.
* @param string $area The area we want to get the colors for.
* @param string $context Can be 'text' or 'accent'.
* @return string Returns a HEX color.
*/
@@ -750,11 +778,11 @@ function twentytwenty_get_elements_array() {
);
/**
* Filters Twenty Twenty theme elements
*
* @since Twenty Twenty 1.0
*
* @param array Array of elements
*/
* Filters Twenty Twenty theme elements.
*
* @since Twenty Twenty 1.0
*
* @param array Array of elements.
*/
return apply_filters( 'twentytwenty_get_elements_array', $elements );
}

View File

@@ -7,7 +7,7 @@
*
* @package WordPress
* @subpackage Twenty_Twenty
* @since Twenty Twenty 1.5
* @since Twenty Twenty 1.6
*/
/**

View File

@@ -12,12 +12,14 @@ if ( ! function_exists( 'twentytwenty_generate_css' ) ) {
/**
* Generate CSS.
*
* @since Twenty Twenty 1.0
*
* @param string $selector The CSS selector.
* @param string $style The CSS style.
* @param string $value The CSS value.
* @param string $prefix The CSS prefix.
* @param string $suffix The CSS suffix.
* @param bool $echo Echo the styles.
* @param string $style The CSS style.
* @param string $value The CSS value.
* @param string $prefix The CSS prefix.
* @param string $suffix The CSS suffix.
* @param bool $echo Echo the styles.
*/
function twentytwenty_generate_css( $selector, $style, $value, $prefix = '', $suffix = '', $echo = true ) {
@@ -50,7 +52,9 @@ if ( ! function_exists( 'twentytwenty_get_customizer_css' ) ) {
* Get CSS Built from Customizer Options.
* Build CSS reflecting colors, fonts and other options set in the Customizer, and return them for output.
*
* @param string $type Whether to return CSS for the "front-end", "block-editor" or "classic-editor".
* @since Twenty Twenty 1.0
*
* @param string $type Whether to return CSS for the "front-end", "block-editor", or "classic-editor".
*/
function twentytwenty_get_customizer_css( $type = 'front-end' ) {
@@ -78,7 +82,7 @@ if ( ! function_exists( 'twentytwenty_get_customizer_css' ) ) {
ob_start();
/**
/*
* Note Styles are applied in this order:
* 1. Element specific
* 2. Helper classes
@@ -86,7 +90,7 @@ if ( ! function_exists( 'twentytwenty_get_customizer_css' ) ) {
* This enables all helper classes to overwrite base element styles,
* meaning that any color classes applied in the block editor will
* have a higher priority than the base element styles.
*/
*/
// Front-End Styles.
if ( 'front-end' === $type ) {

View File

@@ -12,9 +12,11 @@ if ( ! function_exists( 'twentytwenty_the_theme_svg' ) ) {
* Output and Get Theme SVG.
* Output and get the SVG markup for an icon in the TwentyTwenty_SVG_Icons class.
*
* @since Twenty Twenty 1.0
*
* @param string $svg_name The name of the icon.
* @param string $group The group the icon belongs to.
* @param string $color Color code.
* @param string $group The group the icon belongs to.
* @param string $color Color code.
*/
function twentytwenty_the_theme_svg( $svg_name, $group = 'ui', $color = '' ) {
echo twentytwenty_get_theme_svg( $svg_name, $group, $color ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in twentytwenty_get_theme_svg().
@@ -26,9 +28,11 @@ if ( ! function_exists( 'twentytwenty_get_theme_svg' ) ) {
/**
* Get information about the SVG icon.
*
* @since Twenty Twenty 1.0
*
* @param string $svg_name The name of the icon.
* @param string $group The group the icon belongs to.
* @param string $color Color code.
* @param string $group The group the icon belongs to.
* @param string $color Color code.
*/
function twentytwenty_get_theme_svg( $svg_name, $group = 'ui', $color = '' ) {

View File

@@ -25,8 +25,10 @@
/**
* Displays the site logo, either text or image.
*
* @param array $args Arguments for displaying the site logo either as an image or text.
* @param bool $echo Echo or return the HTML.
* @since Twenty Twenty 1.0
*
* @param array $args Arguments for displaying the site logo either as an image or text.
* @param bool $echo Echo or return the HTML.
* @return string Compiled HTML based on our arguments.
*/
function twentytwenty_site_logo( $args = array(), $echo = true ) {
@@ -50,8 +52,10 @@ function twentytwenty_site_logo( $args = array(), $echo = true ) {
/**
* Filters the arguments for `twentytwenty_site_logo()`.
*
* @param array $args Parsed arguments.
* @param array $defaults Function's default arguments.
* @since Twenty Twenty 1.0
*
* @param array $args Parsed arguments.
* @param array $defaults Function's default arguments.
*/
$args = apply_filters( 'twentytwenty_site_logo_args', $args, $defaults );
@@ -70,6 +74,8 @@ function twentytwenty_site_logo( $args = array(), $echo = true ) {
/**
* Filters the arguments for `twentytwenty_site_logo()`.
*
* @since Twenty Twenty 1.0
*
* @param string $html Compiled HTML based on our arguments.
* @param array $args Parsed arguments.
* @param string $classname Class name based on current view, home or single.
@@ -88,6 +94,8 @@ function twentytwenty_site_logo( $args = array(), $echo = true ) {
/**
* Displays the site description.
*
* @since Twenty Twenty 1.0
*
* @param bool $echo Echo or return the html.
* @return string The HTML to display.
*/
@@ -107,9 +115,9 @@ function twentytwenty_site_description( $echo = true ) {
*
* @since Twenty Twenty 1.0
*
* @param string $html The HTML to display.
* @param string $description Site description via `bloginfo()`.
* @param string $wrapper The format used in case you want to reuse it in a `sprintf()`.
* @param string $html The HTML to display.
* @param string $description Site description via `bloginfo()`.
* @param string $wrapper The format used in case you want to reuse it in a `sprintf()`.
*/
$html = apply_filters( 'twentytwenty_site_description', $html, $description, $wrapper );
@@ -127,6 +135,8 @@ function twentytwenty_site_description( $echo = true ) {
/**
* Checks if the specified comment is written by the author of the post commented on.
*
* @since Twenty Twenty 1.0
*
* @param object $comment Comment data.
* @return bool
*/
@@ -153,6 +163,8 @@ function twentytwenty_is_comment_by_post_author( $comment = null ) {
* Filter the comment reply link to add a class indicating it should not use JS slow-scroll, as it
* makes it scroll to the wrong position on the page.
*
* @since Twenty Twenty 1.0
*
* @param string $link Link to the top of the page.
* @return string Link to the top of the page.
*/
@@ -174,6 +186,8 @@ add_filter( 'comment_reply_link', 'twentytwenty_filter_comment_reply_link' );
*
* If it's a single post, outputs the post meta values specified in the Customizer settings.
*
* @since Twenty Twenty 1.0
*
* @param int $post_id The ID of the post for which the post meta should be output.
* @param string $location Which post meta location to output single or preview.
*/
@@ -186,6 +200,8 @@ function twentytwenty_the_post_meta( $post_id = null, $location = 'single-top' )
/**
* Filters the edit post link to add an icon and use the post meta structure.
*
* @since Twenty Twenty 1.0
*
* @param string $link Anchor tag for the edit link.
* @param int $post_id Post ID.
* @param string $text Anchor text.
@@ -223,7 +239,9 @@ add_filter( 'edit_post_link', 'twentytwenty_edit_post_link', 10, 3 );
/**
* Retrieves the post meta.
*
* @param int $post_id The ID of the post.
* @since Twenty Twenty 1.0
*
* @param int $post_id The ID of the post.
* @param string $location The location where the meta is shown.
*/
function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' ) {
@@ -241,7 +259,7 @@ function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' )
*
* @since Twenty Twenty 1.0
*
* @param array Array of post types
* @param array Array of post types.
*/
$disallowed_post_types = apply_filters( 'twentytwenty_disallowed_post_types_for_meta_output', array( 'page' ) );
@@ -263,10 +281,10 @@ function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' )
* @since Twenty Twenty 1.0
*
* @param array $args {
* @type string 'author'
* @type string 'post-date'
* @type string 'comments'
* @type string 'sticky'
* @type string $author
* @type string $post-date
* @type string $comments
* @type string $sticky
* }
*/
$post_meta = apply_filters(
@@ -291,7 +309,7 @@ function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' )
* @since Twenty Twenty 1.0
*
* @param array $args {
* @type string 'tags'
* @type string $tags
* }
*/
$post_meta = apply_filters(
@@ -499,6 +517,8 @@ function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' )
* Filter the class applied to wp_list_pages() items with children to match the menu class, to simplify.
* styling of sub levels in the fallback. Only applied if the match_menu_classes argument is set.
*
* @since Twenty Twenty 1.0
*
* @param string[] $css_class An array of CSS classes to be applied to each list item.
* @param WP_Post $page Page data object.
* @param int $depth Depth of page, used for padding.
@@ -534,6 +554,8 @@ add_filter( 'page_css_class', 'twentytwenty_filter_wp_list_pages_item_classes',
/**
* Adds a Sub Nav Toggle to the Expanded Menu and Mobile Menu.
*
* @since Twenty Twenty 1.0
*
* @param stdClass $args An object of wp_nav_menu() arguments.
* @param WP_Post $item Menu item data object.
* @param int $depth Depth of menu item. Used for padding.
@@ -580,6 +602,8 @@ add_filter( 'nav_menu_item_args', 'twentytwenty_add_sub_toggles_to_main_menu', 1
/**
* Displays SVG icons in social links menu.
*
* @since Twenty Twenty 1.0
*
* @param string $item_output The menu item's starting HTML output.
* @param WP_Post $item Menu item data object.
* @param int $depth Depth of the menu. Used for padding.
@@ -609,6 +633,8 @@ add_filter( 'walker_nav_menu_start_el', 'twentytwenty_nav_menu_social_icons', 10
* Adds 'no-js' class.
*
* If we're missing JavaScript support, the HTML element will have a 'no-js' class.
*
* @since Twenty Twenty 1.0
*/
function twentytwenty_no_js_class() {
@@ -623,6 +649,8 @@ add_action( 'wp_head', 'twentytwenty_no_js_class' );
/**
* Adds conditional body classes.
*
* @since Twenty Twenty 1.0
*
* @param array $classes Classes added to the body tag.
* @return array Classes added to the body tag.
*/
@@ -724,11 +752,20 @@ add_filter( 'body_class', 'twentytwenty_body_classes' );
/**
* Filters the archive title and styles the word before the first colon.
*
* @since Twenty Twenty 1.0
*
* @param string $title Current archive title.
* @return string Current archive title.
*/
function twentytwenty_get_the_archive_title( $title ) {
/**
* Filters the regular expression used to style the word before the first colon.
*
* @since Twenty Twenty 1.0
*
* @param array $regex An array of regular expression pattern and replacement.
*/
$regex = apply_filters(
'twentytwenty_get_the_archive_title_regex',
array(
@@ -756,6 +793,8 @@ add_filter( 'get_the_archive_title', 'twentytwenty_get_the_archive_title' );
/**
* Toggles animation duration in milliseconds.
*
* @since Twenty Twenty 1.0
*
* @return int Duration in milliseconds
*/
function twentytwenty_toggle_duration() {
@@ -779,6 +818,8 @@ function twentytwenty_toggle_duration() {
* with the optional prefix. As such the returned value is not universally unique,
* but it is unique across the life of the PHP process.
*
* @since Twenty Twenty 1.0
*
* @see wp_unique_id() Themes requiring WordPress 5.0.3 and greater should use this instead.
*
* @param string $prefix Prefix for the returned ID.

View File

@@ -1,6 +1,6 @@
{
"name": "twentytwenty",
"version": "1.7.0",
"version": "1.8.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@@ -1,6 +1,6 @@
{
"name": "twentytwenty",
"version": "1.7.0",
"version": "1.8.0",
"description": "Default WP Theme",
"author": "The WordPress Contributors",
"license": "GPL-2.0-or-later",

View File

@@ -1,7 +1,7 @@
=== Twenty Twenty ===
Contributors: the WordPress team
Tested up to: 5.8
Stable tag: 1.7
Stable tag: 1.8
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -22,6 +22,11 @@ you pick, ensuring a high, accessible color contrast for your visitors.
== Changelog ==
= 1.8 =
* Released: July 20, 2021
https://wordpress.org/support/article/twenty-twenty-changelog/#Version_1.8
= 1.7 =
* Released: March 9, 2021

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