[wp-trac] [WordPress Trac] #19743: Trim code from Twenty Eleven theme-options
WordPress Trac
wp-trac at lists.automattic.com
Wed Jan 4 22:34:48 UTC 2012
#19743: Trim code from Twenty Eleven theme-options
---------------------------+-----------------------------
Reporter: emhr | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version: 3.3.1
Severity: minor | Keywords: has-patch
---------------------------+-----------------------------
Suggest removal of the conditional statement for add_option() in
twentyeleven_theme_options_init()
The function twentyeleven_get_theme_options() uses get_option() and sets
the $default parameter.
The conditional statement will never evaluate
twentyeleven_get_theme_options() as false. This is probably an artifact
from a previous release. As far as I can tell, removing it has no effect
to the current revision except for trimming code.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19743>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list