50344 Commits

Author SHA1 Message Date
Aaron Jorbin
8c57bfc055 Post 6.7.2 release bump.
The 6.7 branch is now 6.7.3-alpha

Built from https://develop.svn.wordpress.org/branches/6.7@59811


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59153 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-11 17:26:17 +00:00
desrosj
0c3fa29d56 Bundled Themes: Bump version of Twenty Twenty-Five to 1.1.
Reviewed by jorbin.
Merges [59809] to the 6.7 branch.

Fixes #62943.
Built from https://develop.svn.wordpress.org/branches/6.7@59810


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59152 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-11 17:02:17 +00:00
Aaron Jorbin
f57ba99bf6 WordPress 6.7.2.
Built from https://develop.svn.wordpress.org/branches/6.7@59807


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59149 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-11 16:11:17 +00:00
Aaron Jorbin
988044f90e Post WordPress 6.7.2 RC2 version bump.
Built from https://develop.svn.wordpress.org/branches/6.7@59782


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59124 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-07 18:19:19 +00:00
Aaron Jorbin
2b296c1659 WordPress 6.7.2 RC2.
Built from https://develop.svn.wordpress.org/branches/6.7@59781


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59123 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-07 17:59:14 +00:00
Aaron Jorbin
a678bae4c0 Editor: update npm packages for 6.7.1.
Syncs Editor packages for WordPress 6.7.2 RC1. Includes the following PRs:

- fix ensure post meta panel stays visible in all rendering modes gutenberg#69083

Reviewed-by desrosj.

Props fabiankaegy, presstoke, poena, jorbin.
Fixes #62889.

Built from https://develop.svn.wordpress.org/branches/6.7@59780


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59122 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-07 17:31:23 +00:00
Aaron Jorbin
e0d16abd7f General: Add styles for extender usage of do_accordion_section().
Follow up to [59224]. Add CSS to cover usage of the do_accordion_section() function when used in extender contexts outside of the existing WordPress core usage.

Reviewed-by joemcgill, jorbin.
Merges [59772] to 6.7 brnch.

Props mboynes, jorbin, joemcgill, joedolson.
Fixes #62907.

Built from https://develop.svn.wordpress.org/branches/6.7@59779


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59121 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-07 16:19:10 +00:00
Joe McGill
c981126ec0 Post Thumbnails: Fix squashed featured image in wp-admin.
This updates the CSS for featured images in the classic editor that caused images to look skewed when auto-sizes are enabled.

Reviewed by jorbin.
Merges [59773] to the 6.7 branch.

Props maciejmackowiak, sainathpoojary, mukesh27, joemcgill.
Fixes #62597.

Built from https://develop.svn.wordpress.org/branches/6.7@59778


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59120 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-07 16:17:19 +00:00
Aaron Jorbin
00e8b60dd6 Post WordPress 6.7.2 RC1 version bump.
Built from https://develop.svn.wordpress.org/branches/6.7@59764


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59106 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-04 18:20:18 +00:00
Aaron Jorbin
2b2e3ea59c WordPress 6.7.2 RC1
Built from https://develop.svn.wordpress.org/branches/6.7@59763


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59105 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-04 17:47:23 +00:00
Aaron Jorbin
7c8ee53ae9 Editor: update npm packages for 6.7.1.
Syncs Editor packages for WordPress 6.7.2 RC1. Includes the following PRs:

- PostTitle: exit early when post type doesn't support titles WordPress/gutenberg#67086
- Patterns: receive intermediate responses while unbound request is resolving WordPress/gutenberg#66713 WordPress/gutenberg#67244
- Fix: Show Meta Boxes at the bottom of the screen regardless of the current rendering mode WordPress/gutenberg#66508
- [6.7] Zoom in/out to correct location WordPress/gutenberg#66618
- Composite: Restore Hover and Typeahead functionality - Backport to 6.7.2 WordPress/gutenberg#67258
- Interactivity API: fix property modification backport to 6.7.2 WordPress/gutenberg#67259
- Fix unexpected unlock control in block toolbar in non-default editing mode WordPress/gutenberg#67121
- [WP 6.7] Fix meta boxes saving when they’re not present WordPress/gutenberg#67503
- iAPI: Fix the logic path that merges plain objects - Backport to 6.7.2 WordPress/gutenberg#68713
- e2e:fix WP Editor Meta Boxes test WordPress/gutenberg#68886
- Keep meta boxes unsplit from content in device preview https://github.com/WordPress/gutenberg/pull/68902s
- useFocusReturn: Get active element within the iframe when restoring focus WordPress/gutenberg#68060 WordPress/gutenberg#68200

