[wp-trac] [WordPress Trac] #43826: get_post_galleries() should return gallery blocks
WordPress Trac
noreply at wordpress.org
Tue Aug 13 09:07:35 UTC 2019
#43826: get_post_galleries() should return gallery blocks
----------------------------+-----------------------------
Reporter: pento | Owner: tellyworth
Type: task (blessed) | Status: assigned
Priority: normal | Milestone: Future Release
Component: Media | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: template
----------------------------+-----------------------------
Changes (by russhylov):
* keywords: has-patch has-unit-tests needs-testing => needs-patch
* focuses: => template
* version: 5.0 =>
Comment:
WP 5.2.2
All this functions ( get_post_gallery, get_post_galleries,
get_post_galleries_images, get_attached_media) return empty array or false
because post_parent is stays 0 when wp_post gets new record or the
existing post is edited.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43826#comment:37>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list