[wp-trac] [WordPress Trac] #32907: We should pass the site ID to the 'wpmu_update_blog_options' action

WordPress Trac noreply at wordpress.org
Thu Aug 6 18:33:47 UTC 2015

#32907: We should pass the site ID to the 'wpmu_update_blog_options' action
 Reporter:  DrewAPicture                         |       Owner:  swissspidy
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  Future
Component:  Options, Meta APIs                   |  Release
 Severity:  normal                               |     Version:  3.0
 Keywords:  good-first-bug has-patch commit      |  Resolution:
  4.4-early                                      |     Focuses:  multisite

Comment (by DrewAPicture):

 Replying to [comment:8 jeremyfelt]:
 > I don't have strong feelings, though it would be nice to find another
 example of a hook in core where an ID was passed that was readily
 available through something like `get_current_blog_id()`.

 A quick search shows a few filters that pass easily-accessible values:
 apply_filters( 'all_plugins', get_plugins() );
 apply_filters( 'the_content', get_the_content() );
 apply_filters( 'the_permalink_rss', get_permalink() );
 apply_filters( 'the_excerpt', get_the_excerpt() );
 apply_filters( 'core_version_check_locale', get_locale() );

 And so on. No actions though that I'm seeing with my rudimentary RegEx.

Ticket URL: <https://core.trac.wordpress.org/ticket/32907#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list