wordpress-develop/tests
Sergey Biryukov 110f132f7e General: Ensure consistent type for integer properties of WP_Post, WP_Term, and WP_User.
Previously, these properties could be unexpectedly converted to strings in some contexts.

This applies to the following functions:

* `sanitize_post_field()`
* `sanitize_term_field()`
* `sanitize_user_field()`

and the following properties:

* `WP_Post::ID`
* `WP_Post::post_parent`
* `WP_Post::menu_order`
* `WP_Term::term_id`
* `WP_Term::term_taxonomy_id`
* `WP_Term::parent`
* `WP_Term::count`
* `WP_Term::term_group`
* `WP_User::ID`

Props grantmkin, SergeyBiryukov.
Fixes #53235. See #52995.

git-svn-id: https://develop.svn.wordpress.org/trunk@50935 602fd350-edb4-49c9-b593-d223f7449a82
2021-05-19 22:10:58 +00:00
..
e2e Build/Test Tools: Remove explicit puppeteer dependency. 2021-03-29 18:05:47 +00:00
gutenberg Editor: Update @wordpress npm packages 2021-03-05 04:08:33 +00:00
phpunit General: Ensure consistent type for integer properties of WP_Post, WP_Term, and WP_User. 2021-05-19 22:10:58 +00:00
qunit Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:41:48 +00:00