20762 Commits

Author SHA1 Message Date
desrosj
6a229dcf9c WordPress 6.8.5.
Built from https://develop.svn.wordpress.org/branches/6.8@61928


git-svn-id: http://core.svn.wordpress.org/branches/6.8@61210 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-11 02:42:29 +00:00
desrosj
df4877c29a WordPress 6.8.4.
Built from https://develop.svn.wordpress.org/branches/6.8@61905


git-svn-id: http://core.svn.wordpress.org/branches/6.8@61187 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-10 16:59:32 +00:00
desrosj
789f4459e4 Grouped backports for the 6.8 branch.
- XML-RPC: Switch to `wp_safe_remote()` when fetching a pingback URL.
- HTML API: Prevent `WP_HTML_Tag_Processor` instances being unserialized and add some extra logic for validating pattern and template file paths.
- KSES: Optimize PCRE pattern detecting numeric character references.
- Customize: Improve escaping approach used for nav menu attributes.
- Media: Ensure the attachment parent is accessible to the user before showing a link to it in the media manager.
- Interactivity API: Skip binding event handler attributes. The corresponding `data-wp-on--` attribute should be used instead.
- Administration: Ensure client-side templates are only detected when they're correctly associated with a script tag.
- Filesystem API: Don't attempt to extract invalid files from a zip when using the PclZip library.
- Comments: Don't attempt to create a note if the user cannot edit the target post.
- Media: Disable XML entity substitution in getID3.

Merges [61879-61890] to the 6.8 branch.

Props johnbillion, xknown, dmsnell, jorbin, peterwilson, adamsilverstein, desrosj, luisherranz, ocean90, westonruter, jonsurrell, aurdasjb.
Built from https://develop.svn.wordpress.org/branches/6.8@61901


git-svn-id: http://core.svn.wordpress.org/branches/6.8@61183 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-10 16:37:37 +00:00
John Blackbourn
ddb25f9fd6 WordPress 6.8.3.
Built from https://develop.svn.wordpress.org/branches/6.8@60840


git-svn-id: http://core.svn.wordpress.org/branches/6.8@60176 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-30 17:30:38 +00:00
John Blackbourn
14e5c03574 Menus: Prevent HTML in menu item titles from being rendered unexpectedly.
Merges [60815] and [60816] to the 6.8 branch.

Props audrasjb, desrosj, johnbillion, jorbin, phillsav, vortfu, westonruter
Built from https://develop.svn.wordpress.org/branches/6.8@60818


git-svn-id: http://core.svn.wordpress.org/branches/6.8@60154 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-30 17:01:30 +00:00
audrasjb
ec442a4935 WordPress 6.8.2.
Built from https://develop.svn.wordpress.org/branches/6.8@60472


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59808 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-15 15:09:37 +00:00
Aaron Jorbin
6709f8f0d2 Pings/Trackbacks: Use HTTPS for services that now support it.
This updates the default on new installations for rpc.pingomatic.com to use https while also upgrading existing sites that use rpc.pingomatic.com or rpc.twingly.com to use https for those two domains.

Reviewed by audrasjb.
Merges [60421] and [60422] to the 6.8 branch.

Props sabernhardt, peterwilsoncc, jorbin, bhubbard, matt.
Fixes #42007.

Built from https://develop.svn.wordpress.org/branches/6.8@60428


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59764 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-07 20:34:31 +00:00
audrasjb
ea3f5c6084 Revisions: Improve revisions layout on mobile viewports.
On small screens, the restore revision button was mostly hidden due to excessive constraints on overflow height. Fix the overflow issue and ensure that restore revision buttons are always usable.

Reviewed by audrasjb.
Merges [60259] to the 6.8 branch.
Props yogeshbhutkar, getsyash, joedolson.
Fixes #63029.


