Commit Graph

20902 Commits

Author SHA1 Message Date
Weston Ruter
6af32c813a Site Health: Improve messaging for PHP version status.
Previously, the status could be misleading, especially if the check against the WordPress.org API failed. The initial status message is now more neutral, and a dedicated check has been added to handle cases where the API is unreachable.

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

Follow-up to [58832].

Props pbearne, joemcgill, mukesh27, peterwilsoncc, swb1192, krupajnanda, psykro, SergeyBiryukov, swissspidy, imranhasanraaz, amin7, flixos90, vgnavada, audrasjb, adamsilverstein, Presskopp, westonruter.
Fixes #61623.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60459 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-04 08:50:35 +00:00
Weston Ruter
71dab9f7cf Filesystem API: Update WP_Filesystem_FTPext::$link phpdoc type.
This accounts for when `ftp_ssl_connect()`/`ftp_connect()` returns `false` as well as for when `FTP\Connection` is returned instead of `resource` as of PHP 8.1. 

Props SirLouen, kalpeshh, audrasjb.
Fixes #63201.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60452 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-03 21:38:34 +00:00
Adam Silverstein
59991fff9b Editor: Notes should not appear in the context of comments.
Prevent notes from inadvertently showing up in the context of comments - including on the Dashboard recent comments widget and the “Mine” count on the Comments page. Notes are stored as a custom ‘note’ comment type and this change ensures the note type is only returned when explicitly requested, or when ‘all’ types are requested.

The query for note children is modified to return all child notes. This fixes an issue where children were no longer being returned for the ‘note’ type.

Also fixes https://github.com/WordPress/gutenberg/issues/72548.


Props adamsilverstein, timothyblynjacobs, shailu25, peterwilsoncc, westonruter, mamaduka, kadamwhite.
Fixes #64145.
Fixes #64152.


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


git-svn-id: http://core.svn.wordpress.org/trunk@60441 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-31 18:57:30 +00:00
joedolson
16a08879f0 Media: A11y: Switch uploader toggle to button and set focus.
The control to switch between the browser uploader and the default uploader used a link with `target="_blank"`, but was driven by scripts. In a no-js context, this meant that the link could be used to open the browser uploader in a new tab. This is unnecessary, however, because the default uploader is not rendered when JS is not available.

On switching uploaders, browser focus was lost.

For more predictable keyboard and screen reader behavior, switch the media uploader toggle to a `button` element and set focus to the upload button in the new context.

Props dilipbheda, sabernhardt, rollybueno, westonruter, joedolson.
Fixes #63238.
Built from https://develop.svn.wordpress.org/trunk@61099


git-svn-id: http://core.svn.wordpress.org/trunk@60435 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-30 22:32:34 +00:00
joedolson
96dcb2b13c Media: Prevent fatal error if metadata is an array.
Check the data type of ID3 data on import before running `wp_kses_post` or `wp_kses_post_deep` to fix a fatal error thrown when attempting to run `wp_kses_post` on non-string content in PHP 8.2+.

Adds unit tests to verify.

Props sllimrovert, ankitkumarshah, rollybueno, wpfy, hmbashar, SirLouen, johnbillion, huzaifaalmesbah, sandeepdahiya, sourabhjain, poojapadamad, joedolson.
Fixes #63529.
Built from https://develop.svn.wordpress.org/trunk@61098


git-svn-id: http://core.svn.wordpress.org/trunk@60434 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-30 19:45:32 +00:00
ellatrix
ead0b93afd Template activation: merge changes for Beta 2.
Developed in https://github.com/WordPress/wordpress-develop/pull/10425.
See https://core.trac.wordpress.org/ticket/62755.

* Rename new endpoints, https://github.com/WordPress/gutenberg/pull/72700.
* Remove fake post type for registered templates, https://github.com/WordPress/gutenberg/pull/72674.
* Remove the ability to deactivate registered templates, https://github.com/WordPress/gutenberg/pull/72636,
* Fix undefined array key PHP warning, https://github.com/WordPress/gutenberg/pull/72729.
* Add migration logic (to be refined), see https://core.trac.wordpress.org/ticket/64133 and https://github.com/WordPress/wordpress-develop/pull/10418.

