#43339 closed enhancement (fixed)
Global user_options calls should use user_meta instead
| Reported by: | johnjamesjacoby | Owned by: | zkancs |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.8 |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | 2nd-opinion good-first-bug has-patch |
| Cc: | Focuses: |
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)
#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
@
8 years ago
- Keywords needs-refresh added
- Milestone 5.1 → 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Use update_user_meta instead of update_user_option