[wp-trac] [WordPress Trac] #25435: Intoduce function for use instead of do_shortcode( '[shortcode]' )

WordPress Trac noreply at wordpress.org
Thu Nov 14 03:42:24 UTC 2013


#25435: Intoduce function for use instead of do_shortcode( '[shortcode]' )
-----------------------------+----------------------
 Reporter:  jdgrimes         |       Owner:
     Type:  feature request  |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Shortcodes       |     Version:
 Severity:  normal           |  Resolution:  wontfix
 Keywords:  has-patch        |
-----------------------------+----------------------

Comment (by rmccue):

 +1 in favour of reopening this.

 It's certainly possible to call the callback directly if you know it, but
 that's not necessarily the case. Shortcodes are pretty fluid, and it's
 possible that a plugin could change the gallery shortcode (e.g.) to its
 own instead.

 The current solutions are either extremely heavy (`do_shortcode`) or
 require an obscure way to call them (`do_shortcode_tag`).

 I think we should add something like `do_single_shortcode( 'gallery', [
 'a' => 'b' ], 'optional body content' )`.

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


More information about the wp-trac mailing list