Reviewed-by audrasjb.

Props 0mirka00, ajlende, cbravobernal, czapla, danielpost, darerodz, dpcalhoun, ellatrix, fabiankaegy, get_dave, gziolo, im3dabasia1, jameskoster, jeryj, jonsurrell, jorbin, jsnajdr, mamaduka, mayanktripathi32, mcsf, mt8biz, ndiego, parthvataliya, presstoke, santosguillamot, sathyapulse, tropicalista, tyxla, wildworks, youknowriad.
Fixes #62889.


Built from https://develop.svn.wordpress.org/branches/6.7@59762


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59104 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-04 17:28:33 +00:00
Aaron Jorbin
1a47005704 Administration: Fix pagination in categories, tags, and plugins tables.
Fix an issue introduced in [59134] that prevented manual entry of a page number in the pagination input field from navigating pages. Requiring validation of the bulk actions input also impacted other inputs nested in the same form.

Also fixes a pre-existing bug where it was not possible to navigate to page 1 using the input field.

Reviewed by jorbin.
Merges [59727] and [59746] to the 6.7 branch.

Props ffffelix, im3dabasia1, apermo, rishavdutta, joedolson, swissspidy, jorbin, joedolson, tobiasbg, mamaduka.
Fixes #62534.

Built from https://develop.svn.wordpress.org/branches/6.7@59759


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59101 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-04 03:26:20 +00:00
Aaron Jorbin
407857c066 Customizer: Allow custom accordion items with obsolete structure.
In [59224], customizer accordion item HTML structure was changed to include a button element as the interactive control. However, some themes inject custom markup for panel headings.

Fix controls.js to handle both the new markup and the old markup, which is relatively common in themes.

Reviewed by jorbin.
Merges [59555] to the 6.7 branch.

Props paullb, desrosj, sabernhardt, joedolson, jorbin.
Fixes #62494.

Built from https://develop.svn.wordpress.org/branches/6.7@59758


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59100 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-04 03:03:15 +00:00
Aaron Jorbin
f08889ff98 HTML API: Fix extensibility of WP_HTML_Processor::next_token().
Break out logic from the next_token() method into a private method which may call itself recursively. This allows for subclasses to override the next_token() method and be assured that each call to next_token() corresponds with the consumption of one single token. This also parallels how WP_HTML_Tag_Processor::next_token() wraps a private base_class_next_token() method.

Reviewed by jonsurrell.
Merges [59285], [59364], and [59747] to 6.7 branch.

Props westonruter, jonsurrell, dmsnell, jorbin.

Built from https://develop.svn.wordpress.org/branches/6.7@59757


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59099 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-04 02:49:18 +00:00
Aaron Jorbin
69510095d9 Build/Test: Update assertions in AtomParser_Parse_Test::test_parse_sets_handlers
On some instances of Windows, the assertions seem to find additional nodes. As this test is just about verifying that the handlers get called, not about testing the functionality of the handlers, we can adjust the assertion to look for a minimum number of nodes rather than exact number.

Follow-up to [59062].

Reviewed by desrosj.
Merges [59739] to the 6.7 branch.

Props yogeshbhutkar, hellofromTonya, SergeyBiryukov, coquardcyr, jrf, benniledl, desrosj, jorbin.
Fixes #62110. See #62061.

Built from https://develop.svn.wordpress.org/branches/6.7@59745


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59087 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-30 23:01:15 +00:00
Peter Wilson
eb38224f75 REST API: Protect against fatal error for post types without format support.
Ignore the `format` parameter introduced in WordPress 6.7 for post types that do not support post formats. This protects against a fatal error being thrown in later version of PHP or a warning in earlier versions of PHP.

Follow up to r59115.

Reviewed by jorbin.
Merges [59544] to the 6.7 branch.

