Opened 23 months ago
Last modified 21 months ago
#61149 new enhancement
class WP_User(), mark prop $deleted as deprecated
| Reported by: |
|
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.
21 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.$deletedproperty in theWP_Userclass as deprecated.$deletedcolumn is only mentioned once in the functionwp_update_user_counts().$spamproperty has replaced its functionality. To reflect this change, the documentation for theWP_Userclass is updated accordingly.## Changes Made
$deletedproperty in theWP_Userclass to mark it as deprecated.$spamproperty instead.