Compare commits

...

131 Commits

Author SHA1 Message Date
audrasjb
9596df5b2a WordPress 5.9.8.
Built from https://develop.svn.wordpress.org/branches/5.9@56891


git-svn-id: http://core.svn.wordpress.org/branches/5.9@56402 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-12 18:38:01 +00:00
Joe McGill
f6363c808b Grouped backports to the 5.9 branch.
- REST API: Limit `search_columns` for users without `list_users`.
- Comments: Prevent users who can not see a post from seeing comments on it.
- Application Passwords: Prevent the use of some pseudo protocols in application passwords.
- Restrict media shortcode ajax to certain type
- REST API: Ensure no-cache headers are sent when methods are overriden.
- Prevent unintended behavior when certain objects are unserialized.

Merges [56833], [56834], [56835], [56836], [56837], and [56838] to the 5.9 branch.
Props xknown, jorbin, Vortfu, joehoyle, timothyblynjacobs, peterwilsoncc, ehtis, tykoted, martinkrcho, paulkevan, dd32, antpb, rmccue.


Built from https://develop.svn.wordpress.org/branches/5.9@56875


git-svn-id: http://core.svn.wordpress.org/branches/5.9@56386 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-12 18:22:31 +00:00
desrosj
3260e33888 WordPress 5.9.7.
Built from https://develop.svn.wordpress.org/branches/5.9@55836


git-svn-id: http://core.svn.wordpress.org/branches/5.9@55348 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-20 04:17:03 +00:00
desrosj
076394db0a Editor: Restore shortcode support for block templates.
Follow up to [55761].

Props youknowriad, Clorith, desrosj, antpb, Otto42, johnbillion, jorbin, rmccue, timothyblynjacobs, mikeschroder, peterwilsoncc, audrasjb, matveb, noisysocks, xknown, ehtis, isabel_brison, talldanwp, gziolo, chriscct7, davidbaumwald.
Merges [55828] to the 5.9 branch.
See #58333.
Built from https://develop.svn.wordpress.org/branches/5.9@55832


git-svn-id: http://core.svn.wordpress.org/branches/5.9@55344 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-20 04:08:31 +00:00
audrasjb
49a67fb33a Grouped backports to the 5.9 branch.
- Media: Prevent CSRF setting attachment thumbnails.
- Embeds: Add protocol validation for WordPress Embed code.
- I18N: Introduce sanitization function for locale.
- Editor: Ensure block comments are of a valid form.
- Editor: Remove shortcode support from block templates.

Merges [55760-55764] to the 5.9 branch.
Props dd32, isabel_brison, martinkrcho, matveb, ocean90, paulkevan, peterwilsoncc, timothyblynjacobs, xknown, youknowriad.


Built from https://develop.svn.wordpress.org/branches/5.9@55774


git-svn-id: http://core.svn.wordpress.org/branches/5.9@55286 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-16 15:23:17 +00:00
Peter Wilson
ac5688a26a I18N: Add new strings to about.php for use with end-of-life updates.
This changeset adds two additional translation strings in the changelog file, for use when releasing the final version of WordPress on a particular branch.

Props peterwilsoncc, audrasjb, mukesh27.
Merges [55350] to the 5.9 branch.
Fixes #57216.


Built from https://develop.svn.wordpress.org/branches/5.9@55373


git-svn-id: http://core.svn.wordpress.org/branches/5.9@54906 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-02-21 02:41:04 +00:00
Peter Wilson
cd612932d6 Media: Add object-fit to the allowed list of CSS properties.
This resolves a bug in Featured Image blocks where `object-fit` was being removed during the `render_callback`.

Props raduiason, pbiron, kebbet, SergeyBiryukov, bernhard-reiter, ironprogrammer, xknown, audrasjb, ckanderson22, ivanjeronimo, seriouslysenpai, davidbaumwald.
Merges [54675] to the 5.9 branch.
Fixes #56855.


Built from https://develop.svn.wordpress.org/branches/5.9@54764


git-svn-id: http://core.svn.wordpress.org/branches/5.9@54316 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-11-08 04:37:04 +00:00
Aaron Jorbin
33a77cca49 Revert accidental 5.9 branch commits [54655] and [54656]
Unprops audrasjb.
See #56867, #56792, #56862, #56792.


Built from https://develop.svn.wordpress.org/branches/5.9@54657


git-svn-id: http://core.svn.wordpress.org/branches/5.9@54209 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-20 18:20:00 +00:00
audrasjb
04e120a593 Docs: Add missing default parameter value in trackback_response() docblock.
Props rakibwordpress, audrasjb, SergeyBiryukov.
Fixes #56867.
See #56792.

Built from https://develop.svn.wordpress.org/branches/5.9@54656


git-svn-id: http://core.svn.wordpress.org/branches/5.9@54208 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-20 16:42:01 +00:00
audrasjb
b2191ff30c Docs: Add missing default parameter value in themes_api() docblock.
Props rezakhan995, costdev.
Fixes #56862.
See #56792.

Built from https://develop.svn.wordpress.org/branches/5.9@54655


git-svn-id: http://core.svn.wordpress.org/branches/5.9@54207 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-20 16:38:05 +00:00
audrasjb
34ecc74ff9 WordPress 5.9.5.
Built from https://develop.svn.wordpress.org/branches/5.9@54580


git-svn-id: http://core.svn.wordpress.org/branches/5.9@54134 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-17 19:45:04 +00:00
desrosj
a5129f833b Partial revert of [54545].
Removes unrelated `package.json` changes.
Built from https://develop.svn.wordpress.org/branches/5.9@54549


git-svn-id: http://core.svn.wordpress.org/branches/5.9@54104 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-17 17:49:24 +00:00
audrasjb
b683ac27c5 Grouped backports to the 5.9 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.9 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.9@54545


git-svn-id: http://core.svn.wordpress.org/branches/5.9@54100 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-17 17:41:29 +00:00
Peter Wilson
864d544852 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.9 branch.
See #56532.


Built from https://develop.svn.wordpress.org/branches/5.9@54431


git-svn-id: http://core.svn.wordpress.org/branches/5.9@53990 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-10 04:47:13 +00:00
desrosj
461062cab7 WordPress 5.9.4.
Built from https://develop.svn.wordpress.org/branches/5.9@53988


git-svn-id: http://core.svn.wordpress.org/branches/5.9@53547 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-08-30 17:26:04 +00:00
Sergey Biryukov
0a6525bc80 Grouped backports to the 5.9 branch.
- Posts, Post Types: Escape output within `the_meta()`.
- General: Ensure bookmark query limits are numeric.
- Plugins: Escape output in error messages.

Built from https://develop.svn.wordpress.org/branches/5.9@53964


git-svn-id: http://core.svn.wordpress.org/branches/5.9@53523 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-08-30 15:25:05 +00:00
Sergey Biryukov
657e931145 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.9 branch.
See #56126.
Built from https://develop.svn.wordpress.org/branches/5.9@53674


git-svn-id: http://core.svn.wordpress.org/branches/5.9@53233 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-07-06 16:20:08 +00:00
desrosj
6437203f09 Build/Test Tools: Update 3rd party GitHub Actions.
This updates the following GitHub Actions to the latest versions:

- `actions/checkout`
- `actions/cache`
- `actions/github-script`
- `actions/setup-node`
- `codecov/codecov-action`
- `ramsey/composer-install`
- `shivammathur/setup-php`
- `slackapi/slack-github-action`

Various inline documentation updates are also included.

Merges [53112], [53581], [53582], and [53592] to the 5.9 branch.
See #55652.
Built from https://develop.svn.wordpress.org/branches/5.9@53596


git-svn-id: http://core.svn.wordpress.org/branches/5.9@53184 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-06-30 16:28:05 +00:00
Sergey Biryukov
ea97d7797b Build/Test Tools: Pass GitHub Actions environment variables to the Docker container.
This ensures that `WP_UnitTestCase::skipOnAutomatedBranches()` has access to the `GITHUB_REF` and `GITHUB_EVENT_NAME` variables, so that some tests can be skipped when appropriate.

Additionally, account for renaming the `master` branch to `trunk` in November 2021.

Follow-up to [40241], [46999], [49264], [49267], [51868].

Merges [53349] to the 5.9 branch.
Fixes #55668.
Built from https://develop.svn.wordpress.org/branches/5.9@53351


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52940 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-04 11:46:06 +00:00
Sergey Biryukov
8cd8ef6c75 Security: Add 5.9 to the list of versions receiving security updates.
Merges a part of [52448] to the 5.9 branch.
Built from https://develop.svn.wordpress.org/branches/5.9@53348


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52937 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-03 21:43:04 +00:00
Sergey Biryukov
f1520bb093 Post WordPress 5.9.3 version bump.
Built from https://develop.svn.wordpress.org/branches/5.9@53081


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52670 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-04-05 20:04:03 +00:00
audrasjb
80d4f5a4e2 WordPress 5.9.3.
Built from https://develop.svn.wordpress.org/branches/5.9@53079


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52668 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-04-05 19:08:04 +00:00
audrasjb
276e7dd132 Help/About: Update the About page with the correct number of bugfixes for WP 5.9.3.
See #55473.

Built from https://develop.svn.wordpress.org/branches/5.9@53078


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52667 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-04-05 14:44:04 +00:00
audrasjb
66f905f284 Help/About: Update the About page for WordPress 5.9.3.
Props audrasjb, SergeyBiryukov.
Fixes #55473.

Built from https://develop.svn.wordpress.org/branches/5.9@53073


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52662 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-04-05 10:34:03 +00:00
audrasjb
5a24eb1195 Post WordPress 5.9.3 RC1 version bump.
Built from https://develop.svn.wordpress.org/branches/5.9@53032


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52621 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-30 21:43:01 +00:00
audrasjb
2317a454f3 WordPress 5.9.3 RC1.
Built from https://develop.svn.wordpress.org/branches/5.9@53031


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-30 21:22:04 +00:00
audrasjb
64a00287bc Update WordPress packages for 5.9.3.
Updated packages:

- @wordpress/block-directory@3.0.29
- @wordpress/block-library@6.0.28
- @wordpress/customize-widgets@2.0.29
- @wordpress/edit-post@5.0.29
- @wordpress/edit-site@3.0.29
- @wordpress/edit-widgets@3.1.24

Props mamaduka, jorgefilipecosta.
Fixes #55474.

Built from https://develop.svn.wordpress.org/branches/5.9@53030


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52619 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-30 11:30:25 +00:00
audrasjb
035d87d2a1 Customizer: When a block theme is active, add an information about Site Editor in the Customizer.
This change adds an information notice to the customizer when a block theme is active and the customizer is also available (for example when a plugin activates it), to encourage people to use the Site Editor for the best full site customization experience.

Props ironprogrammer, antonvlasenko, Clorith, audrasjb, psmits1567, tobifjellner, costdev, webcommsat, joedolson, pbiron.
Merges [53024] and [53025] to the 5.9 branch.
Fixes #54939.

Built from https://develop.svn.wordpress.org/branches/5.9@53026


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52615 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-29 20:18:17 +00:00
audrasjb
d5e8989d9b Filesystem API: Include the ssh-ed25519 public key signature algorithm as an alternative to ssh-rsa.
The `ssh-rsa` signature algorithm is disabled by default as of OpenSSH 8.8, which breaks SSH2 uploads in WordPress on modern systems. `ssh-ed25519` is one of the suggested alternatives, supported since OpenSSH 6.5.

References:

- OpenSSH 8.2 release notes
- OpenSSH 8.7 release notes
- OpenSSH 8.8 release notes

Follow-up to [8865].

Props richybkreckel, dd32, SergeyBiryukov.
Merges [52807] to the 5.9 branch.
Fixes #52409.

Built from https://develop.svn.wordpress.org/branches/5.9@53022


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52611 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-29 16:30:12 +00:00
audrasjb
e4f842c54f Administration: Do not specify menu order for the Widgets menu when the active theme is a block theme.
When using a block theme that declares Widgets support, it's better to not specify a menu order for the Widgets menu to avoid conflicts between menu items order.

Props Rufus87, ironprogrammer, audrasjb, hellofromTonya, davidbaumwald.
Merges [53020] to the 5.9 branch.
Fixes #54916.

Built from https://develop.svn.wordpress.org/branches/5.9@53021


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52610 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-29 16:24:16 +00:00
audrasjb
5a1ccc718b Editor: Fix broken asset URLs when using WP outside of the regular directory
Both CSS and JS URLs were totally broken for some of the newer blocks (e.g. the navigation block in the 2022 theme) when WP core is outside of the current directory using a different prefix.

Props gziolo, SergeyBiryukov, pgpagely, Mamaduka.
Merges [52939] to the 5.9 branch.
Fixes #55311.

Built from https://develop.svn.wordpress.org/branches/5.9@53019


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52608 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-29 15:43:18 +00:00
audrasjb
400f27879d Editor: Change location of block support styles in wp_head.
Backports changes from https://github.com/WordPress/gutenberg/pull/39164.

Props ndiego, alexstine, cbravobernal, mamaduka.
Merges [53015] to the 5.9 branch.
See #55474.

Built from https://develop.svn.wordpress.org/branches/5.9@53017


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52606 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-29 13:49:16 +00:00
audrasjb
22061e9c67 Editor: Use wp_unique_id() instead of uniqid() to generate CSS class names.
Backports changes from https://github.com/WordPress/gutenberg/pull/38891.
See https://github.com/WordPress/gutenberg/issues/38889.

Props westonruter, mamaduka.
Merges [53012] to the 5.9 branch.
See #55474.

Built from https://develop.svn.wordpress.org/branches/5.9@53013


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52602 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-29 13:09:06 +00:00
audrasjb
e67da61255 Themes: Avoid undefined variable warning on get_svg_filters().
This change fixes an undefined variable warning thrown when `duotone` color setting was set to null in Block Themes `theme.json` file.

Follow-up to [52768].

Props aliakseyenkaihar, audrasjb, rafiahmedd.
Merges [52791] to the 5.9 branch.
Fixes #55241.

Built from https://develop.svn.wordpress.org/branches/5.9@53009


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52598 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-29 09:12:06 +00:00
audrasjb
0bed07cb1c Themes: Hide block themes live preview link following installation.
Prevent the Customizer/Live Preview button from showing for installed block themes when on the theme installation page.

Props antonvlasenko, costdev, ironprogrammer.
Merges [52819] to the 5.9 branch.
Fixes #54878.

Built from https://develop.svn.wordpress.org/branches/5.9@53008


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52597 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-29 08:55:13 +00:00
audrasjb
07855db0ee Media: Make get_post_galleries() only return galleries.
This change makes sure only gallery content is returned by `get_post_galleries()`. It fixes an issue where non gallery block content was also returned by the function.

Props BinaryMoon, costdev, glendaviesnz.
Merges [52797] to the 5.9 branch.
Fixes #55203.

Built from https://develop.svn.wordpress.org/branches/5.9@53006


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52595 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-28 20:52:06 +00:00
audrasjb
7d4e457cd4 Editor: Optimize preload paths for post and site editors.
This patch optimizes preload paths in post and site editors so that they match the real requests:

- Remove the `/` preload as the payload is very big and the response is not needed on any critical path.
- Modify the preloaded path for `/wp/v2/taxonomies` so that it corresponds to what `loadTaxonomyEntities` requests. After Gutenberg PR 37685 was merged to core, these preloads need to be modified to use `context=view` instead of `context=edit`.
- Modify the `/wp/v2/users/me` path so that it matches the real request (no query params).
- Add a preload of `/wp/v2/settings` because it is requested on critical path (editor boot). Site editor already preloads this, the changeset is only adding it to the post editor.

This is related to Gutenberg PR 39256 which introduces compatibility code to modify the preload paths with a filter, when the Gutenberg plugin is active.
See https://github.com/WordPress/gutenberg/pull/39256.

Props jsnajdr, noisysocks.
Merges [52995] to the 5.9 branch.

Built from https://develop.svn.wordpress.org/branches/5.9@53005


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52594 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-28 20:31:06 +00:00
Sergey Biryukov
2f4d408f06 Post WordPress 5.9.2 version bump.
Built from https://develop.svn.wordpress.org/branches/5.9@52920


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52509 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-11 02:33:03 +00:00
jorgefilipecosta
a8e3d2e0ad Block Editor: Improve Global Styles filtering order.
From the conceptual point it makes sense to execute global styles filters before post filters. So the post filters are always the last.

