Commit Graph

50515 Commits

Author SHA1 Message Date
desrosj 2e64ee9f0d Administration: Modernize admin color scheme SASS files.
This updates the admin color scheme `.sass` files to address some deprecated notices caused by upstream changes.

- `string` and `colors` are no longer globally available functions.
- `@import` is deprecated in favor of `@use`.

There are still a few notices that are output, however this will require an update to the `grunt-sass` package to resolve.

Props MattyRob.
Fixes #62323.
Built from https://develop.svn.wordpress.org/trunk@59656


git-svn-id: http://core.svn.wordpress.org/trunk@58999 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-16 21:05:33 +00:00
desrosj 3ed22fda3a Build/Test Tools: Add input for disabling AppArmor.
Old branches requiring outdated versions of Chromium to run JavaScript tests have recently started failing as a result of the `ubuntu-latest` container being updated to point to `ubuntu-24`.

This introduces a new input to the reusable JavaScript testing workflow to allow a fix to be used without having to update Chromium or tests in these branches.

Props swissspidy.
See #62808.
Built from https://develop.svn.wordpress.org/trunk@59635


git-svn-id: http://core.svn.wordpress.org/trunk@58998 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-16 20:21:23 +00:00
Sergey Biryukov 201d79b06e Upload: Remove redundant check for `ABSPATH` in `wp-admin/async-upload.php`.
This aims to bring consistency with a similar fragment in other files, since relocating `wp-admin` or `wp-load.php` is not supported at this time.

Follow-up to [6659], [7971], [8315].

Props hussain896, swissspidy, knutsp, SergeyBiryukov.
Fixes #62809.
Built from https://develop.svn.wordpress.org/trunk@59634


git-svn-id: http://core.svn.wordpress.org/trunk@58997 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-16 16:18:24 +00:00
John Blackbourn 3579e69fe2 Users: Retain the current session when a user changes their password.
Prior to this change a new session was unnecessarily created when a user changed their own password.

Existing authentication cookies for the user will still be invalidated regardless of whether they share the same session token because session cookie keys contain a substring of the password hash.

Props snicco, narenin, johnbillion

Fixes #61366

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


