[wp-trac] [WordPress Trac] #17032: Twenty Ten Theme - Widget Enhancement
WordPress Trac
wp-trac at lists.automattic.com
Sun Apr 3 07:55:06 UTC 2011
#17032: Twenty Ten Theme - Widget Enhancement
-------------------------+------------------------------
Reporter: rozani | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.1
Severity: normal | Resolution:
Keywords: |
-------------------------+------------------------------
Comment (by rozani):
separate twentyten_widget_innit into twentyten_sidebar_widget_innit and
twentyten_footer_widget_innit for the ease of child theme creation.
Draftly, modification as below. For details, see attachment.
Original widget function:
{{{
function twentyten_widgets_init() {
}}}
Separate widget function to sidebar and footer
{{{
function twentyten_sidebar_widgets_init() {
function twentyten_footer_widgets_init() {
}}}
Also, change the innit function.
Originally.
{{{
add_action( 'widgets_init', 'twentyten_widgets_init' );
{{{
Separate innit to sidebar innit and footer innit.
}}}
add_action( 'widgets_init', 'twentyten_sidebar_widgets_init' );
add_action( 'widgets_init', 'twentyten_footer_widgets_init' );
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17032#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list