49918 Commits

Author SHA1 Message Date
Tammie Lister
e3aa011388 Twenty Nineteen: Fixes button block padding within the editor.
The button block padding was not the same in the editor and front. This resolves that issue with the font size having being resolved in a previous ticket.

Props pitamdey, sabernhardt.
Fixes #61235.


git-svn-id: https://develop.svn.wordpress.org/trunk@58556 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-24 19:22:38 +00:00
Aaron Jorbin
a4e5209d2e Post WordPress 6.6 Beta 4.
git-svn-id: https://develop.svn.wordpress.org/trunk@58555 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-24 19:14:37 +00:00
Aaron Jorbin
02879a14dc WordPress 6.6 Beta 4.
git-svn-id: https://develop.svn.wordpress.org/trunk@58554 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-24 18:40:45 +00:00
Aaron Jorbin
14efb0d293 Update packages to include latest changes.
Props desrosj.


git-svn-id: https://develop.svn.wordpress.org/trunk@58553 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-24 18:36:48 +00:00
Sergey Biryukov
8afc34a066 Tests: Use assertSame() in WP_Theme_JSON tests.
This ensures that not only the return values match the expected results, but also that their type is the same.

Going forward, stricter type checking by using `assertSame()` should generally be preferred to `assertEquals()` where appropriate, to make the tests more reliable.

Follow-up to [55959], [55986], [57547], [57716], [58244], [58422].

See #60706.

git-svn-id: https://develop.svn.wordpress.org/trunk@58478 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-24 15:12:53 +00:00
Jb Audras
9e94297d20 HTML API: Code improvements following [58472].
Props xknown, jorbin.
Unprops audrasjb.




git-svn-id: https://develop.svn.wordpress.org/trunk@58473 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-24 14:55:32 +00:00
Jb Audras
0479ab3315 HTML API: Run URL attributes through esc_url().
Props dmsnell, xknown, jorbin, gziolo.




git-svn-id: https://develop.svn.wordpress.org/trunk@58472 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-24 14:43:08 +00:00
Jb Audras
5f269d34d4 Editor: Sanitize Template Part HTML tag on save.
Props xknown, peterwilsoncc, jorbin, bernhard-reiter, azaozz.




git-svn-id: https://develop.svn.wordpress.org/trunk@58471 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-24 14:40:47 +00:00
Jb Audras
8ee7211a7a Editor: Fix Path Traversal issue on Windows in Template-Part Block.
Props xknown.




git-svn-id: https://develop.svn.wordpress.org/trunk@58470 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-24 14:36:22 +00:00
Tammie Lister
9c022260d6 Twenty Seventeen: Resolves default border style visibility for pullquote block.
When a border color and width was added to the pullquote block but no border style was chosen the border was not visible. The expectation is that the border has a solid style by default when a color is selected.

Props pranitdugad, poena, sabernhardt.
Fixes #61362.


git-svn-id: https://develop.svn.wordpress.org/trunk@58469 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-24 11:17:38 +00:00
André
d5e09512c3 Format: fix spaces for @param.
Props oandregal, mukesh27.

See #61451.



git-svn-id: https://develop.svn.wordpress.org/trunk@58468 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-24 10:32:01 +00:00
Tammie Lister
e3e226f049 Twenty Twenty-Three: Resolves aubergine variation background implementation height impact on header.
The aubergine header causes issues when a block can change the page height. This resolves that swapping to clamp.

Props annezazu, sabernhardt, mikachan.
Fixes #58475.


git-svn-id: https://develop.svn.wordpress.org/trunk@58467 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-24 10:25:23 +00:00
André
2b1057cae0 Section styles: improve performance and conceptual consistency.
These changes involve:

- Move shared variation definitions from styles.blocks.variations to styles.variations
- Remove blockTypes from styles.variations.
- Do not register shared variations from theme style variation or primary theme.json files.
- Move the merging of theme.json data into the WP_Theme_JSON_Resolver and WP_Theme_JSON classes.

These changes improve performance and are more future-proof API wise.
See conversation at https://github.com/WordPress/gutenberg/issues/62686

Props aaronrobertshaw, oandregal, andrewserong, joemcgill, talldanwp, andrewserong, ramonopoly, richtabor, youknowriad.

See #61312, #61451.


git-svn-id: https://develop.svn.wordpress.org/trunk@58466 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-24 08:49:52 +00:00
Tammie Lister
4241c2b69a Twenty Twenty-One: Fixes compiling tests [58464].
Compiling fix to sort tests.

See #61082.


