Commit Graph

50913 Commits

Author SHA1 Message Date
Sergey Biryukov
24d315efb3 Coding Standards: Check for an empty mail server URL first in wp-mail.php.
This follows a common best practice of checking for an empty value before doing a specific comparison.

Follow-up to [39772].

Props dilipbheda, mukesh27.
Fixes #63219.
Built from https://develop.svn.wordpress.org/trunk@60122


git-svn-id: http://core.svn.wordpress.org/trunk@59458 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-02 22:25:26 +00:00
Sergey Biryukov
a929a47c76 Docs: Correct the type of the $name parameter in get_template_part action.
The value cannot be `null` at this point, as it is converted to a string a few lines above.

Follow-up to [45059], [55870], [60120].

See #63215, #63166.
Built from https://develop.svn.wordpress.org/trunk@60121


git-svn-id: http://core.svn.wordpress.org/trunk@59457 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-02 21:58:33 +00:00
audrasjb
67b017d42e Docs: Update inline docs for various general template functions.
Props dilipbheda, mukesh27.
Fixes #63215.
See #63166.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59456 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-02 12:59:30 +00:00
Sergey Biryukov
6f969c6c79 Docs: Correct documentation for current_time(), date_i18n(), and wp_date().
Includes:
* Standardizing on the `bool` type for the `$gmt` parameter between `current_time()` and `date_i18n()`.
* Documenting `null` as an acceptable value for `$timestamp` and `$timezone` parameters in `wp_date()`.
* Removing a redundant note on the `$gmt` parameter for the `date_i18n` filter, as defaults are normally only documented for function parameters.

Follow-up to [1001], [9616], [28109], [45901].

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


