[wp-trac] [WordPress Trac] #26343: has_shortcode not recognizing nested shortcodes

WordPress Trac noreply at wordpress.org
Mon Aug 4 20:53:07 UTC 2014


#26343: has_shortcode not recognizing nested shortcodes
---------------------------+-----------------------------
 Reporter:  sunyatasattva  |       Owner:  wonderboymusic
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:  4.0
Component:  Shortcodes     |     Version:  3.6
 Severity:  normal         |  Resolution:  fixed
 Keywords:  has-patch      |     Focuses:
---------------------------+-----------------------------

Comment (by engelen):

 Interesting, I didn't know that... For reference:
 https://core.trac.wordpress.org/ticket/23282. It's funny to see that this
 issue never came up in that discussion, even though `has_shortcode` was an
 important part of it.

 However, even though your intention was to make it simply check for a
 shortcode in a piece of content, I'm not sure that your intention was the
 correct behaviour for `has_shortcode`. It seems to me that it currently
 works as would be expected from `has_shortcode`, checking only for
 unnested shortcodes. An interesting discussion...

 Besides all that, focusing on moving ahead with this issue: can we agree
 that, regardless whether this is a bug or not, `$recursive` should be
 `false` by default to maintain backwards compatibility?

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


More information about the wp-trac mailing list