Props xknown, sergey, audrasjb, vortfu, oandregal, get_dave.
Merges [52895] to the 5.9 branch.
Built from https://develop.svn.wordpress.org/branches/5.9@52896


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52485 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-10 23:38:02 +00:00
jorgefilipecosta
61fbb2109f 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.9@52894


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52483 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-10 23:03:21 +00:00
audrasjb
7e32b3f2b0 WordPress 5.9.2.
Built from https://develop.svn.wordpress.org/branches/5.9@52874


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52463 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-10 22:02:03 +00:00
audrasjb
2753058dfa 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.9 branch.

Built from https://develop.svn.wordpress.org/branches/5.9@52845


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52434 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-10 19:20:05 +00:00
audrasjb
fcf2500f49 Themes: Remove the Live Preview link when installing a block theme from a zip archive.
This changeset removes the Live Preview link for block-based themes when installing for a zip archive, since the customizer is disabled by default for block themes.

Follow-up to [52353].

Props alanjacobmathew, hellofromTonya, antonvlasenko, ironprogrammer.
Fixes #54578.

Built from https://develop.svn.wordpress.org/branches/5.9@52803


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52392 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-26 08:29:03 +00:00
Sergey Biryukov
95c433c8cd Post WordPress 5.9.1 version bump.
The 5.9 branch is now 5.9.2-alpha.
Built from https://develop.svn.wordpress.org/branches/5.9@52788


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52377 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-22 16:07:01 +00:00
audrasjb
ef7f72daec WordPress 5.9.1.
Built from https://develop.svn.wordpress.org/branches/5.9@52786


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52375 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-22 15:17:04 +00:00
audrasjb
d687a49c78 Help/About: Update the About page for WordPress 5.9.1.
Props hellofromTonya, audrasjb.
Fixes #55173.

Built from https://develop.svn.wordpress.org/branches/5.9@52785


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52374 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-22 11:05:07 +00:00
audrasjb
46da16fae1 Twenty Twenty-Two: Bump theme version to 1.1.
This change bumps the version of the Twenty Twenty-Two bundled theme in preparation for release with WordPress 5.9.1.

Props peterwilsoncc, petaryoast, audrasjb, SergeyBiryukov, rafiahmedd.
Merges [52781] to the 5.9 branch.
Fixes #55056.

Built from https://develop.svn.wordpress.org/branches/5.9@52782


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52371 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-21 21:15:04 +00:00
audrasjb
08e4416dd5 Post WordPress 5.9.1 RC1 version bump.
Built from https://develop.svn.wordpress.org/branches/5.9@52771


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52360 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-17 21:48:01 +00:00
audrasjb
2c2f8a21fd WordPress 5.9.1 RC1.
Built from https://develop.svn.wordpress.org/branches/5.9@52770


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52359 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-17 21:24:03 +00:00
hellofromTonya
614e78a804 Editor: Automatically apply global styles duotone filters to render in post editor.
Global styles duotone filters were not rendering in the post editor. This fixes that by adding `wp_global_styles_render_svg_filters` to the `in_admin_header` so it renders in the body before the editor.

Follow-up [52757].

Props ajlende, abhanonstopnewsuk.
Merges [52768] to the 5.9 branch.
Fixes #55190.
Built from https://develop.svn.wordpress.org/branches/5.9@52769


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52358 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-17 20:51:03 +00:00
hellofromTonya
f98ee7b892 Options: Disable transients while installing.
Prevent the transient setters and getters from attempting to use the database table before they exist during the installation process. 

During installation transients now use the `wp_cache_*()` functions on all sites, including those without a persistent cache, to prevent database errors. The use of the caching functions stores the data in memory for the duration of the request to account for transient data that is used multiple times during installation.

Props dd32, audrasjb, tnolte, antonvlasenko, noisysocks, peterwilsoncc.
Merges [52694] to the 5.9 branch.
Fixes #54849.
Built from https://develop.svn.wordpress.org/branches/5.9@52767


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52356 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-17 19:52:59 +00:00
audrasjb
a0cced6bba Editor: Update block editor packages for WordPress 5.9.1.
The following packages were updated:

- @wordpress/block-directory@3.0.27
- @wordpress/block-editor@8.0.17
- @wordpress/block-library@6.0.26
- @wordpress/components@19.2.3
- @wordpress/core-data@4.0.10
- @wordpress/customize-widgets@2.0.27
- @wordpress/e2e-tests@2.5.18
- @wordpress/edit-post@5.0.27
- @wordpress/edit-site@3.0.27
- @wordpress/edit-widgets@3.1.22
- @wordpress/editor@12.0.21
- @wordpress/format-library@3.0.23
- @wordpress/interface@4.1.18
- @wordpress/list-reusable-blocks@3.0.20
- @wordpress/nux@5.0.20
- @wordpress/reusable-blocks@3.0.23
- @wordpress/server-side-render@3.0.20
- @wordpress/widgets@2.0.23

Props Mamaduka.
Merges [52765] to the 5.9 branch.
See #55179.

Built from https://develop.svn.wordpress.org/branches/5.9@52766


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52355 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-17 19:42:26 +00:00
hellofromTonya
1a316fc555 Editor: Adds an additional check to guard against incompete presets.
Adds an additional guard to ensure the value of `$preset_metadata['value_key']` actually exists as a key in the `$preset` array. Fixes `Warning: Undefined array key` error. 

Intentionally adds the check into the existing `isset()` as it's native to PHP, more efficient, and a good pattern.

Follow-up [52049].

Props jeherve, swissspidy, sergeybiryukov, jrf.
Merges [52763] to the 5.9 branch.
Fixes #55161.
Built from https://develop.svn.wordpress.org/branches/5.9@52764


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52353 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-17 18:56:03 +00:00
hellofromTonya
93fbf22647 Script Loader: Prevent normalizing data URIs in _wp_normalize_relative_css_links().
This prevents making data URIs as in `mask-image:url('data:image/svg+xml;utf8,<svg...` relative to the WordPress installation.

Props staatic.
Merges [52754] to the 5.9 branch.
See #54243.
Fixes #55177.
Built from https://develop.svn.wordpress.org/branches/5.9@52762


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52351 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-17 18:00:00 +00:00
Sergey Biryukov
5b69c32e30 Filesystem API: Use a temp folder for Content-Disposition files.
#38231 added support for files fetched remotely to have their filename defined by the host using the `Content-Disposition` header. This would then take priority over the existing temporary file name created with `wp_tempnam()` earlier in the process.

The change unintentionally omitted the temporary directory path used during uploads, since the `wp_tempnam()` function would have added it previously, so that files with this header ended up being stored in the WordPress root folder, or wp-admin folder, when triggered by WP_Cron or user interactions respectively.

This change makes sure the file path includes the temporary directory location when the header is used.

Follow-up to [51939].

Props antonynz, azouamauriac, Clorith.
Merges [52734] and [52760] to the 5.9 branch.
Fixes #55109.
Built from https://develop.svn.wordpress.org/branches/5.9@52761


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52350 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-17 17:44:00 +00:00
audrasjb
affb772478 Editor: Backport Duotone fixes for 5.9.1.
This changeset is a backport for the following Gutenberg PRs:

- Fix duotone theme cache: https://github.com/WordPress/gutenberg/pull/36236
- Fix duotone render in non-fse themes gutenberg: https://github.com/WordPress/gutenberg/pull/37954
- Duotone: Allow users to specify custom filters gutenberg: https://github.com/WordPress/gutenberg/pull/38442

Props oandregal, scruffian, Mamaduka.
Merges [52757] to the 5.9 branch.
See #55179.

Built from https://develop.svn.wordpress.org/branches/5.9@52759


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52348 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-17 17:31:01 +00:00
audrasjb
0711ec9616 Docs: Typo corrections in class-wp-theme-json docblocks.
Props kebbet, hellofromtonya.
Merges [52692] to the 5.9 branch.
See #54729.

Built from https://develop.svn.wordpress.org/branches/5.9@52758


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52347 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-17 17:22:03 +00:00
hellofromTonya
18945d341b Editor: Grant only admins access to the "Navigation Menus" UI for block and non-block themes.
Restricts and grants access to only admin roles for the Navigation Menu UI screen, i.e. either directly through the URL wp-admin/edit.php?post_type=wp_navigation or via the Navigation block's "Manage menu" option (in the block's toolbar).

It resolves 2 issues:

- For non-block themes, fixes the issue where admins could not access the UI.
- For block themes, restricts access to only admin roles, i.e. non-admins no longer have access to the UI.

Non-admins will receive the "Sorry, you are not allowed to edit posts in this post type" error message.

Follow-up [52069], [52145], [52330], [52400].

Props ironprogrammer, costdev, noisysocks, talldanwp, hellofromTonya, manfcarlo, pyrobd.
Merges [52755] to the 5.9 branch.
Fixes #54889.
Built from https://develop.svn.wordpress.org/branches/5.9@52756


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52345 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-17 15:46:04 +00:00
jorgefilipecosta
be639d98c5 Global Styles: Load the global styles before the theme styles in the editor.
This commit makes the site editor follow what we do in the front-end, where theme styles are loaded after global styles by default.

Props oandregal, ntsekouras.
Merges [52752] to the 5.9 branch.
Fixes #55188.
Built from https://develop.svn.wordpress.org/branches/5.9@52753


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52342 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-17 14:19:04 +00:00
jorgefilipecosta
b9ccf1699b Global Styles: Fix PHP warning in WP_REST_Global_Styles_Controller if no styles exist.
There is a PHP warning in WP_REST_Global_Styles_Controller because we are assuming that every theme.json has styles property, which is not always the case.

Props ntsekouras.
Merges [52750] to the 5.9 branch.
Fixes #54900.
Built from https://develop.svn.wordpress.org/branches/5.9@52751


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52340 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-17 13:56:01 +00:00
jorgefilipecosta
c8d6cfeed9 Script Loader: Improvements to the load block support styles mechanism.
This commit applies feedback given to commit 52741. It changes the new function name, the file where it is located, and improves its documentation and marks.

Follow-up to [52741].
Props hellofromtonya, swissspidy, oandregal.
Merges [52743] to the 5.9 branch.
See #55148.
Built from https://develop.svn.wordpress.org/branches/5.9@52748


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52337 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-17 13:13:01 +00:00
jorgefilipecosta
c62ccfa0c2 Script Loader: Load block support styles in the head for block themes.
The dynamic block styles for layout and elements should be loaded in the head for block themes. While that should also be the case for classic themes, the current mechanism we use (render_block) does not allow us to do that, hence, this PR doesn't change anything for them and will be loaded the body.

Props oandregal, youknowriad, wpsoul.
Merges [52741] to the 5.9 branch.
Fixes #55148.
Built from https://develop.svn.wordpress.org/branches/5.9@52747


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52336 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-17 13:09:03 +00:00
audrasjb
db8abe34fd Themes: Allow extending WP_Theme_JSON and WP_Theme_JSON_Resolver classes.
This change updates methods visibility from `private` to `protected` and adds late static binding.

Original PRs from Gutenberg repository:
- https://github.com/WordPress/gutenberg/pull/38625
- https://github.com/WordPress/gutenberg/pull/38671

Props oandregal, Mamaduka, kapilpaul.
Merges [52744] to the 5.9 branch.
Fixes #55178.
See #55179.

Built from https://develop.svn.wordpress.org/branches/5.9@52746


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52335 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-17 11:15:05 +00:00
Dominik Schilling
309a44e152 Editor: Prevent front-end assets of a block from being enqueued in the block editor.
Since WordPress 5.9 you can set a view script for a block which is supposed to be only loaded on the front end. Unfortunately it's currently also loaded in the editor which can cause unexpected behaviour and also performance issues depending on the size of the scripts.
This is caused by the preloading of REST API routes via `block_editor_rest_api_preload()` which doesn't happen in an encapsulated process and so does pollute any global state like the one for scripts and styles.
Similar to the global `$post`, core now backups the globals `$wp_scripts` and `$wp_styles` and restores the backup after the preloading.

Props gziolo, ocean90.
Merges [52733] to the 5.9 branch.
Fixes #55151.
Built from https://develop.svn.wordpress.org/branches/5.9@52745


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52334 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-17 09:11:02 +00:00
audrasjb
341a54e73e Script Loader: Load block themes styles in the head section.
Previously, some logic was added to load the global stylesheet in the bottom of `<body>` for classic themes that opted-in into loading individual block styles instead of a single stylesheet for them all. At the time, block themes always loaded the global stylesheet in the `<head>`. When block themes landed in core during WordPress 5.9 this logic wasn’t updated to consider them, hence the global stylesheet loaded in the `<body>` for them. This changeset fixes this.

Props oandregal, aristath.
Merges [52738] to the 5.9 branch.
Fixes #55148.

Built from https://develop.svn.wordpress.org/branches/5.9@52739


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52328 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-16 10:55:04 +00:00
audrasjb
0600b07381 Administration: Fix a CSS issue on the Welcome Panel when the "Dashboard" heading is missing.
This change adds a CSS exception for when the "Dashboard" heading is missing or located below the Welcome Panel.

Props critterverse, sabernhardt, rolfsiebers, audrasjb.
Merges [52735] to the 5.9 branch.
Fixes #54977.

Built from https://develop.svn.wordpress.org/branches/5.9@52736


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52325 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-15 18:29:03 +00:00
audrasjb
5e7b029ff2 Widgets: Missing markup from Widgets Group block.
This change fixes an issue in the Widgets editor: widgets group was missing a `.wp-widget-group__inner-blocks` container.

Props noisysocks, ironprogrammer.
Merges [52730] to the 5.9 branch.
Fixes #55072.

Built from https://develop.svn.wordpress.org/branches/5.9@52731


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52320 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-15 10:33:02 +00:00
Peter Wilson
2ef6202356 External libraries: Update version string for hoverIntent.
Updating the version string will help invalidate caches, ensuring the new version of the library is loaded where applicable.

Follow-up to [52429].

Props david.binda, Clorith.
Merges [52673] to the 5.9 branch.
Fixes #54904.


Built from https://develop.svn.wordpress.org/branches/5.9@52729


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52318 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-15 02:48:59 +00:00
Peter Wilson
29ed36c8c6 Editor: Only render term update notices on term screens.
Prevent blank notices from appearing when adding custom fields or terms in the post editor.

Props gadhiyaravi, Boniu91, ravipatel, sabernhardt, joedolson.
Fixes #54955. See #42937.


Built from https://develop.svn.wordpress.org/branches/5.9@52728


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52317 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-15 02:45:04 +00:00
audrasjb
e97ddc2f84 Twenty Twenty-One: Allow editor styles to control block margins.
This change removes some overrides that prevented site editor updates in 5.9 from controlling vertical margins via `var(--global--spacing-vertical)`.

Props stacimc, Boniu91, aristath, ironprogrammer, nidhidhandhukiya.
Merges [52726] to the 5.9 branch.
Fixes #54250.

Built from https://develop.svn.wordpress.org/branches/5.9@52727


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52316 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-14 22:20:02 +00:00
audrasjb
240d281c9a Revert [52722].
This change was not intended to be backported to branch 5.9.

Unprops audrasjb.

Built from https://develop.svn.wordpress.org/branches/5.9@52723


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52312 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-13 21:29:59 +00:00
audrasjb
10b8f45f4f Twenty Fifteen: Add gradient background options using the theme color scheme.
This change implements gradient background options that fit the color scheme used in Twenty Fifteen.

Props ianbelanger, itsamoreh, pls78, audrasjb.
Fixes #49760.

Built from https://develop.svn.wordpress.org/branches/5.9@52722


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52311 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-13 21:05:02 +00:00
Sergey Biryukov
38a0dfe341 Update mergeinfo for the 5.9 branch.
Follow-up to [52541], [52542], [52579], [52590], [52632], [52688], [52709], [52712], [52714], [52715].
Built from https://develop.svn.wordpress.org/branches/5.9@52720


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52309 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-12 15:12:00 +00:00
audrasjb
fec51ff376 Query: Check if the theme supports block-templates before calling locate_block_template() in get_query_template().
This change improves performance for classic themes by removing an unnecessary query and fixes an issue where a classic theme would show "Empty template: Index" on the frontend when an empty `(block-)templates/index.html` file exists.

Props johnbillion, ianatkins, Mamaduka, costdev, manfcarlo, dolphingg, audrasjb, madeinua, kapilpaul, rafiahmedd, SergeyBiryukov.
Merges [52697] to the 5.9 branch.
Fixes #54844.

Built from https://develop.svn.wordpress.org/branches/5.9@52716


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52305 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-12 07:47:05 +00:00
audrasjb
7279f8bf12 Script Loader: Prevent normalizing HTML IDs in _wp_normalize_relative_css_links().
This change fixes an issue where `_wp_normalize_relative_css_links()` was not only matching urls, but also HTML IDs.

Follow-up to [52036].

Props mahype, costdev, audrasjb, SergeyBiryukov.
Merges [52695] to the 5.9 branch.
Fixes #54922.

