[wp-trac] [WordPress Trac] #23282: Add shortcodes for inline HTML5 audio / video

WordPress Trac noreply at wordpress.org
Thu Jun 13 17:21:36 UTC 2013


#23282: Add shortcodes for inline HTML5 audio / video
-----------------------------+---------------------
 Reporter:  wonderboymusic   |       Owner:
     Type:  feature request  |      Status:  closed
 Priority:  normal           |   Milestone:  3.6
Component:  Media            |     Version:  trunk
 Severity:  normal           |  Resolution:  fixed
 Keywords:                   |
-----------------------------+---------------------
Changes (by amereservant):

 * cc: amereservant@… (added)


Comment:

 I guess I'm curious why the {{{shortcode_exists()}}} function was added
 since this is so simple to check this by checking the global
 {{{$shortcode_tags}}}.  This function seems to just add extra bloat to the
 WordPress code.

 The other curiosity is in regards to the performance impact
 {{{has_shortcode()}}} will have ... there are at least a few tutorials on
 how to make this function, but making it a part of the core code sort of
 encourages the use of such a function and can hurt the overall performance
 of WordPress.

 Would a filter hook in the {{{do_shortcode_tag()}}} function be a better
 option performance wise so that as the shortcodes are being executed, a
 hooked function can alter the shortcode tag before it is rendered?  Not
 sure why this function was introduced, but that's just a thought...

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


More information about the wp-trac mailing list