[wp-trac] [WordPress Trac] #28284: Calling `wp_oembed_add_provider()` before the `plugins_loaded` action shouldn't be allowed

WordPress Trac noreply at wordpress.org
Thu Jun 26 02:29:22 UTC 2014

#28284: Calling `wp_oembed_add_provider()` before the `plugins_loaded` action
shouldn't be allowed
 Reporter:  johnbillion             |       Owner:  wonderboymusic
     Type:  defect (bug)            |      Status:  closed
 Priority:  low                     |   Milestone:  4.0
Component:  Embeds                  |     Version:  2.9
 Severity:  major                   |  Resolution:  fixed
 Keywords:  dev-feedback has-patch  |     Focuses:
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


 In [changeset:"28846"]:
 #!CommitTicketReference repository="" revision="28846"
 When `wp_oembed_add_provider()` or `wp_oembed_remove_provider()` is called
 before the `plugins_loaded` hook has, store the values statically on the
 `WP_oEmbed` object and add them just-in-time when the object is

 This ensures that all plugins have an accurate provider list when
 `apply_filters( 'oembed_providers', $providers )` is called.

 Props kovshenin.
 Fixes #28284.

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

More information about the wp-trac mailing list