Commit Graph

9065 Commits

Author SHA1 Message Date
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
John Blackbourn
e6b6fd3b17 Posts, Post Types: Add a filter to the post statuses available in Quick Edit and Bulk Edit.
Props kakomap, SirLouen, iamadisingh, mukesh27

Fixes #36237
Built from https://develop.svn.wordpress.org/trunk@60512


git-svn-id: http://core.svn.wordpress.org/trunk@59848 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-25 15:17:22 +00:00
Sergey Biryukov
b322832f3b Docs: Correct the type for $tax global in WP_Terms_List_Table::__construct().
Follow-up to [32642].

Props yashjawale.
Fixes #63742.
Built from https://develop.svn.wordpress.org/trunk@60498


git-svn-id: http://core.svn.wordpress.org/trunk@59834 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-23 17:00:41 +00:00
johnjamesjacoby
339e1e90e2 Multisite: Enforce consistent types on ID columns in multisite database tables, to better allow for foreign keys to more reliably be defined between them.
This change adjusts the install & upgrade routines so all of ID-based database columns in the multisite database tables are `unsigned`, bringing them up-to-speed with ID-based columns in single-site tables.

Additionally, the `$wp_db_version` number is bumped, and the `pre_schema_upgrade()` upgrade function is modified to accommodate & use that new version.

Follow-up to [10852].

Props spacedmonkey, johnjamesjacoby.

Fixes #40418.
Built from https://develop.svn.wordpress.org/trunk@60497


git-svn-id: http://core.svn.wordpress.org/trunk@59833 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-22 17:48:32 +00:00
johnjamesjacoby
e508ad2b08 Taxonomy: Filter the arguments passed into wp_dropdown_categories() in the Categories post edit metabox AJAX request output.
This commit fixes a bug that caused differing dropdown results between AJAX & non-AJAX output, when using the `post_edit_category_parent_dropdown_args` hook.

