Commit Graph

51218 Commits

Author SHA1 Message Date
Bernhard Reiter
b8cf69052d Block Bindings: Add core/post-data source.
Add a new Block Bindings source, `core/post-data`, which exposes `date` and `modified` fields for now -- reflecting the publish date and the last modified date of the post, respectively. The source could be subsequently extended to include other fields associated with a post object, such as title, featured image, etc.

Props bernhard-reiter.
Closes #63741.
Built from https://develop.svn.wordpress.org/trunk@60539


git-svn-id: http://core.svn.wordpress.org/trunk@59875 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-05 13:54:35 +00:00
Sergey Biryukov
e05901f85c Twenty Twenty-Two: Use third-person singular verbs for function descriptions.
Reference: [https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#documenting-tips PHP Documentation Standards: Documenting Tips].

Props vladimiraus, mukesh27, SergeyBiryukov.
See #63692.
Built from https://develop.svn.wordpress.org/trunk@60538


git-svn-id: http://core.svn.wordpress.org/trunk@59874 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-05 09:08:39 +00:00
Sergey Biryukov
ff0f834484 Twenty Twenty-One: Use third-person singular verbs for function descriptions.
Reference: [https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#documenting-tips PHP Documentation Standards: Documenting Tips].

Props vladimiraus, mukesh27, SergeyBiryukov.
See #63692.
Built from https://develop.svn.wordpress.org/trunk@60537


git-svn-id: http://core.svn.wordpress.org/trunk@59873 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-04 20:55:31 +00:00
Sergey Biryukov
807d44133f Twenty Twenty: Use third-person singular verbs for function descriptions.
Reference: [https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#documenting-tips PHP Documentation Standards: Documenting Tips].

Props vladimiraus, mukesh27, SergeyBiryukov.
See #63692.
Built from https://develop.svn.wordpress.org/trunk@60536


git-svn-id: http://core.svn.wordpress.org/trunk@59872 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-03 15:27:31 +00:00
Sergey Biryukov
eabdc61bfa Twenty Nineteen: Use third-person singular verbs for function descriptions.
Reference: [https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#documenting-tips PHP Documentation Standards: Documenting Tips].

Props vladimiraus, mukesh27, SergeyBiryukov.
See #63692.
Built from https://develop.svn.wordpress.org/trunk@60535


git-svn-id: http://core.svn.wordpress.org/trunk@59871 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-02 13:28:28 +00:00
desrosj
404ee6710f Build/Test Tools: Spawn fewer jobs in GitHub Actions on forks.
The GitHub Actions workflows currently limit when jobs run for forks by short-circuiting any that are triggered by `push` events when not running within the `wordpress-develop` repository. 

Because the large majority of forks are not created under organizations, they will be subject to the individual account limit of 20 concurrent jobs (40 for pro accounts) at any given time instead of the 500 concurrent job limit that applies to the WordPress organization. This means that a single pull request back to a fork can take several hours to complete the workflow jobs that are spawned.

This revises the conditional statements to further limit the number of jobs that spawn within a fork while still allowing the full test matrices for forks within the `WordPress` organization and pull requests back to `wordpress-develop`.

These adjustments result in a maximum of 53 jobs when all workflows configured to run within forks are triggered. Of these, ~66% will run in less than 3 minutes, and ~55% will run in less than 1 minute.

Props jorbin, johnbillion. 
Fixes #63752.
Built from https://develop.svn.wordpress.org/trunk@60534


git-svn-id: http://core.svn.wordpress.org/trunk@59870 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-01 12:44:29 +00:00
Sergey Biryukov
b66426a1c4 Twenty Seventeen: Use third-person singular verbs for function descriptions.
Reference: [https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#documenting-tips PHP Documentation Standards: Documenting Tips].

Props vladimiraus, mukesh27, SergeyBiryukov.
See #63692.
Built from https://develop.svn.wordpress.org/trunk@60533


git-svn-id: http://core.svn.wordpress.org/trunk@59869 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-01 11:29:30 +00:00
desrosj
82d142a2ea Build/Test Tools: Update the Inovation Releases tested.
This updates the PHPUnit test strategy matrix to test current Innovation Releases.
- MySQL 9.4 is now the current Innovation Release.
- With the release of the 11.8 LTS version, MariaDB has no current Innovation Releases.

See #63167.
Built from https://develop.svn.wordpress.org/trunk@60532


git-svn-id: http://core.svn.wordpress.org/trunk@59868 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-01 11:05:30 +00:00
audrasjb
4f965a7ad0 Docs: Fix since declaration in get_test_search_engine_visibility() docblock.
See #63375.


Built from https://develop.svn.wordpress.org/trunk@60530


git-svn-id: http://core.svn.wordpress.org/trunk@59866 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-31 23:11:21 +00:00
audrasjb
3930f78020 Site Health: Add a test and the related notice for the Search Engine Visibility setting.
This changeset adds a new Site Health test to make site owners more aware when search engines are discouraged from indexing their sites.
It also increases the visibility of the related Dashboard widget notice.

Changes:
- Adds a new Site Health test under the "Privacy" category to check whether search engines are discouraged
- Displays "recommended" status when search engines are discouraged, with clear messaging to review settings
- Provides a direct link to the Reading Settings page to change this option
- Use a red/alert color to the dashicon used on the Dashboard widget notice

Props jeffr0, newyorkerlaura, joedolson, codente, abcd95, andrewhoyer, SirLouen, johnbillion, mymothersdaughter, audrasjb, Emlebrun, gaeldenysiak, beryldlg, Spaceshipone, coralietixeront, peterwilsoncc.
Fixes #63375.


Built from https://develop.svn.wordpress.org/trunk@60529


git-svn-id: http://core.svn.wordpress.org/trunk@59865 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-31 23:09:27 +00:00
audrasjb
dd37da8585 Plugins: Move the Add Plugins screen description above the filter menu.
This changeset moves the Add Plugins screen general description above the filter menu. It also rephrases a bit the wording of this description.

Props Presskopp, audrasjb, dhruvang21, shailu25.
Fixes #63723.


Built from https://develop.svn.wordpress.org/trunk@60528


git-svn-id: http://core.svn.wordpress.org/trunk@59864 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-31 22:49:33 +00:00
Sergey Biryukov
c5ea9c2c86 Twenty Sixteen: Use third-person singular verbs for function descriptions.
Reference: [https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#documenting-tips PHP Documentation Standards: Documenting Tips].

Props vladimiraus, mukesh27, SergeyBiryukov.
See #63692.
Built from https://develop.svn.wordpress.org/trunk@60527


git-svn-id: http://core.svn.wordpress.org/trunk@59863 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-31 20:48:28 +00:00
audrasjb
37542ac0e1 Docs: Typo correction and comment improvement in color-picker.css.
Props mujuonly, sabernhardt, dhruvang21.
Fixes #63196.
See #63166.


Built from https://develop.svn.wordpress.org/trunk@60526


git-svn-id: http://core.svn.wordpress.org/trunk@59862 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-31 17:34:26 +00:00
audrasjb
d18c1ab57d Docs: Docblock improvement in WP_REST_Font_Collections_Controller.
Props viralsampat , mukesh27.
Fixes #63744.
See #63166.


Built from https://develop.svn.wordpress.org/trunk@60525


git-svn-id: http://core.svn.wordpress.org/trunk@59861 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-31 17:28:37 +00:00
Peter Wilson
52a06d5ed4 Feeds: Cache RSS feeds in global transients.
Moves the caching of RSS feeds requested via `fetch_feed()` from single site transients (`get|set|delete_transient()`) to global transients (`get|set|delete_site_transient()`).

On multisite installs of WordPress, this replaces per site caching with the global multisite cache to allow a single cache to be shared between all sites. This reduces the amount of data stored in the database and improves performance of feeds when multiple sites are ingesting the same URL.

Props rollybueno, spacedmonkey, peterwilsoncc.
Fixes #63719.

Built from https://develop.svn.wordpress.org/trunk@60524


git-svn-id: http://core.svn.wordpress.org/trunk@59860 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-30 23:03:30 +00:00
Sergey Biryukov
7f1d52d7e0 Coding Standards: Upgrade WPCS to version 3.2.0.
The release updates some sniffs to account for changes in recent WordPress versions up to 6.8.

References:
* [https://github.com/WordPress/WordPress-Coding-Standards/releases/tag/3.2.0 WPCS 3.2.0 release notes]
* [https://github.com/WordPress/WordPress-Coding-Standards/compare/3.1.0...3.2.0 Full list of changes in WPCS 3.2.0]

Follow-up to [56695], [56799], [57378], [57986].

Props jrf, dingo_d, garyj, rodrigosprimo, westonruter, fredden, szepeviktor, jonmcpartland, davidperez, rockfire, desrosj, swissspidy, mukesh27, SergeyBiryukov.
Fixes #63762.
Built from https://develop.svn.wordpress.org/trunk@60523


git-svn-id: http://core.svn.wordpress.org/trunk@59859 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-30 12:49:28 +00:00
Weston Ruter
00805cfc1d Customize: Enable Customizer live previews of Custom CSS in Block Themes.
In a Block Theme, the Custom CSS from the Customizer is inserted into the global styles, before the global style's Custom CSS. In order to update the Customizer's Custom CSS inside of the global styles, milestone CSS comments are added in the preview so that the live preview logic can do the replacement.

Follow-up to [55192], [58703].
See #57536, #61395.

Props westonruter, wildworks, peterwilsoncc, rollybueno, SirLouen, poojapadamad, rafiq91, audrasjb.
Fixes #63589.

Built from https://develop.svn.wordpress.org/trunk@60522


git-svn-id: http://core.svn.wordpress.org/trunk@59858 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-30 04:24:34 +00:00
Sergey Biryukov
30a7497189 Twenty Fifteen: Use third-person singular verbs for function descriptions.
Reference: [https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#documenting-tips PHP Documentation Standards: Documenting Tips].

Props vladimiraus, mukesh27, SergeyBiryukov.
See #63692.
Built from https://develop.svn.wordpress.org/trunk@60521


git-svn-id: http://core.svn.wordpress.org/trunk@59857 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-29 12:58:28 +00:00
Peter Wilson
998fd4dac5 Media: Modify escaping used for upload image announcements.
Replaces `esc_js()` with `wp_json_encode()` for escaping the screen reader announcement when a media upload fails. As the code is within a `<script>` tag rather than an inline script handler, the `esc_js()` function would cause special characters to be announced in their HTML encoded form rather than as the character, eg `&` would be announced as `&amp;`.

Follow up to [60263].

Props peterwilsoncc, joedolson.
Fixes #63114.

Built from https://develop.svn.wordpress.org/trunk@60520


git-svn-id: http://core.svn.wordpress.org/trunk@59856 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-29 01:25:29 +00:00
Sergey Biryukov
b00421db31 Twenty Fourteen: Use third-person singular verbs for function descriptions.
Reference: [https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#documenting-tips PHP Documentation Standards: Documenting Tips].

Props vladimiraus, mukesh27, SergeyBiryukov.
See #63692.
Built from https://develop.svn.wordpress.org/trunk@60519


git-svn-id: http://core.svn.wordpress.org/trunk@59855 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-28 19:18:28 +00:00
John Blackbourn
91f00d1c4e Build/Test Tools: Don't run WP-CLI commands as root in the local development environment and CI environment.
Props johnbillion, westonruter.

See #63167, #63564
Built from https://develop.svn.wordpress.org/trunk@60518


git-svn-id: http://core.svn.wordpress.org/trunk@59854 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-28 12:54:30 +00:00
joedolson
f819b81d25 Media: Add gap between Crop apply controls when stacked.
Switch the display of the Media editor Crop controls to `flexbox` and add a gap of 4px in both column and row directions. Gives space between buttons when they are stacked.

Props presskopp, audrasjb, rishabhwp, joedolson.
Fixes #63672.
Built from https://develop.svn.wordpress.org/trunk@60517


git-svn-id: http://core.svn.wordpress.org/trunk@59853 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-28 02:08:26 +00:00
joedolson
caf07c5d31 General: Prevent Media & Theme modals from events on modified arrow keys.
Change the left and right arrow key navigation used in the Theme and Media modal interfaces so the events don't fire when `shift` or `ctrl` are also pressed.

Includes tests.

Props praful2111, hiteshtalpada, joemcgill, sandeepdahiya, abcd95, joedolson.
Fixes #63126.
Built from https://develop.svn.wordpress.org/trunk@60516


git-svn-id: http://core.svn.wordpress.org/trunk@59852 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-28 00:40:25 +00:00
Sergey Biryukov
3154f02e61 Twenty Thirteen: Use third-person singular verbs for function descriptions.
Reference: [https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#documenting-tips PHP Documentation Standards: Documenting Tips].

Props vladimiraus, mukesh27, SergeyBiryukov.
See #63692.
Built from https://develop.svn.wordpress.org/trunk@60515


git-svn-id: http://core.svn.wordpress.org/trunk@59851 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-27 13:05:28 +00:00
Sergey Biryukov
a1c733124b Twenty Twelve: Use third-person singular verbs for some more function descriptions.
Reference: [https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#documenting-tips PHP Documentation Standards: Documenting Tips].

Follow-up to [60508].

See #63692.
Built from https://develop.svn.wordpress.org/trunk@60514


git-svn-id: http://core.svn.wordpress.org/trunk@59850 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-26 15:57:27 +00:00
Sergey Biryukov
3c24423f1d Twenty Eleven: Use third-person singular verbs for some more function descriptions.
Reference: [https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#documenting-tips PHP Documentation Standards: Documenting Tips].

Follow-up to [60506], [60507].

See #63692.
Built from https://develop.svn.wordpress.org/trunk@60513


git-svn-id: http://core.svn.wordpress.org/trunk@59849 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-25 17:03:30 +00:00
John Blackbourn
e6b6fd3b17 Posts, Post Types: Add a filter to the post statuses available in Quick Edit and Bulk Edit.
Props kakomap, SirLouen, iamadisingh, mukesh27

Fixes #36237
Built from https://develop.svn.wordpress.org/trunk@60512


git-svn-id: http://core.svn.wordpress.org/trunk@59848 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-25 15:17:22 +00:00
John Blackbourn
cba3ca6b4a Docs: Improve the documented return type for parsed blocks.
The `blockName` property can be null, for example when a section of HTML outside of a block is encountered. This corrects the docs to reflect that.

Props jeremyfelt, pmbaldha, johnbillion.

Fixes #63663
Built from https://develop.svn.wordpress.org/trunk@60511


git-svn-id: http://core.svn.wordpress.org/trunk@59847 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-25 14:59:28 +00:00
John Blackbourn
b72ccf2661 Posts, Post Types: Don't unnecessarily recount terms when a post transitions between statuses that don't require them to be recounted.
This accounts for transitions where:

* Both the old and new statuses are not included in term counts.
* Both the old and new statuses are included in term counts.

This results in term counts only being recalculated when a post transitions between a counted and an uncounted status.

If the terms of the post are changed then the term recounting is still handled by `wp_update_term_count()` inside `wp_set_object_terms()`.

Props hbhalodia, johnbillion, peterwilsoncc, mukesh27.

Fixes #63562
Built from https://develop.svn.wordpress.org/trunk@60510


git-svn-id: http://core.svn.wordpress.org/trunk@59846 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-25 08:37:27 +00:00
Sergey Biryukov
505eb9738c Twenty Ten: Use third-person singular verbs for some more function descriptions.
Reference: [https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#documenting-tips PHP Documentation Standards: Documenting Tips].

Follow-up to [60505], [60507].

See #63692.
Built from https://develop.svn.wordpress.org/trunk@60509


git-svn-id: http://core.svn.wordpress.org/trunk@59845 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-24 15:02:36 +00:00
Sergey Biryukov
d27c25543b Twenty Twelve: Use third-person singular verbs for function descriptions.
Reference: [https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#documenting-tips PHP Documentation Standards: Documenting Tips].

Props vladimiraus, mukesh27, SergeyBiryukov.
See #63692.
Built from https://develop.svn.wordpress.org/trunk@60508


git-svn-id: http://core.svn.wordpress.org/trunk@59844 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-24 14:46:26 +00:00
Sergey Biryukov
3222abce57 Bundled Themes: Revert some documentation changes to use third-person singular verbs.
These are inline comments, not function descriptions.

Reference: [https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#documenting-tips PHP Documentation Standards: Documenting Tips].

Follow-up to [60505], [60506].

See #63692.
Built from https://develop.svn.wordpress.org/trunk@60507


git-svn-id: http://core.svn.wordpress.org/trunk@59843 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-24 14:44:28 +00:00
Sergey Biryukov
0d8ad2a479 Twenty Eleven: Use third-person singular verbs for function descriptions.
Reference: [https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#documenting-tips PHP Documentation Standards: Documenting Tips].

Props vladimiraus, mukesh27, SergeyBiryukov.
See #63692.
Built from https://develop.svn.wordpress.org/trunk@60506


git-svn-id: http://core.svn.wordpress.org/trunk@59842 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-24 14:26:22 +00:00
Sergey Biryukov
b6c1ad4a49 Twenty Ten: Use third-person singular verbs for function descriptions.
Reference: [https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#documenting-tips PHP Documentation Standards: Documenting Tips].

Props vladimiraus, mukesh27, SergeyBiryukov.
See #63692.
Built from https://develop.svn.wordpress.org/trunk@60505


git-svn-id: http://core.svn.wordpress.org/trunk@59841 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-24 14:24:32 +00:00
John Blackbourn
cb3859e3cb Build/Test Tools: Clarify the local development environment instructions by removing unnecesary references to Docker and mentioning some alternative container environments.
Props ninos-ego, johnbillion

Fixes #63641

See #63628
Built from https://develop.svn.wordpress.org/trunk@60504


git-svn-id: http://core.svn.wordpress.org/trunk@59840 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-24 11:40:38 +00:00
jonsurrell
d87057bf78 HTML API: Make META tag test data provider static.
Developed in https://github.com/WordPress/wordpress-develop/pull/9318.

Follow-up to [60502].

Props jonsurrell, mukesh27.
See #63738.

Built from https://develop.svn.wordpress.org/trunk@60503


git-svn-id: http://core.svn.wordpress.org/trunk@59839 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-24 07:09:29 +00:00
jonsurrell
cf7330c222 HTML API: Simplify META tag processing.
META tag processing can be simplified in most cases. Add an early check and return to avoid additional processing.

Developed in https://github.com/WordPress/wordpress-develop/pull/9231.

Props jonsurrell, dmsnell.
See #63738.

Built from https://develop.svn.wordpress.org/trunk@60502


git-svn-id: http://core.svn.wordpress.org/trunk@59838 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-24 06:49:29 +00:00
jonsurrell
7cabf198f5 HTML API: Mark doctype info class as private.
Developed in https://github.com/WordPress/wordpress-develop/pull/9301.

Props jonsurrell, dmsnell.
See #63738.

Built from https://develop.svn.wordpress.org/trunk@60501


git-svn-id: http://core.svn.wordpress.org/trunk@59837 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-24 06:13:36 +00:00
Weston Ruter
b3c5d26a8a Customize: Use static closures in tests to reduce memory usage.
Follow-up to [60499].

Props mukesh27.
See #63632.

Built from https://develop.svn.wordpress.org/trunk@60500


git-svn-id: http://core.svn.wordpress.org/trunk@59836 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-24 05:18:33 +00:00
Weston Ruter
bfb690db09 Customize: Account for existing query params in the admin URL when wp_customize_url() adds the theme query param.
Query parameters may be inserted in the initial `customize.php` URL via the `admin_url` and `site_url` filters.

Props xipasduarte, westonruter.
Fixes #63632.

Built from https://develop.svn.wordpress.org/trunk@60499


git-svn-id: http://core.svn.wordpress.org/trunk@59835 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-24 04:52:32 +00:00
Sergey Biryukov
b322832f3b Docs: Correct the type for $tax global in WP_Terms_List_Table::__construct().
Follow-up to [32642].

Props yashjawale.
Fixes #63742.
Built from https://develop.svn.wordpress.org/trunk@60498


git-svn-id: http://core.svn.wordpress.org/trunk@59834 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-23 17:00:41 +00:00
johnjamesjacoby
339e1e90e2 Multisite: Enforce consistent types on ID columns in multisite database tables, to better allow for foreign keys to more reliably be defined between them.
This change adjusts the install & upgrade routines so all of ID-based database columns in the multisite database tables are `unsigned`, bringing them up-to-speed with ID-based columns in single-site tables.

Additionally, the `$wp_db_version` number is bumped, and the `pre_schema_upgrade()` upgrade function is modified to accommodate & use that new version.

Follow-up to [10852].

Props spacedmonkey, johnjamesjacoby.

Fixes #40418.
Built from https://develop.svn.wordpress.org/trunk@60497


git-svn-id: http://core.svn.wordpress.org/trunk@59833 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-22 17:48:32 +00:00
johnjamesjacoby
f70e032c5f Canonical: prevent possible "Undefined array key" PHP error in redirect_canonical(), if the path or query array keys have gone missing.
This commit checks for the existence of (and re-adds if necessary) the `path` and `query` array keys after the `$redirect` variable has potentially been replaced by a second call to `parse_url()`.

This may happen when redirecting back to the root domain, without any path ('/example/`) or query (`?example=1`) to parse.

Props chrismattix, dhruvang21.

Fixes #63733.
Built from https://develop.svn.wordpress.org/trunk@60496


git-svn-id: http://core.svn.wordpress.org/trunk@59832 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-22 16:25:31 +00:00
Sergey Biryukov
b9059ad4fe Twenty Nineteen: Add missing @since tag for twentynineteen_scripts().
Follow-up to [43808].

Props viralsampat, vladimiraus, mukesh27.
Fixes #63692.
Built from https://develop.svn.wordpress.org/trunk@60495


git-svn-id: http://core.svn.wordpress.org/trunk@59831 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-22 13:24:22 +00:00
Sergey Biryukov
e7a87702c1 Twenty Seventeen: Add missing @since tag for twentyseventeen_scripts().
Follow-up to [38833].

Props viralsampat, vladimiraus, mukesh27.
See #63692.
Built from https://develop.svn.wordpress.org/trunk@60494


git-svn-id: http://core.svn.wordpress.org/trunk@59830 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-22 13:22:28 +00:00
johnjamesjacoby
a0593e77c2 Docs: remove global references to $wp_version that are no longer accurate.
This commit cleans up a few `global $wp_version` doc-block entries for functions that switched to using `wp_get_wp_version()` in 6.7.

Follow up to [58848], [59192].

Props viralsampat.

Fixes #63732.
Built from https://develop.svn.wordpress.org/trunk@60493


git-svn-id: http://core.svn.wordpress.org/trunk@59829 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-21 19:19:41 +00:00
johnjamesjacoby
e508ad2b08 Taxonomy: Filter the arguments passed into wp_dropdown_categories() in the Categories post edit metabox AJAX request output.
This commit fixes a bug that caused differing dropdown results between AJAX & non-AJAX output, when using the `post_edit_category_parent_dropdown_args` hook.

(That hook is documented inside of the `post_categories_meta_box()` function, introduced via r33682 and #33026.)

Props obiplabon, birgire.

Fixes #44343.
Built from https://develop.svn.wordpress.org/trunk@60492


git-svn-id: http://core.svn.wordpress.org/trunk@59828 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-21 18:17:24 +00:00
Sergey Biryukov
ac6ce3b138 Role/Capability: Ensure that logged-out users cannot edit themselves.
Follow-up to [3846], [6697], [14189], [21152].

Props dd32, peterwilsoncc, johnbillion, mukesh27, swissspidy, SergeyBiryukov.
Fixes #63684.
Built from https://develop.svn.wordpress.org/trunk@60491


git-svn-id: http://core.svn.wordpress.org/trunk@59827 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-21 18:00:28 +00:00
Peter Wilson
86fc50a934 External Libraries: Upgrade Simple Pie to 1.8.1 (patched).
Upgrades the Simple Pie library to a patched version of [https://github.com/simplepie/simplepie/releases/tag/1.8.1 Simple Pie 1.8.1]. Much of 1.8.1 was included in the 1.8.0 upgrade committed in r59141. The following fixes from the latest release those that remain for this upgrade:

* Fix locator with website missing `Content-Type` header [https://github.com/simplepie/simplepie/pull/891 simplepie/simplepie#891]
* Fix `encode` argument of `SimplePie::strip_htmltags()` [https://github.com/simplepie/simplepie/pull/894 simplepie/simplepie#894]

A caching fix not included in Simple Pie 1.8.1 is also included in this upgrade, see [https://github.com/simplepie/simplepie/pull/883 simplepie/simplepie#883].

A caching test for `fetch_feed()` is introduced in this pull request to ensure that the caching patch is included in future upgrades of the library.

Props kaygee79, oglekler, SergeyBiryukov, peterwilsoncc.
Fixes #63717.

Built from https://develop.svn.wordpress.org/trunk@60490


git-svn-id: http://core.svn.wordpress.org/trunk@59826 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-21 01:41:33 +00:00
Sergey Biryukov
7b5eddd03a Docs: Correct the type of the $request_id parameter in privacy functions.
This applies to `wp_send_user_request()` and `wp_validate_user_request_key()`.

Follow-up to [43008].

Props skithund, dhruvang21, SergeyBiryukov.
Fixes #63682.
Built from https://develop.svn.wordpress.org/trunk@60489


git-svn-id: http://core.svn.wordpress.org/trunk@59825 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-20 15:06:31 +00:00