20719 Commits

Author SHA1 Message Date
audrasjb
56456e0a1c Bookmarks: Update link_updated when a link is created or updated.
This changeset fixes an issue where the `link_updated` field was not updated in the old Link Manager. When a link was created or updated the `link_updated` field remained `0000-00-00 00:00:00`.

Props lenasterg, audrasjb.
Fixes #56851.


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


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

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

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


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

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


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

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

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


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

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


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


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

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


git-svn-id: http://core.svn.wordpress.org/trunk@59236 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-01 00:29:24 +00:00
Aaron Jorbin
bc60a625bb Site Health: Add a robots.txt check to the server data.
Provide a bit of information about robots.txt to help people understand if the file is generated by WordPress.

Props zodiac1978, audrasjb, joostdevalk, jorbin.
Fixes #56595.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59232 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-28 16:58:38 +00:00
audrasjb
6afbd33612 General: Add missing space before checked attributes in various WP_Screen functions.
Props kkmuffme, audrasjb. 
Fixes #63037.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59231 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-28 15:01:24 +00:00
audrasjb
33952d5069 Themes: Fix inconstancies between theme and plugin editor.
This updates the header area of the theme and plugin file editor screen to make them more consistent. It now displays the name of theme or plugin, the active or inactive state, and the path to the file that is selected.

Props karmatosed, poena, audrasjb.
Fixes #41142.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59226 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-27 23:04:27 +00:00
audrasjb
9d245fd864 Administration: Revert [59705] and bring back the light grey admin background.
This reverts the full-white background update that was committed in [59705] to give it more time for testing and feedback. Let's revisit this proposal later and revert to the good ol’ grey background.

Props afercia, richtabor, karmatosed, johnjamesjacoby, johnbillion, sabernhardt, 
See #62831.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59221 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-27 00:28:24 +00:00
audrasjb
201731789c Comments: Remove bulk action dropdown depending on user caps.
This changeset introduces the `manage_users-network_custom_column` filter that fires for each custom column in the Network Users list table. This is an override hook for `manage_users_custom_column` which was already filtering each custom column in all Users list tables.

Props lenasterg, realloc, audrasjb.
Fixes #43318.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59220 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-27 00:09:23 +00:00
audrasjb
2574278658 Comments: Remove bulk action dropdown depending on user caps.
This changeset adds a conditional to show the comments bulk actions dropdown only when the current user has `moderate_comments` capability.

Props snicco, iflairwebtechnologies, shanemuir, audrasjb.
Fixes #59440.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59219 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-26 23:50:23 +00:00
audrasjb
b0efc2929c Administration: Revert [59709].
This reverts the lighter font-weight update that was committed in [59709] to give it more time for testing and feedback.

Fixes #62865.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59218 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-26 22:55:23 +00:00
audrasjb
00228cf046 Administration: Adjust submenu padding in admin menu.
This changeset adjusts the padding for submenu link groups in the admin menu, ensuring consistent top and bottom padding.

Follow-up to [26072].

Props trushaamin, modi2918, hellofromTonya, peterwilsoncc, sabernhardt, im3dabasia1, audrasjb, karmatosed, dhrumilk.
Fixes #61689.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59217 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-26 21:47:25 +00:00
audrasjb
601df51eb8 Help/About: Replace "Support" with "Support Forums" in import.php help tab.
This brings consistency with other admin screens.

Props Guido07111975, audrasjb, sabernhardt.
Fixes #63016.



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


git-svn-id: http://core.svn.wordpress.org/trunk@59210 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-25 18:34:15 +00:00
John Blackbourn
802523f5d7 Docs: Various improvements to inline documentation.
See #62281
Built from https://develop.svn.wordpress.org/trunk@59865


git-svn-id: http://core.svn.wordpress.org/trunk@59207 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-24 13:43:23 +00:00
John Blackbourn
ecc9f15d4c Docs: Various improvements to inline documentation.
See #62281
Built from https://develop.svn.wordpress.org/trunk@59861


git-svn-id: http://core.svn.wordpress.org/trunk@59203 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-23 11:11:21 +00:00
audrasjb
8240259860 Site Health: Improve HTML semantics for tables used in Site Health debug tab.
This changeset removes the `presentation` role from the Site Health debug tab tables to switch them into regular data tables, and updates the related stylesheet to keep the previously used styles.

Props audrasjb, hbhalodia, rvouill, mukesh27, sabernhardt, joedolson, alexstine.
Fixes #62880.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59201 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-22 12:12:20 +00:00
audrasjb
7f13d32bc2 Site Health: Improve fonts directory check.
This changeset enhances the filesystem checks in the Site Health debug data by addressing the following:
- Existence Check: Before checking if the fonts directory is writable, it first verifies whether the directory exists.
- Improved Messaging: If the fonts directory does not exist, the debug output now reflects this scenario as "Does not exist". If the directory exists, it shows whether it is writable or not.

