Commit Graph

48565 Commits

Author SHA1 Message Date
Aaron Jorbin
80315b33c4 Remove unintended changes introduced in [57112].
Unprops jorbin.


Built from https://develop.svn.wordpress.org/branches/6.4@57113


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56624 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-15 17:47:20 +00:00
Aaron Jorbin
c3aa3eed46 Help/About: Improve translation comment around release notes.
Reviewed by SergeyBiryukov.
Merges [57081] to the 6.4 branch.

Props kharisblank, kebbet.
Fixes #59821.

Built from https://develop.svn.wordpress.org/branches/6.4@57112


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56623 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-15 17:37:22 +00:00
Joe McGill
68f541d427 Themes: Correct docblock for _register_theme_block_patterns.
This updates the '@since 6.4.0' annotation in _register_theme_block_patterns to reference WP_Theme::get_block_patterns instead of _wp_get_block_patterns, which was changed in [56978].

Reviewed by audrasjb.
Merges [57102] to the to the 6.4 branch.

Props audrasjb, mukesh27, joemcgill.
Fixes #59869.

Built from https://develop.svn.wordpress.org/branches/6.4@57103


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56614 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-10 16:00:25 +00:00
Peter Wilson
0860c104b9 Post WordPress 6.4.1 version bump.
Built from https://develop.svn.wordpress.org/branches/6.4@57098


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56609 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-09 01:49:26 +00:00
Peter Wilson
2df347f9a5 WordPress 6.4.1
Built from https://develop.svn.wordpress.org/branches/6.4@57096


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56607 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-09 00:43:24 +00:00
Peter Wilson
7929547320 Help/About: Update the About page for 6.4.1.
Props peterwilsoncc, hellofromtonya, jorbin, webcommsat.
Fixes #59852.


Built from https://develop.svn.wordpress.org/branches/6.4@57095


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56606 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-08 23:45:22 +00:00
Peter Wilson
62032477b7 Quick/Bulk Edit: Prevent assigning posts to default categories during bulk edit.
During a bulk edit of posts with different categories, the categories for the edited posts would be reset to the default category: uncategorized by default.

This reverts [56712] to resolve the issue.

Merges [57093] to the 6.4 branch.

Props peterwilsoncc, hellofromtonya, jorbin.
Fixes #59837.
See #11302.

Built from https://develop.svn.wordpress.org/branches/6.4@57094


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56605 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-08 23:25:20 +00:00
Aaron Jorbin
aec84bb328 Post WordPress 6.4.1 RC1 version bump.
Built from https://develop.svn.wordpress.org/branches/6.4@57092


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56603 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-08 21:33:33 +00:00
Aaron Jorbin
10c4da63fb WordPress 6.4.1 RC1.
Built from https://develop.svn.wordpress.org/branches/6.4@57091


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56602 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-08 21:17:26 +00:00
hellofromTonya
a0673b0e3a Database: Reinstate wpdb::$use_mysqli property.
Partial revert of [56475] to reinstate the private `wpdb::$use_mysqli` property and set to its default to true. This private property was / is accessible through the magic methods. Though Core's usage of this property was removed by [56475], plugins are using the property. Reinstating it resolves the BC break.

Follow up to [56475].

Reviewed by jorbin.
Merges [57089] to the 6.4 branch.

Props jason_the_adams, joemcgill, johnbillion, johnjamesjacoby, jrf, rajinsharwar, renehermi.
Fixes #59846.
Built from https://develop.svn.wordpress.org/branches/6.4@57090


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56601 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-08 20:38:22 +00:00
Aaron Jorbin
8daa264700 External Libraries: Update Requests to 2.0.9.
This updates the Requests library from version 2.0.8 to 2.0.9. This is a hotfix release.

Reviewed by jorbin, desrosj.
Merges [57086] to 6.4 branch.

Props jorbin, hellofromTonya, desrosj, barry, cenkdemir, nexflaszlo, schlessera, jrf, Clorith, tomsommer, azaozz, pbiron, afragen, howdy_mcgee.
Fixes #59842.

Built from https://develop.svn.wordpress.org/branches/6.4@57088


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56599 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-08 20:32:23 +00:00
Aaron Jorbin
fdc7706982 Administration: Fix typos in wp_admin_notice() arguments in a few instances.
Follow-up to [56570], [56599].

