[wp-trac] [WordPress Trac] #61648: WP_Debug_Data::debug_data() is overly complex

WordPress Trac noreply at wordpress.org
Sat Oct 5 19:22:16 UTC 2024


#61648: WP_Debug_Data::debug_data() is overly complex
----------------------------+----------------------
 Reporter:  apermo          |       Owner:  dmsnell
     Type:  task (blessed)  |      Status:  closed
 Priority:  normal          |   Milestone:  6.7
Component:  Site Health     |     Version:  6.6
 Severity:  normal          |  Resolution:  fixed
 Keywords:  has-patch       |     Focuses:
----------------------------+----------------------
Changes (by dmsnell):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"59176" 59176]:
 {{{
 #!CommitTicketReference repository="" revision="59176"
 WP_Debug_Data: Extract `wp-themes` data into separate methods.

 This is the last 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 findal set of twelve groups, the `wp-active-
 theme`, `wp-parent-theme`, and `wp-themes-inactive` info, into a separate
 methods focused on those data.

 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/7507
 Discussed in https://core.trac.wordpress.org/ticket/61648

 Props apermo, dmsnell.
 Fixes #61648.
 }}}

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


More information about the wp-trac mailing list