Props dd32, sergeybiryukov, yogeshbhutkar.
Fixes #62646.
See #62014.


Built from https://develop.svn.wordpress.org/branches/6.7@59744


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59086 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-30 22:50:16 +00:00
Felix Arntz
b50b64bf38 Editor: Fix block template registration failing for custom post types containing underscore characters.
Custom post types may contain underscores, however block template registration has been using a regular expression that disallows underscores. Since the block template name for certain templates is directly associated with which post type it applies to, this regular expression was causing unexpected failures. This changeset adjusts the regular expression to allow block template names with underscore characters, effectively allowing block templates to be registered for any custom post type.

Reviewed by jorbin.
Merges [59742] to the 6.7 branch.

Props alexandrebuffet, ankitkumarshah, gaambo, jorbin, karthickmurugan, oglekler, poena, sukhendu2002.
Fixes #62523.

Built from https://develop.svn.wordpress.org/branches/6.7@59743


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59085 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-30 22:32:17 +00:00
Aaron Jorbin
7bf145d081 External Libraries: Append .1 to react/react-dom versions.
In 6.7, [58775] changed the way react and react-dom are bundled in Core. This commit resulted in some changes to the built files that are distributed in WordPress even though the actual version of the libraries remained the same. The result can be a blank white screen when trying to edit a post when those two script files are heavily cached.

This uses `.1` as the appendage to prevent issues with third party code expecting the version number in the form `/^[\d\.]+$/`.

Updates include tests in `Tests_Dependencies_Scripts::test_vendor_script_versions_registered_manually` to include the modified version used for cache busting.

Reviewed by jorbin.
Merges [59536] and [59540] to 6.7 branch.

Props levskipg, get_dave, smerriman, jdnd, juanwp22, seanlanglands, robertstaddon, azaozz, peterwilsoncc, desrosj.
Fixes #62422.

Built from https://develop.svn.wordpress.org/branches/6.7@59741


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59083 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-30 20:44:17 +00:00
Felix Arntz
10c9401224 Editor: Relax restrictions around registration of block metadata collections.
This changeset allows for block metadata collections to be registered for almost any source, such as MU plugins, themes, or custom directories with e.g. symlinked plugins or symlinked themes. Prior to the change, block metadata collections could only be registered for plugins and WordPress Core.

There are still safeguards in place to prevent registration of collections in locations that would cause conflicts. For example, it is not possible to register a collection for the entire wp-content/plugins directory or the entire wp-content/themes directory, since such a collection would conflict with any specific plugin's or theme's collection. In case developers would like to enable this safeguard for their own custom directories, they can use the new wp_allowed_block_metadata_collection_roots filter.

Reviewed by jorbin.
Merges [59730] to the 6.7 branch.

Props assassinateur, bowedk, desrosj, dougwollison, flixos90, glynnquelch, gziolo, jorbin, mreishus, swissspidy.
Fixes #62140.

Built from https://develop.svn.wordpress.org/branches/6.7@59731


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59073 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-29 21:16:20 +00:00
Aaron Jorbin
da7659ba0b HTML API: Ensure that full processor can seek to earlier bookmarks.
When the HTML Processor seeks to an earlier place, it returns the the beginning of the document and proceeds forward until it reaches the appropriate location. This requires resetting internal state so that the processor can correctly proceed from the beginning of the document.

The seeking reset logic was not adapted to account for the full processor (i.e. when created via WP_HTML_Processor::create_full_parser()). This change updates the seek logic to account for the full and fragment parsers as well as other state that has been introduced in the interim and should be reset.

Reviewed by westonruter, jorbin.
Merges [59391] to the 6.7 branch.

Props jonsurrell, dmsnell, westonruter, mi5t4n, bernhard-reiter.
Fixes #62290.

Built from https://develop.svn.wordpress.org/branches/6.7@59721


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59063 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-28 14:48:18 +00:00
Aaron Jorbin
40f1fb870e HTML API: Expect closer on foreign content void lookalike elements.
Ensure that expects_closer returns false on tags that look like void HTML tags, but are actually not void tags in foreign content.

Reviewed by westonruter, jorbin.
Merges [59392] to the 6.7 branch.