Props zodiac1978, samiamnot, sainathpoojary, abcd95, ankitkumarshah, im3dabasia1.
Fixes #62633.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59195 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-21 14:52:24 +00:00
audrasjb
54734b4396 Administration: Capitalize "Edit Site" strings for consistency.
This changeset brings more consistency by capitalizing the "Edit Site" strings located in the Toolbar and on the Site Editor screen.

Props bronsonquick, sabernhardt, audrasjb, peterwilsoncc, adamsilverstein.
Fixes #62971.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59192 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-20 23:16:20 +00:00
audrasjb
20c3c4fdff Administration: Capitalize "Collapse Main Menu" aria-label string for better consistency.
Follow-up to [59847].

Props swissspidy.
Fixes #59133.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59191 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-20 21:29:22 +00:00
audrasjb
535cb17cbb Administration: Capitalize "Collapse Menu" string for better consistency.
This changeset brings more consistency by capitalizing the "Collapse Menu" string localted in the main admin menu.

Props alireyad, bijit027, amimulihsanmahdi, csesumonpro.
Fixes #59133.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59189 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-20 15:05:23 +00:00
desrosj
d6db5ff0a8 Coding Standards: Properly space and indent ! defined() checks.
Props viralsampat shailu25, audrasjb.
Fixes #62750.
Built from https://develop.svn.wordpress.org/trunk@59846


git-svn-id: http://core.svn.wordpress.org/trunk@59188 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-20 08:42:28 +00:00
Adam Silverstein
d9e9011369 Media: fix indentation for media.php.
Follow up to r59844.

Props: mukesh27.

See #62900.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59187 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-20 07:24:16 +00:00
Adam Silverstein
da8f997ab6 Media: fix full size image generation for PNG uploads.
Remove a limitation that prevented PNG uploads from generating the full sized image. Fixes a bug where using the image_editor_output_format filter would not generate full sized images as expected. The removed code was present to prevent overly large PNG image output, however this issue was resolved separately in #36477.

Props: adamsilverstein, pixlpirate, flixos90, mukesh27, azaozz.

Fixes #62900.



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


git-svn-id: http://core.svn.wordpress.org/trunk@59186 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-20 06:46:19 +00:00
joedolson
9d1b85ac74 Accessibility: Globally update .screen-reader-text class.
Remove references to the obsolete style property `clip: rect(1px, 1px, 1px, 1px);` and replace or adapt to use `clip-path: inset(50%);`. Update associated `:focus` styles as appropriate. Remove prefixed instances of `-webkit-clip-path`.

Props afercia, hbhalodia, audrasjb, joedolson, sabernhardt. 
Fixes #62238.
Built from https://develop.svn.wordpress.org/trunk@59832


git-svn-id: http://core.svn.wordpress.org/trunk@59174 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-17 17:49:20 +00:00
John Blackbourn
05770e25c3 Security: Switch to using bcrypt for hashing user passwords and BLAKE2b for hashing application passwords and security keys.
Passwords and security keys that were saved in prior versions of WordPress will continue to work. Each user's password will be opportunistically rehashed and resaved when they next subsequently log in using a valid password.

The following new functions have been introduced:

* `wp_password_needs_rehash()`
* `wp_fast_hash()`
* `wp_verify_fast_hash()`

The following new filters have been introduced:

* `password_needs_rehash`
* `wp_hash_password_algorithm`
* `wp_hash_password_options`

Props ayeshrajans, bgermann, dd32, deadduck169, desrosj, haozi, harrym, iandunn, jammycakes, joehoyle, johnbillion, mbijon, mojorob, mslavco, my1xt, nacin, otto42, paragoninitiativeenterprises, paulkevan, rmccue, ryanhellyer, scribu, swalkinshaw, synchro, th23, timothyblynjacobs, tomdxw, westi, xknown.

Additional thanks go to the Roots team, Soatok, Calvin Alkan, and Raphael Ahrens.

Fixes #21022, #44628
Built from https://develop.svn.wordpress.org/trunk@59828


git-svn-id: http://core.svn.wordpress.org/trunk@59170 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-17 11:24:21 +00:00
joedolson
2a72568db4 Customize: Accessibility: Restore heading semantics in sections.
Remove `role="presentation"` from headings in the customizer. These were needed to avoid confusing semantics when the headings also acted as buttons to control accordions, changed in [59924].

Change responsive CSS to use `screen-reader-text` styling rather than `display: none` so that mobile retains the headings hierarchy.

Props joedolson, hbhalodia, mikinc860, guillaumeturpin, rcreators, tirth03, dhrumilk . 
Fixes #62215.
Built from https://develop.svn.wordpress.org/trunk@59825


