[wp-trac] [WordPress Trac] #35770: Shortcode fails with 4.4. It is working with 4.3
WordPress Trac
noreply at wordpress.org
Tue Feb 9 19:09:10 UTC 2016
#35770: Shortcode fails with 4.4. It is working with 4.3
-------------------------------+------------------------------
Reporter: dezio1900 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Shortcodes | Version: 4.4.1
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Comment (by aaroncampbell):
So the problem I see with the content that you pasted is that it's
actually using nested shortcodes, which WordPress doesn't support by
default. Basically, all your `content_with_image` shortcodes are contained
within a `content` shortcode. In order to handle nested shortcodes like
that,your `content` shortcode needs to call `do_shortcode()` on it's
contents. In [attachment:35770.2.php the updated MU test plugin], I added
an example that you can see. The `content` shortcode does not run
`do_shortcode()` on it's contents (thus outputting the raw text of the
nested shortcode) and the `content-do-shortcode` shortcode DOES (thus
outputting the processed shortcode). I copied the contents of the
[https://core.trac.wordpress.org/browser/branches/4.3/src/wp-
includes/shortcodes.php 4.3 version of wp-includes/shortcodes.php] file
over my existing one, and it didn't change the behavior of my tests at
all.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35770#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list