Built from https://develop.svn.wordpress.org/branches/5.9@52715


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52304 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-11 22:53:01 +00:00
audrasjb
7ef1030432 Script Loader: Prevent normalizing HTML IDs in _wp_normalize_relative_css_links().
This change fixes an issue where `_wp_normalize_relative_css_links()` was not only matching urls, but also HTML IDs.

Follow-up to [52036].

Props mahype, costdev, audrasjb, SergeyBiryukov.
Merges [52695] to the 5.9 branch.
Fixes #54922.

Built from https://develop.svn.wordpress.org/branches/5.9@52714


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52303 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-11 22:44:00 +00:00
Sergey Biryukov
cf52bed1f4 Upgrade/Install: Make sure the "Show hidden updates" button is visible and works as expected.
The [https://api.jquery.com/toggle-event/ .toggle( handler, handler )] method signature was deprecated in jQuery 1.8 and removed in jQuery 1.9. 

This commit updates the click handler function to work with jQuery 1.9+.

Follow-up to [9441], [9543], [42785], [48323].

Props malinevskiy, Boniu91, SergeyBiryukov.
Merges [52644] to the 5.9 branch.
Fixes #54886.
Built from https://develop.svn.wordpress.org/branches/5.9@52713


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52302 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-11 22:11:02 +00:00
audrasjb
493585345f Editor: Remove standard post type UI for templates and template parts.
In [52158] the standard post type UI was added back for templates and template parts, because these features had been temporarily removed from the site editor in the rush to get 5.9 ready for December. Since 5.9 these features were properly added back to the site editor, the `show_ui` values for these post types should be returned back to `false`.

Follow-up to [52158].

Props manfcarlo, audrasjb.
Merges [52668] to the 5.9 branch.
Fixes #54908.

Built from https://develop.svn.wordpress.org/branches/5.9@52712


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52301 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-11 21:38:02 +00:00
Sergey Biryukov
07efa8047f Twenty Twenty-Two: Fix headings consistency in Pricing table pattern.
This change fixes a consistency issue where "Pigeon" was a h3, while "Sparrow" and "Falcon" were h2. Let's treat these birds equally 🐦

Props kjellr, jffng, audrasjb.
Merges [52681] to the 5.9 branch.
Fixes #54929.
Built from https://develop.svn.wordpress.org/branches/5.9@52711


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52300 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-11 21:30:02 +00:00
Sergey Biryukov
47123dd3c8 Twenty Twenty-Two: Optimize the assets/images/ducks.jpg image.
The new file should have a much better balance of quality and file size.

Follow-up to [52081], [52107].

Props kafleg, kjellr, jffng, kapilpaul.
Merges [52651] to the 5.9 branch.
Fixes #54911.
Built from https://develop.svn.wordpress.org/branches/5.9@52710


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52299 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-11 21:11:59 +00:00
Sergey Biryukov
0546145cfc Twenty Twenty-Two: Update mergeinfo after [52688].
See #54944, #55103.
Built from https://develop.svn.wordpress.org/branches/5.9@52709


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52298 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-11 21:10:03 +00:00
audrasjb
1dba1d9d5d Twenty Twenty-Two: Remove negative side margins on group blocks with a background.
This change fixes an issue where applying a background color to a group block aligned it to the left in the editor.

Props eddystile, audrasjb, webmandesign, sabernhardt, petaryoast, kjellr.
Merges [52679] and [52686] to the 5.9 branch.
Fixes #54944, #55103.

Built from https://develop.svn.wordpress.org/branches/5.9@52688


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52277 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-07 14:58:03 +00:00
Sergey Biryukov
9377cd9479 Tests: Rename the test file and class for wp_get_global_stylesheet() tests.
This matches the name of the function being tested.

Follow-up to [52675-52677].

Merges [52682] to the 5.9 branch.
See #54782.
Built from https://develop.svn.wordpress.org/branches/5.9@52683


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52272 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-05 13:25:01 +00:00
Sergey Biryukov
6b6f78705c Themes: Fix for Classic themes using default presets.
This commit makes the presets provided by the theme via `add_theme_support()` always create CSS Custom Properties, whether or not the theme has a `theme.json` file. This way, if the theme overwrites a core preset, the core CSS variables are also overwritten and use the theme value.

Props oandregal, hellofromTonya, desrosj, costdev, pbearne, johnstonphilip, webmandesign, jorgefilipecosta, SergeyBiryukov.
Merges [52675-52677] to the 5.9 branch.
Fixes #54782.
Built from https://develop.svn.wordpress.org/branches/5.9@52678


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52267 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-04 14:48:05 +00:00
Peter Wilson
1350b7df5b Twenty Twenty-Two: Replace GitHub with .org link in Theme URI.
Theme URI is the URL of a public web page where users can find more information about the theme. For bundled themes, it should be a link to the theme’s page on the Theme Repository.

Props kafleg, audrasjb.
Merges [52658] to the 5.9 branch.
Fixes #55018.


Built from https://develop.svn.wordpress.org/branches/5.9@52667


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52256 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-03 00:20:02 +00:00
Peter Wilson
d4457b0deb Twenty Twenty-Two: Make 404 pattern search label and button translatable.
This changes makes the Twenty Twenty-Two "hidden-404" pattern fully prepared for translation.

Props kjellr, walbo, audrasjb.
Merges [52664] to the 5.9 branch.
Fixes #54928.

Built from https://develop.svn.wordpress.org/branches/5.9@52666


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52255 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-03 00:15:02 +00:00
Peter Wilson
2385395bcc External libraries: Update jQuery UI to 1.13.1
Some regressions happened alongside the release of jQuery UI 1.13.0, this brings the fixes from 1.13.1 downstream to WordPress, notably relating to Widget, Autocomplete, Sortable, and Tooltip modules.

See the changelog between version 1.13.0 and 1.13.1 at https://github.com/jquery/jquery-ui/compare/1.13.0...1.13.1

Props blogaid, linux4me2, mgol, Clorith.
Merges [52648] to the 5.9 branch.
Fixes #54902.


Built from https://develop.svn.wordpress.org/branches/5.9@52665


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52254 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-03 00:04:02 +00:00
Peter Wilson
dc2fadfc1d Upgrade: Prevent warnings upgrading cron array.
An unvisited site may have an undefined cron array, resulting in `_get_cron_array()` returning the value `false`. Previously this would trigger warning in `upgrade_590()` as the function assumed `_get_cron_array()` would alway return an array.

No database version change is required as the upgrade routine was successful on sites with a cron array during 5.9.0. On sites without a cron array, the error has already been thrown if they are running db version 51917. This fix is only required for new sites or those upgrading that have skipped 5.9.0.

Follow up to [51917].

Props chrisvanpatten, kapilpaul, SergeyBiryukov, audrasjb.
Merges [52656] and [52662] to the 5.9 branch.
Fixes #54906.
See #53940.


Built from https://develop.svn.wordpress.org/branches/5.9@52663


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52252 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-02 23:26:02 +00:00
Sergey Biryukov
3ae9f9ffe3 Post WordPress 5.9 version bump.
The 5.9 branch is now 5.9.1-alpha.
Built from https://develop.svn.wordpress.org/branches/5.9@52643


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52232 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-25 21:32:03 +00:00
Sergey Biryukov
bde5705828 WordPress 5.9.
Built from https://develop.svn.wordpress.org/branches/5.9@52641


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52230 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-25 19:48:09 +00:00
Dion Hulse
0f50dc0a3d Bump Akismet external.
See https://core.trac.wordpress.org/ticket/54004


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52227 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-25 00:39:24 +00:00
Sergey Biryukov
6fb7e0d491 Upgrade/Install: Update $_old_files for 5.9.
Props davidbaumwald, hellofromTonya, SergeyBiryukov.
Merges [52637] to the 5.9 branch.
Fixes #54894.
Built from https://develop.svn.wordpress.org/branches/5.9@52638


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52226 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-24 18:35:00 +00:00
Sergey Biryukov
249c2f64ac Post WordPress 5.9 RC4 version bump.
Built from https://develop.svn.wordpress.org/branches/5.9@52636


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52224 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-24 17:02:00 +00:00
Sergey Biryukov
3a4625cfa9 WordPress 5.9 RC4.
Built from https://develop.svn.wordpress.org/branches/5.9@52635


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52223 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-24 16:34:02 +00:00
desrosj
10610241eb Editor: Bump editor packages to include the latest fixes.
This merges the latest package updates for the block editor to include the fix for https://github.com/WordPress/gutenberg/pull/38175.

Props hellofromTonya, mamaduka, joen, talldanwp, cbravobernal, poena.
Fixes #54487.
Built from https://develop.svn.wordpress.org/branches/5.9@52634


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52222 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-24 16:08:21 +00:00
audrasjb
be769a845d Docs: Docblock corrections for get_block_file_template().
Follow-up to [52324].

Props johnbillion, SergeyBiryukov, costdev.
Merges [52631] to the 5.9 branch.
Fixes #54879.

Built from https://develop.svn.wordpress.org/branches/5.9@52632


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52220 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-24 15:42:00 +00:00
Dominik Schilling
007af9e81c Tests: Revert [52617].
Following [52629], the tests no longer throw an exception.

See #54318.
See #54882.
Built from https://develop.svn.wordpress.org/branches/5.9@52630


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52218 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-24 12:56:00 +00:00
Dominik Schilling
72bc236da0 Plugins/Themes: Allow to install/activate plugins/themes which require the WordPress version currently in development.
Twenty Twenty-Two requires WordPress 5.9 but currently can't be (re)activated in the 5.9 branch because `version_compare( '5.9-RC3-52627', '5.9', '>=' )` as used by `is_wp_version_compatible()` returns `false`. To appreciate the testing of upcoming versions any `-alpha`, `-RC`, `-beta` suffixes are now stripped off from the WordPress version before checking for compatibility.

Merges [52628] to the 5.9 branch.

Fixes #54882.
Built from https://develop.svn.wordpress.org/branches/5.9@52629


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52217 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-24 12:51:00 +00:00
Peter Wilson
bf4135194e Help/About: Update Freedoms page for 5.9.
Props peterwilsoncc, audrasjb, mikeschroder.
Merges [52626] to the 5.9 branch.
Fixes #54270.


Built from https://develop.svn.wordpress.org/branches/5.9@52627


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52215 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-24 10:02:03 +00:00
noisysocks
58c5e512b1 Update @wordpress packages
Update packages to include these bug fixes from Gutenberg:

- Block Editor: Mark last change as persistent on save
- Site Editor: Restore ?styles=open functionality
- Site Editor: Fix resizable box scrollbars in blocks
- Add classic menus to menu switcher

See #54487.
Props talldanwp.

Built from https://develop.svn.wordpress.org/branches/5.9@52625


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52213 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-24 07:48:19 +00:00
noisysocks
baf5a1ccd3 Customizer: Remove Menus panel when a theme does not support menus
By overriding check_capabilities(), we can ensure that the Menus panel
is removed if a theme does not have support for 'menus' nor 'widgets'.

This ensures that the Menus panel does not appear when using a block
theme, which is confusing to users.

See #54888.
Props hellofromTonya, costdev, peterwilsoncc.

Built from https://develop.svn.wordpress.org/branches/5.9@52623


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52211 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-24 05:41:02 +00:00
desrosj
a143b8e52b Bundled Themes: Bump the versions for bundled themes for release.
This bumps the versions of the default bundled themes in preparation for release with WordPress 5.9.

The new versions are:
- Twenty Ten: 3.6
- Twenty Eleven: 4.0
- Twenty Twelve: 3.6
- Twenty Thirteen: 3.5
- Twenty Fourteen: 3.3
- Twenty Fifteen: 3.1
- Twenty Sixteen: 2.6
- Twenty Seventeen: 2.9
- Twenty Nineteen: 2.2
- Twenty Twenty: 1.9
- Twenty Twenty-One: 1.5

Props audrasjb.
Merges [52618] to the 5.9 branch
Fixes #54783.
Built from https://develop.svn.wordpress.org/branches/5.9@52619


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52207 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-22 15:21:04 +00:00
desrosj
6e63432e97 Tests: Temporarily add expected exceptions to a few theme tests.
These tests are failing after [52614], which raised the minimum version of WordPress required for Twenty Twenty-Two. Since the value of `$wp_version` is still less than 5.9, these are failing.

After `$wp_version` is officially bumped to `5.9`, these should be removed.

Props hellofromTonya, Clorith.
See #54318.
Built from https://develop.svn.wordpress.org/branches/5.9@52617


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52205 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-21 20:48:00 +00:00
desrosj
d2ba4618f1 Bundled Themes: Reverts [52549].
[52549] updated some default presets in use by default themes to the new format. However, this change would cause elements to lose their styling when active on an older version of WordPress.

Merges [52615] to the 5.9 branch.
See #54782.
Built from https://develop.svn.wordpress.org/branches/5.9@52616


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52204 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-21 19:55:00 +00:00
desrosj
2edf657e80 Twenty Twenty-Two: update the required version.
This commit updates the required WordPress version of the 2022 default theme to 5.9 in advance of its release on January 25.

Props hellofromtonya, kjellr, desrosj.
Merges [52612] and [52613] to the 5.9 branch.
Fixes #54318.
Built from https://develop.svn.wordpress.org/branches/5.9@52614


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52202 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-21 19:44:02 +00:00
Sergey Biryukov
52c5003b0e Post WordPress 5.9 RC3 version bump.
Built from https://develop.svn.wordpress.org/branches/5.9@52601


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52189 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-18 22:26:02 +00:00
Sergey Biryukov
a3a75ab286 WordPress 5.9 RC3.
Built from https://develop.svn.wordpress.org/branches/5.9@52600


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52188 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-18 22:06:00 +00:00
hellofromTonya
601582e0f8 Editor: @wordpress package updates.
Update packages to include these bug fixes from Gutenberg:
Navigation Block: update micromodal to 0.4.10 to fix menu close button on mobile

Props ryelle, poena, get_dave, talldanwp, aristath, kjellr, audrasjb, desrosj.
Merges [52598] to the 5.9 branch.
See #54487.
Built from https://develop.svn.wordpress.org/branches/5.9@52599


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52187 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-18 21:38:15 +00:00
noisysocks
b37d66554b Update @wordpress packages
Update packages to include these bug fixes from Gutenberg:

- Stop keypresses being caught by other elements when they happen in a CustomSelectControl
- Remove color, spacing, and layout options for Template Part block
- Try: parse shortcode blocks outside the content
- Fix aria-modal attribution with multiple navs on page
- Gallery block: Remove warning notice about mobile version required
- Fix Home template description typo 
- Fix enqueueing additional styles for blocks only when rendered
- fix typo (hanle -> handle)
- SelectControl: mark the children prop as optional
- Remove warning for enqueued styles in Editor
- Add context to font style and font weight related translation strings
- Temporarily remove text decoration from Nav block
- Fix empty secondary sidebar overlapping widget editor content on mobile viewports
- Fix hiding the bottom of tablet/mobile preview in Site Editor

See #54487.
Props isabel_brison.

Built from https://develop.svn.wordpress.org/branches/5.9@52596


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52184 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-18 03:42:26 +00:00
hellofromTonya
4a971cab75 Editor: Explicitly load remote block patterns in the block and site editor screens.
Remote block patterns from wp.org were to be loaded through a callback hooked into the `current_screen` filter. Within 2 callbacks, i.e. `_load_remote_featured_patterns()` and `_load_remote_block_patterns()`, a guard clause bailed out early if the `$current_screen->is_block_editor` is `false`.

However, the `current_screen` filter is unreliable to detect the block editor. Why? In the block and Site Editor screens, `$current_scren->is_block_editor` is not set until after the filter is executed. Whoopsie.

This commit no longer uses the `current_screen` filter. Instead, it explicitly loads the remote block patterns by invoking both private functions (now not callbacks) directly in the screen files for the block and site editor screens.

With this change, passing `WP_Screen` object into these functions is no longer needed. As the `_load_remote_block_patterns()` function was introduced in 5.8.0, its function parameter is now deprecated and the guard clause retained for backwards compatibility.

Follow-up to [51021], [52377].

Props poena, noisysocks, peterwilsoncc, hellofromTonya, audrasjb.
Merges [52593] to the 5.9 branch.
Fixes #54806.
Built from https://develop.svn.wordpress.org/branches/5.9@52594


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52182 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-17 22:50:01 +00:00
hellofromTonya
b9a42e2de2 Administration: Revert [51946].
Reverting changeset due to reported issue of menu being hidden after clicking on certain mobile devices.

Props dhusakovic, audrasjb, SergeyBiryukov, costdev, joedolson.
Reverts [51946] on the 5.9 branch.
See #54837, #53587.
Built from https://develop.svn.wordpress.org/branches/5.9@52592


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52180 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-17 20:40:02 +00:00
audrasjb
f7d196082e Twenty Twenty-Two: Sync updates from GitHub from RC3.
This commit syncs minor changes for the default theme from its active development repository to core.

This is a follow up to [52081], [52107], [52164], [52222], [52283], [52335], [52375], [52392], [52430], and [52555]. It includes fixes to the group, cover, and template part block padding and removes unnecessary group block wrappers from many patterns.

To view the full set of changes, visit 69d5c512c6...91f8748566.

Props kjellr, richtabor, audrasjb, jffng.
Merges [52589] to the 5.9 branch.
Fixes #54318.

Built from https://develop.svn.wordpress.org/branches/5.9@52590


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52178 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-17 16:02:02 +00:00
audrasjb
be39ef2434 Media: Add a missing / in post thumbnail lazy loading regex.
This change avoids a warning thrown by a missing slash in a post thumbnail lazyload related regular expression.

Follow-up to [52065].

Props SierraTR, audrasjb, costdev, flixos90.
Merges [52563] to the 5.9 branch.
Fixes #54815.

Built from https://develop.svn.wordpress.org/branches/5.9@52579


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52169 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-14 21:26:04 +00:00
Sergey Biryukov
bd28ecb009 Post WordPress 5.9 RC2 version bump.
Built from https://develop.svn.wordpress.org/branches/5.9@52567


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52157 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-11 20:41:02 +00:00
Sergey Biryukov
9c9abd5dde WordPress 5.9 RC2.
Built from https://develop.svn.wordpress.org/branches/5.9@52566


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52156 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-11 20:18:04 +00:00
ryelle
13d9b3c932 Help/About: Update the About section for 5.9.
Use the correct Field Guide link. Update the SVGs used on Freedoms and Privacy. Add more spacing between sections on the About page, fixed spacing between rows on Freedoms page.

Props critterverse, audrasjb, versusbassz.
Merges [52563] to the 5.9 branch.
See #54270.


Built from https://develop.svn.wordpress.org/branches/5.9@52565


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52155 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-11 18:45:00 +00:00
ryelle
f664f4d841 Administration: Update design of the Dashboard welcome panel.
Tone down the brightness of the dashboard panel by using a white background behind the main text, and use the highlight color from each color scheme for the main background. This also introduces a $scheme-name SCSS variable to allow overrides for specific color schemes.

Props critterverse, sabernhardt, joedolson, audrasjb.
Merges [52562] to the 5.9 branch.
Fixes #54489.


Built from https://develop.svn.wordpress.org/branches/5.9@52564


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52154 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-11 18:43:03 +00:00
hellofromTonya
3ff07f2d41 Site Editor: Fix typo in home template translatable description.
The home template's description should be: "Displays as the site's home page, or as the Posts page when a static home page isn't set." This commit fixes the typo changing "it" to "isn't".

Follow-up to [52331].

Props kharisblank, talldanwp.
Merges [52554] to the 5.9 branch.
Fixes #54787.
Built from https://develop.svn.wordpress.org/branches/5.9@52561


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52151 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-11 18:16:03 +00:00
davidbaumwald
8381166b05 Script Loader: Fix a variable typo in wp_enqueue_block_style.
In `wp_enqueue_block_style` when `rtl` versions of CSS files are detected, `wp_style_add_data` is called to add the metadata to the registered sheet. However, the stylesheet `handle` argument is misspelled as `hanle`. This change corrects the argument name.

Props omaeyusuke.
Merges [52558] to the 5.9 branch.
Fixes #54786.
Built from https://develop.svn.wordpress.org/branches/5.9@52560


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52150 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-11 18:15:03 +00:00
hellofromTonya
f6d340767a Editor: Fix enqueueing additional styles in wp_enqueue_block_style() to print only when blocks render.
In a block theme, additional block styles registered using the wp_enqueue_block_style function should only get printed when the block exists on a page. However, they currently always get 
rendered.

This commit is a backport from Gutenberg that fixes the issue by printing the styles when a block 
renders.

Follow-up to [52069].

Props poena, aristath, Mamaduka.
Merges [52556] to the 5.9 branch.
Fixes #54787.
Built from https://develop.svn.wordpress.org/branches/5.9@52559


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52149 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-11 18:00:02 +00:00
desrosj
e594e7957e Twenty Twenty-Two: Sync updates from GitHub for RC 2.
This commit syncs changes for the default theme from its active development repository to core.

This is a follow up to [52081], [52107], [52164], [52222], [52283], [52335], [52375], [52392], and [52430]. It includes fixes to the theme's spacing and adds a search template.

To view the full set of changes, visit 8564fd281f...f0346e1ad2.

Props richtabor, kjellr, danieldudzic, scruffian, jffng.
Merges [52555] to the 5.9 branch.
See #54318.
Built from https://develop.svn.wordpress.org/branches/5.9@52557


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52147 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-11 16:54:02 +00:00
noisysocks
a2a7b95580 Update packages to include these bug fixes from Gutenberg:
- [Block Library - Query Pagination Next]: Hide block if custom query has no results
- [WP 5.9] Fix: HTML tags like inline images in nav links break submenu layout
- Check for nextpage to display page links for paginated posts
- Navigation: Set the default for --navigation-layout-align to "flex-start" when using vertical orientation
- [Block Library - Query Loop]: Use gap for the grid view
- Update page list flex variables to match navigation.
- Site logo: Fix range control on landscape logo
- Restore canvas padding for classic themes
- RichText: Fix dead key input on Windows
- Fix: Impossible to clear colors if color palettes are removed.
- Gallery block: pass any custom attributes through the gallery v2 migration script
- Reduce specificity of legacy font sizes defined by core
- Update: Improve escaping on the search block

See #54487.
Props isabel_brison.

Built from https://develop.svn.wordpress.org/branches/5.9@52552


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52142 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-11 03:15:32 +00:00
jorgefilipecosta
db0d297ac3 Fix: Update some default presets in use by default themes to the new format.
Themes that use the same preset slugs as WordPress uses need to be updated.
From the devnote https://make.wordpress.org/core/2022/01/08/updates-for-settings-styles-and-theme-json/
The CSS for some of the presets defined by WordPress (font sizes, colors, and gradients) was loaded twice for most themes in WordPress 5.8: in the block-library stylesheet plus in the global stylesheet. Additionally, there were slight differences in the CSS in both places.
In WordPress 5.9 those were consolidated into a single place, the global stylesheet whose name is global-styles-inline-css that is now loaded for all themes in the front-end.
For themes to override the default values they can use the theme.json and provide the same slug. Themes that do not use a theme.json can still override the default values by enqueuing some CSS that sets the corresponding CSS Custom Property. This commit does the second for the twenty twenty theme.

Props oandregal.
Merges [52549] to the 5.9 branch.
Fixes #54782.
Built from https://develop.svn.wordpress.org/branches/5.9@52550


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52140 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-10 18:33:01 +00:00
jorgefilipecosta
4e9316f722 Fix: WordPress default presets aren't loaded for all themes.
The default preset styles of WordPress (font sizes, colors, gradients) are now provided via the global stylesheet to avoid duplication of styles. This stylesheet can be found in the front-end with the name global-styles-inline-css.
The default presets are important to support old content that may use them and also patterns, that can use cross-theme styles.

Props oandregal.
Merges [52547] to the 5.9 branch.
Fixes #54781.
Built from https://develop.svn.wordpress.org/branches/5.9@52548


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52138 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-10 17:59:02 +00:00
audrasjb
9f98c0997f Help/About: Change the Learn WP link in the about page.
The workshops page doesn't specifically show 5.9 content at this stage (and likely won't until much later), so it needs to be changed to learn.wordpress.org homepage.

