Opened 2 years ago
Last modified 2 years ago
#61149 new enhancement
class WP_User(), mark prop $deleted as deprecated
| Reported by: | ignatiusjeroe | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Users | Version: | |
| Severity: | trivial | Keywords: | has-patch |
| Cc: | Focuses: |
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.
2 years ago
#1
- Keywords has-patch added
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
### 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.