[wp-trac] [WordPress Trac] #28801: Walker::walk makes an incorrect assumption if $top_level_elements is empty.

WordPress Trac noreply at wordpress.org
Sun Feb 1 15:05:16 UTC 2026


#28801: Walker::walk makes an incorrect assumption if $top_level_elements is empty.
-------------------------------------------------+-------------------------
 Reporter:  rob-castlegate                       |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:
Component:  General                              |     Version:  3.8
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-unit-tests 2nd-      |     Focuses:
  opinion needs-refresh                          |
-------------------------------------------------+-------------------------
Changes (by r1k0):

 * keywords:  has-patch needs-testing needs-unit-tests 2nd-opinion => has-
     patch needs-unit-tests 2nd-opinion needs-refresh


Comment:

 This patch is pretty old and it fails to apply cleanly. A refresh will be
 needed before proceeding with testing.

 === Error:
 {{{
 Running "patch:28801" (patch) task
 (Stripping trailing CRs from patch; use --binary to disable.)
 patching file src/wp-includes/class-wp-walker.php
 Hunk #1 FAILED at 214.
 Hunk #2 FAILED at 223.
 2 out of 2 hunks FAILED
 }}}

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


More information about the wp-trac mailing list