Props jonsurrell, bernhard-reiter.
Fixes #62363.

Built from https://develop.svn.wordpress.org/branches/6.7@59694


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59036 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-23 18:37:18 +00:00
desrosj
0e7e24543d Build/Test Tools: Update @playwright/test.
This updates `@playwright/test` to the latest version, currently `1.49.1`.

In older branches using Playwright, the E2E and Performance workflows have recently started failing. This is due to changes in the GitHub Actions runner images. Updating Playwright ensures more modern dependency trees are used when installing browsers for testing and fixes the issue.

Merges [59682] to the 6.7 branch.

Props swissspidy.
See #62843.
Built from https://develop.svn.wordpress.org/branches/6.7@59683


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59026 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-22 17:54:24 +00:00
ryelle
73da499a65 Help/About: Allow "See everything new" button to wrap
On some screen sizes and languages, the "See everything new" button expands out of the content area. This change allows the button to wrap at all screen sizes, and updates the style of this button for wrapped text.

Reviewed by SergeyBiryukov.
Merges [59580] to the 6.7 branch.

Props franciscabusas22, sabernhardt, yogeshbhutka, sainathpoojary, im3dabasia1, audrasjb.
Fixes #62380.


Built from https://develop.svn.wordpress.org/branches/6.7@59581


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58967 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-06 17:41:21 +00:00
Aaron Jorbin
70c0cdd88c Revert unintended changes from [59546]
Someone (me) forgot to do an svn revert from the previous patch they were testing.

Props TobiasBg.
Unprops jorbin.
See #62455.


Built from https://develop.svn.wordpress.org/branches/6.7@59547


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58933 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-20 15:43:15 +00:00
Aaron Jorbin
77c2292ddc Bundled Theme: Pin a theme.json schema version to Twenty Twenty-Five.
Each theme’s theme.json schema version should be pinned to the version that was valid at the time it was released. This means all JSON files in the theme should be pinned to the appropriate schema version, not just theme.json.

Reviewed by jorbin.
Merges [59448] and [59451] to the 6.7 branch.

Props im3dabasia1, poena, mukesh27, desrosj.
Fixes #62455.


Built from https://develop.svn.wordpress.org/branches/6.7@59546


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58932 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-20 15:21:19 +00:00
Aaron Jorbin
a3f384f09d Customize: Remove unnecessary height: 100% on accordion button.
Remove CSS that could occasionally trigger the accordion buttons to be 100% the height of the accordion container.

Reviewed by jorbin.
Merges [59510] to the 6.7 branch.

Props dhewercorus, im3dabasia1, sabernhardt, rvoigt, ghinamt, vishy-moghan, frankbiganski, redkite, joedolson.
Fixes #62491.

Built from https://develop.svn.wordpress.org/branches/6.7@59539


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58925 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-18 21:10:19 +00:00
Aaron Jorbin
25ef9e6dea Coding Standards: Escape attachment URL in wp-admin/async-upload.php.
Follow-up to [58279].

Reviewed by jorbin.
Merges [59407] to the 6.7 branch.

Props shyamkariya, pitamdey, nareshbheda, ketanniruke, desrosj, SergeyBiryukov .
Fixes #62434.

Built from https://develop.svn.wordpress.org/branches/6.7@59538


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58924 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-18 20:58:16 +00:00
desrosj
16d782aaae HTML API: Recognize all uppercase tag names in tag processor.
Fixes a missing "D" in the character list used by strspn to find tag openers, causing tags starting with D to be skipped by the tag processor in some circumstances.

Follow-up to [58613].

Reviewed by desrosj.
Merges [59464] to the 6.7 branch.

Props jonsurrell, santosguillamot, wongjn, cbravobernal.
Fixes #62522.
Built from https://develop.svn.wordpress.org/branches/6.7@59537


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58923 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-18 18:56:19 +00:00
desrosj
6babe0cfa3 HTML API: Use case insensitive tag_name comparison in ::next_tag.
The HTML API `::next_tag` method now performs case-insensitive matching when searching for tags by name. For example, searching for 'DIV' will match both '<div>' and '<DIV>' tags.

Reviewed by desrosj.
Merges [59422] to the 6.7 branch.

