[wp-trac] [WordPress Trac] #31093: Make $tag argument optional for has_shortcode()

WordPress Trac noreply at wordpress.org
Thu Jan 22 10:30:09 UTC 2015


#31093: Make $tag argument optional for has_shortcode()
------------------------------------------------+--------------------------
 Reporter:  danielbachhuber                     |       Owner:
     Type:  enhancement                         |      Status:  new
 Priority:  normal                              |   Milestone:  Future
Component:  Shortcodes                          |  Release
 Severity:  normal                              |     Version:
 Keywords:  has-patch dev-feedback 2nd-opinion  |  Resolution:
                                                |     Focuses:
------------------------------------------------+--------------------------

Comment (by tyxla):

 Replying to [comment:1 danielbachhuber]:
 > And / or ability to supply an array of shortcodes to check

 A little in doubt here - how would you expect this to work? If you pass an
 array with 2 shortcodes, and one of them is found, would it return `true`
 or `false`? Perhaps a third parameter to specify whether to use `OR` or
 `AND` condition?

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


More information about the wp-trac mailing list