[wp-trac] [WordPress Trac] #63577: PHP Warning from `get_post_galleries()` when gallery items lack an ID.

WordPress Trac noreply at wordpress.org
Tue Feb 24 16:15:43 UTC 2026


#63577: PHP Warning from `get_post_galleries()` when gallery items lack an ID.
-------------------------------------------------+-------------------------
 Reporter:  dd32                                 |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  7.0
Component:  Gallery                              |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests needs-      |     Focuses:
  test-info changes-requested                    |
-------------------------------------------------+-------------------------

Comment (by audrasjb):

 From WP 7.0 bug scrub:
 The latest comment still applies if you're still following this ticket
 @rollybueno:
 - It would be nice to merge the 2 PR into one
 - Unit Tests: adding a data provider for an extended set of test would be
 good

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


More information about the wp-trac mailing list