Make WordPress Core

Opened 8 years ago

Last modified 4 years ago

#34559 new defect (bug)

get_post_galleries does not return the galleries properly

Reported by: darius00klokj's profile darius00klokj Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.3.1
Component: Shortcodes Keywords:
Focuses: Cc:


The function get_post_galleries is missing:

elseif ( ! empty( $shortcode[5] ) && has_shortcode( $shortcode[5], 'gallery' ) ) {

and iterate on the content returned by $shortcode[5].

This occures when the galleries are within anther shortcode, example:

some text [gallery ids="1,2,3"]

in the example the above the has_shortcode will return true, but the get_post_galleries will be an empty array.

Change History (2)

#1 @joedolson
8 years ago

  • Focuses accessibility removed

#2 @swissspidy
8 years ago

  • Component changed from General to Shortcodes
  • Focuses administration removed
Note: See TracTickets for help on using tickets.