[wp-trac] [WordPress Trac] #23012: Refresh the code for the default widgets
WordPress Trac
noreply at wordpress.org
Fri Dec 21 00:24:40 UTC 2012
#23012: Refresh the code for the default widgets
--------------------------+-----------------------------
Reporter: Viper007Bond | Owner: Viper007Bond
Type: enhancement | Status: accepted
Priority: low | Milestone: Future Release
Component: Widgets | Version: 3.5
Severity: minor | Resolution:
Keywords: needs-patch |
--------------------------+-----------------------------
Comment (by toscho):
Let’s say I want to extend `WP_Widget_Meta` to add or replace a link in
front-end. Currently I have to copy almost the complete class to add these
simple change. If the `ul` for the link were generated in a separate
method in that class I could replace just this method.
Or try to replace the Feed icon in `WP_Widget_RSS`. This should be a
separate method `get_feed_icon()`.
The same applies to the other classes: everything is mangled together with
very little room for sub-classes.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23012#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list