Commit Graph

20868 Commits

Author SHA1 Message Date
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
Sergey Biryukov
a2cceecbdd Database: Update $wp_db_version to point to the correct commit number.
Follow-up to [60717].

See #50161.
Built from https://develop.svn.wordpress.org/trunk@60718


git-svn-id: http://core.svn.wordpress.org/trunk@60054 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-07 20:39:20 +00:00
Sergey Biryukov
d54706b43c Database: Add type_status_author index for the posts table.
This aims to improve performance of some queries on installations with a large number of posts.

Follow-up to [3678], [3690], [9290], [13576].

Props josephscott, LucasMS, Otto42, flixos90, matt, johnjamesjacoby, siliconforks, mukesh27,  jonsurrell, SirLouen, SergeyBiryukov.
Fixes #50161.
Built from https://develop.svn.wordpress.org/trunk@60717


git-svn-id: http://core.svn.wordpress.org/trunk@60053 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-07 20:36:20 +00:00
Sergey Biryukov
ff865046b7 Coding Standards: Move upgrade_690() to the correct place, after upgrade_682().
Follow-up to [60666].

See #53323.
Built from https://develop.svn.wordpress.org/trunk@60716


git-svn-id: http://core.svn.wordpress.org/trunk@60052 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-07 20:34:35 +00:00
joedolson
ff7cfc9145 Customizer: Accessible errors when adding new pages.
When setting the home page settings or dynamically adding new pages in the menu manager, the error messages didn't meet accessibility standards.

Add a screen reader announcement, a visible notification, and standardize the error styles.

Props dilipbheda, dlh, celloexpressions, joedolson, jeremiahbratton, shailu25.
Fixes #50696.
Built from https://develop.svn.wordpress.org/trunk@60715


git-svn-id: http://core.svn.wordpress.org/trunk@60051 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-07 02:47:36 +00:00
Weston Ruter
275127f8b3 Posts, Post Types: Use relevant HTTP status codes for wp_die() calls in wp-admin/post.php.
The status code is now explicitly set in each `wp_die()` call so that the default 500 status code is not sent unless it is the most appropriate.

Props callumbw95, kkmuffme, mindctrl, westonruter.
Fixes #63836.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60049 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-06 06:49:31 +00:00
joedolson
cb59d63c60 Administration: Remove unused CSS in forms.css.
Remove some CSS that doesn't appear to have ever been used. See [42967].

Props joedolson, peterwilsoncc, mukesh27.
Fixes #63907.
Built from https://develop.svn.wordpress.org/trunk@60710


git-svn-id: http://core.svn.wordpress.org/trunk@60046 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-05 04:03:29 +00:00
joedolson
e30a48d6b0 Administration: Fix sizing of page header links on mobile.
Page title actions were modified to match the global button styles in #41986, but these styles were not applied to mobile viewports at the time. 

Fix padding, height, line-height, and alignment to match these links to global styles. 

Props joedolson, rollybueno, sumitbagthariya16, circlecube, shailu25.
Fixes #63831.
Built from https://develop.svn.wordpress.org/trunk@60705


git-svn-id: http://core.svn.wordpress.org/trunk@60041 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-04 03:53:36 +00:00
Sergey Biryukov
126fc3b4ca Code Modernization: Address no-op function deprecations in PHP 8.5.
Several PHP functions that have not been doing anything since PHP 8.0/8.1, specifically:

* `finfo_close()` since the `ext/fileinfo` migration in PHP 8.1
* `xml_parser_free()` since the `ext/xml` migration in PHP 8.0
* `curl_close()` since the `ext/curl` migration in PHP 8.0
* `curl_share_close()` since the `ext/curl` migration in PHP 8.0
* `imagedestroy()` since the `ext/gd` migration in PHP 8.0

will be deprecated in PHP 8.5 and will thus be throwing warnings.

This commit adds conditional checks to only call these functions on the relevant PHP versions.

Reference: [https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_no-op_functions_from_the_resource_to_object_conversion PHP RFC: Deprecations for PHP 8.5: Deprecate no-op functions from the resource to object conversion].

Props TobiasBg, SergeyBiryukov.
See #63061.
Built from https://develop.svn.wordpress.org/trunk@60703


git-svn-id: http://core.svn.wordpress.org/trunk@60039 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-03 12:18:31 +00:00
Sergey Biryukov
501fa4bd4e Posts, Post Types: Check the result of creating a draft in get_default_post_to_edit().
As `wp_insert_post()` can return an error for various reasons, this commit ensures that this scenario is properly handled and an error message is displayed.