Props hlashbrooke, audrasjb, davidbaumwald.
Merges [52453] to the 5.9 branch.
Fixes #54755.

Built from https://develop.svn.wordpress.org/branches/5.9@52542


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52132 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-08 07:58:00 +00:00
audrasjb
40bb9982f7 REST API: Typo correction in a link description object.
This change fixes a wrong punctuation in a link description object of the menu items controller endpoint. It also updates qUnit test fixtures accordingly.

Props la-geek, audrasjb, tobifjellner, hellofromtonya, davidbaumwald.
Merges [52535] and [52536] to the 5.9 branch.
Fixes #54745.

Built from https://develop.svn.wordpress.org/branches/5.9@52541


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52131 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-08 07:35:04 +00:00
desrosj
141807bc26 Formatting: Correctly encode ASCII characters in post slugs.
Merges [52457] to the 5.9 branch.
Props zieladam, whyisjake, xknown, peterwilsoncc, desrosj, iandunn.
Built from https://develop.svn.wordpress.org/branches/5.9@52464


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52056 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-06 17:36:03 +00:00
desrosj
742cbf86f3 Upgrade/Install: Avoid using unserialize() unnecessarily.
Merges [52456] to the 5.9 branch.
Props vortfu, xknown, dd32.
Built from https://develop.svn.wordpress.org/branches/5.9@52462


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


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


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52050 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-06 17:20:55 +00:00
Sergey Biryukov
5ba465b490 Branch 5.9
Built from https://develop.svn.wordpress.org/branches/5.9@52447


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52039 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-04 20:48:09 +00:00
401 changed files with 6566 additions and 4565 deletions

View File

