[wp-trac] [WordPress Trac] #61648: WP_Debug_Data::debug_data() is overly complex
WordPress Trac
noreply at wordpress.org
Fri Oct 4 22:11:01 UTC 2024
#61648: WP_Debug_Data::debug_data() is overly complex
----------------------------+-----------------------
Reporter: apermo | Owner: dmsnell
Type: task (blessed) | Status: reopened
Priority: normal | Milestone: 6.7
Component: Site Health | Version: 6.6
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
----------------------------+-----------------------
Comment (by dmsnell):
In [changeset:"59172" 59172]:
{{{
#!CommitTicketReference repository="" revision="59172"
WP_Debug_Data: Extract `wp-plugins` data into separate methods.
This is the eighth part in a larger modularization of the data in
`WP_Debug_Data`. Previously this was a single massive method drawing in
debug data from various groups of related data, where the groups were
independent from each other.
This patch separates the eighth and ninth of twelve groups, the `wp-
plugins-active` and `wp-plugins-inactive` info, into separate methods
focused on that data.
Unlike the other patches in this series, the plugins data comes from a
single source and is separated out into separate debug sections, so the
active and inactive methods call a new shared method which provides raw
data for both. Optimizations and refactors may occur in follow-up tickets.
This work precedes changes to make the `WP_Debug_Data` class more
extensible for better use by plugin and theme code.
Developed in https://github.com/wordpress/wordpress-develop/pull/7458
Discussed in https://core.trac.wordpress.org/ticket/61648
Props apermo, dmsnell.
See #61648.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61648#comment:66>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list