[wp-trac] [WordPress Trac] #45377: Video Shortcode Ajax Issue
WordPress Trac
noreply at wordpress.org
Mon Nov 19 14:42:57 UTC 2018
#45377: Video Shortcode Ajax Issue
-----------------------------+------------------------------
Reporter: Nenad Obradovic | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Shortcodes | Version: 5.0
Severity: minor | Resolution:
Keywords: | Focuses:
-----------------------------+------------------------------
Comment (by Nenad Obradovic):
Hi swissspidly,
Thanks for your response. This might be one solution, but if anyone what
to use admin-ajax instead of Rest API then problem will still exist.
Is it possible to add some hook around defaults_atts and we can fix this
problem with simple hook when we use ajax-admin, example code
{{{
/**
* Filters the default video shortcode attributes.
*
* @see wp_video_shortcode()
*
* @param array $defaults_atts Default attributes of the shortcode.
@see wp_video_shortcode()
*/
$defaults_atts = apply_filters( 'wp_video_shortcode_defaults_atts',
$defaults_atts );
}}}
Best regards,
Nenad
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45377#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list