[wp-trac] [WordPress Trac] #34559: get_post_galleries does not return the galleries properly

WordPress Trac noreply at wordpress.org
Thu Jun 8 09:05:01 UTC 2023


#34559: get_post_galleries does not return the galleries properly
---------------------------+----------------------
 Reporter:  darius00klokj  |       Owner:  (none)
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:
Component:  Shortcodes     |     Version:  4.3.1
 Severity:  normal         |  Resolution:  invalid
 Keywords:                 |     Focuses:
---------------------------+----------------------
Changes (by zex2911):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 To properly nest shortcodes inside of other shortcodes we need to nest
 them. This is done in the outer shortcode, as outlined in the
 [https://codex.wordpress.org/Shortcode_API#Nested_Shortcodes documentation
 on nested shortcodes]

 The parser won't see the inner shortcode as a shortcode, but as a part of
 the content, unless we use {{{do_shortcode()}}} to display the outer
 shortcode's content.

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


More information about the wp-trac mailing list