[wp-trac] [WordPress Trac] #12748: Rethink some of the pluggable architecture of twentyten functions.php

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 30 00:05:20 UTC 2010


#12748: Rethink some of the pluggable architecture of twentyten functions.php
--------------------------+-------------------------------------------------
 Reporter:  nacin         |       Owner:     
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.0
Component:  Themes        |     Version:     
 Severity:  normal        |    Keywords:     
--------------------------+-------------------------------------------------

Comment(by nacin):

 (In [13886]) Second pass on twentyten/functions.php inline documentation.
 see #12695. Also:

 rename twentyten_init() to twentyten_setup(), to reflect the hook it is
 run on (init would be too late, it must be after_setup_theme). Remove
 unnecessary twentyten_get_page_number() and transfer functionality to
 twentyten_the_page_number(). Remove the function_exists() wrappers from
 functions that are simply tied to a hook, as a better practice would be to
 remove the hook instead of plugging the function. For architecture
 changes, see #12748.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12748#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list