Make WordPress Core

Opened 12 years ago

Last modified 12 years ago

#20603 closed defect (bug)

Warning error occurs on the default parameter of "admin-head-callback" in add_theme_support. — at Version 2

Reported by: jim912's profile jim912 Owned by:
Milestone: 3.4 Priority: high
Severity: major Version: 3.4
Component: Themes Keywords: has-patch
Focuses: Cc:

Description (last modified by SergeyBiryukov)

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.

Change History (3)

@jim912
12 years ago

#1 @nacin
12 years ago

  • Milestone changed from Awaiting Review to 3.4

#2 @SergeyBiryukov
12 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.