[wp-trac] [WordPress Trac] #25435: Introduce alternative to do_shortcode( '[shortcode]' )

WordPress Trac noreply at wordpress.org
Fri Oct 16 01:15:41 UTC 2015


#25435: Introduce alternative to do_shortcode( '[shortcode]' )
-----------------------------+-----------------------
 Reporter:  jdgrimes         |       Owner:  rmccue
     Type:  feature request  |      Status:  assigned
 Priority:  normal           |   Milestone:  4.4
Component:  Shortcodes       |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+-----------------------

Comment (by rmccue):

 Replying to [comment:20 DrewAPicture]:
 > I'm not sure the `WP_Error` is terribly useful without also citing the
 shortcode tag that doesn't have a registered callback. Can we add that to
 the string?

 Good thinking; added to the translated string.

 Replying to [comment:18 jdgrimes]:
 > Perhaps not as big a difference as we might have thought.

 Indeed, although I think adding this adds a nice API for internal use, and
 it's a bit cleaner than formatting a string just to call a shortcode.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/25435#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list