git-svn-id: http://core.svn.wordpress.org/trunk@59167 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-14 20:34:21 +00:00
joedolson
1a94942585 Themes: Allow use of sidebar submenus when theme details open.
Increase the z-index of sidebar submenus in the theme browser screens so that submenus are not placed behind the theme details overlay. Also set a min-height to ensure the overlay covers the entire screen if content is short.

Props codexdemon, amolebonde, yahil, girishpanchal, chintanmachhi207, mp518, janak007, worldweb, ralessio, sabernhardt, boogah, mikinc860, adamsilverstein, subrataemfluence, huzaifaalmesbah, lakshmananphp, amin7, imranhasanraaz, mdibrahimk48. 
Fixes #41155.
Built from https://develop.svn.wordpress.org/trunk@59821


git-svn-id: http://core.svn.wordpress.org/trunk@59163 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-13 23:52:17 +00:00
audrasjb
737185823f Themes: Avoid double hashed value for background-color in custom backgrounds.
This changeset replaces the hardcoded hash symbol with running `maybe_hash_hex_color()` on the full `background-color` value provided via the custom background feature, so the hash is only added if it is needed. By doing so, if a theme developer sets a background color value that uses a hash (#), WordPress won't add an additional hash anymore when outputting the relevant CSS. Duplicate hash symbols (##) can break CSS background color declarations.

Props hovhanneshovakimyan, joyously, poena, 
Fixes #40057.



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


git-svn-id: http://core.svn.wordpress.org/trunk@59155 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-11 21:06:25 +00:00
davidbaumwald
40d50ca185 General: Remove duplicate type="button" attribute from the "Change|Choose Site Icon" button.
Introduced in [57602].

Props kkmuffme, audrasjb.
Fixes #62942.
Built from https://develop.svn.wordpress.org/trunk@59806


git-svn-id: http://core.svn.wordpress.org/trunk@59148 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-11 15:57:21 +00:00
John Blackbourn
bb832dcfef Security: Explicitly require the hash PHP extension and add requirement checks during installation and upgrade.
This extension provides the `hash()` function and support for the SHA-256 algorithm, both of which are required for upcoming security related changes. This extension is almost universally enabled, however it is technically possible to disable it on PHP 7.2 and 7.3, hence the introduction of this requirement and the corresponding requirement checks prior to installing or upgrading WordPress.

Props peterwilsoncc, ayeshrajans, dd32, SergeyBiryukov, johnbillion.

Fixes #60638, #62815, #56017

See #21022
Built from https://develop.svn.wordpress.org/trunk@59803


git-svn-id: http://core.svn.wordpress.org/trunk@59145 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-11 11:14:21 +00:00
John Blackbourn
0ac2a96887 Administration: Correct the capitalisation of "site administrator" for consistency with other instances within WordPress.
Follow-up to [59799].

Props ocean90

Fixes #48879
Built from https://develop.svn.wordpress.org/trunk@59800


git-svn-id: http://core.svn.wordpress.org/trunk@59142 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-10 17:06:23 +00:00
John Blackbourn
e1c2d3f420 Administration: Remove a potentially incorrect addressee and improve the phrasing used in the confirmation email when a user attempts to change the administration email address.
Props MadtownLems, ilovecats7, rehanali, iflairwebtechnologies, thehercules

Fixes #48879
Built from https://develop.svn.wordpress.org/trunk@59799


git-svn-id: http://core.svn.wordpress.org/trunk@59141 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-10 15:31:22 +00:00
John Blackbourn
cf4686e4b6 Cron API: Clear the recovery_mode_clean_expired_keys cron event when converting a single site installation to Multisite.
This cron event is not used when Multisite is in use.

Props debarghyabanerjee, johnbillion, narenin

Fixes #61450
Built from https://develop.svn.wordpress.org/trunk@59798


git-svn-id: http://core.svn.wordpress.org/trunk@59140 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-10 15:01:23 +00:00
Peter Wilson
096c95390c Editor: Preload Global Styles REST requests based on user permissions.
For the Post Editor, preload '/wp/v2/global-styles/' . $global_styles_id with a context corresponding to user caps, that is, 'edit' for users that can edit global styles, and 'view' for everyone else.

Preloading the global styles endpoint according to role context means that admins and non admins, e.g., editors, avoid unnecessary client side requests.

Props ramonopoly.
Fixes #62322.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59137 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-10 03:56:23 +00:00
Peter Wilson
e92abc0735 Site Editor: Redirect deprecated URLs to path based routing.
The site editor now uses path based routing rather than query string arguments. This redirects the legacy query string URLs to the new routing.

Props youknowriad, peterwilsoncc, joemcgill, mukesh27, poena.
Fixes #62585.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59136 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-10 02:40:23 +00:00
audrasjb
c5293a0be9 Administration: Error messages improvements in WP Admin.
This changeset improves a bunch of WP-Admin error messages, notably replacing the good old cryptic "Something went wrong" message with more helpful information.

Props peterwilsoncc, netweb, karmatosed, JoshuaWold, mrtortai, audrasjb, sukhendu2002, joedolson.
See #43622.



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


git-svn-id: http://core.svn.wordpress.org/trunk@59131 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-08 15:53:17 +00:00
audrasjb
1498d000ba Administration: Replace "Add New {Item}" wording with "Add {Item}" across the administration.
This changeset replaces each occurrence of "Add New {Item}" label with "Add {Item}" in WordPress administration, to make the interface more consistent and simplify the translation effort.

Props jameskoster, audrasjb, ntsekouras, afercia, peterwilsoncc, youknowriad, joedolson, sukhendu2002, jdy68, beryldlg, fxbenard.
See #61219.



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


git-svn-id: http://core.svn.wordpress.org/trunk@59126 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-08 11:44:24 +00:00
Joe McGill
c7db6678d7 Post Thumbnails: Fix squashed featured image in wp-admin.
This updates the CSS for featured images in the classic editor that caused images to look skewed when auto-sizes are enabled.

Props maciejmackowiak, sainathpoojary, mukesh27, joemcgill.
Fixes #62597.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59115 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-07 14:36:23 +00:00
joedolson
dd3d84dfbc General: Add styles for extender usage of do_accordion_section().
Follow up to [59224]. Add CSS to cover usage of the `do_accordion_section()` function when used in extender contexts outside of the existing WordPress core usage.

Props mboynes, jorbin, joemcgill, joedolson. 
Fixes #62907.
Built from https://develop.svn.wordpress.org/trunk@59772


git-svn-id: http://core.svn.wordpress.org/trunk@59114 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-06 22:26:24 +00:00
desrosj
1da5ba567f Build/Test Tools: Configure UglifyJS to preserve previous behavior.
As of UglifyJS >= 3.18.0, the default behavior is to process input as an ES module. This updates the relevant configurations to ensure the build process continues to use the previous behavior to avoid JavaScript errors in the minified versions of files.

Follow up to [58563], [58586], and [59509].

Props siliconforks, nataliat2004, poena, mai21, SergeyBiryukov.
Fixes #62767. See #61519, #62220.
Built from https://develop.svn.wordpress.org/trunk@59768


git-svn-id: http://core.svn.wordpress.org/trunk@59110 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-06 17:27:26 +00:00
Sergey Biryukov
f548f56548 Coding Standards: Use strict comparison in media_upload_library_form().
Includes bringing some consistency with a similar fragment in `WP_List_Table::months_dropdown()`.

Follow-up to [3724], [7062], [15491], [59755].

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


git-svn-id: http://core.svn.wordpress.org/trunk@59109 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-06 12:24:24 +00:00
Sergey Biryukov
6e0285406d Coding Standards: Use a more meaningful variable name in WP_List_Table::months_dropdown().
As 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 [8646], [15491].

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


git-svn-id: http://core.svn.wordpress.org/trunk@59097 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-03 23:43:21 +00:00
John Blackbourn
b765f8b44c Security: Add the SensitiveParameter attribute to sensitive parameters.
Values passed to parameters with this attribute will be redacted if present in a stack trace when using PHP 8.2 or later. This reduces the chance that passwords and security keys get accidentally exposed in debug logs and bug reports.

Props petitphp, TobiasBg, jrf, johnbillion.

Fixes #57304
Built from https://develop.svn.wordpress.org/trunk@59754


git-svn-id: http://core.svn.wordpress.org/trunk@59096 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-03 19:52:24 +00:00
Sergey Biryukov
d78ac132af Coding Standards: Use strict comparison in get_media_item().
Follow-up to [12081], [12351].

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


git-svn-id: http://core.svn.wordpress.org/trunk@59093 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-02 11:17:24 +00:00
Sergey Biryukov
6e26ca2648 Coding Standards: Use strict comparison in some legacy media functions.
Follow-up to [7062], [8653], [12188].

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


git-svn-id: http://core.svn.wordpress.org/trunk@59092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-01 20:52:19 +00:00
joedolson
2b1dffc900 Administration: Fix undefined element JS error in pagination handler.
Follow up to [59727]. Handle cases where the `#current-page-selector` is not present on the page to prevent a JS warning.

Props tobiasbg, mamaduka, jorbin, joedolson. 
See #62534.
Built from https://develop.svn.wordpress.org/trunk@59746


git-svn-id: http://core.svn.wordpress.org/trunk@59088 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-30 23:38:23 +00:00
audrasjb
34458b5bca Coding standards: Remove unused variables from privacy_policy_guide() function.
See #62279.



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


git-svn-id: http://core.svn.wordpress.org/trunk@59075 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-29 21:54:23 +00:00