Fixes #62755.
Props ellatrix, priethor.
Built from https://develop.svn.wordpress.org/trunk@61078


git-svn-id: http://core.svn.wordpress.org/trunk@60414 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-28 13:35:28 +00:00
desrosj
160ccd428e Press This: Revert [60990] for more discussion.
[60990] introduced a new action, `press_this_init`. While the code changes adding the hook are straightforward, the actual use cases are not yet clear.

Reverting the change allows for more discussion to clarify what is actually supported through the addition of this new action.

Props jorbin.
See #53076.
Built from https://develop.svn.wordpress.org/trunk@61030


git-svn-id: http://core.svn.wordpress.org/trunk@60366 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-21 13:46:24 +00:00
ellatrix
82c917225c Templates: add PHP changes required for the template activation feature.
* Adds the `active_templates` setting, which is an object holding the template slug as a key and template post ID as the value.
* To maintain backwards compatibility, any `wp_template` (post type) not created through the new API will be activated.
* `get_block_template` and `get_block_templates` have been adjusted to check `active_templates`. These functions should never return inactive templates, just like before, to maintain backwards compatibility.
* The pre-existing `/templates` endpoint and sub-endpoints remain and work exactly as before.
* A new endpoint `/wp_template` has been added, but this is just a regular posts controller (`WP_REST_Posts_Controller`). We do register an additional `theme` field and expose the `is_wp_suggestion` meta.
* Another new endpoint `/wp_registered_template` has been added, which is read-only and lists the registered templates from themes and plugin (un-edited, without activations applied).

These changes are to be iterated on.

See https://github.com/WordPress/wordpress-develop/pull/8063.

Props ellatrix, shailu25, ntsekouras.
Fixes #62755.
Built from https://develop.svn.wordpress.org/trunk@61029


