[wp-trac] [WordPress Trac] #32907: We should pass the site ID to the 'wpmu_update_blog_options' action
WordPress Trac
noreply at wordpress.org
Tue Jul 7 18:46:23 UTC 2015
#32907: We should pass the site ID to the 'wpmu_update_blog_options' action
--------------------------------+----------------------------------------
Reporter: DrewAPicture | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Options, Meta APIs | Version:
Severity: normal | Keywords: needs-patch good-first-bug
Focuses: multisite |
--------------------------------+----------------------------------------
The
[https://developer.wordpress.org/reference/hooks/wpmu_update_blog_options/
wpmu_update_blog_options] hook was added following the MU merge in 3.0
along with the
[https://developer.wordpress.org/reference/hooks/wpmueditblogaction/
wpmueditblogaction] hook.
The suggestion is that we should match the style of the latter and pass
the site ID even though it's easily accessible via `get_current_blog_id()`
where the `wpmu_update_blog_options` hook fires.
Might as well also fix the docs alignment while we're in there too.
https://core.trac.wordpress.org/browser/trunk/src/wp-admin/network/site-
settings.php#L61
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32907>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list