Reviewed by azaozz, joedolson, jorbin.

Props dlh, mukesh27, sumitbagthariya16.
Fixes #59830.

Built from https://develop.svn.wordpress.org/branches/6.4@57087


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56598 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-08 20:10:23 +00:00
hellofromTonya
15fb84c071 Post WordPress 6.4 version bump.
The 6.4 branch is now 6.4.1-alpha.
Built from https://develop.svn.wordpress.org/branches/6.4@57080


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56591 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-07 20:22:20 +00:00
Tammie Lister
85535b0ae2 WordPress 6.4.
Built from https://develop.svn.wordpress.org/branches/6.4@57078


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56589 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-07 19:22:23 +00:00
hellofromTonya
73139df433 Upgrade/Install: Update $_old_files for 6.4.
Reviewed by davidbaumwald.
Merges [57075] to the 6.4 branch.

Props davidbaumwald.
Fixes #59817.
Built from https://develop.svn.wordpress.org/branches/6.4@57076


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56587 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-06 17:53:19 +00:00
hellofromTonya
f157cfe635 Post WordPress 6.4 RC4 version bump.
Built from https://develop.svn.wordpress.org/branches/6.4@57074


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56585 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-06 16:37:23 +00:00
hellofromTonya
05673bcac8 WordPress 6.4 RC4.
Built from https://develop.svn.wordpress.org/branches/6.4@57073


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56584 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-06 16:22:19 +00:00
desrosj
038a52c5db Bundled Themes: Bump versions for WP 6.4 releases.
Since every default theme was updated during the 6.4 release cycle, this bumps the version of each one.

Twenty Ten: 4.0
Twenty Eleven: 4.5
Twenty Twelve: 4.1
Twenty Thirteen: 4.0
Twenty Fourteen: 3.8
Twenty Fifteen: 3.6
Twenty Sixteen: 3.1
Twenty Seventeen: 3.4
Twenty Nineteen: 2.7
Twenty Twenty: 2.4
Twenty Twenty-One: 2.0
Twenty Twenty-Two: 1.6
Twenty Twenty-Three: 1.3

Reviewed by hellofromTonya.
Merges [57069] to the 6.4 branch.

Props sabernhardt, rajinsharwar, mukesh27.
Fixes #58832.
Built from https://develop.svn.wordpress.org/branches/6.4@57072


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56583 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-06 15:35:20 +00:00
hellofromTonya
ae8288cbaa Blocks: Document Block Hooks functions as private.
Documents the 4 new 6.4 Block Hooks global functions as private and for Core-only internal usage:

* `make_before_block_visitor()`
* `make_after_block_visitor()`
* `traverse_and_serialize_block()`
* `traverse_and_serialize_blocks()`

This is being done as the architectural design of these new functions may change in the next cycle. Further denoting them as private / Core only can help to avoid extender churn if any of these functions are deprecated.

Follow up to [56649], [56620].

Reviewed by karmatosed.
Merges [57066] to the 6.4 branch.

Props azaozz, hellofromTonya, bernhard-reiter, gziolo, mikeschroder.
Fixes #59783.
See #59313.
Built from https://develop.svn.wordpress.org/branches/6.4@57071


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56582 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-06 15:29:17 +00:00
hellofromTonya
b4b177b469 Twenty Twenty-Four: Bugfixes and refinement for 6.4 RC4.
This update includes the following changes:

* [https://github.com/WordPress/twentytwentyfour/pull/723 Remove custom CSS for links].
* [https://github.com/WordPress/twentytwentyfour/pull/718 Fix the link to the theme's docs].
* [https://github.com/WordPress/twentytwentyfour/pull/719 Separate outline css to its own function] - which introduces `twentytwentyfour_block_stylesheets()` for enqueuing custom block stylesheets.
* [https://github.com/WordPress/twentytwentyfour/pull/720 Fix height of newsletter landing pattern].
* [https://github.com/WordPress/twentytwentyfour/pull/722/ Resolve border colors in variations].

Follow up to [57036], [56999], [56951], [56813], [56764], [56716].

Reviewed by desrosj.
Merges [57067] to the 6.4 branch.

Props onemaggie, richtabor, luminuu, huzaifaalmesbah, sabernhardt, poena, rajinsharwar.
Fixes #59812.
Built from https://develop.svn.wordpress.org/branches/6.4@57070


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56581 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-06 15:24:20 +00:00
hellofromTonya
ea9a29ed28 Editor: Update of npm packages after 6.4 RC3.
This update includes the following fixes reported after RC3:

* Regression: [https://github.com/WordPress/gutenberg/pull/55858 Fixes patterns not working anymore as a post template for custom post types].

Scenario: When creating a new post for any custom post type registered with its "template" argument set to a pattern.

For this scenario, the pattern template no longer renders in the post editor or the frontend with 6.4, whereas it did render properly in 6.3.2.

This package update resolves the console error raised:
{{{
Uncaught TypeError: select(...).getCurrentTheme() is undefined 
}}}
which restores the rendering of the pattern template.

* Regression: [https://github.com/WordPress/gutenberg/pull/55859  Fixes positioning and styles for the new lightbox's trigger] introduced in 6.4.

Follow up to [57048], [57034], [56987], [56961], [56849], [56818], [56816].

Reviewed by jorbin.
Merges [57063] to the 6.4 branch.

Props renathoc, rajinsharwar, richtabor, joen, mikachan, hellofromTonya.
Fixes #59411.
Built from https://develop.svn.wordpress.org/branches/6.4@57064


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56575 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-05 19:40:32 +00:00
Peter Wilson
f4e957b837 Build/Test Tools: Revert [57058].
Revert group name change in the 6.4 branch as the `functions.php` group was renamed `functions` after the branch was forked.

Props SergeyBiryukov.
See #59647, #58955.


Built from https://develop.svn.wordpress.org/branches/6.4@57059


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56570 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-03 23:24:19 +00:00
Peter Wilson
3ff7e29b99 Build/Test Tools: Fix group for wp_unique_prefixed_id() tests.
Change the group from `functions.php` to `functions` to match other tests.

Reviewed by jorbin.
Merges [57057] to the 6.4 branch.

See #59647, #58955.


Built from https://develop.svn.wordpress.org/branches/6.4@57058


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56569 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-03 22:47:25 +00:00
Aaron Jorbin
3a7d3823ff Help/About: Update link to field guide for 6.4.
Follow up to [56950].

Merges [57054] to 6.4 branch.
Reviewed by davidbaumwald, joedolson.

Props afercia.
Fixes #59289.

Built from https://develop.svn.wordpress.org/branches/6.4@57055


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56566 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-02 15:02:20 +00:00
hellofromTonya
8300cc5be5 Post WordPress 6.4 RC3 version bump.
Built from https://develop.svn.wordpress.org/branches/6.4@57051


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56562 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-01 19:16:18 +00:00
hellofromTonya
0c9b5c435f WordPress 6.4 RC3.
Built from https://develop.svn.wordpress.org/branches/6.4@57050


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56561 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-01 18:38:20 +00:00
hellofromTonya
acef64f03c Editor: 2nd update of npm packages for 6.4 RC3.
This second update for RC3 includes the following fixes:

* [https://github.com/WordPress/gutenberg/pull/55724 Update label for lightbox editor UI] - string change.
* [https://github.com/WordPress/gutenberg/pull/55720 Query: Require queryId for enhanced pagination to prevent PHP notices] and warnings.
* [https://github.com/WordPress/gutenberg/pull/55714 Query block enhanced pagination: Detect inner plugin blocks during render] - which avoids turning off enhanced pagination in TT4, includes string changes.
* [https://github.com/WordPress/gutenberg/pull/55309 Query Loop block: Reuse existing screen-reader-text CSS class for the enhanced pagination aria-live region].

Follow up to [57034], [56987], [56961], [56849], [56818], [56816].

Reviewed by davidbaumwald , jorbin.
Merges [57048] to the 6.4 branch.

Props afercia, aristath, artemiosans, czapla, darerodz, glendaviesnz, hellofromTonya, jameskoster, joen, luisherranz, mikachan, ocean90, peterwilsoncc, ramonopoly, rajinsharwar, swissspidy.
Fixes #59411.
Built from https://develop.svn.wordpress.org/branches/6.4@57049


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56560 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-01 18:11:30 +00:00
John Blackbourn
55f2881138 Docs: Correct some docblock formatting errors.
Reviewed by hellofromTonya.
Merges [57046] to the 6.4 branch.

Fixes #59784

Built from https://develop.svn.wordpress.org/branches/6.4@57047


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56558 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-01 15:15:16 +00:00
hellofromTonya
997dd351eb Taxonomy: Set "public" to "false" for user pattern categories.
Changes the `'wp_pattern_category'` taxonomy's `'public'` argument to `false`.

Follow-up to [56642].

Reviewed by azaozz, mikeschroder.
Merges [57044] to the 6.4 branch.

Props vrajadas, glendaviesnz, hellofromTonya, ramonopoly.
Fixes #59569.
Built from https://develop.svn.wordpress.org/branches/6.4@57045


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56556 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-01 15:05:20 +00:00
Bernhard Reiter
4cff8f4ca9 Blocks: During traversal, allow post callback to modify block.
Both the `$pre_callback` and `$post_callback` functions that are given as arguments to `traverse_and_serialize_block(s)` receive a reference to the current block as their first argument. However, while any changes that the "pre" callback makes to the block are reflected by the serialized markup, the same wasn't true for the "post" callback: Any changes that it made were only applied ''after'' the block had already been serialized.

This commit changes the behavior such that `$post_callback`'s changes to the current block are also reflected in the serialized markup.

Reviewed by hellofromTonya.
Merges [56970] to the 6.4 branch.

See #59646.
Props gziolo.
Fixes #59669.
Built from https://develop.svn.wordpress.org/branches/6.4@57043


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56554 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-01 12:46:23 +00:00
Sergey Biryukov
e9e6d7d753 Docs: Update some reusable block references to synced patterns.
In WordPress 6.3, [https://wordpress.org/documentation/article/reusable-blocks/ Reusable Blocks were renamed to Patterns]. A synced pattern will behave in exactly the same way as a reusable block.

This commit updates some references in DocBlocks and inline comments to use the new name.

Follow-up to [56030].

Reviewed by hellofromTonya.
Merges [57032] and [57033] to the 6.4 branch.

Props benjaminknox, oglekler, hellofromTonya, marybaum, nicolefurlan.
Fixes #59388.
Built from https://develop.svn.wordpress.org/branches/6.4@57040


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56551 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-01 11:20:25 +00:00
Bernhard Reiter
1f15c393e6 Block Hooks: Allow traversal callbacks to modify parent block.
The callbacks returned by `make_before_block_visitor` and `make_after_block_visitor`, respectively, (which are passed as arguments to `traverse_and_serialize_block(s)`) currently accept three arguments, all of which are block arrays (i.e. with properties `blockName`, `attrs`, etc.):
- A ''reference'' to the block they're currently visiting, `&$block`;
- the block's `$parent_block`; and
- the `$prev`ious block (for `make_before_block_visitor`), or the `$next` block (for `make_after_block_visitor`), respectively.

Those arguments are passed to the "block visitor" callbacks by `traverse_and_serialize_block(s)` during traversal. The block that the callback is currently visiting is passed ''by reference'' to allow modifying it, which is e.g. used to inject the `theme` attribute into Template Part blocks.

One major limitation of Block Hooks is that they currently only work with templates, parts, and patterns that ''don't have any user modifications'' (i.e. that come straight from the corresponding theme files, rather than from the database). For WordPress 6.5, it is planned to change that to make Block Hooks work for templates, parts, and patterns that ''do'' have user modifications: #59646.

This will be implemented by storing an attribute on the "anchor" block. While working on that feature, it was found that the aforementioned callbacks will need to modify not only the currently visited `$block`, but also the `$parent_block` -- i.e. that the latter argument needs to be passed by reference as well. This is consistent with the requirement of adding an attribute to an anchor block, as it's not only the currently visited block that can serve as an anchor block (in the case of `before` or `after` sibling insertion), but also its parent (for `first_child` and `last_child` insertion).

If the `$parent_block` argument were to be changed to become a reference in a later WordPress version, this could be considered a backwards-compatibility breaking change. For this reason, this change is instead proposed for 6.4 already, which is the cycle during which the relevant functions were first introduced. This should have no impact on existing code, since nothing currently relies on `$parent_block` remaining unmodified by the respective callback, nor is anything currently modifying that argument.

Reviewed by hellofromTonya.
Merges [57038] to the 6.4 branch.

Props hellofromTonya.
Fixes #59776.
Built from https://develop.svn.wordpress.org/branches/6.4@57039


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56550 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-31 19:40:19 +00:00
hellofromTonya
8a90beea82 Twenty Twenty-Four: Bugfixes for 6.4 RC3.
This update includes the following bugfixes: 

- Fix: Added a new block pattern for the home template that inherits the page query and fits the design of the home page. (more context on the theme repo: https://github.com/WordPress/twentytwentyfour/pull/706)
- Fix: Rely on parent theme data for block style.
- Fix: Categories for some patterns.
- Fix: Minor labeling issues

Follow-up to [56999], [56951], [56813], [56764], [56716].

Reviewed by flixos90, jorbin.
Merges [57036] to the 6.4 branch.

Props anlino, beafialho, desrosj, devmuhib, didierjm, fabiorubioglio, flixos90, hanneslsm, hellofromTonya, huzaifaalmesbah, ktaron, luminuu, mshowes, onemaggie, phillsav, poena, rajinsharwar, richtabor, shailu25.
Fixes #59770, #59759.
Built from https://develop.svn.wordpress.org/branches/6.4@57037


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56548 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-31 18:53:20 +00:00
Tammie Lister
751b6acaea Update editor related npm packages for 6.4 RC3.
The npm packages needed update for 6.4 RC3.

Patch: https://github.com/WordPress/wordpress-develop/pull/5587
This PR includes the following changes:

- Regression: [https://github.com/WordPress/gutenberg/pull/55553 Patterns: fix bug with authors and contributors not seeing user pattern categories].
- Bugfix: [https://github.com/WordPress/gutenberg/pull/55539 Query Loop:Disallow "enhanced pagination" with core blocks that may contain third-party blocks].
- Regression: [https://github.com/WordPress/gutenberg/pull/55667 File: Fix embedded PDF files in Safari].
- Regression: [https://github.com/WordPress/gutenberg/pull/55669 Ensure Term Description block is registered in core]


Reviewed by helloFromTonya.
Merges [57034] to the 6.4 branch.

Props DAreRodz, luisherranz, poena, afercia, danieldudzic, hellofromtonya, siobhyb, mikachan, get_dave, scruffian, wildworks, glendaviesnz, ramonopoly, aaronrobertshaw.

See #59411.

Built from https://develop.svn.wordpress.org/branches/6.4@57035


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56546 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-31 17:17:36 +00:00
Sergey Biryukov
2d288f449a Editor: Correctly load RTL stylesheets in register_core_block_style_handles().
When setting an RTL language under Settings → General, some RTL stylesheets were not loaded, with LTR stylesheets being loaded instead, meaning that some blocks were not displayed correctly.

This commit ensures that all appropriate RTL stylesheets are loaded when selecting an RTL language.

Follow-up to [56524].

Reviewed by hellofromTonya.
Merges [57028] to the 6.4 branch.

Props mukesh27, maahrokh, hellofromTonya, joemcgill, huzaifaalmesbah, rajinsharwar, devmuhib, swissspidy.
Fixes #59715.
Built from https://develop.svn.wordpress.org/branches/6.4@57031


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56542 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-31 11:59:23 +00:00
Peter Wilson
46a2d34de2 Options, Meta APIs: Fast follow fixes for option cache priming functions.
A collection of fixes for `wp_prime_option_caches()`:

* cache arrays and objects in their serialized form for consistency with `get_option()` and `wp_load_alloptions()`
* prevent repeat database queries for falsey and known non-existent options (notoptions)

Additional tests for `wp_prime_option_caches()` to ensure:

* additional database queries are not made repriming options (known, known-unknown and alloptions)
* cache is primed consistently
* `get_option()` returns a consistent value regardless of how it is primed
* database queries do not contain earlier primed options
* `get_option` does not prime the cache when testing the cache has been successfully primed

Fixes a test for `wp_prime_option_caches_by_group()` to ensure `get_option` does not prime the cache when testing the cache has been successfully primed.

Follow up to [56445],[56990],[57013].

Reviewed by flixos90, hellofromTonya, joemcgill.
Merges [57029] to the 6.4 branch.

Props peterwilsoncc, costdev, flixos90, hellofromTonya, mikeschroder, joemcgill.
Fixes #59738. See #58962.


Built from https://develop.svn.wordpress.org/branches/6.4@57030


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56541 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-30 23:23:24 +00:00
Aaron Jorbin
d9d85ab4ac Help/About: Improve Accessibility, RTL, Internationalization, and Responsiveness of about pages.
Merges [57018] to 6.4 branch.

Tweaks the 6.4 about pages in a couple of ways:
 - Decouples the background from the 6.4 logo so the logo can move for RTL.
 - Updates a color to improve color contrast.
 - Help prevent overlap of long text strings with 6.4 logo.
 - Ensure background isn't dark when no background is used on mobile.

Props nudge, jorbin, afercia, sumitsingh, sabernhardt.
See #59289, #59664.
Backport reviewed by hellofromTonya and joedolson.


Built from https://develop.svn.wordpress.org/branches/6.4@57025


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56536 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-27 20:58:21 +00:00
joedolson
7c8cee1884 Plugins: Prevent ajaxComplete listener from observing all events.
Add a conditional to prevent the `prefers-reduced-motion` `ajaxComplete` listener from observing events not occurring in the plugin installation screen. Improve handling of settings data test.

The listener observing `ajaxComplete` in [56541] was intercepting all `ajaxComplete` events, creating potential for unexpected errors in unrelated functions.

Props bplv, afercia, rudlinkon, hellofromTonya, huzaifaalmesbah, joedolson, jorbin.
Reviewed by jorbin.
Merges [57022] to the 6.4 branch.
Fixes #59689.
Built from https://develop.svn.wordpress.org/branches/6.4@57024


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56535 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-27 20:07:22 +00:00
Joe McGill
b249ca183e Upgrade/Install: Skip registering theme block patterns during the upgrade process.
This fixes a bug during the database upgrade process where a theme's `functions.php` file may not be loaded, leading to potential exceptions if the theme's pattern files use symbols (classes, functions, constants, etc.) that are declared only when the `functions.php` file is loaded. To do so, a check for `wp_get_active_and_valid_themes()` is added early to `_register_theme_block_patterns()`, which returns early if no active or valid themes are returned.

Props fabiankaegy, rajinsharwar, pbiron, huzaifaalmesbah, hellofromTonya, peterwilsoncc, joemcgill.
Reviewed by hellofromTonya.
Merges [57021] to the 6.4 branch.
Fixes #59723.

Built from https://develop.svn.wordpress.org/branches/6.4@57023


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56534 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-27 19:26:39 +00:00
Felix Arntz
d39daa2b28 Themes: Skip wrapping block template for singular content with a main query loop when the template was injected from outside the current theme.
As a follow up to [56507], this fixes a bug that could occur for instance when plugins hijack the block template detection process to inject their own block template with entirely custom logic.

Props afragen, hellofromTonya, costdev, mukesh27, huzaifaalmesbah, flixos90.
Merges [57019] to the 6.4 branch.
Fixes #59736.
See #58154.

Built from https://develop.svn.wordpress.org/branches/6.4@57020


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56531 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-27 18:36:22 +00:00
Peter Wilson
ead01cff58 Options, Meta APIs: Rename option cache priming functions.
Rename the option cache priming functions to more closely follow the naming convention used by other cache priming functions.

* `wp_load_options()` becomes `wp_prime_option_caches()`
* `wp_load_options_by_group()` becomes `wp_prime_option_caches_by_group()`

The unit test files and classes are renamed accordingly.

Unlike the existing cache priming functions, these functions were introduced with the intention of being public so use the `wp_` prefix rather than the `_` prefix used by the functions initially introduced as private functions but since made public.

Follow up to [56445],[56990].

Props flixos90, peterwilsoncc, joemcgill, SergeyBiryukov, desrosj.
Reviewed by flixos90.
Merges [57013] to the 6.4 branch.
Fixes #58962.


Built from https://develop.svn.wordpress.org/branches/6.4@57016


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56527 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-27 00:02:20 +00:00
Aaron Jorbin
64bd43c885 REST API: Move rest_pre_serve_request filter to after no cache headers are sent.
Merges [57012] to 6.4 branch.

[56834] adjusted the order of activity inside the rest server responses. This lead to the rest_pre_serve_request filter potentially blocking the sending of the no cache headers. This moves that action back to being after the sending of no cache headers has finished to restore the pre 6.3.2 order of these two actions.

Props perrelet, SergeyBiryukov, peterwilsoncc, hellofromTonya.
Fixes #59722.

Built from https://develop.svn.wordpress.org/branches/6.4@57014


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56525 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-26 23:16:21 +00:00
Felix Arntz
2277da5029 Themes: Fix block theme supports being added too early, leading to Customizer live preview bugs in 6.4.
The Customizer live preview broke because of [56635], however the root cause for the bug was a lower-level problem that had been present since WordPress 5.8: The block theme specific functions `_add_default_theme_supports()` and `wp_enable_block_templates()` were being hooked into the `setup_theme` action, which fires too early to initialize theme features. Because of that, theme functionality would be initialized before the current theme setup being completed. In the case of the Customizer, that includes overriding which theme is the current theme entirely, thus leading to an inconsistent experience.

This changeset fixes the bug by moving those two callbacks to the `after_setup_theme` action, which is the appropriate action to initialize theme features.

Props karl94, hellofromTonya, joemcgill, flixos90.
Merges [57009] to the 6.4 branch.
Fixes #59732.
See #18298, #53397, #54597.

Built from https://develop.svn.wordpress.org/branches/6.4@57010


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56521 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-26 18:47:20 +00:00
Tammie Lister
6110953300 Post WordPress 6.4 RC2 version bump.
Built from https://develop.svn.wordpress.org/branches/6.4@57007


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-24 16:43:19 +00:00
Tammie Lister
391597df86 WordPress 6.4 RC2.
Built from https://develop.svn.wordpress.org/branches/6.4@57006


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56517 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-24 16:24:22 +00:00
desrosj
59e523d54d Twenty Twenty-Four: Bug fixes for 6.4 RC2.
This update includes updates to patterns to correct color issues and some code quality fixes.

Follow-up to [56951], [56813], [56764], [56716].

Props luminuu, richtabor, onemaggie, kafleg, swissspidy, huzaifaalmesbah, neilorangepeel, shailu25, lada7042, mukesh27, nilovelez, jorbin.
Merges [56999] and [57003] to the 6.4 branch.
Fixes #59711.
Built from https://develop.svn.wordpress.org/branches/6.4@57005


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56516 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-24 15:24:21 +00:00
Felix Arntz
04e82f9f08 Options, Meta APIs: Rename prime_options() to wp_load_options().
This clearly separates these functions which are intended to be used by external developers from the existing `_prime_*_caches()` functions which are primarily intended for internal usage. The term "load" is additionally more accessible than "prime".

This changeset renames the above function, as well as the wrapper function `prime_options_by_group()` to `wp_load_options_by_group()`.

Props peterwilsoncc, joemcgill, hellofromTonya, poran766, flixos90.
Merges [56990] to the 6.4 branch.
Fixes #58962.

Built from https://develop.svn.wordpress.org/branches/6.4@57004


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56515 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-24 14:37:16 +00:00
desrosj
f49b05f8f2 Build/Test Tools: Revert [57000] and [57001].
These commits accidentally reverted intended changes.

Unprops desrosj.
Built from https://develop.svn.wordpress.org/branches/6.4@57002


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56513 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-24 14:24:20 +00:00
desrosj
ed4c779e9f Build/Test Tools: Test Twenty Twenty-Four.
This adds Twenty Twenty-Four to the Default Theme test workflow in GitHub Actions.

Follow up to [56764], [56726], [56721], [56716].

Merges [56770] to the 6.4 branch.
See #59447.
Built from https://develop.svn.wordpress.org/branches/6.4@57001


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56512 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-24 14:16:17 +00:00
desrosj
b0a7f76cd2 Build/Test Tools: Simplify some logic in GitHub Action workflows.
This simplifies the logic within the `slack-notifications` and `failed-workflow` steps in GitHub Action workflows to use the `contains()` function and object filtering.

This makes it simpler to perform the needed checks by removing the need to list out every single dependent job defined in `needs`.

Merges [56660] to the 6.4 branch.
See #58867.
Built from https://develop.svn.wordpress.org/branches/6.4@57000


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56511 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-24 14:14:23 +00:00