git-svn-id: https://develop.svn.wordpress.org/trunk@58465 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-23 14:50:17 +00:00
Tammie Lister
b2cc44361c Twenty Twenty-One: Fixes font size difference in latest comments block.
The font size was different in the last comments block depending on if it was in the editor or front. This resolves that by checking block for special font size before applying default and using inherit for nested elements.

Props pitamdey, sabernhardt.
Fixes #61082.


git-svn-id: https://develop.svn.wordpress.org/trunk@58464 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-23 14:36:37 +00:00
Tammie Lister
00d343929f Twenty Fourteen: Resolves post content links not being underlined.
In the page list block the text decoration was not the same on the front as the editor. This adds underline to links when in the post editor classic or block. This does not resolve the font size issue that needs to be fixed in block editor reset styles.

Props viralsampat, sabernhardt.
Fixes #61441.


git-svn-id: https://develop.svn.wordpress.org/trunk@58463 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-23 13:35:07 +00:00
Sergey Biryukov
d7f98c7cdc Tests: Use assertSame() in wp_get_block_css_selector() tests.
This ensures that not only the return values match the expected results, but also that their type is the same.

Going forward, stricter type checking by using `assertSame()` should generally be preferred to `assertEquals()` where appropriate, to make the tests more reliable.

Follow-up to [56058].

See #60705.

git-svn-id: https://develop.svn.wordpress.org/trunk@58462 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-23 11:38:49 +00:00
Tammie Lister
9ed20b2f6a Twenty Seventeen: Resolves calendar block header cells not centering.
The calendar header block cells were not centered. This resolves that both in front and back.

Props nkeller15, sabernhardt, shailu25.
Fixes #58547.


git-svn-id: https://develop.svn.wordpress.org/trunk@58461 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-23 10:34:41 +00:00
Sergey Biryukov
b04edace7b Networks and Sites: Exit after wp_redirect() in wp-admin/ms-options.php.
This brings more consistency with the other files having the same pattern:

* `wp-admin/moderation.php`
* `wp-admin/ms-admin.php`
* `wp-admin/ms-edit.php`
* `wp-admin/ms-sites.php`
* `wp-admin/ms-themes.php`
* `wp-admin/ms-upgrade-network.php`
* `wp-admin/ms-users.php`

Follow-up to [15481], [16847].

Props jigar-bhanushali, jorbin, johnbillion, Presskopp, rajinsharwar, audrasjb, SergeyBiryukov.
Fixes #60926.

git-svn-id: https://develop.svn.wordpress.org/trunk@58460 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-22 11:45:04 +00:00
Jb Audras
da58ca76c9 Twenty Twenty-Three: Remove untranslatable text strings in pagination links.
This changeset removes text strings from the query pagination block that are not translatable without adding them to patterns.
This means that the texts now use the default translation for the block from WordPress, not the theme. The archive, search and home templates now match the text in the query pagination in the index template.

Props poena.
Fixes #60298.




git-svn-id: https://develop.svn.wordpress.org/trunk@58459 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-22 07:32:01 +00:00
Sergey Biryukov
9f7fcf1263 Tests: Use named data provider in iso8601_to_datetime() tests.
Follow-up to [54230], [58164].

See #60705.

git-svn-id: https://develop.svn.wordpress.org/trunk@58458 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-21 21:34:46 +00:00
Joe Dolson
4f175e167e Media: Fix implicit conversion from float to int in image cropping.
Cast crop values to integers to prevent PHP error caused by implicit conversion from `float` to `int` values when cropping images using ImageMagick.

Props skithund, mai21, nicomollet, amanias1977, joedolson.
Fixes #59782.

git-svn-id: https://develop.svn.wordpress.org/trunk@58457 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-21 20:35:25 +00:00
Joe Dolson
25e7dc6c10 Media: Fix admin image cropping calculations.
The admin image editor crop function introduced rounding errors by using a scaled image to calculate values. Fix uses the image at 100% scale for calculations. Also avoid recalculating selection when the selection position is changed, and prevent incorrect values after scaling or restoration.

Props Jossnaz, johnillo, shailu25, rachelbaker, sudipatel007, joedolson.
Fixes #32282.

git-svn-id: https://develop.svn.wordpress.org/trunk@58456 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-21 19:49:19 +00:00
Joe Dolson
a81e28817c Administration: A11y: Add role="alert" on JS injected admin notices.
Add the attribute `role="alert"` on 12 instances of admin notices that are injected into the DOM using JavaScript. The `role="alert"` attribute allows screen readers to recognize the addition to the DOM and announce the errors to users.

Props afercia, cyrus11, rcreators, joedolson.
Fixes #47111.