@@ -39,6 +39,192 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
</nav>
</div>
<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.9.8'
);
?>
<?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.9.8' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: 1: WordPress version number, 2: Plural number of bugs. More than one security issue. */
_n(
'<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
'<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.',
1
),
'5.9.7',
'1'
);
?>
<?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.9.7' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: %s: WordPress version number. */
__( '<strong>Version %s</strong> addressed some security issues.' ),
'5.9.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.9.6' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: %s: WordPress version number. */
__( '<strong>Version %s</strong> addressed some security issues.' ),
'5.9.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.9.5' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: %s: WordPress version number. */
__( '<strong>Version %s</strong> addressed some security issues.' ),
'5.9.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.9.4' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: 1: WordPress version number, 2: plural number of bugs. */
_n(
'<strong>Version %1$s</strong> addressed %2$s bug.',
'<strong>Version %1$s</strong> addressed %2$s bugs.',
19
),
'5.9.3',
number_format_i18n( 19 )
);
?>
<?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.9.3' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: 1: WordPress version number, 2: Plural number of bugs. More than one security issue. */
_n(
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.',
1
),
'5.9.2',
number_format_i18n( 1 )
);
?>
<?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.9.2' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: 1: WordPress version number, 2: plural number of bugs. */
_n(
'<strong>Version %1$s</strong> addressed %2$s bug.',
'<strong>Version %1$s</strong> addressed %2$s bugs.',
82
),
'5.9.1',
number_format_i18n( 82 )
);
?>
<?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.9.1' )
)
);
?>
</p>
</div>
</div>
<hr class="is-large" />
<div class="about__section">
@@ -52,11 +238,11 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<hr />
<div class="about__section has-2-columns is-wider-left">
<div class="about__section has-2-columns has-gutters is-wider-left">
<div class="column about__image is-vertically-aligned-center is-edge-to-edge">
<img src="https://s.w.org/images/core/5.9/twenty-twenty-two.png" alt="" />
</div>
<div class="column">
<div class="column is-edge-to-edge">
<h3>
<?php _e( 'Say hello to Twenty Twenty&#8209;Two' ); ?>
</h3>
@@ -80,8 +266,8 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
</div>
</div>
<div class="about__section has-2-columns is-wider-right">
<div class="column">
<div class="about__section has-2-columns has-gutters is-wider-right">
<div class="column is-edge-to-edge">
<h3>
<?php _e( 'Your personal paintbox awaits' ); ?>
</h3>
@@ -97,11 +283,11 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
</div>
</div>
<div class="about__section has-2-columns is-wider-left">
<div class="about__section has-2-columns has-gutters is-wider-left">
<div class="column about__image is-vertically-aligned-center is-edge-to-edge">
<img src="https://s.w.org/images/core/5.9/navigation-block.png" alt="" />
</div>
<div class="column">
<div class="column is-edge-to-edge">
<h3>
<?php _e( 'The Navigation block' ); ?>
</h3>
@@ -127,11 +313,11 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<hr />
<div class="about__section has-2-columns is-wider-left">
<div class="about__section has-2-columns has-gutters is-wider-left">
<div class="column about__image is-vertically-aligned-center is-edge-to-edge">
<img src="https://s.w.org/images/core/5.9/block-controls.png" alt="" />
</div>
<div class="column">
<div class="column is-edge-to-edge">
<h3>
<?php _e( 'Better block controls' ); ?>
</h3>
@@ -141,8 +327,8 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
</div>
</div>
<div class="about__section has-2-columns is-wider-right">
<div class="column">
<div class="about__section has-2-columns has-gutters is-wider-right">
<div class="column is-edge-to-edge">
<h3>
<?php _e( 'The power of patterns' ); ?>
</h3>
@@ -158,11 +344,11 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
</div>
</div>
<div class="about__section has-2-columns is-wider-left">
<div class="about__section has-2-columns has-gutters is-wider-left">
<div class="column about__image is-vertically-aligned-center is-edge-to-edge">
<img src="https://s.w.org/images/core/5.9/list-view.png" alt="" />
</div>
<div class="column">
<div class="column is-edge-to-edge">
<h3>
<?php _e( 'A revamped List View' ); ?>
</h3>
@@ -172,8 +358,8 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
</div>
</div>
<div class="about__section has-2-columns is-wider-right">
<div class="column">
<div class="about__section has-2-columns has-gutters is-wider-right">
<div class="column is-edge-to-edge">
<h3>
<?php _e( 'A better Gallery block' ); ?>
</h3>
@@ -203,8 +389,8 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
</h2>
</div>
<div class="about__section has-2-columns">
<div class="column">
<div class="about__section has-gutters has-2-columns">
<div class="column is-edge-to-edge">
<h3>
<?php _e( 'Introducing block themes' ); ?>
</h3>
@@ -218,7 +404,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
?>
</p>
</div>
<div class="column">
<div class="column is-edge-to-edge">
<h3>
<?php _e( 'Multiple stylesheets for a block' ); ?>
</h3>
@@ -233,8 +419,8 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
</p>
</div>
</div>
<div class="about__section has-2-columns">
<div class="column">
<div class="about__section has-gutters has-2-columns">
<div class="column is-edge-to-edge">
<h3>
<?php _e( 'Block&#8209;level locking' ); ?>
</h3>
@@ -242,7 +428,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<?php _e( 'Now you can lock any block (or a few of them) in a pattern, just by adding a lock attribute to its settings in block.json &#8212; leaving the rest of the pattern free for site editors to adapt to their content.' ); ?>
</p>
</div>
<div class="column">
<div class="column is-edge-to-edge">
<h3>
<?php _e( 'A refactored Gallery block' ); ?>
</h3>
@@ -270,8 +456,8 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<?php
printf(
/* translators: %s: Learn WordPress link. */
__( 'Want to dive into 5.9 but don&#8217;t know where to start? Visit <a href="%s">learn.wordpress.org/workshops</a> for short how-to video tutorials and expanding resources on new features in WordPress 5.9.' ),
'https://learn.wordpress.org/workshops/'
__( 'Want to dive into 5.9 but don&#8217;t know where to start? Visit <a href="%s">learn.wordpress.org</a> for expanding resources on new features in WordPress 5.9.' ),
'https://learn.wordpress.org'
);
?>
</p>
@@ -288,7 +474,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
printf(
/* translators: %s: WordPress 5.9 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.9 Field Guide.</a>' ),
'https://make.wordpress.org/core/2022/01/04/wordpress-5-9-field-guide/'
'https://make.wordpress.org/core/2022/01/10/wordpress-5-9-field-guide/'
);
?>
</p>
@@ -348,3 +534,15 @@ _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>.' );
/* translators: %s: The major version of WordPress for this branch. */
__( 'This is the final release of WordPress %s' );
/* translators: The localized WordPress download URL. */
__( 'https://wordpress.org/download/' );

View File

@@ -142,8 +142,7 @@
}
.about__section .column:not(.is-edge-to-edge) {
padding-right: var(--gap);
padding-left: var(--gap);
padding: var(--gap);
}
.about__section + .about__section .is-section-header {
@@ -210,7 +209,8 @@
}
.about__section.has-gutters {
gap: calc(var(--gap) / 2);
gap: var(--gap);
margin-bottom: calc(var(--gap) * 2);
}
.about__section.has-2-columns {
@@ -332,14 +332,16 @@
padding-bottom: var(--gap);
}
.about__section .column:not(.is-edge-to-edge) + .column {
padding-top: 0;
.about__section.has-2-columns.has-gutters.is-wider-right,
.about__section.has-2-columns.has-gutters.is-wider-left,
.about__section.has-3-columns.has-gutters {
margin-bottom: calc(var(--gap) * 2);
}
.about__section.has-2-columns.has-gutters .column,
.about__section.has-2-columns.has-gutters .column,
.about__section.has-3-columns.has-gutters .column {
margin-bottom: calc(var(--gap) / 2);
margin-bottom: var(--gap);
}
.about__section.has-2-columns.has-gutters .column:last-child,
@@ -398,21 +400,25 @@
@media screen and (max-width: 600px) {
.about__section.has-2-columns {
display: block;
margin-bottom: var(--gap);
}
.about__section.has-2-columns:not(.has-gutters) .column:nth-of-type(n) {
padding-top: calc(var(--gap) / 2);
padding-bottom: calc(var(--gap) / 2);
}
.about__section.has-2-columns.has-gutters {
margin-bottom: calc(var(--gap) * 2);
}
.about__section.has-2-columns.has-gutters .column {
margin-bottom: calc(var(--gap) / 2);
margin-bottom: var(--gap);
}
.about__section.has-2-columns.has-gutters .column:last-child {
margin-bottom: 0;
}
.about__section.has-2-columns .column:nth-of-type(n) {
padding-top: calc(var(--gap) / 2);
padding-bottom: calc(var(--gap) / 2);
}
}
@media screen and (max-width: 480px) {
@@ -611,8 +617,8 @@
}
.freedoms-php .about__header::before {
top: 32px;
left: 0;
top: calc(50% - 182px);
left: 32px;
width: 375px;
height: 300px;
background-image: url('../images/about-header-freedoms.svg');
@@ -620,8 +626,7 @@
.privacy-php .about__header::before {
top: auto;
bottom: 70px;
height: 245px;
bottom: -16px;
background-image: url('../images/about-header-privacy.svg');
}
@@ -655,8 +660,8 @@
.freedoms-php .about__header-title,
.freedoms-php .about__header-text {
/* 391px = 375px (balloon width) + 16px (spacing). */
padding-left: 391px;
/* 423px = 375px (balloon width) + 32px (offset from edge) + 16px (spacing). */
padding-left: 423px;
margin-left: 0;
}
@@ -722,12 +727,14 @@
}
.freedoms-php .about__header::before {
top: calc(50% - 132px);
height: 192px;
width: 240px;
}
.privacy-php .about__header::before {
height: 196px;
bottom: 0;
height: 280px;
}
.about__container .about__header-text {

File diff suppressed because one or more lines are too long

View File

@@ -141,8 +141,7 @@
}
.about__section .column:not(.is-edge-to-edge) {
padding-left: var(--gap);
padding-right: var(--gap);
padding: var(--gap);
}
.about__section + .about__section .is-section-header {
@@ -209,7 +208,8 @@
}
.about__section.has-gutters {
gap: calc(var(--gap) / 2);
gap: var(--gap);
margin-bottom: calc(var(--gap) * 2);
}
.about__section.has-2-columns {
@@ -331,14 +331,16 @@
padding-bottom: var(--gap);
}
.about__section .column:not(.is-edge-to-edge) + .column {
padding-top: 0;
.about__section.has-2-columns.has-gutters.is-wider-right,
.about__section.has-2-columns.has-gutters.is-wider-left,
.about__section.has-3-columns.has-gutters {
margin-bottom: calc(var(--gap) * 2);
}
.about__section.has-2-columns.has-gutters .column,
.about__section.has-2-columns.has-gutters .column,
.about__section.has-3-columns.has-gutters .column {
margin-bottom: calc(var(--gap) / 2);
margin-bottom: var(--gap);
}
.about__section.has-2-columns.has-gutters .column:last-child,
@@ -397,21 +399,25 @@
@media screen and (max-width: 600px) {
.about__section.has-2-columns {
display: block;
margin-bottom: var(--gap);
}
.about__section.has-2-columns:not(.has-gutters) .column:nth-of-type(n) {
padding-top: calc(var(--gap) / 2);
padding-bottom: calc(var(--gap) / 2);
}
.about__section.has-2-columns.has-gutters {
margin-bottom: calc(var(--gap) * 2);
}
.about__section.has-2-columns.has-gutters .column {
margin-bottom: calc(var(--gap) / 2);
margin-bottom: var(--gap);
}
.about__section.has-2-columns.has-gutters .column:last-child {
margin-bottom: 0;
}
.about__section.has-2-columns .column:nth-of-type(n) {
padding-top: calc(var(--gap) / 2);
padding-bottom: calc(var(--gap) / 2);
}
}
@media screen and (max-width: 480px) {
@@ -610,8 +616,8 @@
}
.freedoms-php .about__header::before {
top: 32px;
right: 0;
top: calc(50% - 182px);
right: 32px;
width: 375px;
height: 300px;
background-image: url('../images/about-header-freedoms.svg');
@@ -619,8 +625,7 @@
.privacy-php .about__header::before {
top: auto;
bottom: 70px;
height: 245px;
bottom: -16px;
background-image: url('../images/about-header-privacy.svg');
}
@@ -654,8 +659,8 @@
.freedoms-php .about__header-title,
.freedoms-php .about__header-text {
/* 391px = 375px (balloon width) + 16px (spacing). */
padding-right: 391px;
/* 423px = 375px (balloon width) + 32px (offset from edge) + 16px (spacing). */
padding-right: 423px;
margin-right: 0;
}
@@ -721,12 +726,14 @@
}
.freedoms-php .about__header::before {
top: calc(50% - 132px);
height: 192px;
width: 240px;
}
.privacy-php .about__header::before {
height: 196px;
bottom: 0;
height: 280px;
}
.about__container .about__header-text {

File diff suppressed because one or more lines are too long

View File

@@ -781,3 +781,17 @@ div#wp-responsive-toggle a:before {
color: $link;
}
}
/* Welcome Panel */
.welcome-panel {
background-color: $highlight-color;
}
[class*="welcome-panel-icon"] {
@if ( $scheme-name == "light" ) {
background-color: $icon-color;
} @else {
background-color: $base-color;
}
}

View File

@@ -1,5 +1,6 @@
// assign default value to all undefined variables
$scheme-name: "default" !default;
// core variables

View File

@@ -702,4 +702,13 @@ div#wp-responsive-toggle a:before {
.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover {
border-bottom-color: #e1a948;
color: #0073aa;
}
/* Welcome Panel */
.welcome-panel {
background-color: #096484;
}
[class*=welcome-panel-icon] {
background-color: #52accc;
}

File diff suppressed because one or more lines are too long

View File

@@ -702,4 +702,13 @@ div#wp-responsive-toggle a:before {
.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover {
border-bottom-color: #e1a948;
color: #0073aa;
}
/* Welcome Panel */
.welcome-panel {
background-color: #096484;
}
[class*=welcome-panel-icon] {
background-color: #52accc;
}

File diff suppressed because one or more lines are too long

View File

@@ -1,3 +1,4 @@
$scheme-name: "blue";
$base-color: #52accc;
$icon-color: #e5f8ff;
$highlight-color: #096484;

View File

@@ -669,4 +669,13 @@ div#wp-responsive-toggle a:before {
.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover {
border-bottom-color: #c7a589;
color: #0073aa;
}
/* Welcome Panel */
.welcome-panel {
background-color: #c7a589;
}
[class*=welcome-panel-icon] {
background-color: #59524c;
}

File diff suppressed because one or more lines are too long

View File

@@ -669,4 +669,13 @@ div#wp-responsive-toggle a:before {
.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover {
border-bottom-color: #c7a589;
color: #0073aa;
}
/* Welcome Panel */
.welcome-panel {
background-color: #c7a589;
}
[class*=welcome-panel-icon] {
background-color: #59524c;
}

File diff suppressed because one or more lines are too long

View File

@@ -1,3 +1,4 @@
$scheme-name: "coffee";
$base-color: #59524c;
$highlight-color: #c7a589;
$notification-color: #9ea476;

View File

@@ -702,4 +702,13 @@ div#wp-responsive-toggle a:before {
.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover {
border-bottom-color: #a3b745;
color: #0073aa;
}
/* Welcome Panel */
.welcome-panel {
background-color: #a3b745;
}
[class*=welcome-panel-icon] {
background-color: #523f6d;
}

File diff suppressed because one or more lines are too long

View File

@@ -702,4 +702,13 @@ div#wp-responsive-toggle a:before {
.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover {
border-bottom-color: #a3b745;
color: #0073aa;
}
/* Welcome Panel */
.welcome-panel {
background-color: #a3b745;
}
[class*=welcome-panel-icon] {
background-color: #523f6d;
}

File diff suppressed because one or more lines are too long

View File

@@ -1,3 +1,4 @@
$scheme-name: "ectoplasm";
$base-color: #523f6d;
$icon-color: #ece6f6;
$highlight-color: #a3b745;

View File

@@ -704,6 +704,15 @@ div#wp-responsive-toggle a:before {
color: #0073aa;
}
/* Welcome Panel */
.welcome-panel {
background-color: #04a4cc;
}
[class*=welcome-panel-icon] {
background-color: #999;
}
/* Override the theme filter highlight color for this scheme */
.theme-section.current,
.theme-filter.current {

File diff suppressed because one or more lines are too long

View File

@@ -704,6 +704,15 @@ div#wp-responsive-toggle a:before {
color: #0073aa;
}
/* Welcome Panel */
.welcome-panel {
background-color: #04a4cc;
}
[class*=welcome-panel-icon] {
background-color: #999;
}
/* Override the theme filter highlight color for this scheme */
.theme-section.current,
.theme-filter.current {

File diff suppressed because one or more lines are too long

View File

@@ -1,3 +1,4 @@
$scheme-name: "light";
$base-color: #e5e5e5;
$icon-color: #999;
$text-color: #333;

View File

@@ -702,4 +702,13 @@ div#wp-responsive-toggle a:before {
.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover {
border-bottom-color: #e14d43;
color: #0073aa;
}
/* Welcome Panel */
.welcome-panel {
background-color: #e14d43;
}
[class*=welcome-panel-icon] {
background-color: #363b3f;
}

File diff suppressed because one or more lines are too long

View File

@@ -702,4 +702,13 @@ div#wp-responsive-toggle a:before {
.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover {
border-bottom-color: #e14d43;
color: #0073aa;
}
/* Welcome Panel */
.welcome-panel {
background-color: #e14d43;
}
[class*=welcome-panel-icon] {
background-color: #363b3f;
}

File diff suppressed because one or more lines are too long

View File

@@ -1,3 +1,4 @@
$scheme-name: "midnight";
$base-color: #363b3f;
$highlight-color: #e14d43;
$notification-color: #69a8bb;

View File

@@ -702,4 +702,13 @@ div#wp-responsive-toggle a:before {
.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover {
border-bottom-color: #3858e9;
color: #3858e9;
}
/* Welcome Panel */
.welcome-panel {
background-color: #3858e9;
}
[class*=welcome-panel-icon] {
background-color: #1e1e1e;
}

File diff suppressed because one or more lines are too long

View File

@@ -702,4 +702,13 @@ div#wp-responsive-toggle a:before {
.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover {
border-bottom-color: #3858e9;
color: #3858e9;
}
/* Welcome Panel */
.welcome-panel {
background-color: #3858e9;
}
[class*=welcome-panel-icon] {
background-color: #1e1e1e;
}

File diff suppressed because one or more lines are too long

View File

@@ -1,3 +1,4 @@
$scheme-name: "modern";
$base-color: #1e1e1e;
$highlight-color: #3858e9;
$menu-submenu-focus-text: #33f078;

View File

@@ -669,4 +669,13 @@ div#wp-responsive-toggle a:before {
.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover {
border-bottom-color: #9ebaa0;
color: #0073aa;
}
/* Welcome Panel */
.welcome-panel {
background-color: #9ebaa0;
}
[class*=welcome-panel-icon] {
background-color: #738e96;
}

File diff suppressed because one or more lines are too long

View File

@@ -669,4 +669,13 @@ div#wp-responsive-toggle a:before {
.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover {
border-bottom-color: #9ebaa0;
color: #0073aa;
}
/* Welcome Panel */
.welcome-panel {
background-color: #9ebaa0;
}
[class*=welcome-panel-icon] {
background-color: #738e96;
}

File diff suppressed because one or more lines are too long

View File

@@ -1,3 +1,4 @@
$scheme-name: "ocean";
$base-color: #738e96;
$icon-color: #f2fcff;
$highlight-color: #9ebaa0;

View File

@@ -702,4 +702,13 @@ div#wp-responsive-toggle a:before {
.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover {
border-bottom-color: #dd823b;
color: #0073aa;
}
/* Welcome Panel */
.welcome-panel {
background-color: #dd823b;
}
[class*=welcome-panel-icon] {
background-color: #cf4944;
}

File diff suppressed because one or more lines are too long

View File

@@ -702,4 +702,13 @@ div#wp-responsive-toggle a:before {
.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover {
border-bottom-color: #dd823b;
color: #0073aa;
}
/* Welcome Panel */
.welcome-panel {
background-color: #dd823b;
}
[class*=welcome-panel-icon] {
background-color: #cf4944;
}

File diff suppressed because one or more lines are too long

View File

@@ -1,3 +1,4 @@
$scheme-name: "sunrise";
$base-color: #cf4944;
$highlight-color: #dd823b;
$notification-color: #ccaf0b;

View File

@@ -1734,6 +1734,12 @@ p.customize-section-description {
font-weight: 400;
}
#customize-notifications-area .notification-message button.switch-to-editor {
display: block;
margin-top: 6px;
font-weight: 400;
}
#customize-theme-controls .control-panel-themes > .accordion-section-title:after {
display: none;
}

File diff suppressed because one or more lines are too long

View File

@@ -1733,6 +1733,12 @@ p.customize-section-description {
font-weight: 400;
}
#customize-notifications-area .notification-message button.switch-to-editor {
display: block;
margin-top: 6px;
font-weight: 400;
}
#customize-theme-controls .control-panel-themes > .accordion-section-title:after {
display: none;
}

File diff suppressed because one or more lines are too long

View File

