[wp-trac] [WordPress Trac] #26410: Updating or deleting options via update_option or delete_option leaves blog-details cache object stale
WordPress Trac
noreply at wordpress.org
Tue Sep 2 06:32:04 UTC 2014
#26410: Updating or deleting options via update_option or delete_option leaves
blog-details cache object stale
--------------------------------+-------------------------------------
Reporter: codix | Owner: wonderboymusic
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 4.0
Component: Options, Meta APIs | Version: 3.8
Severity: normal | Resolution:
Keywords: has-patch commit | Focuses: multisite, performance
--------------------------------+-------------------------------------
Changes (by nacin):
* keywords: has-patch needs-testing => has-patch commit
Comment:
refresh_blog_details() passes its $blog_id argument directly to
get_blog_details(), which when given a scalar that evaluates to empty (so,
0) it ends up using get_current_blog_id(). Making it use
get_current_blog_id() makes a lot of sense.
I like [attachment:26410.3.diff].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26410#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list