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

WordPress Trac noreply at wordpress.org
Sat Nov 1 07:04:16 UTC 2025


#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:  6.9
Component:  Gallery                              |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests needs-      |     Focuses:
  test-info changes-requested                    |
-------------------------------------------------+-------------------------
Changes (by wildworks):

 * keywords:  has-patch has-unit-tests needs-test-info => has-patch has-
     unit-tests needs-test-info changes-requested


Comment:

 To move this ticket forward, can we do the following?

 - Combine the two pull requests ([https://github.com/WordPress/wordpress-
 develop/pull/8992/ PR 8992], [https://github.com/WordPress/wordpress-
 develop/pull/9005 PR 9005]) into one and rebase it on top of the latest
 trunk.
 - Add more unit tests. We'll probably need to add a data provider and bind
 the data to the post content [https://github.com/WordPress/wordpress-
 develop/pull/9005/files#diff-
 12e09f9b18c77300223e0a2123387933abc699fae32fde16cca03e7134722dc9R1094
 here].

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


More information about the wp-trac mailing list