#43339 closed enhancement (fixed)
Global user_options calls should use user_meta instead
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 5.8 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | General | Keywords: | 2nd-opinion good-first-bug has-patch |
| Focuses: | Cc: |
Description
There are 2 places where WordPress uses the user_option functions with the global flag set to true which internally invokes the user_meta functions.
In these cases, there is no benefit to using user_option and only a detriment by way of additional function calls.
The user-meta keys in question are:
default_password_nagcommunity-events-location
Attachments (4)
Change History (17)
#2
@
8 years ago
- Keywords has-patch added; needs-patch removed
- Milestone changed from Awaiting Review to 5.0
#3
@
8 years ago
It looks like there are some more instances where update_user_option is used with $global set to true. Doe we want to change those too?
#6
@
8 years ago
@obenland Fixed. I think I've changed every place where update_user_option is used with $global set to true. Please review again.
#8
@
7 years ago
- Keywords needs-refresh added
- Milestone changed from 5.1 to Future Release
43339.4.diff needs updating to apply to trunk.
This ticket was mentioned in Slack in #core by jjj. View the logs.
5 years ago
This ticket was mentioned in PR #1244 on WordPress/wordpress-develop by desrosj.
5 years ago
#11
- Keywords needs-refresh removed
Trac ticket: https://core.trac.wordpress.org/ticket/43339
5 years ago
#13
Merged into Core in https://core.trac.wordpress.org/changeset/50981.
Use update_user_meta instead of update_user_option