Built from https://develop.svn.wordpress.org/branches/6.8@60410


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59746 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-05 06:22:37 +00:00
Aaron Jorbin
16a36cc684 WordPress 6.8.1
Built from https://develop.svn.wordpress.org/branches/6.8@60208


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59544 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-30 16:41:31 +00:00
Aaron Jorbin
8913eb2446 About Page: Reduce copy on 6.8 about page.
In finalizing the 6.8 announcement post (https://wordpress.org/news/2025/04/cecil/) it was identified that some of the copy on the 6.8 about page is not an accurate description of what is in 6.8. This copy is receiving a game misconduct penalty and automatic ejection. While the coach could bring on a substitute, a line change is the better option here.

Reviewed by joedolson.
Merges [60183] to the 6.8 branch.

Props abcd95, mukesh27, JeffPaul.
Fixes #63323.

Built from https://develop.svn.wordpress.org/branches/6.8@60190


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59526 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-25 19:25:20 +00:00
Aaron Jorbin
40745ab9c3 Themes: Add filter on bulk action fields.
Because validation was added in [59134] to prevent submitting bulk actions with no selected action, sites that remove or change the default bulk actions can fail due to the missing required inputs. Add a filter (bulk_action_observer_ids) that allows modifying the actions accepted to fulfill validation rules.

Reviewed by Jorbin.
Merges [60186] to the 6.8 branch.

Props ethitter, kabir93, jorbin, davidbaumwald, joedolson.
Fixes #63005.

Built from https://develop.svn.wordpress.org/branches/6.8@60188


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59524 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-25 18:38:29 +00:00
joedolson
690978a7d3 Editor: Use different keys in array of translatable strings.
[59696] changed the 'Text' tab of the classic editor to 'Code' but Code was already used as a key in the array of translatable text. Since arrays keys need to be unique, this meant that it is possible for the wrong translation to appear in a locale. Using different keys fixes that.

Reviewed by joedolson.
Merges [60182] to the 6.8 branch.

Props joedolson, sabernhardt, justlevine, swissspidy, audrasjb.
Fixes #63269. See #38061.
Built from https://develop.svn.wordpress.org/branches/6.8@60187


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59523 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-25 18:28:30 +00:00
Aaron Jorbin
403017b587 Upgrade/Install: Pass stored credentials to WP_Filesystem() in WP_Upgrader.
When using a non-direct filesystem, the call in WP_Upgrader::maintenance_mode() did not include the required credentials, leading to a fatal error as the connection was not initialized properly.

This commit attempts to use the stored credentials if available, and triggers a notice otherwise.

Follow-up to [56341], [58128].

Reviewed by jorbin.
Merges [60107] to the 6.8 branch.

Props SirLouen, hideishi, dd32, tusharaddweb, takuword, SergeyBiryukov.
Fixes #62718.

Built from https://develop.svn.wordpress.org/branches/6.8@60184


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59520 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-24 23:18:31 +00:00
audrasjb
e47cd172b7 Upgrade/Install: Update the $_old_files array for 6.8.
Reviewed by joemcgill.


Built from https://develop.svn.wordpress.org/branches/6.8@60163


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59499 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-14 15:29:22 +00:00
Peter Wilson
4cd8eed638 Help/About: Add images to the About page.
Updates the images in the About page source with the final versions on the w.org CDN.

Reviewed by ryelle.
Merges [60154] to the 6.8 branch.

Props ryelle, dd32.
See #63025.

Built from https://develop.svn.wordpress.org/branches/6.8@60155


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59491 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-14 01:11:26 +00:00
ryelle
8ca9ba7df3 Help/About: Revert subtle color to actually subtle color on Get Involved.
Reviewed By peterwilsoncc.
Merges [60136] to the 6.8 branch.

Props densinakum, courane01.
See #63025.


Built from https://develop.svn.wordpress.org/branches/6.8@60138


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59474 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-08 01:07:29 +00:00
Peter Wilson
5b95f30633 Site Editor: Fix PHP warning in _wp_get_site_editor_redirection_url().
Fixes a PHP Warning for an undefined array key "QUERY_STRING" in `_wp_get_site_editor_redirection_url()` in some PHP configurations.

Depending on the configuration, `$_SERVER['QUERY_STRING']` can either be unset or an empty string when no query string included in the URL. This changes the condition from a falsey check to an `empty()` check.

Reviewed by Mamaduka.
Merges [60134] to the 6.8 branch.

Props akshaydhere, dilipbheda, johnbillion, rainynewt, sabernhardt, sainathpoojary, shovan_jaya, tusharaddweb, wildworks.
Fixes #63224.


Built from https://develop.svn.wordpress.org/branches/6.8@60135


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59471 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-07 22:15:30 +00:00
ryelle
4fa00adc34 Help/About: Update the About page for 6.8.
Introducing the new content for the 6.8 About page. This release introduces a new header image, but otherwise only minor tweaks to the layout and colors.

See #63025.
Props michelleames, marybaum, jeffpaul, flixos90, krupajnanda, vgnavada, karmatosed, benjamin_zekavica, ryelle, peterwilsoncc, benniledl, audrasjb.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59423 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 15:16:40 +00:00
Adam Silverstein
6fd9b34405 Media: prevent uploading image types the server doesn’t support.
Normalize behavior between uploading in the media library and uploading directly to the block editor.  Now, when uploading an image with a mime type the server does not support (either in the media library or the block editor), the user will see an error message “This image cannot be processed by the web server. Convert it to JPEG or PNG before uploading”.

Alos, add a new filter `wp_prevent_unsupported_mime_type_uploads` which determines whether the server should prevent uploads for image types it doesn't support. The default value is true and the filter also receives the uploaded image mime type.

Props: joomskys, adamsilverstein, azaozz, swissspidy, joemcgill, flixos90, audrasjb. 

Fixes #61167


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


git-svn-id: http://core.svn.wordpress.org/trunk@59420 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 14:07:53 +00:00
Sergey Biryukov
94bac1c6b3 Coding Standards: Remove a one-time variable in WP_Privacy_Requests_Table::get_request_counts().
This allows the `$wpdb::prepare()` call to be picked up correctly by PHPCS.

Follow-up to [43008], [45448].

Props aristath, poena, afercia, SergeyBiryukov.
See #62279.
Built from https://develop.svn.wordpress.org/trunk@60072


git-svn-id: http://core.svn.wordpress.org/trunk@59408 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-24 19:59:33 +00:00
Sergey Biryukov
01428753d0 Coding Standards: Remove a one-time variable in WP_MS_Sites_List_Table::prepare_items().
This allows the `$wpdb::prepare()` call to be picked up correctly by PHPCS.

Follow-up to [28712], [55656].

Props aristath, poena, afercia, SergeyBiryukov.
See #62279.
Built from https://develop.svn.wordpress.org/trunk@60069


git-svn-id: http://core.svn.wordpress.org/trunk@59405 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-23 14:48:31 +00:00
Peter Wilson
e895a309d3 Site Editor: Fix PHP warning pre-loading page REST requests.
Fix a PHP warning when opening a page directly in the site editor, eg by navigating to the URL `/wp-admin/site-editor.php?p=%2Fpage&postId=200`, caused by an undefined variable name.

Props abcd95, joemcgill, narenin, soyebsalar, websiteredev, wildworks.
Fixes #63122.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59397 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-20 23:03:30 +00:00
Sergey Biryukov
00b99baf07 Coding Standards: Remove leading and trailing spaces in URLs on the Menus screen.
Follow-up to [42343].

Props kkmuffme.
Fixes #62978.
Built from https://develop.svn.wordpress.org/trunk@60045


git-svn-id: http://core.svn.wordpress.org/trunk@59381 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-18 21:48:25 +00:00
Aaron Jorbin
36ae833962 Coding Standards: Correct alignment in parameters passed to wp_editor.
Follow-up to [59188].

See #29838, #62279.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59379 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-18 20:09:25 +00:00
Sergey Biryukov
53b38b0516 Coding Standards: Remove extra slashes when concatenating ABSPATH with a path.
Since `ABSPATH` is defined and documented to end with a forward slash `/`, this changeset removes the first `/` from strings appended to `ABSPATH` in various files, leading to `//` in the resulting path.

Follow-up to [54872], [55720], [57545].

Props dhruvik18, SergeyBiryukov.
Fixes #63102.
Built from https://develop.svn.wordpress.org/trunk@60034


git-svn-id: http://core.svn.wordpress.org/trunk@59370 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-17 22:40:26 +00:00
joedolson
9f51d473ef Administration: A11y: Prevent empty author link in list tables.
If the author display name is unknown, show an `emdash` and screen reader text `(no author)`, consistent with other cases where information is unknown. Fix an issue where an unknown author name displayed as an invisible link with no text.

Props kkmuffme, hdkothari81, shailu25, snehapatil02, sabernhardt, faisal03, rishavdutta, sumitbagthariya16, joedolson.
Fixes #62913.
Built from https://develop.svn.wordpress.org/trunk@60032


git-svn-id: http://core.svn.wordpress.org/trunk@59368 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-17 18:54:27 +00:00
joedolson
8e9d8e7bd4 Editor: A11y: Skip link hidden in editor on medium-small screens.
Adjust the position of the skip link in viewports between 600 and 782 pixels, where they were hidden due to `overflow-y: auto` in the block editor. Ensures that the skip link is visibly available for users on all viewport sizes.

Props sabernhardt, narenin, audrasjb, mukesh27, joedolson, wildworks.
Fixes #63084.
Built from https://develop.svn.wordpress.org/trunk@59992


git-svn-id: http://core.svn.wordpress.org/trunk@59334 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-16 22:49:26 +00:00
Sergey Biryukov
e032455914 Coding Standards: Escape thumbnail URL and attributes in wp_image_editor().
Follow-up to [11965].

Props benazeer, dhruvang21, sabernhardt.
Fixes #62951.
Built from https://develop.svn.wordpress.org/trunk@59990


git-svn-id: http://core.svn.wordpress.org/trunk@59332 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-16 20:47:29 +00:00
joedolson
10facebdbc Customizer: A11y: Respect prefers-reduced-motion.
Several significant animations in the customizer did not respect prefers reduced motion. Change CSS to wrap animations in `@media` queries to verify user preferences.

Props wildworks, sainathpoojary, abcd95, joedolson, audrasjb.
Fixes #62806.
Built from https://develop.svn.wordpress.org/trunk@59989


git-svn-id: http://core.svn.wordpress.org/trunk@59331 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-16 20:27:34 +00:00
joedolson
5c784a1001 A11y: Add spoken notice when screen options are saved on change.
When some screen option input fields are changed (post table columns, welcome panel, and metabox visibility), the change is saved to options. Other screen options (e.g. number of items per page) are only saved on submit. The changes that are saved immediately are visibly changed for sighted readers immediately. Change adds a `wp.a11y.speak()` call to inform screen readers that a value change has updated screen options.

Props kkmuffme, joedolson, yogeshbhutkar, audrasjb, sourabhjain.
Fixes #62550.
Built from https://develop.svn.wordpress.org/trunk@59988


git-svn-id: http://core.svn.wordpress.org/trunk@59330 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-16 19:40:31 +00:00
joedolson
abaebb17e6 Media: Dismiss button not functional on upload errors.
Change the `onclick` attribute to a separate inlined script in the error message and improve the event attachment behavior.

Props vivekawsm, mijotj, adamsilverstein, parthvataliya, adhun, sarathar, peterwilsoncc, sayedulsayem, chaion07, sppramodh, indirabiswas27, aishwarryapande, dhrumilk, manojmaharrshi, ugyensupport, imranhasanraaz, pkbhatt, shailu25, joedolson.
Fixes #60074.
Built from https://develop.svn.wordpress.org/trunk@59986


git-svn-id: http://core.svn.wordpress.org/trunk@59328 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-16 16:11:24 +00:00
Sergey Biryukov
87330c8aa7 Upgrade/Install: Revert [59981] pending test failure investigation.
See #62718.
Built from https://develop.svn.wordpress.org/trunk@59982


git-svn-id: http://core.svn.wordpress.org/trunk@59324 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-14 14:53:29 +00:00
Sergey Biryukov
fda4905790 Upgrade/Install: Pass stored credentials to WP_Filesystem() in WP_Upgrader.
When using a non-direct filesystem, the call in `WP_Upgrader::maintenance_mode()` did not include the required credentials, leading to a fatal error as the connection was not initialized properly.

This commit attempts to use the stored credentials if available, and triggers a notice otherwise.

Follow-up to [56341], [58128].

Props hideishi, dd32, SergeyBiryukov.
Fixes #62718.
Built from https://develop.svn.wordpress.org/trunk@59981


git-svn-id: http://core.svn.wordpress.org/trunk@59323 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-14 12:59:32 +00:00
audrasjb
41c50755ed Users: Remove unwanted aria-describedby attribute in User Edit.
This changeset removes the `aria-describedby` attribute when not editing the current user, as no description paragraph is associated.

Props kkmuffme, audrasjb, faisal03, shailu25, nandow, eddystile, marineevain, qhaensler, virginienacci.
Fixes #63006.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59320 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-13 10:04:34 +00:00
Sergey Biryukov
90b04c9acb Coding Standards: Use strict comparison in _fix_attachment_links().
Follow-up to [20308], [58360].

See #62279.
Built from https://develop.svn.wordpress.org/trunk@59962


git-svn-id: http://core.svn.wordpress.org/trunk@59304 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-10 20:03:25 +00:00
joedolson
95e0b633ac Administration: Update out of date error message styling.
Change several error message across core to use WordPress standard styling. Ensure only prefixes are wrapped in `strong` tags rather than the whole message, use `notice notice-error` classes where appropriate, and replace a custom error with `wp_admin_notice()` in multisite.

Props afercia, rajinsharwar, robinmartijn, mukesh27, sabernhardt, oglekler, joedolson, chaion07, im3dabasia1, audrasjb, dkarfa, najmulsaju.
Fixes #50402.
Built from https://develop.svn.wordpress.org/trunk@59960


git-svn-id: http://core.svn.wordpress.org/trunk@59302 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-10 18:16:27 +00:00
Mamaduka
465c926f95 Editor: Update preload paths for post and site editor.
Preloading all blocking requests ensures that the editor canvas becomes responsive quickly and that the browser avoids unnecessary client-side requests.

Props mamaduka, joemcgill, audrasjb, peterwilsoncc.
Fixes #63050.
Built from https://develop.svn.wordpress.org/trunk@59958


git-svn-id: http://core.svn.wordpress.org/trunk@59300 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-10 10:34:22 +00:00
John Blackbourn
efa1334cd4 Upgrade/Install: Adjust the check for missing extensions during an upgrade so it remains compatible with versions of WordPress prior to 5.1.
The `WP_Error::has_errors()` method was introduced in WordPress 5.1, so this change uses its internal logic instead to remain compatible with earlier versions.

Props swissspidy, joemcgill, desrosj.

Fixes #63052
Built from https://develop.svn.wordpress.org/trunk@59956


git-svn-id: http://core.svn.wordpress.org/trunk@59298 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-09 15:17:22 +00:00
joedolson
294aaff4e6 Menus: Fix JS Warning when removing menu items.
Move the `updateParentDropdown` and `updateOrderDropdown` methods to be called on the jQuery menu object instead of on the `menus` translations object.

Props joedolson, abcd95, audrasjb.
Fixes #63059.
Built from https://develop.svn.wordpress.org/trunk@59950


git-svn-id: http://core.svn.wordpress.org/trunk@59292 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-07 16:22:25 +00:00
joedolson
e57e4cdf1a Menus: Validate custom links and add accessible error messages.
Add URL validation in the admin navigation menu manager that matches the validation in the customizer when adding custom links. Improve accessibility of both custom link forms by adding `aria-invalid` and `aria-describedby` attributes with visible error messages and announcing the error using `wp.a11y.speak()`.

Props joedolson, nikitasolanki1812, akrocks, pathan-amaankhan, rcreators, ironprogrammer, audrasjb, ankit-k-gupta, chaion07, rinkalpagdar, snehapatil02, jainil07, parthvataliya.
Fixes #60619, #60969.
Built from https://develop.svn.wordpress.org/trunk@59948


git-svn-id: http://core.svn.wordpress.org/trunk@59290 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-06 23:48:23 +00:00
audrasjb
9f477686c8 Customize: Properly escape URLs passed by url and return parameters.
This changeset replaces `sanitize_text_field()` with `esc_url_raw()` for URLs passed via `url` and `return` query vars. This fixes an issue where the URL `example.com/หน้าภาษาไทย` would incorrectly return `example.com//` due to improper sanitization when clicking on the Customize button through the admin bar.

Props okvee, yahaly, hellofromTonya, veryard, dilip2615, amin7, swissspidy, audrasjb.
Fixes #61317.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59287 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-06 15:01:23 +00:00
audrasjb
fbc4151874 Customizer: Improve input field widths and alignment for date/time controls.
This changeset fixes some issues where Select fields were misaligned with neighboring elements, creating visual inconsistency in the customizer.

Props rkradadiya, mukesh27, laxman-prajapati, dlh, karmatosed, ankitkumarshah, sabernhardt.
Fixes #51249.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59284 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-05 23:27:21 +00:00
audrasjb
db2a4a9cad General: Remove extra spaces added before checked() functions used in WP_Screen class.
This reverts [59889] as `__checked_selected_helper()` actually adds a leading space before the `checked` attribute.

Props kkmuffme.
Unprops audrasjb.
Fixes #63037.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59283 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-05 23:12:27 +00:00
audrasjb
56456e0a1c Bookmarks: Update link_updated when a link is created or updated.
This changeset fixes an issue where the `link_updated` field was not updated in the old Link Manager. When a link was created or updated the `link_updated` field remained `0000-00-00 00:00:00`.

Props lenasterg, audrasjb.
Fixes #56851.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59265 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-04 05:55:23 +00:00
Joe McGill
59bb042094 Editor: Support Stylebook in the Site Editor for classic themes.
This modifies the submenu for the Site Editor which previously linked directly to the Patterns page after [58278] to support accessing the Stylebook in classic themes via a new "Design" link. Currently, any classic themes that have either added support for `editor-styles` or have a theme.json file will automatically see this new link in the admin menu.

Props isabel_brison, poena, wildworks, mamaduka, karmatosed, joemcgill.
Fixes #62509.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59247 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-03 17:22:25 +00:00
joedolson
371495c91d Media: Allow uploading images from URLs without extensions.
Enable `download_url()` to fetch and verify file types if the URL does not contain a file extension. This allows URL downloads to handle media endpoints like istockphoto.com that use file IDs and formatting arguments to deliver images.

Props masteradhoc, mitogh, joedolson, hellofromTonya, antpb, audrasjb, navi161, dmsnell.
Fixes #54738.
Built from https://develop.svn.wordpress.org/trunk@59902


git-svn-id: http://core.svn.wordpress.org/trunk@59244 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-03 00:19:23 +00:00
Peter Wilson
a10c294d3e Users: Use editable_roles filter for multisite sub-sites.
Adds a check of the `editable_roles` filter when adding users to a multisite sub-site to ensure the role is permitted to be used on the network. If the role is blocked by the filter, attempting to add the role will trigger a `wp_die()` similar to attempting to add a user with the role on a single site install.

Props eartboard, hareesh-pillai, ideag, sukhendu2002, spacedmonkey, thomaswm.
Fixes #43251.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59243 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-02 23:35:23 +00:00
joedolson
5961453fc3 Media: Simplify file name generation for image conversions.
Use the empty string argument in `$editor->save()` added in [59855] to simplify the code used to prevent image format conversions from getting a suffix appended to their file names.

Props joedolson, audrasjb, azaozz.
See #62385.
Fixes #63003.
Built from https://develop.svn.wordpress.org/trunk@59897


git-svn-id: http://core.svn.wordpress.org/trunk@59239 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-02 18:55:23 +00:00
John Blackbourn
01c10003eb Docs: Various improvements to inline documentation.
See #62281
Built from https://develop.svn.wordpress.org/trunk@59896


git-svn-id: http://core.svn.wordpress.org/trunk@59238 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-02 00:43:23 +00:00
Sergey Biryukov
5b37e6aff1 Site Health: Fix typo in the robots.txt check messages.
Follow-up to [59890].

See #56595.
Built from https://develop.svn.wordpress.org/trunk@59894


git-svn-id: http://core.svn.wordpress.org/trunk@59236 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-01 00:29:24 +00:00