[wp-trac] [WordPress Trac] #61648: WP_Debug_Data::debug_data() is overly complex
WordPress Trac
noreply at wordpress.org
Fri Sep 6 19:49:10 UTC 2024
#61648: WP_Debug_Data::debug_data() is overly complex
-------------------------+-----------------------
Reporter: apermo | Owner: dmsnell
Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.7
Component: Site Health | Version: 6.6
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+-----------------------
Comment (by dmsnell):
In [changeset:"58996" 58996]:
{{{
#!CommitTicketReference repository="" revision="58996"
Debug Data: Encode section ordering in debug info.
During a refactor to modularize the debug data class, it came up that the
ordering of the sections inside of the returned debug info is relevant to
existing UIs, as they iterate the array, which happens in insertion order.
This patch presets each section at the start to ensure that the ordering
remains consistent even as code within the method is rearranged. As the
mini-project progresses, this assignment will be the final place all the
sections are referenced.
Developed in https://github.com/WordPress/wordpress-develop/pull/7289
Discussed in https://core.trac.wordpress.org/ticket/61648
Props apermo, dmsnell, sergeybiryukov.
See #61648.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61648#comment:32>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list