git-svn-id: https://develop.svn.wordpress.org/trunk@58455 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-21 18:15:50 +00:00
Tonya Mork
933857e6f4 Docs: Document $clauses associative array in *-clauses filters.
Document each element within the filter parameter `$clauses` associative array structure for the `'comments_clauses'`, `'networks_clauses'`, and `'sites_clauses'` filters.

This change:
* Brings consistency amongst the `WP_[*_]Query` filters.
* Helps to improve understanding.
* Helps to avoid confusion of the purpose for `pieces` and `clauses`.

Follow-up to [53376], [53375], [52974].

Props david.binda, audrasjb, hellofromTonya, ironprogrammer, johnbillion, oglekler, SergeyBiryukov.
Fixes #61307.

git-svn-id: https://develop.svn.wordpress.org/trunk@58454 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-21 17:24:39 +00:00
Tammie Lister
3ff7203608 Twenty Eleven: Resolves pullquote block ignoring font weight and style settings.
The pullquote block was ignoring font weight and style settings. This now brings in a fix using inherit.

Props nidhidhandhukiya, desrosj, sabernhardt.
Fixes #56695.


git-svn-id: https://develop.svn.wordpress.org/trunk@58453 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-21 14:29:29 +00:00
Jorge Costa
5d41bdae52 REST API: Add template and template_lock to post types endpoint.
Adds template and template_lock property of the post type to post types REST API endpoint.
This change allows us to fix a bug where the template of a page is not respected when creating a new page on the site editor.

Props jorgefilipecosta, oandregal, timothyblynjacobs, mukesh27.
Fixes #61477.

git-svn-id: https://develop.svn.wordpress.org/trunk@58452 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-21 13:04:47 +00:00
Tammie Lister
903b2ec0f4 Twenty Nineteen: Includes a contributing text file with Sass compiler instructions.
This adds in a useful file to know how to compiled this theme. As there was previously a contributing file with instruction on this in the GitHub repo that was not brought into svn, this fixes that.

Props kjeller, nielslange, sabernahardt.
Fixes #46108.


git-svn-id: https://develop.svn.wordpress.org/trunk@58451 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-21 10:25:49 +00:00
Joe Dolson
33f443597f Editor: A11y: Set ARIA attributes for Classic Editor link inserter.
Set `aria-modal` and `aria-hidden` attributes when the Classic Editor link inserter modal is active, so that content behind the modal will be properly treated as inert when interacting with the modal.

Props lyonmuller, jwgoedert, sabernhardt, alexstine, afercia, rajinsharwar, rcreators, audrasjb, hmbashar, joedolson.
Fixes #60799.

git-svn-id: https://develop.svn.wordpress.org/trunk@58450 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-20 20:25:38 +00:00
Joe Dolson
a2549c322e Administration: A11y: Use aria-haspopup only if item has popup behavior.
Update behavior of admin menu so that the `aria-haspopup` attribute is only applied in responsive mode, when there is a popup behavior present. Add `aria-expanded` attributes to report current popup state.

Props afercia, khokansardar, ryokuhi, joedolson.
Fixes #43095.

git-svn-id: https://develop.svn.wordpress.org/trunk@58449 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-20 19:39:50 +00:00
Adam Silverstein
2358de1767 Media: improve titles when inserting via REST API.
Match the naming behavior for uploaded media in the REST API to the way media is named when uploading in the media library. Fix an issue where dashes were replacing spaces unnecessarily. 

Props abitofmind, kadamwhite, spacedmonkey, adamsilverstein, audrasjb, hellofromTonya.
Fixes #57957.



git-svn-id: https://develop.svn.wordpress.org/trunk@58447 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-20 16:02:10 +00:00
Sergey Biryukov
3bb533ae10 Plugins: Correct plugin card layout when incompatible plugin message is displayed.
This replaces an erroneous `printf()` call with `sprintf()` that was missed when updating this fragment to use `wp_admin_notice()`.

Follow-up to [56571].

Props wojtekn, sabernhardt, rajinsharwar.
Fixes #61465.

git-svn-id: https://develop.svn.wordpress.org/trunk@58446 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-20 15:29:40 +00:00
Isabel Brison
c1c8d30398 Editor: fix root padding for children of alignfull flow layouts.
Updates the root padding CSS selectors so direct children of full width container blocks with flow layout receive padding.

Props isabel_brison, aaronrobertshaw.
Fixes #61464.


git-svn-id: https://develop.svn.wordpress.org/trunk@58444 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-20 08:01:10 +00:00
Joe McGill
6ae489ccae Editor: Improve compatibility for WP_Theme_JSON_Data.
This checks that objects returned from any of the `wp_theme_json_data_` filters are `WP_Theme_JSON_Data` objects in order to avoid incompatibilities. Otherwise, reprocess the theme.json data as new `WP_Theme_JSON` objects to ensure the data matches the expectations of code consuming that data.

