[wp-trac] [WordPress Trac] #25313: Video and audio shortcode callback functions wrapped in a filter, but executed too early to be hooked onto

WordPress Trac noreply at wordpress.org
Fri Sep 13 16:40:34 UTC 2013


#25313: Video and audio shortcode callback functions wrapped in a filter, but
executed too early to be hooked onto
--------------------------+------------------------------
 Reporter:  ericlewis     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  3.6
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by nacin):

 To be honest, though, I'd rather just remove these filters and force
 everything to go through `wp_audio_shortcode()` and
 `wp_video_shortcode()`. Then, have an early filter in both of those
 functions that allow short-circuiting.

 This pattern for existing shortcodes came up *huge* when we changed how
 the caption shortcode worked, when we put the caption inside the shortcode
 content. Huge forwards compatibility win.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25313#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list