wordpress-develop/tests/phpunit/tests/user
Boone Gorges 5b9d9c7c07 Require numeric IDs in user deletion functions.
`wp_delete_user()` and `wpmu_delete_user()` both require an `$id` parameter.
Previously, the functions did not verify that the value passed was, in fact,
a number. As such, passing an object or any other entity that would be cast
to int `1` would result in user 1 being deleted. We fix this by enforcing
the requirement that `$id` be numeric.

Props dipesh.kakadiya, utkarshpatel, juliobox.
Fixes #33800.

git-svn-id: https://develop.svn.wordpress.org/trunk@34034 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-11 02:24:03 +00:00
..
author.php Pass post type to count_user_posts() in get_the_author_posts(). 2015-01-08 19:52:52 +00:00
capabilities.php Multisite: Allow users with manage_network_users to edit network users. 2015-09-10 03:33:22 +00:00
countUserPosts.php Support multiple post types in count_user_posts() and other functions that use get_posts_by_author_sql(). 2015-05-21 18:42:49 +00:00
dateQuery.php Support date_query by user_registered in WP_User_Query. 2014-10-17 01:36:36 +00:00
listAuthors.php Share fixtures across wp_list_authors() tests. 2015-03-08 15:57:02 +00:00
mapMetaCap.php In PHPUnit test classes, parent::tearDown() should be the last thing done in tearDown() methods. 2015-03-05 13:14:15 +00:00
multisite.php Require numeric IDs in user deletion functions. 2015-09-11 02:24:03 +00:00
query.php Avoid returning duplicate matches when using a meta query in WP_User_Query. 2015-06-09 17:41:35 +00:00
session.php Rename the public methods in the session tokens API. 2014-08-27 02:06:53 +00:00
slashes.php Fix typo in a comment in slashing tests. 2015-01-07 07:08:47 +00:00
wpDeleteUser.php Require numeric IDs in user deletion functions. 2015-09-11 02:24:03 +00:00