git-svn-id: http://core.svn.wordpress.org/trunk@58996 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-16 15:35:27 +00:00
Sergey Biryukov 5765a2eb1b Coding Standards: Use strict comparison in `wp_xmlrpc_server::_multisite_getUsersBlogs()`.
Follow-up to [https://mu.trac.wordpress.org/changeset/1218 mu:1218], [12852].

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


git-svn-id: http://core.svn.wordpress.org/trunk@58995 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-16 12:04:23 +00:00
Peter Wilson 5351aabea8 Options/Meta APIs: Optimize cache hits for non-existent options.
Optimize the order of checking the various options caches in `get_option()` to prevent hitting external caches each time it is called for a known non-existent option.

The caches are checked in the following order when getting an option:

1. Check the `alloptions` cache first to prioritize existing loaded options.
2. Check the `notoptions` cache before a cache lookup or DB hit.
3. Check the `options` cache prior to a DB hit.

Follow up to [56595].

Props adamsilverstein, flixos90, ivankristianto, joemcgill, rmccue, siliconforks, spacedmonkey.
Fixes #62692.
See #58277.

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


git-svn-id: http://core.svn.wordpress.org/trunk@58994 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-15 22:13:24 +00:00
Felix Arntz b742570d1b REST API: Fix PHP warning about undefined `paged` argument in various REST API endpoints.
This bug could occur in `WP_REST_Posts_Controller`, `WP_REST_Global_Styles_Revisions_Controller`, `WP_REST_Revisions_Controller`, and any of their child classes. This changeset fixes it throughout.

Props apermo, pbearne, hemant-ahir, flixos90.
Fixes #62292.

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


git-svn-id: http://core.svn.wordpress.org/trunk@58993 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-15 18:36:24 +00:00
Pascal Birchler 8e649f1a2e Undo accidental `svn:mergeinfo` property change in [59605].
See #61970.

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


git-svn-id: http://core.svn.wordpress.org/trunk@58992 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-15 12:55:16 +00:00
Sergey Biryukov b01086811d Coding Standards: Use strict comparison in `paginate_links()`.
Follow-up to [4275], [28785].

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


git-svn-id: http://core.svn.wordpress.org/trunk@58991 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-15 12:52:17 +00:00
Pascal Birchler 7dcc7f8d32 REST API: Improve autosave and revision endpoints for templates and template parts.
Fixes those endpoints for file-based templates and template parts, as templates based on theme files can't be revisioned or autosaved.

Props antonvlasenko, swissspidy, spacedmonkey, kadamwhite.
Fixes #61970.
Built from https://develop.svn.wordpress.org/trunk@59605


git-svn-id: http://core.svn.wordpress.org/trunk@58990 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-15 12:46:25 +00:00
Sergey Biryukov 5372b3ffa2 Tests: Restore the environment before performing assertions in `download_url()` tests.
This aims to avoid affecting other tests in case of failure.

Follow-up to [42773], [51939].

See #62280.
Built from https://develop.svn.wordpress.org/trunk@59604


git-svn-id: http://core.svn.wordpress.org/trunk@58989 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-14 15:37:31 +00:00
John Blackbourn 7c245831e8 Docs: Correct a translator comment that was added in [59578].
See #62005

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


git-svn-id: http://core.svn.wordpress.org/trunk@58988 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-14 11:38:24 +00:00
Sergey Biryukov 08ffc54083 Docs: Correct `@return` value for `update_attached_file()`.
Follow-up to [4612], [21967], [24490], [47611], [48214].

Props arnoutblueshell, karthickmurugan, SergeyBiryukov.
Fixes #62803.
Built from https://develop.svn.wordpress.org/trunk@59602


git-svn-id: http://core.svn.wordpress.org/trunk@58987 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-13 22:22:25 +00:00
desrosj 6658e0eb76 Coding Standards: Add missing space for self-closing tags.
Props laxman-prajapati, sabernhardt.
Fixes #62799.
Built from https://develop.svn.wordpress.org/trunk@59600


git-svn-id: http://core.svn.wordpress.org/trunk@58986 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-13 14:57:23 +00:00
Sergey Biryukov 6f097ada4b Coding Standards: Use strict comparison in `get_page_by_path()`.
Follow-up to [3511], [18541], [19075], [21845].

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


git-svn-id: http://core.svn.wordpress.org/trunk@58985 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-12 18:14:23 +00:00
Pascal Birchler b9a1723711 Embeds: Add Canva to oEmbed provider allowlist.
Props swissspidy.
Fixes #58840.
Built from https://develop.svn.wordpress.org/trunk@59598


git-svn-id: http://core.svn.wordpress.org/trunk@58984 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-11 13:44:25 +00:00
Sergey Biryukov c38d71bcc0 Coding Standards: Use strict comparison in `wp_check_post_hierarchy_for_loops()`.
Follow-up to [10129], [15806].

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


git-svn-id: http://core.svn.wordpress.org/trunk@58983 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-11 00:37:24 +00:00
Sergey Biryukov b273bbf538 Coding Standards: Use strict comparison in `get_posts_by_author_sql()`.
Follow-up to [13576], [25669].

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


git-svn-id: http://core.svn.wordpress.org/trunk@58982 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-10 18:14:23 +00:00
Sergey Biryukov 504d02539f Login and Registration: Check that the `$_POST` values are strings in `wp_signon()`.
This prevents a fatal error from `trim()` via `wp_authenticate()` if an array is passed instead.

Follow-up to [6643], [58093].

Props leedxw, audrasjb, SergeyBiryukov.
Fixes #62794.
Built from https://develop.svn.wordpress.org/trunk@59595


git-svn-id: http://core.svn.wordpress.org/trunk@58981 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-09 19:43:23 +00:00
poena 0086f4ba40 Twenty Twenty: Correct the font weight of the quote block in the editor.
This change removes the font weight of the paragraph inside the quote block,
so that the design in the editor and the front looks the same.

Props sainathpoojary, ankitkumarshah, sabernhardt, krupajnanda.
Fixes #62753.
Built from https://develop.svn.wordpress.org/trunk@59594


git-svn-id: http://core.svn.wordpress.org/trunk@58980 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-09 09:23:23 +00:00
Sergey Biryukov 19d5011bff Coding Standards: Use strict comparison in `wp_check_for_changed_dates()`.
Follow-up to [42401].

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


git-svn-id: http://core.svn.wordpress.org/trunk@58979 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-08 17:48:21 +00:00
Pascal Birchler c90837121a I18N: Mail: Make PHPMailer messages translatable.
Adds a new `WP_PHPMailer` class to leverage the WordPress i18n system with PHPMailer, so that any user-visible error messages can be properly translated.

Props sukhendu2002, swissspidy, audrasjb, iandunn, nacin, mark-k.
Fixes #23311.
Built from https://develop.svn.wordpress.org/trunk@59592


git-svn-id: http://core.svn.wordpress.org/trunk@58978 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-08 12:54:18 +00:00
Pascal Birchler 1dc1f32ed8 I18N: Update `theme.json` i18n schema with latest changes from Gutenberg.
Makes shadow, duotone and aspect ratio names properly translatable.

Props dalleyne, audrasjb, oandregal, swissspidy.
Fixes #62728.
Built from https://develop.svn.wordpress.org/trunk@59591


git-svn-id: http://core.svn.wordpress.org/trunk@58977 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-08 12:36:23 +00:00
Adam Silverstein 107716bf6c Media: improve error messages for unsupported uploads.
Improve language explaining the reason for failure when uploading a modern image format like WebP or AVIF that the server doesn’t handle.

Props adamsilverstein, Cybr.
Fixes #61361.


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


git-svn-id: http://core.svn.wordpress.org/trunk@58976 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-07 22:53:22 +00:00
Adam Silverstein 69b48e2e80 Media: improve Imagick handling of colors and alpha channel for PNG image uploads.
Fix an issue where index color (8 bit) PNG uploads were output as true color (24 bit) PNGs, significantly increasing their size.  When using Imagick, PNG output images will now match the colors of the uploaded image.

Also, correct handling of PNG alpha channel information so it is preserved in output images.

Props adamsilverstein, pbearne, nosilver4u, peterdavehello, joemcgill, azaozz, codex-m, kirasong, justlevine, jokanane, sallyruchman, wpfed, tgsrvrs, antpb, tb1909.
Fixes #36477.


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


git-svn-id: http://core.svn.wordpress.org/trunk@58975 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-07 22:35:23 +00:00
Adam Silverstein 065f1ef453 Media: enable high bit depth resized image output with Imagick.
Fix an issue where uploaded HDR images were resized and output as SDR and thus significantly degraded from the original. When using Imagick, output images will now match the bit depth of the uploaded image.

Add a new filter ‘image_max_bit_depth’ which developers can use to control the maximum bit depth for resized images.

Props adamsilverstein, kirasong, gregbenz, apermo.
Fixes #62285.


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


git-svn-id: http://core.svn.wordpress.org/trunk@58974 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-07 21:06:24 +00:00
desrosj 34b761063c Build/Test Tools: Expand and improve MariaDB test matrix.
The latest LTS version of MariaDB is 11.4, which is now included in the test matrix.

This changeset also expands the test matrix to include all LTS versions of MariaDB with > 1% of usage on WordPress sites in the wild as reported by the stats page on WordPress.org. Though a few of these are unsupported upstream, they are still supported in WordPress itself.

MariaDB 5.5 is also included in the new matrix. Because it was intended as a drop-in replacement to MySQL at the time, this also brings some MySQL 5.5 testing into the matrix. This has not been regularly tested against since specific database versions were included due to the lack of a working Docker container.

Props johnbillion, jorbin.
See #62221.
Built from https://develop.svn.wordpress.org/trunk@59587


git-svn-id: http://core.svn.wordpress.org/trunk@58973 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-07 16:15:22 +00:00
desrosj 177e5b6559 Build/Test Tools: Test MariaDB innovation releases.
MariaDB also follows the innovation release model. This adds testing for these releases to the test matrix and moves innovation versions to a new job in order to more clearly differentiate from LTS ones.

The current innovation release for MariaDB is `11.6`.

Props johnbillion, jorbin.
See #62221.
Built from https://develop.svn.wordpress.org/trunk@59586


git-svn-id: http://core.svn.wordpress.org/trunk@58972 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-07 15:59:21 +00:00
desrosj 045d089bae Build/Test Tools: Test against MySQL 9.1.
This is the latest innovation release from MySQL.

Props johnbillion, jorbin.
See #62221.
Built from https://develop.svn.wordpress.org/trunk@59585


git-svn-id: http://core.svn.wordpress.org/trunk@58971 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-07 15:53:20 +00:00
Sergey Biryukov 70b6f54551 Coding Standards: Use strict comparison in `wp_check_for_changed_slugs()`.
Follow-up to [4556], [4637], [34685].

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


git-svn-id: http://core.svn.wordpress.org/trunk@58970 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-07 15:48:20 +00:00
desrosj 6f4f3aa934 Tests: Fix `explode()` error for old DB versions on PHP 8.1+.
On MySQL/MariaDB 5.5, the default value for `sql_mode` was a blank string. By itself this is not a problem. However, `$wpdb->get_var()` returns `null` when a variable has an empty value.

One test method currently passes the result of `$wpdb->get_var( 'SELECT @@SESSION.sql_mode;' )` to `explode()` in order to reset the database to the pre-test method state. This causes an error when running PHP 8.1+, which deprecated the ability to pass `null` as a parameter of `explode()`.

This edge case was undiscovered because these versions are not currently included in the automated testing matrix.

See #62280.
Built from https://develop.svn.wordpress.org/trunk@59583


git-svn-id: http://core.svn.wordpress.org/trunk@58969 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-07 15:42:25 +00:00
Felix Arntz cfee5c0868 Build/Test Tools: Fix incorrect commit time being reported to WordPress Code Vitals Dashboard.
2nd attempt of [59570].

Props mukesh27, ayeshrajans, swissspidy, desrosj.
Fixes #62766.

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


git-svn-id: http://core.svn.wordpress.org/trunk@58968 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-06 21:21:24 +00:00
ryelle 24fcd34673 Help/About: Allow "See everything new" button to wrap
On some screen sizes and languages, the "See everything new" button expands out of the content area. This change allows the button to wrap at all screen sizes, and updates the style of this button for wrapped text.

Props franciscabusas22, sabernhardt, yogeshbhutka, sainathpoojary, im3dabasia1, audrasjb.
Fixes #62380.


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


git-svn-id: http://core.svn.wordpress.org/trunk@58966 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-06 16:20:23 +00:00
Sergey Biryukov fe90ec9f08 Tests: Improve the test for the copyright year in bundled themes' `readme.txt`.
This aims to catch entries like `(C) 2024 WordPress.org` in addition to `Copyright 2024 WordPress.org`.

Includes converting the test to use a data provider, so that messages could be displayed for each individual theme.

Follow-up to [46719], [59569].

See #62280.
Built from https://develop.svn.wordpress.org/trunk@59579


git-svn-id: http://core.svn.wordpress.org/trunk@58965 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-06 16:00:24 +00:00
John Blackbourn 0fc42c6443 Security: Enhance the `wp_hash()` function to support custom hashing algorithms.
The default algorithm remains as md5, but this change allows any algorithm that's supported by `hash_hmac()` to be used instead.

Props pushpenderindia, ayeshrajans, debarghyabanerjee, johnbillion

Fixes #62005

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


git-svn-id: http://core.svn.wordpress.org/trunk@58964 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-06 15:23:26 +00:00
Pascal Birchler 657321d1ba Build/Test Tools: Expand performance tests setup.
Run tests against Multisite (possible since [58097]) and on single post pages. Also improve cache flushes/resets between iterations.

Props swissspidy, flixos90, desrosj, mukesh27.
Fixes #62725.
Built from https://develop.svn.wordpress.org/trunk@59577


git-svn-id: http://core.svn.wordpress.org/trunk@58963 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-06 10:31:23 +00:00
Peter Wilson 62e8c2f986 Comments: Noindex pages containing unapproved comments.
Adds a `noindex` directive to pages displaying a preview of an unapproved comment, ie pages with both an `approved` and `moderation-hash` parameter.

This is to prevent the pages from appearing in search engines which can be the case if they ignore the canonical URL directive.

Props peterwilsoncc, flixos90, joostdevalk.
Fixes #62760.

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


git-svn-id: http://core.svn.wordpress.org/trunk@58962 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-05 22:14:19 +00:00
Sergey Biryukov e86f173f45 Coding Standards: Use strict comparison in `get_pages()`.
Follow-up to [4180], [49108].

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


git-svn-id: http://core.svn.wordpress.org/trunk@58961 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-05 22:12:24 +00:00
Sergey Biryukov aa87f88678 Coding Standards: Replace loose comparison in `wpmu_welcome_notification()`.
Follow-up to [https://mu.trac.wordpress.org/changeset/543 mu:543].

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


git-svn-id: http://core.svn.wordpress.org/trunk@58960 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-04 10:27:21 +00:00
Sergey Biryukov 43380703cb Coding Standards: Use strict comparison in `wpmu_validate_blog_signup()`.
Follow-up to [https://mu.trac.wordpress.org/changeset/8 mu:8], [https://mu.trac.wordpress.org/changeset/543 mu:543],  [https://mu.trac.wordpress.org/changeset/550 mu:550], [https://mu.trac.wordpress.org/changeset/1364 mu:1364], [https://mu.trac.wordpress.org/changeset/1958 mu:1958], [12603], [32733].

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


git-svn-id: http://core.svn.wordpress.org/trunk@58959 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-03 22:57:22 +00:00
Sergey Biryukov 1ea8475be2 Coding Standards: Use strict comparison in `_reset_front_page_settings_for_post()`.
Follow-up to [6337], [25686].

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


git-svn-id: http://core.svn.wordpress.org/trunk@58958 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-02 18:27:23 +00:00
Felix Arntz bb1d172850 Build/Test Tools: Revert [59570].
The fix did not work properly and is causing performance data for commits to not be sent at all. It is therefore reverted until a proper solution has been implemented.

See #62766.

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


git-svn-id: http://core.svn.wordpress.org/trunk@58957 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-02 16:41:18 +00:00
Felix Arntz 39bd3d038d Build/Test Tools: Fix incorrect commit time being reported to WordPress Code Vitals Dashboard.
Props mukesh27, ayeshrajans.
Fixes #62766.

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


git-svn-id: http://core.svn.wordpress.org/trunk@58956 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-02 16:13:21 +00:00
Peter Wilson 5247f68e15 Happy New Year Twenty Twenty-Five! 🎄
Update copyright year to 2025 in the Twenty Twenty-Five bundled theme's `readme.txt`.

Follow-up to [18201], [23306], [28064], [36855], [36856], [39659], [40241], [42424], [46719], [46720], [47025], [47026], [49915], [52427], [55024], [57235], [59568].


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


git-svn-id: http://core.svn.wordpress.org/trunk@58955 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-02 01:08:22 +00:00
Sergey Biryukov 275d202ae3 Happy New Year! 🎄
Update copyright year to 2025 in `license.txt` and bundled themes.

Follow-up to [18201], [23306], [28064], [36855], [36856], [39659], [40241], [42424], [46719], [46720], [47025], [47026], [49915], [52427], [55024], [57235]. 
Built from https://develop.svn.wordpress.org/trunk@59568


git-svn-id: http://core.svn.wordpress.org/trunk@58954 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-01 00:12:24 +00:00
Sergey Biryukov 53704a95ce Coding Standards: Use strict comparison in `wp_count_attachments()`.
Follow-up to [54255].

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


git-svn-id: http://core.svn.wordpress.org/trunk@58953 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-31 19:19:25 +00:00
Sergey Biryukov 54aeb1d515 Coding Standards: Use strict comparison in `get_post_ancestors()`.
Follow-up to [7074], [15758], [21559], [21953].

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


git-svn-id: http://core.svn.wordpress.org/trunk@58952 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-30 09:32:20 +00:00
Sergey Biryukov b8fa6385d0 Coding Standards: Use strict comparison in `sanitize_post()`.
Follow-up to [12062].

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


git-svn-id: http://core.svn.wordpress.org/trunk@58951 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-29 21:54:22 +00:00
Sergey Biryukov 8166540e32 Options, Meta APIs: Ensure `after_section` is printed for sections without any fields.
This brings consistency with the `before_section` HTML content, which did get printed in `do_settings_sections()` regardless of whether the settings section has any fields attached.

Follow-up to [8855], [21742], [54247].

Props alpipego, SergeyBiryukov.
Fixes #62746.
Built from https://develop.svn.wordpress.org/trunk@59564


git-svn-id: http://core.svn.wordpress.org/trunk@58950 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-28 22:10:20 +00:00
Sergey Biryukov 233cf19ea7 Coding Standards: Use strict comparison in `is_user_spammy()`.
Follow-up to [https://mu.trac.wordpress.org/changeset/1640 mu:1640].

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


git-svn-id: http://core.svn.wordpress.org/trunk@58949 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-27 23:02:24 +00:00