(That hook is documented inside of the `post_categories_meta_box()` function, introduced via r33682 and #33026.)

Props obiplabon, birgire.

Fixes #44343.
Built from https://develop.svn.wordpress.org/trunk@60492


git-svn-id: http://core.svn.wordpress.org/trunk@59828 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-21 18:17:24 +00:00
Sergey Biryukov
ead6495be5 Docs: Fix typo in get_udims() description.
Follow-up to [6309], [8912], [9119], [18632].

Props bhaveshdesai, sabernhardt, mukesh27.
Fixes #63704.
Built from https://develop.svn.wordpress.org/trunk@60488


git-svn-id: http://core.svn.wordpress.org/trunk@59824 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-19 11:52:31 +00:00
Sergey Biryukov
b42336c2f7 Coding Standards: Remove redundant check in insert_with_markers().
The check in the `elseif` branch would always be true, as the preceding `if` is for `! $found_marker`.

Follow-up to [34740].

Props justlevine.
See #63268.
Built from https://develop.svn.wordpress.org/trunk@60480


git-svn-id: http://core.svn.wordpress.org/trunk@59816 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-17 11:57:31 +00:00
Sergey Biryukov
7fe38f1ff6 Coding Standards: Remove redundant check in wp_read_image_metadata().
This logical branch is only reachable if `$exif_description` is already verified as truthy a few lines above.

Follow-up to [57267].

Props justlevine.
See #63268.
Built from https://develop.svn.wordpress.org/trunk@60475


git-svn-id: http://core.svn.wordpress.org/trunk@59811 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-16 12:57:36 +00:00
Dominik Schilling
cafb8269ac Media: Disable upload button in browser's built-in file uploader if no file is selected.
Props karinchristen, krokodok, stefanvelthuys, hubersen, joedolson, mukesh27, rollybueno, ocean90.
Fixes #63561.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59785 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-12 15:26:28 +00:00
Aaron Jorbin
db50ff98ec 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.

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


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


git-svn-id: http://core.svn.wordpress.org/trunk@59757 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-07 18:05:31 +00:00
Sergey Biryukov
11c31a3bbe Coding Standards: Remove redundant check in WP_Upgrader:maintenance_mode().
The first part of the conditional checks if `$enable` is truthy, so it is always false in the `elseif`.

Follow-up to [11005].

Props justlevine.
See #63268.
Built from https://develop.svn.wordpress.org/trunk@60417


git-svn-id: http://core.svn.wordpress.org/trunk@59753 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-06 16:42:35 +00:00
John Blackbourn
e00c5f086c Docs: Add a few missing @since tags.
See #63166
Built from https://develop.svn.wordpress.org/trunk@60416


git-svn-id: http://core.svn.wordpress.org/trunk@59752 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-06 11:57:35 +00:00
John Blackbourn
86a3dbf668 Networks and Sites: Correct and improve terminology relating to deactivated, deleted, and archived sites on a Multisite installation.
* Deleting a site is permanent action, so the terminology around site deletion has been updated to reflect that.
* Site deactivation has been renamed to "Flag for Deletion", and a site with this status is no longer incorrectly shown as "Deleted".
* Extra helper text has been added to the screen shown when changing a site's status to make the effects clearer to Super Admins.

Props kawauso, ryan_b, wonderboymusic, nacin, DrewAPicture, martythornley, SergeyBiryukov, jeremyfelt, ideag, jorbin, sukhendu2002, johnbillion, realloc.

Fixes #15801
Built from https://develop.svn.wordpress.org/trunk@60358


git-svn-id: http://core.svn.wordpress.org/trunk@59694 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-06-27 15:09:32 +00:00
Sergey Biryukov
066852ca44 Coding Standards: Explicitly return null in functions saving URL rewrite rules.
This matches the documented `@return` type in `save_mod_rewrite_rules()` and `iis7_save_url_rewrite_rules()`.

Follow-up to [12726], [17328], [43362].

Props justlevine.
See #63268.
Built from https://develop.svn.wordpress.org/trunk@60353


git-svn-id: http://core.svn.wordpress.org/trunk@59689 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-06-26 13:06:31 +00:00
Sergey Biryukov
dc6577a932 Coding Standards: Remove unnecessary isset() check in Custom_Image_Header::step_2().
The only path where `$oitar` is not set returns in an earlier conditional.

Follow-up to [20806].

Props justlevine.
See #63268.
Built from https://develop.svn.wordpress.org/trunk@60351


git-svn-id: http://core.svn.wordpress.org/trunk@59687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-06-25 14:18:39 +00:00
desrosj
5f0b04a44c Site Health: Bump the recommended version of MariaDB to 10.6.
Version `10.5` of MariaDB will reach end of life on 24 June 2025.

MariaDB 10.6 is the next oldest LTS version still receiving support upstream and is now the recommended minimum version.

Props vipulgupta003.
See #63587.
Built from https://develop.svn.wordpress.org/trunk@60319


git-svn-id: http://core.svn.wordpress.org/trunk@59655 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-06-18 12:12:29 +00:00
Sergey Biryukov
3e80de5288 Coding Standards: Remove extra empty() in request_filesystem_credentials().
This commit removes an unnecessary `empty( $connection_type )` check, as the left side of the same conditional already accounts for a possibly empty value.

Follow-up to [37467].

Props justlevine.
See #63268.
Built from https://develop.svn.wordpress.org/trunk@60309


git-svn-id: http://core.svn.wordpress.org/trunk@59645 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-06-14 05:04:28 +00:00
Sergey Biryukov
947ab05cef Docs: Correct the type for WP_List_Table::$_column_headers.
The value is `null` until `::get_column_info()` is called.

Follow-up to [31127], [35021].

Props justlevine.
See #63268.
Built from https://develop.svn.wordpress.org/trunk@60292


git-svn-id: http://core.svn.wordpress.org/trunk@59628 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-06-08 14:21:31 +00:00
audrasjb
aed26a6174 Users: Update label from "Admin Color Scheme" to "Administration Color Scheme".
This prevents confusion between "Admin" as a user role and "Admin" when speaking about the dashboard itself.

Props ckoerner, audrasjb, debarghyabanerjee, SergeyBiryukov, corazondejaguar, pedrofigueroa1989.
Fixes #63048.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-06-05 12:51:24 +00:00
Adam Silverstein
d90e6eb924 Site Health: add image output mapping details to the info tab.
Add details to the info tab under media handling to show the mapping from uploaded image types to output types.

Props ironprogrammer, yogeshbhutkar.

Fixes #63047.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59614 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-06-05 08:16:27 +00:00
Sergey Biryukov
d4d9284227 Docs: Correct alignment for some translator comments.
Follow-up to [49154].

See #63166.
Built from https://develop.svn.wordpress.org/trunk@60276


git-svn-id: http://core.svn.wordpress.org/trunk@59612 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-06-04 22:21:37 +00:00
John Blackbourn
41e25d6802 General: Various fixes to the correctness of code and documentation reported by PHPStan.
Props justlevine

See #63268
Built from https://develop.svn.wordpress.org/trunk@60275


git-svn-id: http://core.svn.wordpress.org/trunk@59611 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-06-03 16:51:33 +00:00
Sergey Biryukov
f11ca907a0 Site Health: Explicitly deprecate WP_Debug_Data::get_sizes(), unused since WP 5.6.
Follow-up to [49154], [60272].

Props yashjawale, dhruvang21, ankitkumarshah, SergeyBiryukov.
Fixes #63516.
Built from https://develop.svn.wordpress.org/trunk@60274


git-svn-id: http://core.svn.wordpress.org/trunk@59610 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-06-03 14:23:32 +00:00
Sergey Biryukov
f53d5c599c General: Adjust WP_Community_Events::format_event_data_time() deprecation.
`_deprecated_function()` does not support a custom message, which appears to be redundant here, as the method's DocBlock already indicates that it is unused as of WordPress 5.5.2.

Includes correcting the version in the `@deprecated` tag.

Follow-up to [49146], [49201].

Props dhruvik18, dhruvang21, rollybueno, SirLouen, SergeyBiryukov.
Fixes #63511.
Built from https://develop.svn.wordpress.org/trunk@60273


git-svn-id: http://core.svn.wordpress.org/trunk@59609 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-06-02 15:00:28 +00:00
Sergey Biryukov
46acc4afff Docs: Mark WP_Debug_Data::get_sizes() as deprecated in WordPress 5.6.
Follow-up to [49154].

See #63166.
Built from https://develop.svn.wordpress.org/trunk@60272


git-svn-id: http://core.svn.wordpress.org/trunk@59608 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-06-01 20:45:31 +00:00
audrasjb
abdace2115 Media: Fix overflow of long user display names on Edit Media screen.
This changeset resolves an issue where long usernames in the media uploader modal would overflow their container. By adding the dedicated `word-wrap-break-word` class, usernames now properly break into multiple lines.

Follow-up to [59834], [59835].

Props sainathpoojary, audrasjb, sabernhardt, renishsurani, SirLouen, valentingrenier.
Fixes #63243.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59602 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-05-30 16:26:37 +00:00
Sergey Biryukov
e8a19e8976 Docs: Document the $wp_version global in update_core().
Follow-up to [17576], [22226], [31124], [32643], [39687].

Props upadalavipul, mukesh27, johnbillion, SergeyBiryukov.
Fixes #63496.
Built from https://develop.svn.wordpress.org/trunk@60265


git-svn-id: http://core.svn.wordpress.org/trunk@59601 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-05-30 13:38:32 +00:00
Sergey Biryukov
eea226f70f Docs: Improve documentation for WP_Filesystem_FTPext::parselisting().
Includes:
* Adding a summary for the method.
* Documenting the `$line` parameter.
* Documenting the case when an empty string is returned.

Follow-up to [7126], [30678], [55714].

Props opurockey, abcd95, SergeyBiryukov.
Fixes #63491.
Built from https://develop.svn.wordpress.org/trunk@60261


git-svn-id: http://core.svn.wordpress.org/trunk@59597 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-05-28 10:49:37 +00:00
joedolson
a882c300da 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. 

Props yogeshbhutkar, getsyash, joedolson.
Fixes #63029.
Built from https://develop.svn.wordpress.org/trunk@60259


git-svn-id: http://core.svn.wordpress.org/trunk@59595 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-05-28 00:49:34 +00:00
Sergey Biryukov
7faba13ae1 Filesystem API: Remove unused code in WP_Filesystem_FTPext::parselisting().
Follow-up to [7126].

Props viralsampat.
Fixes #63485.
Built from https://develop.svn.wordpress.org/trunk@60255


git-svn-id: http://core.svn.wordpress.org/trunk@59591 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-05-27 12:41:35 +00:00
Sergey Biryukov
75ca090ac2 Administration: Remove unused and commented out HTML code in touch_time().
Follow-up to [7338], [29206].

Props umesh.nevase, abcd95.
Fixes #63476.
Built from https://develop.svn.wordpress.org/trunk@60252


git-svn-id: http://core.svn.wordpress.org/trunk@59588 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-05-26 13:21:29 +00:00
Sergey Biryukov
efdd94e890 Coding Standards: Pass true instead of 1 to current_time() for consistency.
This matches the documented type of `bool` for the `$gmt` parameter.

Follow-up to [60119].

Props johnbillion, dilipbheda.
Fixes #63207.
Built from https://develop.svn.wordpress.org/trunk@60235


git-svn-id: http://core.svn.wordpress.org/trunk@59571 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-05-14 11:59:34 +00:00
Sergey Biryukov
94a5ace753 Docs: Remove redundant @access tags from DocBlocks in some admin classes.
Since the affected methods already have the visibility declared in the function signature, these tags are unnecessary and add no new information.

Follow-up to [41612], [41821], [44961], [55971], [60198].

Props marian1.
See #63272.
Built from https://develop.svn.wordpress.org/trunk@60216


git-svn-id: http://core.svn.wordpress.org/trunk@59552 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-05-03 18:03:25 +00:00
Sergey Biryukov
249f92e063 Coding Standards: Use correct escaping function for nav menu item URLs.
Follow-up to [14248], [15077].

Props hardik2221, nareshbheda, dilipbheda, SirLouen.
Fixes #63351.
Built from https://develop.svn.wordpress.org/trunk@60213


git-svn-id: http://core.svn.wordpress.org/trunk@59549 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-05-01 19:26:29 +00:00
Sergey Biryukov
d1c676b3a4 Site Health: Set missing $transient in WP_Debug_Data:get_wp_themes_inactive().
This commit addresses a bug where the `update_themes` site transient was not defined before being checked in several `isset()` checks later on in the method.

Follow-up to [59176].

Props justlevine.
See #63268.
Built from https://develop.svn.wordpress.org/trunk@60181


git-svn-id: http://core.svn.wordpress.org/trunk@59517 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-24 12:49:30 +00:00
Sergey Biryukov
4e3cca4095 Coding Standards: Explicitly return null in wp_get_nav_menu_to_edit().
This commit updates the function to explicitly return `null` if a valid `$menu_id` is not passed or the term does not exist. Previously, the function could return `void`, but was typed as only returning a string or a `WP_Error` object.

Follow-up to [14248].

Props justlevine.
See #63268.
Built from https://develop.svn.wordpress.org/trunk@60180


git-svn-id: http://core.svn.wordpress.org/trunk@59516 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-23 00:14:30 +00:00
John Blackbourn
d68311701e Docs: Improve and standardise the format of placeholder strings that get replaced within email messages.
This prevents the strings being treated as h3 headings by the documentation parser on developer.wordpress.org.

See #63166
Built from https://develop.svn.wordpress.org/trunk@60178


git-svn-id: http://core.svn.wordpress.org/trunk@59514 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-21 11:49:31 +00:00
audrasjb
0c9d300887 Upgrade/Install: Update the $_old_files array for 6.8.
Built from https://develop.svn.wordpress.org/trunk@60160


git-svn-id: http://core.svn.wordpress.org/trunk@59496 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-14 15:22:22 +00:00
Sergey Biryukov
d38b0e164c Coding Standards: Remove unnecessary conditional in WP_List_Table::print_column_headers().
This commit removes an unnecessary `empty()` check, where the `$class` variable is primed at the top of the `foreach` loop and will always be a non-empty array.

To maintain readability of the source of the `$class` attribute without the unnecessary `empty()` check, the resulting variable has been renamed to `$class_attr`, instead of reusing the array.

Follow-up to [8923], [15491].

Props justlevine.
See #52217.
Built from https://develop.svn.wordpress.org/trunk@60132


git-svn-id: http://core.svn.wordpress.org/trunk@59468 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-06 20:56:30 +00:00
audrasjb
ec5bd33b11 Editor: Update the blocks on the sample page to the latest HTML.
This changeset updates the Quote Blocks HTML markup of the default sample page, to avoid unecessary migration (and the related console information) when loading its content in the editor.

Props wildworks, abcd95, audrasjb, ankitkumarshah.
Fixes #63176.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59447 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-31 12:46:24 +00:00
Sergey Biryukov
0d51100268 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 SirLouen, hideishi, dd32, tusharaddweb, takuword, SergeyBiryukov.
Fixes #62718.
Built from https://develop.svn.wordpress.org/trunk@60107


git-svn-id: http://core.svn.wordpress.org/trunk@59443 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-30 19:27:32 +00:00
Sergey Biryukov
3116510f51 Coding Standards: Remove a one-time $sql variable in network_domain_check().
This allows the `$wpdb::prepare()` call to be picked up correctly by PHPCS.

Follow-up to [28712].

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


git-svn-id: http://core.svn.wordpress.org/trunk@59432 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-26 10:30:31 +00:00
Sergey Biryukov
9b0820331c Coding Standards: Remove a one-time $sql variable in WP_Importer methods.
This allows the `$wpdb::prepare()` calls to be picked up correctly by PHPCS.

Follow-up to [14760].

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


git-svn-id: http://core.svn.wordpress.org/trunk@59430 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 18:36:26 +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
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