[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 May 29 10:15:29 UTC 2014


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

 * keywords:  dev-feedback => dev-feedback has-patch


Comment:

 In [attachment:28284.diff]: if add/remove helper functions called before
 plugins_loaded, don't instantiate the oembed object, but rather use a
 static class variable to hold "just in time" additions and removals, which
 are then executed when the object is actually created.

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


More information about the wp-trac mailing list