[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
Fri May 23 04:08:23 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 | Focuses:
--------------------------+------------------
Changes (by lukbarros):
* severity: normal => major
Comment:
Hello this problem seems valid, I've had this problem before, when I make
a plugin called this method / function wp_oembed_add_provider () in my
plugin that was the first to carry on my Musted Used plugins (MU-PLUGINS)
and other third party installed normally (PLUGINS) stopped working as
well.
I have not analyzed the code but the description seems quite valid
alternative to isolate plugins possão not call wp_oembed_add_provider ()
directly, it would need to go trough a hook filter type, you can then add
providers without affecting the scope of operation of other plugins, this
can be a knife to the neck of a planter riding based on third-party
plugins, and somehow this makes as developers of plugins to use hooks as
expected.
I'm relatively new here, I would analyze and fix it, how to proceed?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28284#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list