Props jonsurrell, dmsnell, czapla.
Fixes #62427.
Built from https://develop.svn.wordpress.org/branches/6.7@59535


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58921 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-18 18:40:23 +00:00
cbravobernal
eff2eaac73 Block Hooks: Fix context in update_ignored_hooked_blocks_postmeta.
Ensure that the `$context` arg passed from `update_ignored_hooked_blocks_postmeta` to `apply_block_hooks_to_content` (and from there, to filters such as `hooked_block_types` and `hooked_block`) has the correct type (`WP_Post`).


Filters hooked to `hooked_block_types` etc can typically include checks that conditionally insert a hooked block depending on `$context`. Prior to this changeset, a check like `if ( $context instanceof WP_Post )` would incorrectly fail, as `$context` would be a `stdClass` instance rather han a `WP_Post`. As a consequence, a hooked block inside of a Navigation post object that was modified by the user would not be marked as ignored by `update_ignored_hooked_blocks_postmeta`, and thus be erroneosly re-inserted by the Block Hooks algorithm.

Reviewed by cbravobernal.
Merges [59482] to the 6.7 branch.

Props bernhard-reiter.
Fixes #62639.

Built from https://develop.svn.wordpress.org/branches/6.7@59487


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58873 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-05 11:19:14 +00:00
Andrew Ozz
ec08ab68fd Editor: Fix selecting/deselecting multiple unwanted categories when clicking on a Category checkbox on the old Edit Post screen.
Rewieved by joemcgill.
Merges [59454] to the 6.7 branch.

Props ffffelix, desrosj, ironprogrammer, neotrope, narenin, zaoyao, im3dabasia1, cbravobernal, azaozz.
Fixes #62504.
Built from https://develop.svn.wordpress.org/branches/6.7@59468


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58854 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-27 21:23:16 +00:00
cbravobernal
437ee0607c Post WordPress 6.7.1 version bump.
The 6.7 branch is now 6.7.2-alpha.

Built from https://develop.svn.wordpress.org/branches/6.7@59447


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58833 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-21 15:11:19 +00:00
desrosj
eb3de583d6 WordPress 6.7.1.
Built from https://develop.svn.wordpress.org/branches/6.7@59445


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58831 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-21 14:01:19 +00:00
desrosj
e3c622e0c0 Post WordPress 6.7.1 RC1 version bump.
Built from https://develop.svn.wordpress.org/branches/6.7@59440


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58826 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-20 17:52:19 +00:00
desrosj
c9915d5cd3 WordPress 6.7.1 RC1.
Built from https://develop.svn.wordpress.org/branches/6.7@59439


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58825 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-20 17:25:20 +00:00
cbravobernal
019b2bf7a4 Editor: update npm packages in trunk for 6.7.1.
Syncs Editor packages for WordPress 6.7.1 RC1. Includes the following PRs:
- https://github.com/WordPress/gutenberg/pull/66945
- https://github.com/WordPress/gutenberg/pull/66889
- https://github.com/WordPress/gutenberg/pull/67139

Props mmaattiiaass, ramonopoly, mamaduka, get_dave, poena, ntsekouras, mcsf, jsnajdr, 0mirka00, desrosj, joemcgill, cbravobernal, azaozz, room34, mayanktripathi32, im3dabasia1, jonsurrell.

Fixes #62478, #62447. 


Built from https://develop.svn.wordpress.org/branches/6.7@59437


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58823 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-20 16:00:32 +00:00
desrosj
3b56f5bbf3 Interactivity API: Remove redundant server state from Interactivity Router.
Remove the workaround for a bug that was fixed in https://github.com/WordPress/gutenberg/pull/66183. Previously, if the store was not initialized with a minimal navigation object, the interactivity-router script module would error.

Reviewed by desrosj.
Merges [59416] to the 6.7 branch.

Props jonsurrell, czapla, gziolo.
Fixes #62465.
Built from https://develop.svn.wordpress.org/branches/6.7@59436


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58822 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-20 15:29:19 +00:00
desrosj
13d7e96210 Media: Avoid images with sizes=auto to be displayed downsized in supporting browsers.
Based on the user agent stylesheet rules outlined in https://html.spec.whatwg.org/multipage/rendering.html#img-contain-size, images that have `sizes=auto` while applying `width: auto` or `width: fit-content` would be constrained to only 300px width.