Follow-up to [12987].

Props rishabhwp, tfrommen, SirLouen, siliconforks, SergeyBiryukov.
Fixes #37441.
Built from https://develop.svn.wordpress.org/trunk@60701


git-svn-id: http://core.svn.wordpress.org/trunk@60037 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-02 16:50:32 +00:00
joedolson
cc73b8b920 Accessibility: Feedback & focus on deleting terms via AJAX.
When deleting a term using AJAX, notify screen reader users of the deletion using `wp.a11y.speak()`, set the active row to be unfocusable, then explicitly set new focus after the deletion is completed.

Props jeremyfelt, afercia, wido, nikunj8866, SirLouen, pmbaldha, joedolson.
Fixes #47101.
Built from https://develop.svn.wordpress.org/trunk@60700


git-svn-id: http://core.svn.wordpress.org/trunk@60036 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-01 21:22:31 +00:00
Helen Hou-Sandí
3ffbc9770f Updates: Ensure theme screenshots are positioned correctly.
Underlying problem: the updates list tables inherit styles from classes named for plugins. This makes the intention much more explicit so we can actually maintain and make changes sanely going forward.

Fixes #63120.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60019 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-27 15:15:30 +00:00
Sergey Biryukov
1dc6a28e04 Docs: Correct the order of @since and @global tags in some files.
Follow-up to [9053], [13177], [16660], [32642], [37226], [54953], [59865], [60658].

Props viralsampat, shailu25, sandipsinh007.
Fixes #63879. See #63166.
Built from https://develop.svn.wordpress.org/trunk@60682


git-svn-id: http://core.svn.wordpress.org/trunk@60018 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-27 13:42:30 +00:00
jonsurrell
a8d180e55e Scripts: Use appropriate JSON encoding flags for script tags.
`wp_json_encode()` with default arguments is insufficient to safely escape JSON for script tags. Use `JSON_HEX_TAG | JSON_UNESCAPED_SLASHES` flags.

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

Props devasheeshkaul, jonsurrell, siliconforks.
Fixes #63851.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60017 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-27 10:34:28 +00:00
Helen Hou-Sandí
698f5c3589 Plugins: Ensure only plugin icons are floated.
There's no reason not to add a semantic class to the plugin icons on the update screen instead of making our CSS more complex, so let's do that and ensure that the existing `.plugin-icon` styles are scoped to `.plugin-card` on the install screen.

Partially reverts [60673].
Fixes #63120.


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


git-svn-id: http://core.svn.wordpress.org/trunk@60016 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-27 00:03:30 +00:00
Jeremy Felt
f0331ea047 Users: Improve documentation for edit_user_profile and show_user_profile actions.
This clarifies when and in which context these actions fire.

Props akshat2802.
Fixes #62062.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60015 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-26 23:55:31 +00:00
whyisjake
9bc78e7a7a Plugins: Fix emoji positioning in plugin titles on plugins list table.
Prevents emojis in plugin titles from floating to the front of text when
WordPress uses emoji fallback rendering. When emoji feature detection fails,
WordPress replaces emoji characters with `<img>` elements that were incorrectly
affected by CSS float rules intended for plugin icons.

Updates CSS selectors to target specific icon types (dashicons, icon classes,
and data URI images) rather than all images, ensuring emoji images remain
inline with plugin title text while preserving proper layout for actual
plugin icons.

- Consolidates `.plugins .plugin-title img` and `.plugins .plugin-title .dashicons` rules
- Adds support for `img.dashicons`, `img[class*="icon"]`, and `img[src*="data:image"]` selectors
- Maintains 64px sizing and left float for legitimate plugin icons
- Fixes visual issue where "myplugin❤️wordpress" displayed as "❤️mypluginwordpress"

Props slimndap, ankitkumarshah, sandeepdahiya, sabernhardt, tomdevisser,
debarghyabanerjee, nusrat21, SirLouen, wpfy, hmbashar, klevismiho,
rollybueno, jamesgiroux, jorbin, whyisjake.

Fixes #63120.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60009 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-26 21:35:26 +00:00
whyisjake
f8f84a4173 Upgrade/Install: Move Hello Dolly plugin to directory structure.
Changes the Hello Dolly plugin from a single file structure to a proper plugin directory structure, moving from `hello.php` to `hello-dolly/hello.php` to align with Plugin Handbook Best Practices.

