Opened 7 months ago
Last modified 6 months ago
#61149 new enhancement
class WP_User(), mark prop $deleted as deprecated
Reported by: | ignatiusjeroe | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | trivial | Version: | |
Component: | Users | Keywords: | has-patch |
Focuses: | Cc: |
Description
I've search the source code for the utility of column deleted in database table Users. There is only one mention of it in function wp_update_user_counts(), but that seems like irrelevant since 'spam' seems like its replacement. If that is the case the WP_User class should change the comment
current:
* @property string $deleted
replacement:
* @property string $deleted Deprecated. Use {@see $spam} instead.
mark
Change History (1)
This ticket was mentioned in PR #6758 on WordPress/wordpress-develop by @snehapatil02.
6 months ago
#1
- Keywords has-patch added
Note: See
TracTickets for help on using
tickets.
### Ticket: https://core.trac.wordpress.org/ticket/61149
## Description
Ensure consistent handling of 'checked' property in
wp_update_plugins()
function.$deleted
property in theWP_User
class as deprecated.$deleted
column is only mentioned once in the functionwp_update_user_counts()
.$spam
property has replaced its functionality. To reflect this change, the documentation for theWP_User
class is updated accordingly.## Changes Made
$deleted
property in theWP_User
class to mark it as deprecated.$spam
property instead.