This changeset overrides said user agent stylesheet rule with a much larger constraint, to avoid the problem.

Additionally, it introduces a filter `wp_img_tag_add_auto_sizes` which can be used to opt out of the functionality, as an additional measure.

Reviewed by desrosj, joemcgill.
Merges [59415] to the 6.7 branch.

Props joemcgill, flixos90, dooperweb, SirLouen, azaozz, mukesh27, apermo.
Fixes #62413.
See #61847, #62345.
Built from https://develop.svn.wordpress.org/branches/6.7@59435


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58821 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-20 14:33:19 +00:00
desrosj
fe0244083a Options, Meta APIs: Ensure duplicate salts are properly flagged.
Improvements were made in 6.7 to ensure that salts stored in the database were primed more efficiently.

The logic added to accomplish this suffered from an edge case where array indexes were unexpectedly missing when `wp_salt()` was called recursively.

Follow up to [58837].

Reviewed by davidbaumwald.
Merges [59427] to the 6.7 branch.

Props juliobox, ankitkumarshah, dilipbheda, johnbillion, joemcgill, desrosj.
Fixes #62424.
Built from https://develop.svn.wordpress.org/branches/6.7@59434


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58820 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-20 13:53:13 +00:00
desrosj
85d63dedf1 i18n: Account for load_*_textdomain() after JIT loading.
When `load_*_textdomain()` functions are called after WordPress has already attempted just-in-time loading of translations, nothing happens. 

This updates the related logic to retry translation loading when a custom path is set to ensure all translations are available.

Additionally, this also fixes cases where an `en_US.mo` file is provided with non-English strings to override the default language.

Follow up to [59157].

Reviewed by SergeyBiryukov.
Merges [59430] to the 6.7 branch.

Props swissspidy, peterwilsoncc, desrosj, apermo, sergeybiryukov, wildworks, tigriweb, twvania, looswebstudio, stimul, audrasjb, finntown, bluantinoo, timwhitlock, albigdd.
See #62337.
Built from https://develop.svn.wordpress.org/branches/6.7@59433


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58819 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-20 13:35:16 +00:00
desrosj
e6dee5ed5a I18N: Adjust translator comments in nav-menu.js.
Includes:
* Moving the comments directly above `wp.i18n._x()` so that they can be picked up properly.
* Simplifying the context to avoid unnecessarily translating the string twice for the same use case.
* Using the established translator comments format for consistency.

Follow-up to [59428].