- Adds proper `Text Domain: hello-dolly` header to Hello Dolly plugin
- Updates core files to remove special case handling for `hello.php`
- Updates plugin dependency system to handle new directory structure
- Adds upgrade routine to migrate active plugin references and keep plugin active
- Updates all tests to use new plugin path format `hello-dolly/hello.php`
- Updates build configuration and .gitignore for new directory structure
- Adds `hello.php` to old files list for cleanup during core updates
- Adds `plugins/hello-dolly/` to new bundled directories list

Props afragen, SergeyBiryukov, peterwilsoncc, SirLouen, matt, davidbaumwald, desrosj, hellofromtonya, justinahinon,audrasjb, oglekler, whyisjake.
Fixes #53323.


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


git-svn-id: http://core.svn.wordpress.org/trunk@60002 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-26 18:41:31 +00:00
Sergey Biryukov
58aee83106 Docs: Correct the order of @since and @global tags in some files.
Follow-up to [32642], [32643], [60416].

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


git-svn-id: http://core.svn.wordpress.org/trunk@59994 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-24 13:44:32 +00:00
joedolson
304382e37d Accessibility: Make buttons to add site images look like buttons.
The buttons to add site icons, logos, header images, and background images were designed with a dashed border. This led to confusion with users thinking they were drop regions for image uploads, rather than buttons to trigger an upload.

Change design of upload buttons to clarify expected user interaction.

Props emaildano, afercia, joedolson, ankitkumarshah, logicrays, shailu25.
Fixes #47579.
Built from https://develop.svn.wordpress.org/trunk@60645


git-svn-id: http://core.svn.wordpress.org/trunk@59981 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-18 20:27:37 +00:00
Sergey Biryukov
db9f74475c Coding Standards: Move count() usage in wp_dashboard_recent_comments().
While the rule to discourage using functions like `count()` in a loop condition is a recommendation/best practice rule from the `WordPress-Extra` ruleset and does not directly apply to WordPress core, this is intended as a minor readability and code clarity improvement.

Follow-up to [10090], [17556], [20609], [26144].

Props krunal265, johnbillion, audrasjb, dhruvang21, SergeyBiryukov.
Fixes #56499.
Built from https://develop.svn.wordpress.org/trunk@60643


git-svn-id: http://core.svn.wordpress.org/trunk@59979 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-17 16:59:26 +00:00
Sergey Biryukov
669bacd5bd Revisions: Add year to timestamp in revisions comparison interface.
This aims to make it easier to distinguish between revisions from different years.

Follow-up to [23769], [23898], [24520].

Props kgagne, iamadisingh, abcd95, SergeyBiryukov.
Fixes #63816.
Built from https://develop.svn.wordpress.org/trunk@60642


git-svn-id: http://core.svn.wordpress.org/trunk@59978 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-16 21:53:28 +00:00
joedolson
6b2e46fdcd Media: Fix button sizing on Edit Media screen.
On the Edit Media screen, buttons were not all of consistent size. This was caused by custom sizing applied to CSS in the Edit Media panel that was not consistent with other button sizes.

Remove custom sizing and adds class so all Edit Media buttons will match styling of other admin buttons in desktop and mobile viewports.

Props hbhalodia, sabernhardt, sandeepdahiya, mikinc860, mukesh27, joedolson.
Fixes #63559.
Built from https://develop.svn.wordpress.org/trunk@60640


git-svn-id: http://core.svn.wordpress.org/trunk@59976 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-15 18:16:32 +00:00
Sergey Biryukov
eb32f853f6 Quick/Bulk Edit: Check if post status is set in wp_ajax_inline_save().
This aims to avoid a PHP warning if the status value is missing in the request.

Follow-up to [8951], [9083].

Props bor0, jorbin, SergeyBiryukov.
Fixes #63622.
Built from https://develop.svn.wordpress.org/trunk@60639


git-svn-id: http://core.svn.wordpress.org/trunk@59975 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-15 11:01:30 +00:00
joedolson
214a011d89 Media: Fix button focus visibility in media uploads.
Following [r58279], the focus outline on the Edit button after uploading media was partially cut off. Adjust margin and padding to ensure the outline is visible, while also supporting appropriate word wrapping on long file names.

Props dilipbheda, karthikeya01, sabernhardt, narenin, zunaid321, Marius84, ankitkumarshah,  riddhidave, dilip2615, SirLouen, Presskopp, joedolson.
Fixes #63239.
Built from https://develop.svn.wordpress.org/trunk@60637


