Commit Graph

20842 Commits

Author SHA1 Message Date
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
audrasjb
37542ac0e1 Docs: Typo correction and comment improvement in color-picker.css.
Props mujuonly, sabernhardt, dhruvang21.
Fixes #63196.
See #63166.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59862 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-31 17:34:26 +00:00
Peter Wilson
998fd4dac5 Media: Modify escaping used for upload image announcements.
Replaces `esc_js()` with `wp_json_encode()` for escaping the screen reader announcement when a media upload fails. As the code is within a `<script>` tag rather than an inline script handler, the `esc_js()` function would cause special characters to be announced in their HTML encoded form rather than as the character, eg `&` would be announced as `&amp;`.

Follow up to [60263].

Props peterwilsoncc, joedolson.
Fixes #63114.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59856 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-29 01:25:29 +00:00
joedolson
f819b81d25 Media: Add gap between Crop apply controls when stacked.
Switch the display of the Media editor Crop controls to `flexbox` and add a gap of 4px in both column and row directions. Gives space between buttons when they are stacked.

Props presskopp, audrasjb, rishabhwp, joedolson.
Fixes #63672.
Built from https://develop.svn.wordpress.org/trunk@60517


git-svn-id: http://core.svn.wordpress.org/trunk@59853 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-28 02:08:26 +00:00
joedolson
caf07c5d31 General: Prevent Media & Theme modals from events on modified arrow keys.
Change the left and right arrow key navigation used in the Theme and Media modal interfaces so the events don't fire when `shift` or `ctrl` are also pressed.

Includes tests.

Props praful2111, hiteshtalpada, joemcgill, sandeepdahiya, abcd95, joedolson.
Fixes #63126.
Built from https://develop.svn.wordpress.org/trunk@60516


git-svn-id: http://core.svn.wordpress.org/trunk@59852 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-28 00:40:25 +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
joedolson
105213123d Customize: Fix keyboard a11y on back button.
Following [59224], the back button for section navigation was no longer keyboard navigable. This was caused by an accidental removal of scripts that conditionally handled the `tabindex` value of this control to make it focusable only when visible.

Fixes the issue by restoring code removed in [59224].

Props wildworks, poojapadamad, abcd95, ankitmaru, iamshashank, sourabhjain, joedolson.
Fixes #63011.
Built from https://develop.svn.wordpress.org/trunk@60482


git-svn-id: http://core.svn.wordpress.org/trunk@59818 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-18 03:11:30 +00:00
joedolson
3793daf8ca Administration: Fix color contrast code in .description.
Fix a color contrast failure by changing the color of `code` elements inside form description fields to `#50575e`.

Props sainathpoojary, pmbaldha, sabernhardt, joedolson.
Fixes #63449.
Built from https://develop.svn.wordpress.org/trunk@60481


git-svn-id: http://core.svn.wordpress.org/trunk@59817 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-17 15:39:30 +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
joedolson
2c4fe39c44 General: Add missing closing li in plugin editor.
Adds a missing closing `li` tag in the plugin editor file list.

Props dkarfa, pmbaldha, sandeepdahiya, cikrimcin, westonruter, audrasjb, joedolson.
Fixes #63546.
Built from https://develop.svn.wordpress.org/trunk@60479


git-svn-id: http://core.svn.wordpress.org/trunk@59815 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-17 00:42:43 +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
Sergey Biryukov
6eb679999f Coding Standards: Remove redundant check in wp-admin/nav-menus.php.
The `$add_new_screen` variable is already checked as falsey a few lines above, and is a prerequisite for reaching this code.

Follow-up to [51539].

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


git-svn-id: http://core.svn.wordpress.org/trunk@59776 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-08 13:23:35 +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
johnjamesjacoby
8fa2f85596 Networks and Sites: Add support for file/upload type inputs on the "New Site" screen.
This change allows plugins to add files when creating sites via the network-admin "New Site" form.

* Adds `enctype="multipart/form-data"` to the form in `wp-admin/network/site-new.php`.
* Supports `input type="file"` fields in this form (via the `network_site_new_form` action).

Props johnjamesjacoby, sakibmoon, sirlouen, realloc.

Fixes #62086.
Built from https://develop.svn.wordpress.org/trunk@60398


git-svn-id: http://core.svn.wordpress.org/trunk@59734 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-06-30 19:02:25 +00:00
John Blackbourn
60f3d7ed11 Docs: Documentation and i18n string improvements relating to MySQL and server requirements.
See #63166
Built from https://develop.svn.wordpress.org/trunk@60363


git-svn-id: http://core.svn.wordpress.org/trunk@59699 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-06-29 20:55:36 +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
Sergey Biryukov
dbcc21613d Coding Standards: Remove unnecessary isset() check in wp-admin/post.php.
`wp_die()` is called a few lines earlier if `$post_type_object` is falsey.

Follow-up to [12597], [17169], [24201].

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


git-svn-id: http://core.svn.wordpress.org/trunk@59680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-06-24 12:49:30 +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