git-svn-id: http://core.svn.wordpress.org/trunk@59455 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-01 16:43:28 +00:00
audrasjb
c62cd5407a Editor: Update packages for 6.8 RC 2.
Syncs @wordpress/* packages to the 'wp-6.8' npm tag.

Props mamaduka.
See #62887.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59450 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-01 12:11:49 +00:00
Joe McGill
80179ef9e9 General: Improve unit tests for wp_unique_id_from_values().
This is a follow-up to [60038], which updates the PHPUnit tests to account for different systems producing potentially different hashes due to platform specific floating point precision settings.

Props debarghyabanerjee, joemcgill, peterwilsoncc, siliconforks.
Fixes #63175.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59449 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-01 01:33:28 +00:00
Sergey Biryukov
b84ebedffe Docs: Merge file-level and class-level DocBlocks in wp_get_canonical_url() test file.
Per the [https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#6-file-headers documentation standards], whenever possible, all WordPress files should contain a header DocBlock, regardless of the file’s contents – this includes files containing classes.

However, this recommendation makes less sense for unit test classes if not applied consistently, and the duplicate tags cause some confusion.

This commit aims to reduce confusion and avoid repeating information by combining the DocBlocks.

Includes using third-person singular verbs in test method descriptions, as per the documentation standards.

Follow-up to [55337], [60108], [60109].

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


git-svn-id: http://core.svn.wordpress.org/trunk@59448 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-31 21:23:28 +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
desrosj
66b5e3d5f9 Build/Test Tools: Account for Core-{n} ticket references.
This expands the pull request cleanup action to also account for the `Core-{n}` pattern. This pattern dynamically links to Trac tickets without having to explicitly provide the ticket URL and are not detected in the current workflow logic.

Props yogeshbhutkar, johnbillion.
Fixes #63081.
Built from https://develop.svn.wordpress.org/trunk@60110


git-svn-id: http://core.svn.wordpress.org/trunk@59446 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-31 12:23:28 +00:00
audrasjb
61b115f4b8 Docs: Remove an unwanted trailing space found after [60108].
Follow-up to [60108].

See #63041, #63166.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59445 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-30 23:39:20 +00:00
audrasjb
925f549cb1 Canonical: Use get_post_status() to determine whether the post has a publish post status in wp_get_canonical_url().
This changeset fixes an issue where `wp_get_canonical_url()` always returned `false` for attachments. Attachments have a `inherit` post status rather than `publish`. The `wp_get_canonical_url()` function was directly checking `$post->post_status === 'publish'`, causing it to always return `false` for attachments. Using `get_post_status()` fixes the issue as if the post is an attachment, then the parent post status will be given instead.

Follow-up to [37685].

Props othernoel, ankitkumarshah, SirLouen, 
Fixes #63041.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59444 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-30 23:34:27 +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
64bcfc76d0 Coding Standards: Use $wpdb::prepare() in wp-admin/maint/repair.php.
Follow-up to [11902], [12092], [13224], [13229].

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


git-svn-id: http://core.svn.wordpress.org/trunk@59442 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-29 12:00:31 +00:00
audrasjb
8eac4b5b0b REST API: Properly capitalize "REST" in translation strings.
Props tobifjellner, sabernhardt, abcd95.
Fixes #63193.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59440 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-28 21:04:33 +00:00
Sergey Biryukov
6c67cb8408 Coding Standards: Move $wp_db_version declaration to the top of wp-admin/network/upgrade.php.
Includes removing a duplicate DocBlock.

Follow-up to [12603], [25191], [60095].

See #63168.
Built from https://develop.svn.wordpress.org/trunk@60103


git-svn-id: http://core.svn.wordpress.org/trunk@59439 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-28 16:30:27 +00:00
audrasjb
8def2a9414 Media: Fix incorrect label for "Add Media" button on the Edit Media screen.
This changeset fixes an issue where the button label for adding a new media was "Add Post".

Props ffffelix.
Fixes #63189.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59438 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-28 11:25:33 +00:00
Sergey Biryukov
a645d169b2 Coding Standards: Remove a one-time $sql variable in Edit Site form.
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@60101


git-svn-id: http://core.svn.wordpress.org/trunk@59437 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-27 12:36:30 +00:00
Peter Wilson
55c716f4b0 Build/Test Tools: Expand tests of paginate_links' format parameter.
Introduces additional tests for custom formatted pagination links to include:

- plain permalinks
- html file extensions
- hyphen separated links
- URL fragments

See #63167.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59436 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-26 23:33:31 +00:00
audrasjb
51d459d082 Administration: Replace missed reference of "Add New" in WP_taxonomy class.
Follow-up to [59784], [59786], [59791].

Props timse201, audrasjb.
Fixes #61219.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59434 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-26 21:42:27 +00:00
desrosj
c6b1c9cc10 Build/Test Tools: Adjust how the 6.8 branch is included in matrices.
Because 6.8 is not yet officially released, `6.8` cannot be used in a test matrix.

This removes 6.8 from the Upgrade Testing workflow and changes the value used for the Upgrade Develop Version Testing workflow to `6.8-RC1` to confirm that updating from `6.8-RC1` to `trunk` (which is now `6.9-alpha`) is successful.

Follow-up to [60093].

Props mukesh27.
See #63164.
Built from https://develop.svn.wordpress.org/trunk@60097


git-svn-id: http://core.svn.wordpress.org/trunk@59433 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-26 13:12:34 +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
audrasjb
fb8750996e Coding Standards: Add missing global variable docblock in /wp-admin/network/upgrade.php.
Props upadalavipul.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59431 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-26 08:39:30 +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
desrosj
c04ed74c30 Post 6.8 branching version update.
Trunk is now `6.9-alpha`

Fixes #63164.
Built from https://develop.svn.wordpress.org/trunk@60093


git-svn-id: http://core.svn.wordpress.org/trunk@59429 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 16:43:25 +00:00
audrasjb
67631199b5 Post WordPress 6.8 RC1 version bump.
Built from https://develop.svn.wordpress.org/trunk@60090


git-svn-id: http://core.svn.wordpress.org/trunk@59426 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 16:09:28 +00:00
audrasjb
6f4426b76f WordPress 6.8 RC1.
Built from https://develop.svn.wordpress.org/trunk@60089


git-svn-id: http://core.svn.wordpress.org/trunk@59425 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 15:39:29 +00:00
audrasjb
555dc83d90 Permalinks: Revert [59966].
The original commit ignores some of the arguments that can be passed to the function, mainly `base` and `format`. Reverting for now.

Props peterwilsoncc.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59424 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 15:18:12 +00:00
ryelle
4fa00adc34 Help/About: Update the About page for 6.8.
Introducing the new content for the 6.8 About page. This release introduces a new header image, but otherwise only minor tweaks to the layout and colors.

See #63025.
Props michelleames, marybaum, jeffpaul, flixos90, krupajnanda, vgnavada, karmatosed, benjamin_zekavica, ryelle, peterwilsoncc, benniledl, audrasjb.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59423 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 15:16:40 +00:00
desrosj
f537eedd4d Build/Test Tools: Apply one missed action update.
Follow up to [60083].

See #62221.
Built from https://develop.svn.wordpress.org/trunk@60086


git-svn-id: http://core.svn.wordpress.org/trunk@59422 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 14:43:29 +00:00
audrasjb
73540ca808 Coding Standards: Use sprintf() for correct i18n in wp_unique_id_from_values().
Follow-up to [60075], [60079].

Fixes #62985.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59421 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 14:31:31 +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
desrosj
0f97fb14d1 Build/Test Tools: Update 3rd party GitHub Actions.
This updates the following GitHub Actions:
- `actions/upload-artifact` from `4.6.1` to `4.6.2`
- `actions/download-artifact` from `4.1.9` to `4.2.1`
- `actions/cache` from `4.2.2` to `4.2.3`

Though these are minor updates, they include a hardening change, switching to masking cache entry tokens in debug logs.

Fixes #62221.
Built from https://develop.svn.wordpress.org/trunk@60083


git-svn-id: http://core.svn.wordpress.org/trunk@59419 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 14:06:29 +00:00
desrosj
76028a3d29 Build/Test Tools: Add Slack notifications and auto-retry to linting workflow.
See #62221.
Built from https://develop.svn.wordpress.org/trunk@60082


git-svn-id: http://core.svn.wordpress.org/trunk@59418 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 13:32:27 +00:00
desrosj
28d9c94ad7 Build/Test Tools: Mount correct volume directory for devcontainer.
This switches to mounting the current directory instead of the one above the working directory in the mounted volume, which can include many directories of unrelated projects.

Props johnbillion.
Fixes #62899.
Built from https://develop.svn.wordpress.org/trunk@60081


git-svn-id: http://core.svn.wordpress.org/trunk@59417 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 13:11:25 +00:00
desrosj
7169c11ee8 Build/Test Tools: Prevent Dependabot workflow runs in other mirrors.
Currently, workflows are configured to only run for `wordpress-develop` or when pull requests are opened where forks and mirrors are the base repository.

Because a Dependabot configuration is present in the repository, it cannot be turned off for mirrors. This results in workflows running for all Dependabot PRs, which is problematic for private mirrors and needlessly consumes minutes and resources.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59416 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 13:02:24 +00:00
Joe McGill
98a3f5f11c Editor: Fix translators note in wp_unique_id_from_values().
Follow up to [60075] to fix a typo.

Props mukesh27, johnbillion.
See #62985.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59415 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 12:54:22 +00:00
Joe McGill
9600fbf688 Editor: Update packages for 6.8 RC 1.
Syncs @wordpress/* packages to the 'wp-6.8' npm tag.

Props mamaduka, audrasjb.
See #62887.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59414 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 12:48:38 +00:00
audrasjb
69998027a2 Twenty Eleven: Improve documentation for twentyeleven_attachment_size filter.
Follow-up to [25625].

Props sabernhardt.
Fixes #63160.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59413 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 10:17:29 +00:00
Mamaduka
3bad234b73 Editor: Revert the new default rendering mode for Pages.
This fully reverts changes from #61811 while leaving infrastructure in place for consumers to enable different default rendering modes for their post types.

Props mamaduka, joemcgill, mtdkei.
Fixes #63139.
Built from https://develop.svn.wordpress.org/trunk@60076


git-svn-id: http://core.svn.wordpress.org/trunk@59412 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 06:45:28 +00:00
Peter Wilson
886fb31207 Editor: Tidy up _doing_it_wrong() call in wp_unique_id_from_values().
Adds a translator note not to translate the parameter name `$data` and removes an unused `sprintf()` that doesn't contain any placeholders.

Props peterwilsoncc, joemcgill.
Fixes #62985.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59411 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 01:47:25 +00:00
audrasjb
5beb28bd39 Coding Standards: Fix a trailing indentation issue after [60073].
Follow-up to [60073].

See #62163.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59410 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 00:04:25 +00:00
audrasjb
46cb039f26 REST API: exclude rest_route from get_params() if pretty permalinks are disabled.
This changeset introduces a modification to the `get_params()` method within the WordPress REST API. The change ensures that the `rest_route` parameter is excluded from the parameters returned when pretty permalinks are not enabled. This update enhances the developer experience by ensuring that the parameters returned by `get_params()` are relevant and do not include unnecessary values, thereby reducing potential confusion and errors.

Props westonruter, TimothyBlynJacobs, audrasjb, debarghyabanerjee, dilip2615, shanemuir, peterwilsoncc.
Fixes #62163.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59409 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-24 23:59:35 +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
Aaron Jorbin
58dbe3e577 Coding Standards: Update commits to ignore for blaming for 6.8
This adds white space only changes made during 6.8 to the list of commits which we instruct git blame to ignore. Excluding them helps to reduce the noise when doing code archaeology.

Follow-up to [53007].

Props jorbin, peterwilsoncc.
See #62279.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59407 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-24 16:57:33 +00:00
Joe McGill
d5a86a55ab Interactivity API: Apply the same directive name restrictions as the client.
This adds the same logic to filter directive data attributes to ignore invalid data attributes that is applied in the client to avoid processing directives on the server that will not be processed in the client.

Props jonsurrell, SirLouen.
Fixes #62426.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59406 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-24 14:53:28 +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
984294a965 Tests: Use assertSame() in REST API attachments controller tests.
This ensures that not only the return values match the expected results, but also that their type is the same.

Going forward, stricter type checking by using `assertSame()` should generally be preferred to `assertEquals()` where appropriate, to make the tests more reliable.

Follow-up to [48291], [50124], [57603].

See #62278.
Built from https://develop.svn.wordpress.org/trunk@60068


git-svn-id: http://core.svn.wordpress.org/trunk@59404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-22 16:08:25 +00:00
Sergey Biryukov
e12d727e75 Tests: Use assertSame() in REST API schema sanitization tests.
This ensures that not only the return values match the expected results, but also that their type is the same.

Going forward, stricter type checking by using `assertSame()` should generally be preferred to `assertEquals()` where appropriate, to make the tests more reliable.

Follow-up to [39061], [48937].

See #62278.
Built from https://develop.svn.wordpress.org/trunk@60067


git-svn-id: http://core.svn.wordpress.org/trunk@59403 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-21 23:48:24 +00:00
desrosj
aea45374b2 Build/Test Tools: Use Dependabot to manage npm dependencies.
This expands the use of Dependabot to also manage npm dependencies by configuring several groups of related packages. After [59983], pull requests for the majority of these updates can now be staged without encountering test failures.

Props joemcgill, peterwilsoncc, swissspidy, johnbillion.
See #62221.
Built from https://develop.svn.wordpress.org/trunk@60066


git-svn-id: http://core.svn.wordpress.org/trunk@59402 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-21 18:29:26 +00:00
desrosj
4eaf568a38 Build/Test Tools: Re-add GitHub App.
Without this, workflow runs are not triggered by commits made by the workflow.

Follow up to [59983], [60052], [60059], [60063], [60064].

See #62221.
Built from https://develop.svn.wordpress.org/trunk@60065


git-svn-id: http://core.svn.wordpress.org/trunk@59401 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-21 18:02:26 +00:00