git-svn-id: http://core.svn.wordpress.org/trunk@59973 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-14 23:08:34 +00:00
joedolson
60cb3d6db9 Administration: Remove obsolete placeholder styles.
Remove the browser-prefixed placeholder styling `-ms-input-placeholder` and custom opacity for `-moz-placeholder`. `--ms-input-placeholder` is no longer used by any supported browsers and Firefox now uses `color-mix` to set placeholder colors instead of reduced opacity.

Props afercia, abcd95, sabernhardt, aialvi, joedolson.
Fixes #63030.
Built from https://develop.svn.wordpress.org/trunk@60636


git-svn-id: http://core.svn.wordpress.org/trunk@59972 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-14 21:37:26 +00:00
Sergey Biryukov
090fb72df0 Export: Split the query for post authors in wxr_authors_list() into smaller chunks.
This aims to avoid a fatal error when attempting to export content on larger WP instances with a lot of data.

Follow-up to [15961], [28731].

Props bor0, SirLouen, SergeyBiryukov.
Fixes #63503.
Built from https://develop.svn.wordpress.org/trunk@60632


git-svn-id: http://core.svn.wordpress.org/trunk@59968 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-13 16:28:31 +00:00
dmsnell
ede3a79f96 Add wp_is_valid_utf8() for normalizing UTF-8 checks.
There are several existing mechanisms in Core to determine if a given string contains valid UTF-8 bytes or not. These are spread out and depend on which extensions are installed on the running system and what is set for `blog_charset`. The `seems_utf8()` function is one of these mechanisms.

`seems_utf8()` does not properly validate UTF-8, unfortunately, and is slow, and the purpose of the function is veiled behind its name and historic legacy.

This patch deprecates `seems_utf()` and introduces `wp_is_valid_utf8()`; a new, spec-compliant, efficient, and focused UTF-8 validator. This new validator defers to `mb_check_encoding()` where present, otherwise validating with a pure-PHP implementation. This makes the spec-compliant validator available on all systems regardless of their runtime environment.

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

Props dmsnell, jonsurrell, jorbin.
Fixes #38044.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59966 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-12 18:15:36 +00:00
joedolson
90da60fa36 Administration: Reduce mobile item spacing in .misc-pub-section.
On small viewports, the total vertical padding of `.misc-pub-section` was adjusted from 14px to 40px.

This significant different made for difficult reading of information in the Post Publish metabox, the Media details meta box, and the comment editing metabox.

Shift the total vertical padding to 24px to improve the readability of metaboxes on mobile.

Props mikinc860, dhrumilk, debarghyabanerjee, mukesh27, hbhalodia, sabernhardt, joedolson.
Fixes #63571.
Built from https://develop.svn.wordpress.org/trunk@60619


git-svn-id: http://core.svn.wordpress.org/trunk@59955 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-08 01:57:30 +00:00
Peter Wilson
216a4157c9 Upgrade/Install: Reduce number of DB queries populating roles.
Reduces the number of database queries made when populating roles during install/multisite site creation by 344 (347 queries down to 3).

`populate_roles()` has been modified to prevent an individual database query each time a role or capability is added to the `WP_Roles` object. Instead the roles option, `{$wpdb->prefix}user_roles` is updated once at the end of the function call.

Introduces a test to ensure that updating the roles option via `WP_Roles` and updating the option in the manner now used by `populate_roles()` results in the same capabilities been applied to a role.

Props fliespl, johnjamesjacoby, ocean90, realloc, rishabhwp, sainathpoojary, sirlouen, spacedmonkey, swissspidy.
Fixes #37687.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59950 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-07 01:34:33 +00:00
audrasjb
2ef90d3315 Administration: Avoid rendering empty bottom tablenav container when pagination is hidden.
This changeset removes the bottom `tablenav` container on taxonomy term list screens when it contains a hidden `.tablenav-pages.no-pages` element, to prevent unnecessary vertical spacing when no tags exist.

Props sainathpoojary, dilipbheda, audrasjb, abcd95, dhruvang21, SirLouen.
Fixes #63369.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59949 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-06 22:37:30 +00:00
Weston Ruter
b4e1bf55cc Site Health: Improve descriptions for critical issues and recommended improvements.
Props aarti1318, naveendwivedi, westonruter, sabernhardt, dhruvang21, rollybueno.
Fixes #63787.

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


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


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


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

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

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


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


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

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


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


git-svn-id: http://core.svn.wordpress.org/trunk@59864 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-31 22:49:33 +00:00