[wp-trac] [WordPress Trac] #20603: Warning error occurs on the default parameter of "admin-head-callback" in add_theme_support.
WordPress Trac
wp-trac at lists.automattic.com
Wed May 2 14:58:34 UTC 2012
#20603: Warning error occurs on the default parameter of "admin-head-callback" in
add_theme_support.
--------------------------+-----------------------------
Reporter: jim912 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 3.4
Severity: normal | Keywords: has-patch
--------------------------+-----------------------------
When you make settings of custom header using add_theme_support on
functions.php of a theme, if you use default value without defining admin-
head-callback, warning error occurs as follows on admin screen of custom
header.
{{{
Warning: call_user_func_array() expects parameter 1 to be a valid
callback, function '' not found or invalid function name in path-to-
wordpress-root/wp-includes/plugin.php on line 403
}}}
To fix this, I think better to change default value of admin-head-callback
into __return_false, on /wp-includes/theme.php. Here's patch.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20603>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list