[wp-trac] [WordPress Trac] #42455: WordPress Class methods and Single Responsibility (recent posts widgets)
WordPress Trac
noreply at wordpress.org
Thu Sep 22 08:56:22 UTC 2022
#42455: WordPress Class methods and Single Responsibility (recent posts widgets)
-------------------------+--------------------------------
Reporter: viewup | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version: 4.9.8
Severity: normal | Resolution:
Keywords: 2nd-opinion | Focuses: docs, performance
-------------------------+--------------------------------
Changes (by kitchin):
* keywords: => 2nd-opinion
* version: 4.9 => 4.9.8
* component: Plugins => Widgets
Comment:
Makes sense. The code before rendering is only 23 lines, but could be
split to a helper function or short-circuit action.
I can't change the Version to trunk (UI bug? Permissions?), but diffing
4.9 to trunk shows only one effective change:
`$format = apply_filters( 'navigation_widgets_format', $format );`
and the related html5 rendering. The filter is used in 9 widgets.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42455#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list