[wp-trac] [WordPress Trac] #32445: `is_callable()` should be checked in `do_shortcode_tag()`, not `add_shortcode()`

WordPress Trac noreply at wordpress.org
Fri Jun 19 21:32:33 UTC 2015

#32445: `is_callable()` should be checked in `do_shortcode_tag()`, not
 Reporter:  wonderboymusic    |       Owner:  wonderboymusic
     Type:  enhancement       |      Status:  assigned
 Priority:  normal            |   Milestone:  4.3
Component:  Shortcodes        |     Version:  2.6
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:

Comment (by wonderboymusic):

 In [changeset:"32867"]:
 #!CommitTicketReference repository="" revision="32867"
 Check `is_callable()` in `do_shortcode_tag()`, not `add_shortcode()`.
 Add a `_doing_it_wrong()` in `do_shortcode_tag()` when `is_callable()` is

 Props aaroncampbell.
 See #32445.

Ticket URL: <https://core.trac.wordpress.org/ticket/32445#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list