Follow-up to [58185].

Props joemcgill, adamsilverstein, oandregal, ryelle, ocean90, pbearne.
See #61112.


git-svn-id: https://develop.svn.wordpress.org/trunk@58443 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-19 16:39:07 +00:00
Sergey Biryukov
5c7f94a6aa Twenty Seventeen: Optimize theme screenshot.
This further reduces image size by ~1.5 KB after running `npm run grunt precommit:image`.

Follow-up to [38833], [57322].

See #58996.

git-svn-id: https://develop.svn.wordpress.org/trunk@58442 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-19 10:31:54 +00:00
Dennis Snell
2132c7bacb HTML API: Prevent Open Elements class from waking up.
This class accepts a Closure, but it should not be possible
to wake up with one from a serialized class instance.

Developed in https://github.com/WordPress/wordpress-develop/pull/6852
Discussed in https://core.trac.wordpress.org/ticket/61348

Props jonsurrell.
See #61348.
Follow-up to [58304].


git-svn-id: https://develop.svn.wordpress.org/trunk@58441 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-18 17:39:13 +00:00
Tonya Mork
483f219015 Post WordPress 6.6 Beta 3.
git-svn-id: https://develop.svn.wordpress.org/trunk@58440 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-18 16:30:22 +00:00
Tonya Mork
2bed69c2a6 WordPress 6.6 Beta 3.
git-svn-id: https://develop.svn.wordpress.org/trunk@58439 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-18 16:17:20 +00:00
Tonya Mork
7df26a4669 Toolbar: Fix ARIA [role] on menu descendants.
Adds a `role="group"` to the WordPress admin bar menu list items to fix the following accessibility issue:
{{{
Elements with an ARIA [role] that require children to contain a specific [role] are missing some or all of those required children.
}}}

Reference:
* [https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/group_role ARIA: group role] via mdn web docs

Follow-up to [42128], [21193], [19558]. 

Props heinperu, joedolson, krupajnanda, rajinsharwar, rcreators, sabernhardt.
Fixes #60919.

git-svn-id: https://develop.svn.wordpress.org/trunk@58438 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-18 14:50:16 +00:00
Tonya Mork
338f47b3c5 Code Modernization: Fix non-nullable deprecation in get_available_post_mime_types().
Fixes a PHP 8.1 and above "null to non-nullable" deprecation notice in `get_available_post_mime_types()`:

{{{
Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in ./wp-includes/post.php on line 3395
}}}

