diff --git a/wp-admin/custom-header.php b/wp-admin/custom-header.php index c28934975b..223cabbaf2 100644 --- a/wp-admin/custom-header.php +++ b/wp-admin/custom-header.php @@ -24,15 +24,26 @@ class Custom_Image_Header { */ var $admin_header_callback; + /** + * Callback for header div. + * + * @var callback + * @since unknown + * @access private + */ + var $admin_image_div_callback; + /** * PHP4 Constructor - Register administration header callback. * * @since unknown * @param callback $admin_header_callback + * @param callback $admin_image_div_callback Optional custom image div output callback. * @return Custom_Image_Header */ - function Custom_Image_Header($admin_header_callback) { + function Custom_Image_Header($admin_header_callback, $admin_image_div_callback = '') { $this->admin_header_callback = $admin_header_callback; + $this->admin_image_div_callback = $admin_image_div_callback; } /** @@ -267,9 +278,9 @@ class Custom_Image_Header { * @since unknown */ function step_1() { - if ( $_GET['updated'] ) { ?> + if ( isset($_GET['updated']) && $_GET['updated'] ) { ?>
Visit your site to see how it looks.'), home_url()); ?>