Reviewed by SergeyBiryukov, desrosj.
Merges [59431 to the 6.7 branch.

Fixes #62402.
Built from https://develop.svn.wordpress.org/branches/6.7@59432


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58818 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-20 13:33:18 +00:00
desrosj
1bb7777b42 Login: Revert selector change in login heading CSS.
In [59138], the login screens were updated to change the `h1` heading from the logo to screen-reader hidden text. Along with that HTML change, we changed the CSS selectors from `.login h1` to `.login .wp-login-logo`. This unnecessary change increased specificity and broke the CSS selectors used by a wide variety of plugins to replace the login logo.

Commit reverts the change in selector back to using the `.login h1` pattern.

Reviewed by joedolson, desrosj.
Merges [59424] to the 6.7 branch.

Props leecollings, sabernhardt, im3dabasia1, roytanck, sailpete, joedolson. 
Fixes #62410.
Built from https://develop.svn.wordpress.org/branches/6.7@59429


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58815 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-20 01:58:16 +00:00
desrosj
720cc884d9 Menus: i18n: Fix untranslatable strings in nav-menu.js.
Wrap three untranslatable strings in nav menus in JS translation functions.

Follow up to [59265].

Reviewed by desrosj, joedolson.
Merges 59426 to the 6.7 branch.

Props juliemoynat, swissspidy, yogeshbhutkar, sergeybiryukov, desrosj, tobifjellner, audrasjb, joedolson.
Fixes #62402.
Built from https://develop.svn.wordpress.org/branches/6.7@59428


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58814 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-20 01:55:18 +00:00
desrosj
7aaf81c7cc Media: Avoid running expensive logic twice using GD.
Support for uploading AVIF was added in [57524]. A new block of conditional logic was added determine which function should be used to create the new image file that resulted in these expensive functions being run twice.

This combines the two conditional logic to ensure the appropriate function is only run once regardless of format.

Reviewed by adamsilverstein.
Merges [59413] to the 6.7 branch.

Props adamsilverstein, glynnquelch.
Fixes #62331.
Built from https://develop.svn.wordpress.org/branches/6.7@59423


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58809 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-19 20:23:19 +00:00
desrosj
226f7f7964 Editor: Fix the JS to select, save, and update categories on the old Edit Post screen.
Reviewed by desrosj, azaozz.
Merges [59414] to the 6.7 branch.

Props: charleslf, im3dabasia1, desrosj, dhruvang21, Zargarov, sainathpoojary, azaozz.
Fixes: #62440.
Built from https://develop.svn.wordpress.org/branches/6.7@59421


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58807 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-19 13:49:17 +00:00
desrosj
60f27fbaad Customizer: Fix layout issues in customizer accordions.
Adjust some CSS characteristics in the customizer accordions to avoid a slight horizontal scroll, allow the chevron icon to be part of the clickable control surface, and resolve a pre-existing padding issue allowing overflow on accordion headings.

Follow up to [59224].

Reviewed by desrosj, joedolson.
Merges [59409] to the 6.7 branch.

Props laurelfulford, wildworks, domainsupport, sabernhardt, rcreators, desrosj, sainathpoojary. 
Fixes #62313, #62335.
Built from https://develop.svn.wordpress.org/branches/6.7@59420


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58806 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-19 13:43:16 +00:00
cbravobernal
3a58544234 HTML API: Fix normalized doctype pub/sys identifier quotes.
Changeset [59399] fixed missing DOCTYPEs in normalized HTML output. It missed an edge case where public and system identifiers may contain double quotes, in which case they must be quoted with single quotes.

This commit addresses that issue and adds tests.

Follow-up to [59399].

Reviewed by cbravobernal.
Merges [59410] to the 6.7 branch.

Props jonsurrell, luisherranz, apermo.
Fixes #62396.

Built from https://develop.svn.wordpress.org/branches/6.7@59411


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58797 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-18 13:39:21 +00:00
cbravobernal
664c3049d1 Interactivity API: Allow missing state negation on server
Aligns on the behavior of the negation operator with directives to missing paths in client and in server.

With a directive like the following:
{{{
<div data-wp-bind--hidden="!state.missing.property">
	This should be hidden by the <code>hidden</code> attribute.
</div>
}}}
Both server and client will return with this fix:
{{{
<div data-wp-bind--hidden="!state.missing.property" hidden="">
	This should be hidden by the <code>hidden</code> attribute.
</div>
}}}

Reviewed by cbravobernal.
Merges [59398] to the 6.7 branch.

Props jonsurrell, luisherranz.
Fixes #62374.

Built from https://develop.svn.wordpress.org/branches/6.7@59404


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58790 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-14 11:55:18 +00:00
cbravobernal
7d29e45bbe HTML API: Include doctype in full parser serialize.
Output DOCTYPE when calling `WP_HTML_Processor::serialize` on a full document that includes a DOCTYPE.

The DOCTYPE should be included in the serialized/normalized HTML output as it has an impact in how the document is handled, in particular whether the document should be handled in quirks or no-quirks mode.

This only affects the serialization of full parsers at this time because DOCTYPE tokens are currently ignored in all possible fragments. The omission of the DOCTYPE is subtle but can change the serialized document's quirks/no-quirks mode.

Reviewed by cbravobernal.
Merges [59399] to the 6.7 branch.

Props jonsurrell.
Fixes #62396.


Built from https://develop.svn.wordpress.org/branches/6.7@59401


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58787 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-13 16:15:17 +00:00
Peter Wilson
2cd5737c13 Post WordPress 6.7 version bump.
The 6.7 branch is now 6.7.1-alpha.



Built from https://develop.svn.wordpress.org/branches/6.7@59396


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58782 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-12 23:08:17 +00:00