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

WordPress Trac noreply at wordpress.org
Sat Nov 30 20:42:25 UTC 2013


#26343: has_shortcode not recognizing nested shortcodes
---------------------------+-----------------------------
 Reporter:  sunyatasattva  |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  General        |    Version:  trunk
 Severity:  normal         |   Keywords:
---------------------------+-----------------------------
 The function `has_shortcode` doesn't detect nested shortcode, such as:
 {{{
 [block_shortcode][shortcode][/block_shortcode]
 }}}

 As we know, nested shortcodes don't benefit from stellar support in the
 core, as you have to call `do_shortcode()` recursively on the block
 shortcode's content.

 There would be different ways to approach the problem (like changing the
 `RegEx` on the function); I think aiming for a consistent approach with a
 recursive lookup might be the best idea.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/26343>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list