[https://developer.wordpress.org/reference/functions/get_available_post_mime_types/#return This function is documented] to:
* Return `An array of MIME types.`
* as an array of `string`s, i.e. `string[]`.

A `null` or empty element within the returned array is not a valid MIME type. If a `null` exists in the returned array, it is the root cause of PHP throwing the deprecation notice.

This commit removes the `null` and empty elements from the returned array of MIME types. It also adds a unit test.

Follow-up to [56623], [56452].

Props nosilver4u, jrf, ironprogrammer, antpb, antonvlasenko, rajinsharwar, hellofromTonya. 
Fixes #59195.

git-svn-id: https://develop.svn.wordpress.org/trunk@58437 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-18 14:44:23 +00:00
Colin Stewart
d5a2b4491c Upgrade/Install: Disable maintenance mode when core auto-update fails.
In [58128], additional maintenance mode calls were added to the automatic updates process. However, there is an early return if a 'core' automatic update fails.

Maintenance mode isn't disabled until later in the `WP_Automatic_Updater::update()` method. This means that maintenance mode may continue to be enabled despite the core update being treated as a skipped update.

This disables maintenance mode before the early return.

Follow-up to [58128].

Props costdev, hellofromTonya, peterwilsoncc.
Fixes #61459. See #58281.

git-svn-id: https://develop.svn.wordpress.org/trunk@58436 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-18 14:39:22 +00:00
Colin Stewart
199bc9d6ca Upgrade/Install: Delay automatic updates after installation.
After installation, the user is directed to the `Log In` page. This triggers the `wp_schedule_update_checks()` function which is hooked to `init` and schedules updates to run immediately if no other events exist. As a result of more robust use of maintenance mode for automatic updates added in [58128], the user may be presented with a maintenance mode screen just after installing WordPress.

To improve the user experience, this schedules core updates for 1 hour, plugin updates for 1.5 hours, and theme updates for 2 hours after installation.

Follow-up to [58128], [58139], [58308], [58309].

Props afragen, hellofromTonya, peterwilsoncc, nithi22, dd32.
Fixes #61457. See #58281, #61391.

git-svn-id: https://develop.svn.wordpress.org/trunk@58435 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-18 14:37:55 +00:00
Ella
e4d3defae2 Editor: Update packages for 6.6 Beta 3.
See https://make.wordpress.org/core/handbook/about/release-cycle/block-editor-release-process-for-major-releases/#package-updates-and-core-patches.
See https://github.com/WordPress/gutenberg/pull/62641.
See https://github.com/WordPress/wordpress-develop/pull/6850.

Props ellatrix, cbravobernal.

Fixes #61462.



git-svn-id: https://develop.svn.wordpress.org/trunk@58434 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-18 13:17:12 +00:00
Sergey Biryukov
df16b6a8c1 Twenty Twenty-Four: Replace theme screenshot to remove drop shadow at the top.
Follow up to [56716], [56726].

Props beafialho.
Fixes #61460.

git-svn-id: https://develop.svn.wordpress.org/trunk@58433 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-18 12:24:43 +00:00
Tonya Mork
b15bb674b8 Site Health: Bump the recommended MariaDB version.
MariaDB 10.4 reaches EOL (“End of Life”) on 18 June 2024. The recommended minimum is bumped to 10.5 for now, whose EOL is 24 June 2025.

Also removes the skip in tests to allow the tests to run on all branches with this change.

References:
* [https://mariadb.org/about/#maintenance-policy MySQL Support Policies]
* [https://make.wordpress.org/hosting/handbook/server-environment/#database Hosting team handbook: Server Environment: Database]

Follow-up to [55665], [52420], [53435], [54069], [54076].

Props peterwilsoncc, dd32, costdev, mukesh27, hellofromTonya.
Fixes #61458.
See #meta7679.

git-svn-id: https://develop.svn.wordpress.org/trunk@58432 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-18 11:57:41 +00:00
Pascal Birchler
19684edd62 Build/Test Tools: install additional languages in end-to-end tests.
As a follow-up to [58430], this makes another locale available during the e2e tests, allowing testing of scenarios that require loading translations in the future.

See #61240.

git-svn-id: https://develop.svn.wordpress.org/trunk@58431 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-18 10:49:29 +00:00
Pascal Birchler
b0030c47e1 Build/Test Tools: add new end-to-end tests for edge cases such as maintenance mode.
Sometimes errors only occur in unusual code paths such as the maintenance mode or installation screens. Due to lack of tests for these scenarios in core, such errors are usually only noticed very late. This change adds new end-to-end (e2e) tests to prevent regressions in the following areas:

- Maintenance mode (presence of a `.maintenance` file)
- Fatal error handler (simulated with an mu-plugin that causes an error)
- Installation screen (verifying full installation flow & that there are no database errors)

Thanks to these tests, an issue was already found and addressed in the default `wp_die` handler, as `wp_robots_noindex_embeds` and `wp_robots_noindex_search` used to cause PHP warnings due to `$wp_query` not existing.

In the future, these tests can be extended to also test scenarios like localized error pages via `wp_load_translations_early()`.

Fixes #61240.

git-svn-id: https://develop.svn.wordpress.org/trunk@58430 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-18 08:18:51 +00:00
André
a3d82e0e6d Do not use init to register block style variations defined via theme.json.
Props oandregal, aaronrobertshaw, joemcgill, ramonopoly, andrewserong, swissspidy.
See #61451.
Fixes #61312.


git-svn-id: https://develop.svn.wordpress.org/trunk@58429 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-18 07:07:52 +00:00
Isabel Brison
e711c50896 Editor: Read theme.json files stored in styles/ folder only once.
Uses `read_json_file` to access cached file if it exists instead of using `wp_json_file_decode` directly.

Props oandregal, aaronrobertshaw, joemcgill, ramonopoly, isabel_brison.
See #61451.


git-svn-id: https://develop.svn.wordpress.org/trunk@58428 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-18 06:00:51 +00:00
Colin Stewart
b64d24621e Taxonomy: Remove unused $term_ids in wp_set_object_terms().
In [5983], a call to `clean_term_cache()` was removed from `wp_set_object_terms()`. Since then, the `$term_ids` array that had been populated inside one of the `foreach` loops before being passed to the removed `clean_term_cache()` call has not been used.

This change removes the unused `$term_ids` variable.

Follow-up to [5983].

Props dlh, mukesh27.
Fixes #61456.

git-svn-id: https://develop.svn.wordpress.org/trunk@58427 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-18 04:10:58 +00:00