git-svn-id: http://core.svn.wordpress.org/trunk@60365 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-21 13:43:58 +00:00
Sergey Biryukov
6782a70a92 Coding Standards: Use more meaningful variable names in Theme Upgrader.
Per the [https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#naming-conventions Naming Conventions]:

> Don’t abbreviate variable names unnecessarily; let the code be unambiguous and self-documenting.

This commit includes renaming of the following variables:
* `$r` to `$upgrade_data`.
* `$res` to `$connected`.
* `$info` to `$new_theme_data`.

Follow-up to [8989], [11005], [13686], [18618], [20268], [57252].

Props costdev, mukesh27.
See #63168.
Built from https://develop.svn.wordpress.org/trunk@61028


git-svn-id: http://core.svn.wordpress.org/trunk@60364 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-21 13:42:28 +00:00
Aaron Jorbin
b5110df9c6 Multisite: Use "Network Activate" button on network plugin install screen.
The "Activate" button label should be "Network Activate" after clicking the "Install Now" button in Network Admin > Plugins > Add Plugin.

Props pmbaldha, shailu25, rollybueno.
Fixes #63954.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60352 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-21 11:01:32 +00:00
Peter Wilson
1499d5e8d2 Upgrade/Install: Revert relocation of Hello Dolly plugin.
Reverts Hello Dolly changes moving the plugin to a containing folder. Removes the `upgrade_690()` function in it's entirety as the upgrade routine is no longer required. 

Fully reverted commits: [60666], [60670], [60716], [60725]; partially reverts [60721].

Porps johnbillion, whyisjake, SirLouen, mindctrl, afragen, jorbin, Otto42, swissspidy, welcher, davidbaumwald.
See #53323.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60342 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-21 04:33:29 +00:00
Sergey Biryukov
d8dc8f547e Coding Standards: Use more meaningful variable names in Plugin Upgrader.
Per the [https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#naming-conventions Naming Conventions]:

> Don’t abbreviate variable names unnecessarily; let the code be unambiguous and self-documenting.

This commit includes renaming of the following variables:
* `$r` to `$upgrade_data`.
* `$res` to `$connected`.
* `$pluginfiles` to `$plugin_files` — Per naming conventions, separate words via underscores.
* `$info` to `$new_plugin_data`.

Follow-up to [6779], [8550], [9141], [11005], [12157], [18618], [56525].

Props costdev, mukesh27.
See #63168.
Built from https://develop.svn.wordpress.org/trunk@60997


git-svn-id: http://core.svn.wordpress.org/trunk@60333 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-20 23:37:34 +00:00
Aaron Jorbin
4f4e28a421 Plugins and Themes: Add filters to validation functions.
It is now possible to add additional validation requirements for themes and plugins besides the built in core checks.

Developed in https://github.com/WordPress/wordpress-develop/pull/1812 and https://github.com/WordPress/wordpress-develop/pull/10361.

Props kraftbj, mukesh27, jorbin, joedolson.
Fixes #54381.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60331 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-20 22:31:27 +00:00
Weston Ruter
a912bcb599 Posts, Post Types: Rename new post_states_string filter to post_states_html.
Add examples to the PHPDoc for the filter params.

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

Follow-up to [60986].

Props dmsnell, westonruter.
See #51403.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60329 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-20 21:45:35 +00:00
joedolson
e2c156312e Menus: Improve usability and accessibility of menu quick search.
Change the admin menu quick search to limit to searching post titles. Add filter `wp_ajax_menu_quick_search_args` to support customizing post columns in query. Clear quick search results when search query is cleared. Send announcements about search status via `wp.a11y.speak()`.

Props diebombe, afercia, audrasjb, nickjbedford, kevinlearynet, mukesh27, joedolson.
Fixes #48655.
Built from https://develop.svn.wordpress.org/trunk@60991


git-svn-id: http://core.svn.wordpress.org/trunk@60327 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-20 20:31:34 +00:00
Weston Ruter
99c72041b7 Press This: Add press_this_init action so plugins can provide their own implementations.
Developed in https://github.com/WordPress/wordpress-develop/pull/8612

Props kraftbj, azaozz, SirLouen, shailu25, mukesh27, poena, desrosj, westonruter.
Fixes #53076.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60326 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-20 20:03:20 +00:00
joedolson
8f1d8bf369 Login and Registration: Add Caps Lock notice to password input.
Add a notification when typing passwords on the user registration, user login, and user profile screens that notifies the user if they are typing with caps lock enabled.

This can help reduce user friction when logging in, prevent user error when creating passwords, and reduce the need for a user to use the show password button.

Props dartiss, swissspidy, johnbillion, nikunj8866, pmbaldha, mosescursor, sirlouen, westonruter, praful2111, devsabbirahmed, kawsar007, najmulsaju, yashyadav247, sajjad67, joedolson.
Fixes #48345.
Built from https://develop.svn.wordpress.org/trunk@60988


git-svn-id: http://core.svn.wordpress.org/trunk@60324 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-20 19:49:32 +00:00
Adam Silverstein
956747c6e8 Editor: Introduce the PHP-related code for Notes.
Bring the PHP part of the new Notes feature into core for the 6.9 release. See related Gutenberg Issue: https://github.com/WordPress/gutenberg/issues/71826. These changes do not impact any user facing functionality, they simply prepare core for the JavaScript functionality that will come over in a separate sync.

Overview of changes:
- Ensure Notes are not included in comment counts
- Enable the note type  (REST API)
- Adjust capabilities so edit_post cap implies ability to edit notes  
- Enable empty and duplicate notes for resolve/re-open actions  
- Add control over notes with post type supports check
- Register new note resolution status meta

Props: ristojovanovic, adamsilverstein, jeffpaul, wildworks, mamaduka, swissspidy, timothyblynjacobs, kadamwhite.
Fixes #64096.


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


git-svn-id: http://core.svn.wordpress.org/trunk@60323 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-20 19:22:33 +00:00
Weston Ruter
8444ab7453 Posts, Post Types: Add post_states_string filter for HTML string of post states.
Developed in https://github.com/WordPress/wordpress-develop/pull/10000

Props paulbonneau, mukesh27, westonruter, SirLouen, dmsnell, brandbrilliance, shsajalchowdhury, aialvi, ugyensupport.
Fixes #51403.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60322 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-20 19:06:36 +00:00
Peter Wilson
ee3b03497c Menus: Remove caching todo from wp_nav_menu_item_post_type_meta_box().
Remove the note to introduce caching to `wp_nav_menu_item_post_type_meta_box()` as caching has since been introduced to `WP_Query` and therefore `get_posts()`. The comment is out of date.

See #63168.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60316 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-19 21:34:26 +00:00
johnjamesjacoby
6dd9a58de8 Networks and Sites: remove email address check when attempting to demote a Super Admin.
This change ensures that a capable Super Admin is allowed to manage global Users as intended, and removes an invisible & undocumented restriction (that was easily bypassed anyways).

It also adds 1 multisite unit test to confirm the intended behavior

Props flixos90, johnjamesjacoby, Mista-Flo.

Fixes #39170.


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


git-svn-id: http://core.svn.wordpress.org/trunk@60313 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-19 17:42:27 +00:00
johnjamesjacoby
b943298bf8 Networks and Sites: prevent a PHP error in wp-admin/network/site-users.php.
This change brings the multisite specific `promote` user action up-to-speed with the single-site one, by adding: 

* capability checks where appropriate
* a `none` check on `$role` to set it to an empty string

It also updates the inline documentation of the single-site `promote` user action in `users.php`, to match the suggested additions to the multisite file.

Props ignatiusjeroe, jeremyfelt, johnjamesjacoby, pratiklondhe, shanemuir, sudipatel007, techpartho.

Fixes #61100.


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


git-svn-id: http://core.svn.wordpress.org/trunk@60312 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-19 17:20:35 +00:00
joedolson
c49fc7a9eb General: Improve search input alignment on mobile.
Remove an end margin misalignment on the search input for posts, comments, themes, and plugins. 

Props ronak44, sourav08, dilipbheda, SirLouen, nikunj8866, darshitrajyaguru97, rollybueno, shailu25, sabernhardt, joedolson.
Fixes #63310.
Built from https://develop.svn.wordpress.org/trunk@60975


git-svn-id: http://core.svn.wordpress.org/trunk@60311 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-19 16:04:33 +00:00
Sergey Biryukov
acf738b39e Coding Standards: Use more meaningful variable names in Custom Image Header.
Per the [https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#naming-conventions Naming Conventions]:

> Don’t abbreviate variable names unnecessarily; let the code be unambiguous and self-documenting.

Follow-up to [27497], [27849].

Props costdev, mukesh27.
See #63168.
Built from https://develop.svn.wordpress.org/trunk@60970


git-svn-id: http://core.svn.wordpress.org/trunk@60306 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-18 13:26:30 +00:00
Sergey Biryukov
2d580bd616 Coding Standards: Use more meaningful variable names in Media Library.
Per the [https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#naming-conventions Naming Conventions]:

> Don’t abbreviate variable names unnecessarily; let the code be unambiguous and self-documenting.

Follow-up to [31037], [31041], [31562].

Props costdev, mukesh27.
See #63168.
Built from https://develop.svn.wordpress.org/trunk@60967


git-svn-id: http://core.svn.wordpress.org/trunk@60303 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-17 22:44:33 +00:00
johnjamesjacoby
fb95040f25 Networks and Sites: introduce 3 new actions inside the populate_network() function.
* `before_populate_network`
* `after_populate_network`
* `after_upgrade_to_multisite`

These hooks are strategically located to allow the execution of custom code before & after a new multisite network is created, as well as after the first time a single-site installation is upgraded to multisite.

This change also includes a set of unit tests via a new `Tests_Multisite_PopulateNetworkHooks` class, to confirm that these hooks are executing when and as intended.

Props jeremyfelt, johnjamesjacoby, Mista-Flo, spacedmonkey, sukhendu2002, rmccue, rollybueno.

Fixes #27289.
Built from https://develop.svn.wordpress.org/trunk@60954


git-svn-id: http://core.svn.wordpress.org/trunk@60290 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-17 15:05:34 +00:00
Weston Ruter
e9bd8510b6 Theme Editor: Add additional notice and warning when editing a CSS file.
* When a block theme is active, add a notice to advise using Additional CSS in the Site Editor. A similar notice is already directing users to Custom CSS in the Customizer when a classic theme is active.
* When there is a minified file (`*.min.css`) present for the current CSS file, warn that any edits may not be served to visitors.

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

Follow-up to [60934].

Props westonruter, peterwilsoncc, jorbin.
See #63012.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60279 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-16 00:16:31 +00:00
Sergey Biryukov
8eddfadd6f Date/Time: Add indication of site language default date/time format in General Settings.
This aims to make it easier to determine which format is the default for the current locale.

Props pbearne, SergeyBiryukov.
Fixes #64102.
Built from https://develop.svn.wordpress.org/trunk@60942


git-svn-id: http://core.svn.wordpress.org/trunk@60278 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-16 00:06:32 +00:00
Sergey Biryukov
c02580e18b Docs: Correct the tag order for site_status_good_response_time_threshold filter.
Follow-up to [54043].

Props mukesh27.
See #63166.
Built from https://develop.svn.wordpress.org/trunk@60938


git-svn-id: http://core.svn.wordpress.org/trunk@60274 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-15 21:36:35 +00:00
Sergey Biryukov
6f89fc8d45 Coding Standards: Use more meaningful variable names in Theme Editor.
Per the [https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#naming-conventions Naming Conventions]:

> Don’t abbreviate variable names unnecessarily; let the code be unambiguous and self-documenting.

Follow-up to [41721], [60928].

See #63168.
Built from https://develop.svn.wordpress.org/trunk@60932


git-svn-id: http://core.svn.wordpress.org/trunk@60268 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-14 10:15:30 +00:00
Sergey Biryukov
0b137f6348 Coding Standards: Revert the renaming of $s variable in wp-admin/plugins.php.
The `$s` global needs to remain for backward compatibility.

Follow-up to [60924].

Props westonruter, mukesh27.
See #63168.
Built from https://develop.svn.wordpress.org/trunk@60929


git-svn-id: http://core.svn.wordpress.org/trunk@60265 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-13 23:12:28 +00:00
Sergey Biryukov
ea487bcb18 Coding Standards: Use more meaningful variable names in Plugin Editor.
Per the [https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#naming-conventions Naming Conventions]:

> Don’t abbreviate variable names unnecessarily; let the code be unambiguous and self-documenting.

Follow-up to [10879], [41721].

Props costdev, mukesh27.
See #63168.
Built from https://develop.svn.wordpress.org/trunk@60928


git-svn-id: http://core.svn.wordpress.org/trunk@60264 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-13 21:50:27 +00:00
Sergey Biryukov
d1056b0b06 Coding Standards: Rename $s to $search_term in wp-admin/plugins.php.
Per the [https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#naming-conventions Naming Conventions]:
> Don’t abbreviate variable names unnecessarily; let the code be unambiguous and self-documenting.

Follow-up to [15697].

Props costdev, mukesh27.
See #63168.
Built from https://develop.svn.wordpress.org/trunk@60924


git-svn-id: http://core.svn.wordpress.org/trunk@60260 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-12 14:22:37 +00:00
Sergey Biryukov
d5fbdf4f58 Coding Standards: Rename $c to $blog_count in wp-admin/admin.php.
Per the [https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#naming-conventions Naming Conventions]:
> Don’t abbreviate variable names unnecessarily; let the code be unambiguous and self-documenting.

Follow-up to [https://mu.trac.wordpress.org/changeset/1940 mu:1940], [12712].

Props costdev, mukesh27.
See #63168.
Built from https://develop.svn.wordpress.org/trunk@60923


git-svn-id: http://core.svn.wordpress.org/trunk@60259 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-11 23:41:32 +00:00
Sergey Biryukov
2468de1134 Docs: Correct $revision_id global reference in wp-admin/revision.php.
Follow-up to [25419], [42795].

Props hanimbarek.
Fixes #64084.
Built from https://develop.svn.wordpress.org/trunk@60912


git-svn-id: http://core.svn.wordpress.org/trunk@60248 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-07 14:30:30 +00:00
joedolson
d51564e552 Upgrade/Install: WordPress text shows over logo on tab.
On the upgrade and repair screens, the logo link to wordpress.org was hidden using negative `text-indent`. This method makes the link impossible to click on using a mouse, and causes the text to overlay the image on keyboard focus.

On the install screen, if PHP is not running, the styles are not applied, leaving an unstyled link.

Remove the links for consistency with other screens following r47745. 

Props johnbillion, sabernhardt, joedolson.
Fixes #63950.
Built from https://develop.svn.wordpress.org/trunk@60898


git-svn-id: http://core.svn.wordpress.org/trunk@60234 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-04 00:47:31 +00:00
joedolson
2f28cf4868 Privacy: A11y: Show time of privacy request status change.
Add the date and time of privacy request status changes in the privacy requests table. Previously, `human_time_diff()` was used in the first 24 hours, and only the date after 24 hours. Change the output to display both date and time after 24 hours, using the format used for comments.

Props birgire, desrosj, afercia, xkon, tz-media, garrett-eclipse, sirlouen, sukhendu2002, sajjad67, fakhriaz, joedolson.
Fixes #44267.
Built from https://develop.svn.wordpress.org/trunk@60891


git-svn-id: http://core.svn.wordpress.org/trunk@60227 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-02 21:48:35 +00:00
joedolson
db567e7f82 General: A11y: Remove obsolete speak and aural CSS.
Remove instances of `speak: never` and `@media aural`, which are deprecated and/or non-standard CSS. These never had any broad browser support, but generated content alternatives do. See #40428.

Props krokodok, audrasjb, joedolson.
Fixes #63603.
Built from https://develop.svn.wordpress.org/trunk@60885


git-svn-id: http://core.svn.wordpress.org/trunk@60221 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-30 23:51:27 +00:00
John Blackbourn
e5caef19d3 Menus: Prevent HTML in menu item titles from being rendered unexpectedly.
Props audrasjb, desrosj, johnbillion, jorbin, phillsav, vortfu, westonruter
Built from https://develop.svn.wordpress.org/trunk@60815


git-svn-id: http://core.svn.wordpress.org/trunk@60151 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-30 16:28:31 +00:00
joedolson
69bb40f683 A11y: Ensure icons are not spoken by screen readers.
For all CSS generated icons across core, either add `aria-hidden="true"` to the HTML wrapper or set the generated content alternative to an empty string in the CSS using the  alternative text specification for CSS generated content.

Props afercia, joedolson, cheffheid, jhabdas.
Fixes #40428.
Built from https://develop.svn.wordpress.org/trunk@60806


git-svn-id: http://core.svn.wordpress.org/trunk@60142 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-28 23:40:35 +00:00
joedolson
7973f2e205 I18n: Combine duplicate text strings into variables.
In cases where a string is used both for a visible label and a screen reader text label,  the screen reader text should never be different from the visible label. To help ensure this doesn't happen, use only a single string. The associated screen reader text comments are no longer required.

This is also true for a few cases where there are strings in contexts where variables can't be used. In these cases, the screen reader text comments are also removed.

Props sabernhardt, swissspidy, audrasjb, joedolson.
Fixes #63620.
Built from https://develop.svn.wordpress.org/trunk@60805


git-svn-id: http://core.svn.wordpress.org/trunk@60141 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-28 22:38:32 +00:00
Sergey Biryukov
171b7fb23e Database: Do not unnecessarily alter table in dbDelta() for field type case differences.
This aims to avoid extra changes to database structure when type case is the only difference:
{{{
Changed type of wp_table.field from varchar(255) to VARCHAR(255)
}}}

Follow-up to [1575], [37532].

Props leewillis77, tristanleboss, lordspace, johnbillion, SergeyBiryukov.
Fixes #59481.
Built from https://develop.svn.wordpress.org/trunk@60789


git-svn-id: http://core.svn.wordpress.org/trunk@60125 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-21 15:52:29 +00:00
joedolson
69ced2eb1f Editor: A11y: Set aria-haspopup on Add Media button.
Add the `aria-haspopup` attribute and `aria-controls` on the Add Media button in the classic editor, so that screen reader users are notified about the behavior of the button.

Props alh0319, rishabhwp, joedolson.
Fixes #63973.
Built from https://develop.svn.wordpress.org/trunk@60786


git-svn-id: http://core.svn.wordpress.org/trunk@60122 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-19 20:54:33 +00:00
joedolson
c25aaf21c0 Customizer: Handle keyboard focus after adding site icon or logo.
Fix focus loss after assigning a site icon or a site logo in the customizer. Sets focus to the 'Remove' button immediately following the setting control.

Props joedolson, rishabhwp, krupajnanda, pmbaldha.
Fixes #63832.
Built from https://develop.svn.wordpress.org/trunk@60785


git-svn-id: http://core.svn.wordpress.org/trunk@60121 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-19 19:57:28 +00:00
Sergey Biryukov
2217d04148 Database: Ensure Non_unique index value is compared as a string in dbDelta().
Follow-up to [1575], [58994].

Props tsteel.
Fixes #64005.
Built from https://develop.svn.wordpress.org/trunk@60784


git-svn-id: http://core.svn.wordpress.org/trunk@60120 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-19 13:08:27 +00:00
Sergey Biryukov
1e8e058801 Database: Do not report an extra update in dbDelta() with backticks in table name.
Follow-up to [10948], [20704].

Props leewillis77, swissspidy, johnbillion, SergeyBiryukov.
Fixes #63976.
Built from https://develop.svn.wordpress.org/trunk@60782


git-svn-id: http://core.svn.wordpress.org/trunk@60118 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-19 12:00:26 +00:00
Weston Ruter
ba1e77a454 Menus: Fix searchability of post types which contain numeric characters.
The regular expression needs to correspond to how a post type slug is sanitized by `sanitize_key()` in `register_post_type()`.

Props kshaner, mindctrl, oglekler.
Fixes #63633.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60111 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-17 05:48:31 +00:00
Sergey Biryukov
072f79dd00 Upgrade/Install: Cast get_option( 'active_plugins' ) to array in upgrade_690().
This resolves an error on Multisite networks where an individual site doesn't have plugins active:
{{{
array_search(): Argument #2 ($haystack) must be of type array, string given
}}}

Follow-up to [60666], [60721].

Props dd32.
See #53323.
Built from https://develop.svn.wordpress.org/trunk@60725


git-svn-id: http://core.svn.wordpress.org/trunk@60061 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-09 15:34:31 +00:00
davidbaumwald
9ceab322ad Plugins: Correct deactivate row action text when network active.
Specifically, this change when a network activated plugin has plugin dependencies, the disabled deactivate row action link text is changed from "Deactivate" to "Network Deactivate".

Follow-up to [57545].

Props pbiron, nikunj8866, shailu25, jjj.
Fixes #63942.
Built from https://develop.svn.wordpress.org/trunk@60723


git-svn-id: http://core.svn.wordpress.org/trunk@60059 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-08 20:58:38 +00:00
Sergey Biryukov
57e2365030 Upgrade/Install: Correct the database upgrade routine for WordPress 6.9.
This commit:
* Moves the call to `upgrade_690()` to the correct place so it actually gets called.
* Wraps Hello Dolly upgrade code in a version check per standard practice.
* Removes the `$wpdb->query()` call to avoid attempting to create the new index twice, once in the upgrade and once in `dbDelta()`.

Follow-up to [60666], [60716], [60717].

Props peterwilsoncc, mukesh27.
See #50161, #53323.
Built from https://develop.svn.wordpress.org/trunk@60721


git-svn-id: http://core.svn.wordpress.org/trunk@60057 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-08 13:47:39 +00:00