@@ -111,17 +111,22 @@
max-width: 100%;
}
/* Screen meta exception for when the "Dashboard" heading is missing or located below the Welcome Panel. */
.index-php #screen-meta-links {
margin: 0 0 8px 20px;
}
/* Welcome Panel */
.welcome-panel {
position: relative;
overflow: auto;
margin: 16px 0;
background: #3858e9 url(../images/about-texture.png) center repeat;
background: #2271b1 url(../images/about-texture.png) center repeat;
background-size: 500px 500px;
background-blend-mode: overlay;
color: #fff;
font-size: 14px;
line-height: 1.3;
clear: both;
}
.welcome-panel::before {
@@ -149,11 +154,6 @@
font-size: 20px;
font-weight: 400;
line-height: 1.4;
color: #fff;
}
.welcome-panel a {
color: #fff;
}
.welcome-panel p {
@@ -161,6 +161,27 @@
line-height: inherit;
}
.welcome-panel-header {
color: #fff;
}
.welcome-panel-header a {
color: #fff;
}
.welcome-panel-header a:focus,
.welcome-panel-header a:hover {
color: #f5e6ab;
text-decoration: none;
}
.welcome-panel-header a:focus,
.welcome-panel .welcome-panel-close:focus {
outline-color: currentColor;
outline-offset: 1px;
box-shadow: none;
}
.welcome-panel-header p {
margin: 0.5em 0 0;
font-size: 20px;
@@ -187,6 +208,10 @@
color: #fff;
}
.welcome-panel .welcome-panel-close {
color: #fff;
}
.welcome-panel .welcome-panel-close:hover,
.welcome-panel .welcome-panel-close:focus,
.welcome-panel .welcome-panel-close:hover::before,
@@ -231,13 +256,13 @@
grid-template-columns: repeat(3, 1fr);
gap: 32px;
align-self: flex-end;
background: #3858e9;
background: #fff;
}
[class*="welcome-panel-icon"] {
height: 60px;
width: 60px;
background-color: #1d35b4;
background-color: #1d2327;
background-position: center;
background-size: 24px 24px;
background-repeat: no-repeat;

File diff suppressed because one or more lines are too long

View File

@@ -110,17 +110,22 @@
max-width: 100%;
}
/* Screen meta exception for when the "Dashboard" heading is missing or located below the Welcome Panel. */
.index-php #screen-meta-links {
margin: 0 20px 8px 0;
}
/* Welcome Panel */
.welcome-panel {
position: relative;
overflow: auto;
margin: 16px 0;
background: #3858e9 url(../images/about-texture.png) center repeat;
background: #2271b1 url(../images/about-texture.png) center repeat;
background-size: 500px 500px;
background-blend-mode: overlay;
color: #fff;
font-size: 14px;
line-height: 1.3;
clear: both;
}
.welcome-panel::before {
@@ -148,11 +153,6 @@
font-size: 20px;
font-weight: 400;
line-height: 1.4;
color: #fff;
}
.welcome-panel a {
color: #fff;
}
.welcome-panel p {
@@ -160,6 +160,27 @@
line-height: inherit;
}
.welcome-panel-header {
color: #fff;
}
.welcome-panel-header a {
color: #fff;
}
.welcome-panel-header a:focus,
.welcome-panel-header a:hover {
color: #f5e6ab;
text-decoration: none;
}
.welcome-panel-header a:focus,
.welcome-panel .welcome-panel-close:focus {
outline-color: currentColor;
outline-offset: 1px;
box-shadow: none;
}
.welcome-panel-header p {
margin: 0.5em 0 0;
font-size: 20px;
@@ -186,6 +207,10 @@
color: #fff;
}
.welcome-panel .welcome-panel-close {
color: #fff;
}
.welcome-panel .welcome-panel-close:hover,
.welcome-panel .welcome-panel-close:focus,
.welcome-panel .welcome-panel-close:hover::before,
@@ -230,13 +255,13 @@
grid-template-columns: repeat(3, 1fr);
gap: 32px;
align-self: flex-end;
background: #3858e9;
background: #fff;
}
[class*="welcome-panel-icon"] {
height: 60px;
width: 60px;
background-color: #1d35b4;
background-color: #1d2327;
background-position: center;
background-size: 24px 24px;
background-repeat: no-repeat;

File diff suppressed because one or more lines are too long

View File

@@ -222,7 +222,7 @@ do_action( 'customize_controls_head' );
<ul></ul>
</div>
<div class="wp-full-overlay-sidebar-content" tabindex="-1">
<div id="customize-info" class="accordion-section customize-info">
<div id="customize-info" class="accordion-section customize-info" data-block-theme="<?php echo (int) wp_is_block_theme(); ?>">
<div class="accordion-section-title">
<span class="preview-notice">
<?php
@@ -235,7 +235,7 @@ do_action( 'customize_controls_head' );
<div class="customize-panel-description">
<p>
<?php
_e( 'The Customizer allows you to preview changes to your site before publishing them. You can navigate to different pages on your site within the preview. Edit shortcuts are shown for some editable elements.' );
_e( 'The Customizer allows you to preview changes to your site before publishing them. You can navigate to different pages on your site within the preview. Edit shortcuts are shown for some editable elements. The Customizer is intended for use with non-block themes.' );
?>
</p>
<p>

View File

@@ -28,6 +28,10 @@ $block_editor_context = new WP_Block_Editor_Context( array( 'post' => $post ) );
$current_screen = get_current_screen();
$current_screen->is_block_editor( true );
// Load block patterns from w.org.
_load_remote_block_patterns();
_load_remote_featured_patterns();
// Default to is-fullscreen-mode to avoid jumps in the UI.
add_filter(
'admin_body_class',
@@ -53,16 +57,16 @@ $rest_path = rest_get_route_for_post( $post );
// Preload common data.
$preload_paths = array(
'/',
'/wp/v2/types?context=edit',
'/wp/v2/taxonomies?per_page=-1&context=edit',
'/wp/v2/taxonomies?context=edit',
'/wp/v2/themes?status=active',
add_query_arg( 'context', 'edit', $rest_path ),
sprintf( '/wp/v2/types/%s?context=edit', $post_type ),
sprintf( '/wp/v2/users/me?post_type=%s&context=edit', $post_type ),
'/wp/v2/users/me',
array( rest_get_route_for_post_type_items( 'attachment' ), 'OPTIONS' ),
array( rest_get_route_for_post_type_items( 'wp_block' ), 'OPTIONS' ),
sprintf( '%s/autosaves?context=edit', $rest_path ),
'/wp/v2/settings',
);
block_editor_rest_api_preload( $preload_paths, $block_editor_context );
@@ -187,7 +191,6 @@ $editor_settings = array(
'titlePlaceholder' => apply_filters( 'enter_title_here', __( 'Add title' ), $post ),
'bodyPlaceholder' => $body_placeholder,
'autosaveInterval' => AUTOSAVE_INTERVAL,
'styles' => get_block_editor_theme_styles(),
'richEditingEnabled' => user_can_richedit(),
'postLock' => $lock_details,
'postLockUtils' => array(

View File

@@ -103,8 +103,6 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
);
?>
</p>
<p><?php _e( 'Don&#8217;t you wish all software came with these freedoms? So do we! For more information, check out the <a href="https://www.fsf.org/">Free Software Foundation</a>.' ); ?></p>
</div>
</div>

View File

@@ -1,21 +1,18 @@
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" x="0" y="0" viewBox="0 0 500 400" xml:space="preserve">
<style>
.st0{fill:none;stroke:#1e1e1e;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.st1{stroke:#fff;stroke-width:10}.st1,.st2{fill:#fff}.st3{fill:#1e1e1e}
</style>
<path class="st0" d="M83.9 216.6c0-5.2-11.9-13.3-11.8-12 .1 1.3-1 91.9 11.9 132.3 0 0 2.5 5.2-1.3 11.8"/>
<path class="st1" d="m71 193.4-2.2 4.5 2.7 1.3 2.4-1.7-2.9-4.1zm0 0 2.8 4.1.1-.1c.1-.1.3-.2.4-.3.4-.3.9-.7 1.6-1.2 1.9-1.4 3.8-2.9 5.7-4.4 4.7-3.8 10.9-9.2 17-15.8 6.1-6.5 12.3-14.3 16.8-22.7 4.5-8.4 7.5-17.8 6.8-27.6-2.1-29.7-29-51.4-59.6-49.3-30.6 2.1-54.2 27.4-52.1 57.1.7 9.7 5 18.6 10.6 26.3 5.6 7.7 12.8 14.6 19.8 20.2s13.9 10.1 19 13.2c2 1.2 4.1 2.4 6.2 3.6l1.8.9.5.2.1.1c.3.2.3.2 2.5-4.3z"/>
<path class="st2" d="m70.9 201.3-5.7 14s3.6 2.4 9.7 1.3l-2.6-15.1-1.4-.2z"/>
<path class="st3" d="m68.9 202.7 4.1.2c.5 0 1 .5.9 1 0 .5-.5 1-1 .9l-4.1-.2c-.5 0-1-.5-.9-1 0-.6.5-1 1-.9z"/>
<path class="st0" d="M192 266.7s-.1-1.8-1.8-4.2c0 0-3.6-6.2 3-7.2 0 0 5.9-.5 7.7-2.4.5 16.8 1 56.3-1.1 80.5-1 15.3-2.1 49.9 1.1 65.7"/>
<path class="st1" d="m199.5 241.7 3.2 3.9-2.3 1.9-2.8-1.2 1.9-4.6zm0 0c-.6 1.5-1.3 3.1-2 4.6l-.1-.1c-.8-.3-1.6-.7-2.3-1.1-2.2-1-4.3-2.1-6.5-3.2-5.3-2.8-12.6-6.9-19.9-12.1-14.4-10.2-30.9-25.7-33.7-45-4.2-29.9 17.5-57.1 47.9-61.4 30.4-4.3 58.8 15.9 63 45.8 2.7 19.3-8.9 38.7-20 52.5-5.7 7.1-11.4 13-15.8 17.1-1.7 1.7-3.5 3.3-5.3 4.9-.6.6-1.3 1.1-1.9 1.7l-.1.1c-.2.1-.2.1-3.3-3.8z"/>
<path class="st2" d="m199.9 248.7-3.4 14.7s4 1.8 9.8-.2l-4.9-14.5h-1.5z"/>
<path class="st3" d="m202.4 250.6-3.1.1c-.5 0-1 .5-.9 1 0 .5.5 1 1 .9l3.1-.1c.5 0 1-.5.9-1 0-.5-.5-.9-1-.9z"/>
<path class="st0" d="M277.7 170.2c-.4-5.2 10.7-14.3 10.7-12.9 0 1.3 8.6 91.5-.8 132.8 0 0-2.1 5.4 2.3 11.6"/>
<path class="st1" d="m289.6 146.8 2.6 4.3-2.5 1.5-2.6-1.5 2.5-4.3zm0 0-2.5 4.3-.1-.1c-.7-.4-1.5-.9-2.2-1.3l-6-3.9c-5-3.4-11.6-8.3-18.2-14.3s-13.5-13.2-18.7-21.2c-5.2-8-9-17.2-9.1-26.9-.4-29.8 24.6-53.7 55.3-54.1s56.3 22.7 56.7 52.5c.1 9.7-3.4 19-8.4 27.1-5 8.2-11.6 15.6-18.1 21.7-6.5 6.2-13 11.3-17.8 14.8-1.9 1.4-3.9 2.8-5.9 4.1-.7.5-1.3.8-1.7 1.1l-.5.3-.1.1c-.1.1-.1.1-2.7-4.2z"/>
<path class="st2" d="m289.4 154.8 6.8 13.4s-3.4 2.7-9.5 2.1l1.4-15.2 1.3-.3z"/>
<path class="st3" d="m291.4 156-4.1.6c-.5.1-.9.6-.8 1.1.1.5.6.9 1.1.8l4.1-.6c.5-.1.9-.6.8-1.1 0-.5-.5-.9-1.1-.8z"/>
<path class="st0" d="M420.8 237.4c-.7 0-16.5 4.9-15.7-1.9 0 0 .1-1.8 1.8-4.2 0 0 3.6-6.2-3-7.2 0 0-5.9-.5-7.7-2.4-.5 16.8-1 56.3 1.1 80.5 1 15.3 2.1 49.9-1.1 65.7"/>
<path class="st1" d="m398.6 212.4-3.2 3.9 2.3 1.9 2.8-1.2-1.9-4.6zm0 0 2 4.6.1-.1c.8-.3 1.6-.7 2.3-1.1 2.2-1 4.3-2.1 6.5-3.2 5.3-2.8 12.5-6.9 19.9-12.1 14.4-10.2 30.9-25.7 33.7-45 4.2-29.9-17.5-57.1-47.9-61.4-30.4-4.3-58.8 15.9-63 45.8-2.7 19.3 8.9 38.7 20 52.5 5.7 7.1 11.4 13 15.8 17.1 1.7 1.7 3.5 3.3 5.3 4.9.6.6 1.3 1.1 1.9 1.7l.1.1c.1.1.1.1 3.3-3.8z"/>
<path class="st2" d="m398.1 219.4 3.5 14.7s-4 1.8-9.8-.2l4.9-14.5h1.4z"/>
<path class="st3" d="m394.8 221.4 4.3.2c.5 0 1 .5.9 1 0 .5-.5 1-1 .9l-4.3-.2c-.5 0-1-.5-.9-1-.1-.5.4-1 1-.9z"/>
<svg viewBox="0 0 464 363" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M78.913 192.621c-.04-5.218-11.878-13.339-11.788-11.996.091 1.343-.955 91.866 11.876 132.297 0 0 2.504 5.168-1.301 11.789" stroke="#1E1E1E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="m66.025 169.397-2.246 4.468 2.651 1.332 2.44-1.688-2.846-4.112Zm0 0c2.845 4.112 2.846 4.111 2.848 4.11l.003-.003.01-.007.035-.024.121-.085c.103-.073.252-.177.442-.313.38-.273.927-.67 1.617-1.183a166.555 166.555 0 0 0 5.664-4.421c4.653-3.79 10.85-9.22 16.993-15.763 6.126-6.526 12.309-14.278 16.824-22.723 4.508-8.431 7.509-17.846 6.829-27.564-2.078-29.724-29.002-51.417-59.586-49.278C27.241 54.282 3.6 79.51 5.677 109.235c.68 9.718 4.962 18.622 10.6 26.344 5.646 7.735 12.848 14.551 19.822 20.161 6.993 5.625 13.887 10.139 19.021 13.244a165.576 165.576 0 0 0 6.225 3.59 103.129 103.129 0 0 0 2.247 1.195l.131.067.038.019.011.006.004.002c.002.001.003.002 2.248-4.466Z" fill="#fff" stroke="#fff" stroke-width="10"/>
<path d="m65.879 177.285-5.663 13.965s3.649 2.391 9.688 1.26l-2.642-15.065-1.383-.16Z" fill="#fff"/>
<rect x="62.953" y="178.598" width="6.106" height="1.97" rx=".985" transform="rotate(3.18 62.953 178.598)" fill="#1E1E1E"/>
<path d="M186.961 242.688s-.127-1.806-1.751-4.234c0 0-3.577-6.178 2.952-7.191 0 0 5.908-.507 7.694-2.372.492 16.768.952 56.344-1.149 80.507-.986 15.32-2.136 49.902 1.149 65.66" stroke="#1E1E1E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="m194.464 217.687 3.154 3.881-2.341 1.902-2.774-1.184 1.961-4.599Zm0 0a816.555 816.555 0 0 1-1.964 4.598l-.004-.002-.012-.005-.039-.016-.136-.059a112.689 112.689 0 0 1-2.328-1.058 164.825 164.825 0 0 1-6.469-3.213c-5.347-2.796-12.55-6.899-19.93-12.121-14.417-10.199-30.946-25.657-33.662-44.98-4.198-29.869 17.489-57.102 47.927-61.38 30.439-4.277 58.792 15.922 62.99 45.792 2.715 19.323-8.913 38.738-19.96 52.515-5.655 7.054-11.447 12.984-15.817 17.146a165.602 165.602 0 0 1-5.333 4.871 111.123 111.123 0 0 1-1.997 1.701l-.063.052-.033.027-.01.008-.004.003c-.001.001-.002.002-3.156-3.879Z" fill="#fff" stroke="#fff" stroke-width="10"/>
<path d="m194.905 224.66-3.449 14.669s3.972 1.802 9.766-.244l-4.926-14.48-1.391.055Z" fill="#fff"/>
<rect width="5.103" height="1.97" rx=".985" transform="scale(-1 1) rotate(2.085 -6324.149 -5336.641)" fill="#1E1E1E"/>
<path d="M272.674 146.172c-.395-5.204 10.723-14.284 10.745-12.938.022 1.345 8.621 91.465-.79 132.827 0 0-2.064 5.358 2.28 11.638" stroke="#1E1E1E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="m284.568 122.79 2.611 4.265-2.531 1.549-2.572-1.479 2.492-4.335Zm0 0c-2.492 4.335-2.493 4.334-2.495 4.333l-.004-.002-.011-.006-.036-.021-.128-.075a106.955 106.955 0 0 1-2.176-1.319 165.633 165.633 0 0 1-6.014-3.933c-4.952-3.388-11.582-8.281-18.249-14.289-6.649-5.992-13.458-13.2-18.662-21.24-5.197-8.025-8.973-17.156-9.107-26.897-.41-29.793 24.609-53.658 55.265-54.08 30.656-.422 56.321 22.745 56.731 52.539.135 9.74-3.389 18.972-8.362 27.138-4.982 8.179-11.589 15.572-18.071 21.745-6.499 6.189-12.991 11.263-17.849 14.786a167.49 167.49 0 0 1-5.903 4.096c-.718.474-1.287.84-1.681 1.091l-.458.288a9.846 9.846 0 0 0-.126.078l-.036.022-.011.007-.003.002c-.002.001-.003.002-2.614-4.263Z" fill="#fff" stroke="#fff" stroke-width="10"/>
<path d="m284.383 130.802 6.808 13.443s-3.436 2.688-9.549 2.064l1.376-15.233 1.365-.274Z" fill="#fff"/>
<rect width="6.106" height="1.97" rx=".985" transform="scale(-1 1) rotate(7.968 -1090.36 -1997.313)" fill="#1E1E1E"/>
<path d="M415.822 213.413c-.66 0-16.451 4.903-15.663-1.87 0 0 .126-1.807 1.751-4.235 0 0 3.577-6.177-2.952-7.19 0 0-5.909-.508-7.694-2.372-.493 16.767-.952 56.343 1.149 80.506.985 15.321 2.135 49.902-1.149 65.66" stroke="#1E1E1E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="m393.572 188.375-3.154 3.88 2.341 1.903 2.775-1.184-1.962-4.599Zm0 0c1.962 4.599 1.963 4.599 1.965 4.598l.004-.002.012-.005.039-.017.136-.059a113.778 113.778 0 0 0 2.328-1.058 164.53 164.53 0 0 0 6.469-3.212c5.347-2.796 12.549-6.9 19.93-12.121 14.416-10.2 30.946-25.657 33.661-44.98 4.198-29.87-17.489-57.102-47.927-61.38-30.439-4.278-58.791 15.922-62.989 45.792-2.716 19.323 8.912 38.737 19.959 52.515 5.656 7.054 11.448 12.984 15.817 17.146a166.688 166.688 0 0 0 5.333 4.871 117.548 117.548 0 0 0 1.997 1.7l.064.053.032.026.011.008.003.003c.001.001.002.002 3.156-3.878Z" fill="#fff" stroke="#fff" stroke-width="10"/>
<path d="m393.123 195.432 3.45 14.669s-3.973 1.802-9.767-.244l4.927-14.48 1.39.055Z" fill="#fff"/>
<rect x="388.766" y="197.329" width="6.234" height="1.97" rx=".985" transform="rotate(2.085 388.766 197.329)" fill="#1E1E1E"/>
</svg>

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@@ -1,19 +1,12 @@
<svg width="488" height="400" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#a)">
<path d="M173.886 255.422c-.131-7.011-16.159-17.747-16.017-15.944.142 1.804.084 123.458 17.927 177.596 0 0 3.442 6.907-1.572 15.86" stroke="#1E1E1E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="m157.615 229.483-2.246 4.468 2.651 1.333 2.44-1.689-2.845-4.112Zm0 0c2.845 4.112 2.846 4.111 2.848 4.11l.004-.003.013-.009.044-.03.156-.11a150.404 150.404 0 0 0 2.73-1.985 221.922 221.922 0 0 0 7.552-5.894c6.212-5.06 14.481-12.304 22.668-21.026 8.171-8.705 16.373-18.999 22.346-30.17 5.965-11.157 9.861-23.48 8.978-36.11-2.721-38.908-37.994-67.44-78.238-64.626-40.243 2.814-71.203 35.978-68.482 74.886.883 12.629 6.456 24.29 13.916 34.509 7.47 10.231 17.025 19.283 26.328 26.766 9.321 7.498 18.517 13.521 25.373 17.666a221.46 221.46 0 0 0 8.299 4.787c1.005.549 1.798.97 2.346 1.257l.633.328.171.087.047.024.014.007.005.002c.002.001.003.002 2.249-4.466Z" fill="#fff" stroke="#fff" stroke-width="10"/>
<path d="m156.896 238.884-7.61 18.766s4.903 3.214 13.019 1.694l-3.551-20.245-1.858-.215Z" fill="#fff"/>
<rect x="155.111" y="239" width="6.5" height="2" rx="1" transform="rotate(3.18 155.111 239)" fill="#1E1E1E"/>
<path d="M370.474 314.076c-.847.263-19.158 12.849-20.847 3.841 0 0-.557-2.369.56-6.132 0 0 2.129-9.353-6.654-8.051 0 0-7.785 1.702-10.819.021l-29.619 153.729 20.188 16.22s18.766 15.554 36.374 17.191" stroke="#1E1E1E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="m333.646 295.052-3.153 3.88 2.341 1.903 2.774-1.184-1.962-4.599Zm0 0c1.962 4.599 1.964 4.598 1.965 4.598l.005-.002.015-.007.049-.021.176-.076c.152-.067.372-.163.656-.29a146.22 146.22 0 0 0 2.431-1.113 221.36 221.36 0 0 0 8.625-4.283c7.139-3.733 16.748-9.209 26.586-16.169 19.333-13.677 40.984-34.082 44.526-59.281 5.5-39.136-22.916-74.916-62.943-80.541-40.027-5.626-77.204 20.935-82.704 60.072-3.542 25.199 11.647 50.781 26.461 69.257 7.539 9.403 15.266 17.315 21.099 22.871a221.01 221.01 0 0 0 7.111 6.494 141.778 141.778 0 0 0 2.58 2.2 21 21 0 0 1 .149.122l.041.034.012.01.004.003c.002.001.003.002 3.156-3.878Z" fill="#fff" stroke="#fff" stroke-width="10"/>
<path d="m333.526 305.878.742 20.237s-5.705 1.346-12.814-2.855l10.252-17.814 1.82.432Z" fill="#fff"/>
<rect x="329.397" y="305.112" width="5.997" height="2" rx="1" transform="rotate(7.245 329.397 305.112)" fill="#1E1E1E"/>
<path d="M391.411 200.957a2.058 2.058 0 0 0-1.031-.853c-.37-.141-7.335-2.746-21.144-5.181-10.426-1.838-16.715-1.58-21.755-1.372-.669.027-1.317.053-1.953.073-1.686.055-3.467.195-5.192.327-3.712.292-7.573.588-10.649.075-3.07-.57-6.585-2.168-9.985-3.714-1.574-.713-3.203-1.454-4.768-2.083-.591-.236-1.195-.485-1.819-.741-4.668-1.92-10.482-4.309-20.901-6.146-14.014-2.471-21.347-2.366-21.652-2.36a2.063 2.063 0 0 0-1.396.577 2.032 2.032 0 0 0-.618 1.37l-.266 6.139a2.053 2.053 0 0 0 1.197 1.945c1.895.874 1.925 1.149 2.157 3.291.02.208.045.425.072.656.145 1.241.395 3.217.657 5.302.322 2.622.707 5.599.943 7.643.336 2.94 1.24 10.758 15.054 14.97 10.902 3.325 18.757 3.46 24.016.415 5.125-2.971 10.636-13.081 12.065-16.426a6.683 6.683 0 0 1 .873-1.583l5.324.939a6.93 6.93 0 0 1 .279 1.786c.198 3.635 1.921 15.02 5.716 19.561 2.872 3.432 7.658 5.725 14.531 6.937 2.707.463 5.438.761 8.18.893 6.03.321 10.844-.71 14.328-3.058 3.024-2.044 4.315-4.62 4.941-5.871a683.689 683.689 0 0 1 3.381-6.634c1.011-1.969 1.967-3.828 2.549-4.996l.293-.592c.95-1.933 1.072-2.181 3.152-2.354a2.044 2.044 0 0 0 1.788-1.42l1.85-5.856a2.03 2.03 0 0 0-.217-1.659Z" fill="#1E1E1E"/>
<rect x="388.21" y="200.63" width="39.784" height="7.784" rx="2" transform="rotate(12 388.21 200.63)" fill="#1E1E1E"/>
</g>
<defs>
<clipPath id="a">
<path fill="#fff" d="M0 0h488v400H0z"/>
</clipPath>
</defs>
<svg viewBox="0 0 374 440" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M101.194 187.586c-.132-7.011-16.16-17.748-16.018-15.944.142 1.803.084 123.457 17.928 177.596 0 0 3.441 6.907-1.573 15.86" stroke="#1E1E1E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="m84.922 161.647-2.246 4.467 2.651 1.333 2.44-1.689-2.845-4.111Zm0 0c2.845 4.111 2.847 4.11 2.848 4.109l.004-.003.013-.009.044-.03.157-.11a145.38 145.38 0 0 0 2.73-1.984 221.81 221.81 0 0 0 7.551-5.895c6.212-5.059 14.481-12.304 22.668-21.025 8.171-8.705 16.373-19 22.346-30.171 5.966-11.157 9.861-23.48 8.978-36.11-2.721-38.907-37.994-67.44-78.238-64.626C33.78 8.607 2.821 41.771 5.541 80.68c.883 12.63 6.456 24.291 13.916 34.509 7.47 10.231 17.025 19.284 26.328 26.767 9.321 7.497 18.518 13.52 25.373 17.666a220.806 220.806 0 0 0 8.3 4.786 153.7 153.7 0 0 0 2.978 1.585 22.04 22.04 0 0 0 .171.087l.047.024.014.007.005.003c.002.001.003.001 2.249-4.466Z" fill="#fff" stroke="#fff" stroke-width="10"/>
<path d="m84.203 171.048-7.61 18.766s4.903 3.213 13.02 1.693l-3.552-20.244-1.858-.215Z" fill="#fff"/>
<rect x="82.418" y="171.164" width="6.5" height="2" rx="1" transform="rotate(3.18 82.418 171.164)" fill="#1E1E1E"/>
<path d="M297.781 246.24c-.847.263-19.158 12.848-20.847 3.841 0 0-.557-2.369.56-6.132 0 0 2.129-9.354-6.654-8.052 0 0-7.785 1.703-10.819.022l-29.618 153.729 20.187 16.219s18.766 15.555 36.375 17.192" stroke="#1E1E1E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="m260.954 227.215-3.154 3.881 2.341 1.902 2.774-1.184-1.961-4.599Zm0 0a816.555 816.555 0 0 0 1.964 4.598l.005-.002.015-.006.049-.021.176-.077.656-.289c.567-.253 1.389-.626 2.431-1.114a220.542 220.542 0 0 0 8.626-4.283c7.138-3.733 16.747-9.208 26.586-16.169 19.332-13.677 40.984-34.081 44.525-59.28 5.5-39.137-22.915-74.916-62.942-80.542-40.028-5.625-77.205 20.936-82.705 60.073-3.541 25.199 11.647 50.78 26.461 69.256 7.539 9.403 15.266 17.315 21.099 22.871a221.255 221.255 0 0 0 7.111 6.495 146.147 146.147 0 0 0 2.58 2.199l.149.122.041.034.013.01.004.003c.001.002.002.003 3.156-3.878Z" fill="#fff" stroke="#fff" stroke-width="10"/>
<path d="m260.833 238.042.743 20.237s-5.706 1.345-12.815-2.855l10.252-17.815 1.82.433Z" fill="#fff"/>
<rect x="256.704" y="237.275" width="5.997" height="2" rx="1" transform="rotate(7.245 256.704 237.275)" fill="#1E1E1E"/>
<path d="M318.718 133.121a2.06 2.06 0 0 0-1.031-.854c-.37-.14-7.335-2.746-21.144-5.18-10.426-1.839-16.715-1.581-21.755-1.373-.669.027-1.317.053-1.953.073-1.685.056-3.467.196-5.192.327-3.712.292-7.573.589-10.649.075-3.07-.57-6.585-2.167-9.985-3.713-1.574-.713-3.203-1.455-4.768-2.083-.591-.237-1.195-.486-1.819-.741-4.668-1.92-10.482-4.309-20.901-6.147-14.014-2.471-21.347-2.366-21.651-2.36a2.063 2.063 0 0 0-1.396.578 2.026 2.026 0 0 0-.618 1.37l-.267 6.138a2.04 2.04 0 0 0 1.197 1.946c1.895.874 1.925 1.149 2.157 3.29.021.209.045.426.072.656.145 1.242.395 3.218.657 5.303.323 2.621.707 5.599.943 7.642.336 2.941 1.24 10.758 15.054 14.97 10.902 3.326 18.758 3.461 24.016.415 5.125-2.971 10.636-13.08 12.065-16.425a6.725 6.725 0 0 1 .873-1.584l5.324.939c.171.581.264 1.182.279 1.787.198 3.634 1.921 15.019 5.717 19.56 2.872 3.432 7.657 5.725 14.531 6.938 2.706.462 5.437.76 8.179.892 6.03.322 10.844-.71 14.328-3.057 3.024-2.045 4.315-4.62 4.941-5.871.889-1.783 2.156-4.249 3.381-6.634a541.984 541.984 0 0 0 2.549-4.997l.293-.592c.95-1.933 1.072-2.181 3.152-2.353a2.061 2.061 0 0 0 1.112-.44 2.04 2.04 0 0 0 .676-.98l1.851-5.856c.083-.276.107-.567.07-.852a2.048 2.048 0 0 0-.288-.807Z" fill="#1E1E1E"/>
<rect x="315.517" y="132.793" width="39.784" height="7.784" rx="2" transform="rotate(12 315.517 132.793)" fill="#1E1E1E"/>
</svg>

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

@@ -2732,6 +2732,10 @@ function wp_ajax_set_attachment_thumbnail() {
wp_send_json_error();
}
if ( false === check_ajax_referer( 'set-attachment-thumbnail', '_ajax_nonce', false ) ) {
wp_send_json_error();
}
$post_ids = array();
// For each URL, try to find its corresponding post ID.
foreach ( $_POST['urls'] as $url ) {
@@ -2984,7 +2988,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' );
}
/**
@@ -3568,6 +3572,19 @@ function wp_ajax_query_themes() {
$update_php = network_admin_url( 'update.php?action=install-theme' );
$installed_themes = search_theme_directories();
if ( false === $installed_themes ) {
$installed_themes = array();
}
foreach ( $installed_themes as $theme_slug => $theme_data ) {
// Ignore child themes.
if ( str_contains( $theme_slug, '/' ) ) {
unset( $installed_themes[ $theme_slug ] );
}
}
foreach ( $api->themes as &$theme ) {
$theme->install_url = add_query_arg(
array(
@@ -3599,12 +3616,19 @@ function wp_ajax_query_themes() {
}
}
$is_theme_installed = array_key_exists( $theme->slug, $installed_themes );
// We only care about installed themes.
$theme->block_theme = $is_theme_installed && wp_get_theme( $theme->slug )->is_block_theme();
if ( ! is_multisite() && current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) {
$customize_url = $theme->block_theme ? admin_url( 'site-editor.php' ) : wp_customize_url( $theme->slug );
$theme->customize_url = add_query_arg(
array(
'return' => urlencode( network_admin_url( 'theme-install.php', 'relative' ) ),
),
wp_customize_url( $theme->slug )
$customize_url
);
}
@@ -3788,13 +3812,29 @@ function wp_ajax_parse_media_shortcode() {
$shortcode = wp_unslash( $_POST['shortcode'] );
// Only process previews for media related shortcodes:
$found_shortcodes = get_shortcode_tags_in_content( $shortcode );
$media_shortcodes = array(
'audio',
'embed',
'playlist',
'video',
'gallery',
);
$other_shortcodes = array_diff( $found_shortcodes, $media_shortcodes );
if ( ! empty( $other_shortcodes ) ) {
wp_send_json_error();
}
if ( ! empty( $_POST['post_ID'] ) ) {
$post = get_post( (int) $_POST['post_ID'] );
}
// The embed shortcode requires a post.
if ( ! $post || ! current_user_can( 'edit_post', $post->ID ) ) {
if ( 'embed' === $shortcode ) {
if ( in_array( 'embed', $found_shortcodes, true ) ) {
wp_send_json_error();
}
} else {
@@ -4139,6 +4179,9 @@ function wp_ajax_install_theme() {
}
}
$theme = wp_get_theme( $slug );
$status['blockTheme'] = $theme->is_block_theme();
if ( ! is_multisite() && current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) {
$status['customizeUrl'] = add_query_arg(
array(

View File

@@ -115,7 +115,7 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
$install_actions = array();
if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) {
if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) && ! $theme_info->is_block_theme() ) {
$customize_url = add_query_arg(
array(
'theme' => urlencode( $stylesheet ),

View File

@@ -640,6 +640,19 @@ class WP_Comments_List_Table extends WP_List_Table {
$this->user_can = current_user_can( 'edit_comment', $comment->comment_ID );
$edit_post_cap = $post ? 'edit_post' : 'edit_posts';
if (
current_user_can( $edit_post_cap, $comment->comment_post_ID ) ||
(
empty( $post->post_password ) &&
current_user_can( 'read_post', $comment->comment_post_ID )
)
) {
// The user has access to the post
} else {
return false;
}
echo "<tr id='comment-$comment->comment_ID' class='$the_comment_class'>";
$this->single_row_columns( $comment );
echo "</tr>\n";

View File

@@ -88,7 +88,7 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
$this->options['public_key'] = $opt['public_key'];
$this->options['private_key'] = $opt['private_key'];
$this->options['hostkey'] = array( 'hostkey' => 'ssh-rsa' );
$this->options['hostkey'] = array( 'hostkey' => 'ssh-rsa,ssh-ed25519' );
$this->keys = true;
} elseif ( empty( $opt['username'] ) ) {

View File

@@ -739,6 +739,20 @@ class WP_List_Table {
$pending_comments_number
);
$post_object = get_post( $post_id );
$edit_post_cap = $post_object ? 'edit_post' : 'edit_posts';
if (
current_user_can( $edit_post_cap, $post_id ) ||
(
empty( $post_object->post_password ) &&
current_user_can( 'read_post', $post_id )
)
) {
// The user has access to the post and thus can see comments
} else {
return false;
}
if ( ! $approved_comments && ! $pending_comments ) {
// No comments at all.
printf(

View File

@@ -1085,7 +1085,17 @@ function wp_dashboard_recent_comments( $total_items = 5 ) {
echo '<ul id="the-comment-list" data-wp-lists="list:comment">';
foreach ( $comments as $comment ) {
_wp_dashboard_recent_comments_row( $comment );
$comment_post = get_post( $comment->comment_post_ID );
if (
current_user_can( 'edit_post', $comment->comment_post_ID ) ||
(
empty( $comment_post->post_password ) &&
current_user_can( 'read_post', $comment->comment_post_ID )
)
) {
_wp_dashboard_recent_comments_row( $comment );
}
}
echo '</ul>';

View File

@@ -1198,6 +1198,8 @@ function download_url( $url, $timeout = 300, $signature_verification = false ) {
if ( $tmpfname_disposition && is_string( $tmpfname_disposition )
&& ( 0 === validate_file( $tmpfname_disposition ) )
) {
$tmpfname_disposition = dirname( $tmpfname ) . '/' . $tmpfname_disposition;
if ( rename( $tmpfname, $tmpfname_disposition ) ) {
$tmpfname = $tmpfname_disposition;
}

View File

@@ -1302,7 +1302,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

@@ -826,6 +826,23 @@ $_old_files = array(
'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',
// 5.9
'wp-includes/blocks/heading/editor.css',
'wp-includes/blocks/heading/editor.min.css',
'wp-includes/blocks/heading/editor-rtl.css',
'wp-includes/blocks/heading/editor-rtl.min.css',
'wp-includes/blocks/post-content/editor.css',
'wp-includes/blocks/post-content/editor.min.css',
'wp-includes/blocks/post-content/editor-rtl.css',
'wp-includes/blocks/post-content/editor-rtl.min.css',
'wp-includes/blocks/query-title/editor.css',
'wp-includes/blocks/query-title/editor.min.css',
'wp-includes/blocks/query-title/editor-rtl.css',
'wp-includes/blocks/query-title/editor-rtl.min.css',
'wp-includes/blocks/tag-cloud/editor.css',
'wp-includes/blocks/tag-cloud/editor.min.css',
'wp-includes/blocks/tag-cloud/editor-rtl.css',
'wp-includes/blocks/tag-cloud/editor-rtl.min.css',
);
/**

View File

@@ -1621,8 +1621,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 ) {
@@ -2269,9 +2269,12 @@ function upgrade_590() {
if ( $wp_current_db_version < 51917 ) {
$crons = _get_cron_array();
// Remove errant `false` values, see #53950.
$crons = array_filter( $crons );
_set_cron_array( $crons );
if ( $crons && is_array( $crons ) ) {
// Remove errant `false` values, see #53950, #54906.
$crons = array_filter( $crons );
_set_cron_array( $crons );
}
}
}

View File

@@ -599,6 +599,8 @@ Please click the following link to activate your user account:
* Checks if the Authorize Application Password request is valid.
*
* @since 5.6.0
* @since 6.2.0 Allow insecure HTTP connections for the local environment.
* @since 6.3.2 Validates the success and reject URLs to prevent javascript pseudo protocol being executed.
*
* @param array $request {
* The array of request data. All arguments are optional and may be empty.
@@ -614,24 +616,22 @@ Please click the following link to activate your user account:
function wp_is_authorize_application_password_request_valid( $request, $user ) {
$error = new WP_Error();
if ( ! empty( $request['success_url'] ) ) {
$scheme = wp_parse_url( $request['success_url'], PHP_URL_SCHEME );
if ( 'http' === $scheme ) {
if ( isset( $request['success_url'] ) ) {
$validated_success_url = wp_is_authorize_application_redirect_url_valid( $request['success_url'] );
if ( is_wp_error( $validated_success_url ) ) {
$error->add(
'invalid_redirect_scheme',
__( 'The success URL must be served over a secure connection.' )
$validated_success_url->get_error_code(),
$validated_success_url->get_error_message()
);
}
}
if ( ! empty( $request['reject_url'] ) ) {
$scheme = wp_parse_url( $request['reject_url'], PHP_URL_SCHEME );
if ( 'http' === $scheme ) {
if ( isset( $request['reject_url'] ) ) {
$validated_reject_url = wp_is_authorize_application_redirect_url_valid( $request['reject_url'] );
if ( is_wp_error( $validated_reject_url ) ) {
$error->add(
'invalid_redirect_scheme',
__( 'The rejection URL must be served over a secure connection.' )
$validated_reject_url->get_error_code(),
$validated_reject_url->get_error_message()
);
}
}
@@ -660,3 +660,59 @@ function wp_is_authorize_application_password_request_valid( $request, $user ) {
return true;
}
/**
* Validates the redirect URL protocol scheme. The protocol can be anything except http and javascript.
*
* @since 6.3.2
*
* @param string $url - The redirect URL to be validated.
*
* @return true|WP_Error True if the redirect URL is valid, a WP_Error object otherwise.
*/
function wp_is_authorize_application_redirect_url_valid( $url ) {
$bad_protocols = array( 'javascript', 'data' );
if ( empty( $url ) ) {
return true;
}
// Based on https://www.rfc-editor.org/rfc/rfc2396#section-3.1
$valid_scheme_regex = '/^[a-zA-Z][a-zA-Z0-9+.-]*:/';
if ( ! preg_match( $valid_scheme_regex, $url ) ) {
return new WP_Error(
'invalid_redirect_url_format',
__( 'Invalid URL format.' )
);
}
/**
* Filters the list of invalid protocols used in applications redirect URLs.
*
* @since 6.3.2
*
* @param string[] $bad_protocols Array of invalid protocols.
* @param string $url The redirect URL to be validated.
*/
$invalid_protocols = array_map( 'strtolower', apply_filters( 'wp_authorize_application_redirect_url_invalid_protocols', $bad_protocols, $url ) );
$scheme = wp_parse_url( $url, PHP_URL_SCHEME );
$host = wp_parse_url( $url, PHP_URL_HOST );
$is_local = 'local' === wp_get_environment_type();
// validates if the proper URI format is applied to the $url
if ( empty( $host ) || empty( $scheme ) || in_array( strtolower( $scheme ), $invalid_protocols, true ) ) {
return new WP_Error(
'invalid_redirect_url_format',
__( 'Invalid URL format.' )
);
}
if ( 'http' === $scheme && ! $is_local ) {
return new WP_Error(
'invalid_redirect_scheme',
__( 'The URL must be served over a secure connection.' )
);
}
return true;
}

View File

@@ -1695,25 +1695,6 @@ $( function() {
}
} );
// Close sidebar when focus moves outside of toggle and sidebar.
$( '#wp-admin-bar-menu-toggle, #adminmenumain' ).on( 'focusout', function() {
var focusIsInToggle, focusIsInSidebar;
if ( ! $wpwrap.hasClass( 'wp-responsive-open' ) ) {
return;
}
// A brief delay is required to allow focus to switch to another element.
setTimeout( function() {
focusIsInToggle = $.contains( $( '#wp-admin-bar-menu-toggle' )[0], $( ':focus' )[0] );
focusIsInSidebar = $.contains( $( '#adminmenumain' )[0], $( ':focus' )[0] );
if ( ! focusIsInToggle && ! focusIsInSidebar ) {
$( '#wp-admin-bar-menu-toggle' ).trigger( 'click.wp-responsive' );
}
}, 10 );
} );
// Add menu events.
$adminmenu.on( 'click.wp-responsive', 'li.wp-has-submenu > a', function( event ) {
if ( ! $adminmenu.data('wp-responsive') ) {

File diff suppressed because one or more lines are too long

View File

@@ -8334,6 +8334,33 @@
history.replaceState( {}, document.title, urlParser.href );
}
/**
* Displays a Site Editor notification when a block theme is activated.
*
* @since 4.9.0
*
* @param {string} [notification] - A notification to display.
* @return {void}
*/
function addSiteEditorNotification( notification ) {
api.notifications.add( new api.Notification( 'site_editor_block_theme_notice', {
message: notification,
type: 'info',
dismissible: false,
render: function() {
var notification = api.Notification.prototype.render.call( this ),
button = notification.find( 'button.switch-to-editor' );
button.on( 'click', function( event ) {
event.preventDefault();
location.assign( button.data( 'action' ) );
} );
return notification;
}
} ) );
}
/**
* Dismiss autosave.
*
@@ -8408,6 +8435,10 @@
if ( api.settings.changeset.latestAutoDraftUuid || api.settings.changeset.hasAutosaveRevision ) {
addAutosaveRestoreNotification();
}
var shouldDisplayBlockThemeNotification = !! parseInt( $( '#customize-info' ).data( 'block-theme' ), 10 );
if (shouldDisplayBlockThemeNotification) {
addSiteEditorNotification( api.l10n.blockThemeNotification );
}
})();
// Check if preview url is valid and load the preview frame.

File diff suppressed because one or more lines are too long

View File

@@ -622,6 +622,9 @@ themes.view.Theme = wp.Backbone.View.extend({
if ( _this.model.get( 'id' ) === response.slug ) {
_this.model.set( { 'installed': true } );
}
if ( response.blockTheme ) {
_this.model.set( { 'block_theme': true } );
}
} );
wp.updates.installTheme( {

File diff suppressed because one or more lines are too long

View File

@@ -612,7 +612,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>';
}
@@ -676,7 +676,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

@@ -31,6 +31,10 @@ $parent_file = 'themes.php';
$current_screen = get_current_screen();
$current_screen->is_block_editor( true );
// Load block patterns from w.org.
_load_remote_block_patterns();
_load_remote_featured_patterns();
// Default to is-fullscreen-mode to avoid jumps in the UI.
add_filter(
'admin_body_class',
@@ -68,7 +72,6 @@ $active_global_styles_id = WP_Theme_JSON_Resolver::get_user_global_styles_post_i
$active_theme = wp_get_theme()->get_stylesheet();
$preload_paths = array(
array( '/wp/v2/media', 'OPTIONS' ),
'/',
'/wp/v2/types?context=edit',
'/wp/v2/types/wp_template?context=edit',
'/wp/v2/types/wp_template-part?context=edit',

View File

@@ -35,9 +35,10 @@ if ( false === $installed_themes ) {
$installed_themes = array();
}
foreach ( $installed_themes as $k => $v ) {
if ( false !== strpos( $k, '/' ) ) {
unset( $installed_themes[ $k ] );
foreach ( $installed_themes as $theme_slug => $theme_data ) {
// Ignore child themes.
if ( str_contains( $theme_slug, '/' ) ) {
unset( $installed_themes[ $theme_slug ] );
}
}
@@ -373,7 +374,9 @@ if ( $tab ) {
<# } #>
<# if ( data.customize_url ) { #>
<# if ( ! data.active ) { #>
<a class="button load-customize" href="{{ data.customize_url }}"><?php _e( 'Live Preview' ); ?></a>
<# if ( ! data.block_theme ) { #>
<a class="button load-customize" href="{{ data.customize_url }}"><?php _e( 'Live Preview' ); ?></a>
<# } #>
<# } else { #>
<a class="button load-customize" href="{{ data.customize_url }}"><?php _e( 'Customize' ); ?></a>
<# } #>

View File

@@ -206,18 +206,26 @@ function dismissed_updates() {
'available' => false,
)
);
if ( $dismissed ) {
if ( $dismissed ) {
$show_text = esc_js( __( 'Show hidden updates' ) );
$hide_text = esc_js( __( 'Hide hidden updates' ) );
?>
<script type="text/javascript">
jQuery(function( $ ) {
$( 'dismissed-updates' ).show();
$( '#show-dismissed' ).toggle( function() { $( this ).text( '<?php echo $hide_text; ?>' ).attr( 'aria-expanded', 'true' ); }, function() { $( this ).text( '<?php echo $show_text; ?>' ).attr( 'aria-expanded', 'false' ); } );
$( '#show-dismissed' ).click( function() { $( '#dismissed-updates' ).toggle( 'fast' ); } );
});
</script>
<script type="text/javascript">
jQuery( function( $ ) {
$( '#show-dismissed' ).on( 'click', function() {
var isExpanded = ( 'true' === $( this ).attr( 'aria-expanded' ) );
if ( isExpanded ) {
$( this ).text( '<?php echo $show_text; ?>' ).attr( 'aria-expanded', 'false' );
} else {
$( this ).text( '<?php echo $hide_text; ?>' ).attr( 'aria-expanded', 'true' );
}
$( '#dismissed-updates' ).toggle( 'fast' );
});
});
</script>
<?php
echo '<p class="hide-if-no-js"><button type="button" class="button" id="show-dismissed" aria-expanded="false">' . __( 'Show hidden updates' ) . '</button></p>';
echo '<ul id="dismissed-updates" class="core-updates dismissed">';

View File

@@ -2,7 +2,7 @@
Contributors: wordpressdotorg
Requires at least: WordPress 3.2
Tested up to: 5.9
Stable tag: 3.9
Stable tag: 4.0
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,11 @@ Images
== Changelog ==
= 4.0 =
* Released: January 25, 2022
https://codex.wordpress.org/Twenty_Eleven_Theme_Changelog#Version_4.0
= 3.9 =
* Released: July 26, 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.9
Version: 4.0
Tested up to: 5.9
Requires PHP: 5.2.4
License: GNU General Public License v2 or later

View File

@@ -2,7 +2,7 @@
Contributors: wordpressdotorg
Requires at least: WordPress 4.1
Tested up to: 5.9
Version: 3.0
Version: 3.1
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.1 =
* Released: January 25, 2022
https://codex.wordpress.org/Twenty_Fifteen_Theme_Changelog#Version_3.1
= 3.0 =
* Released: July 20, 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: 3.0
Version: 3.1
Tested up to: 5.9
Requires PHP: 5.2.4
License: GNU General Public License v2 or later

View File

@@ -2,7 +2,7 @@
Contributors: wordpressdotorg
Requires at least: WordPress 3.6
Tested up to: 5.9
Stable tag: 3.2
Stable tag: 3.3
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.3 =
* Released: January 25, 2022
https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_3.3
= 3.2 =
* Released: July 20, 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.2
Version: 3.3
Tested up to: 5.9
Requires PHP: 5.2.4
License: GNU General Public License v2 or later

View File

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

View File

@@ -1,6 +1,6 @@
{
"name": "twentynineteen",
"version": "2.1.0",
"version": "2.2.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.9
Stable tag: 2.1
Stable tag: 2.2
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.2 =
* Released: January 25, 2022
https://codex.wordpress.org/Twenty_Nineteen_Theme_Changelog#Version_2.2
= 2.1 =
* Released: July 20, 2021

View File

@@ -8,7 +8,7 @@ Description: Our 2019 default theme is designed to show off the power of the blo
Tested up to: 5.9
Requires at least: 4.9.6
Requires PHP: 5.2.4
Version: 2.1
Version: 2.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentynineteen

View File

@@ -8,7 +8,7 @@ Description: Our 2019 default theme is designed to show off the power of the blo
Tested up to: 5.9
Requires at least: 4.9.6
Requires PHP: 5.2.4
Version: 2.1
Version: 2.2
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,9 +4,10 @@ Theme URI: https://wordpress.org/themes/twentynineteen/
Author: the WordPress team
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.
Tested up to: 5.9
Requires at least: 4.9.6
Requires PHP: 5.2.4
Version: 2.1
Version: 2.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentynineteen

View File

@@ -1,7 +1,7 @@
=== Twenty Seventeen ===
Contributors: wordpressdotorg
Tested up to: 5.9
Version: 2.8
Version: 2.9
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.9 =
* Released: January 25, 2022
https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_2.9
= 2.8 =
* Released: July 20, 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.8
Version: 2.9
Tested up to: 5.9
Requires at least: 4.7
Requires PHP: 5.2.4

View File

@@ -1,7 +1,7 @@
=== Twenty Sixteen ===
Contributors: wordpressdotorg
Tested up to: 5.9
Version: 2.5
Version: 2.6
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.6 =
* Released: January 25, 2022
https://codex.wordpress.org/Twenty_Sixteen_Theme_Changelog#Version_2.6
= 2.5 =
* Released: July 20, 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.5
Version: 2.6
Tested up to: 5.9
Requires at least: 4.4
Requires PHP: 5.2.4

View File

@@ -1,7 +1,7 @@
=== Twenty Ten ===
Contributors: wordpressdotorg
Tested up to: 5.9
Stable tag: 3.5
Stable tag: 3.6
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,11 @@ Images
== Changelog ==
= 3.6 =
* Released: January 25, 2022
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_3.6
= 3.5 =
* Released: July 26, 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.5
Version: 3.6
Tested up to: 5.9
Requires at least: 3.0
Requires PHP: 5.2.4

View File

@@ -52,6 +52,11 @@ Toroidal Colony: https://www.flickr.com/photos/nasacommons/13889485757/in/album-
== Changelog ==
= 3.5 =
* Released: January 25, 2022
https://codex.wordpress.org/Twenty_Thirteen_Theme_Changelog#Version_3.5
= 3.4 =
* Released: July 20, 2021

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