[wp-trac] [WordPress Trac] #26343: has_shortcode not recognizing nested shortcodes
WordPress Trac
noreply at wordpress.org
Fri Jul 18 13:19:00 UTC 2014
#26343: has_shortcode not recognizing nested shortcodes
-----------------------------------+-----------------------------
Reporter: sunyatasattva | Owner: wonderboymusic
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 4.0
Component: Shortcodes | Version: 3.6
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion | Focuses:
-----------------------------------+-----------------------------
Comment (by kovshenin):
Replying to [comment:19 aaroncampbell]: I understand. I think whether the
shortcode will actually be executed or not is a slightly different matter.
The has_shortcode() function checks wether a specific shortcode exists
within some content.
So does `[foo]` exist within `[bar][foo][/bar]`? Yes it does. Will it be
executed? Who cares :) The fact that it doesn't (by default) is also a
problem, and calling `do_shortcode()` within a shortcode callback is just
a suggested workaround. Probably related: #10702.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26343#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list