Opened 12 years ago
Closed 12 years ago
#23181 closed defect (bug) (fixed)
Clear Notice from reset_header_image() method in Custom_Image_Header class
Reported by: | wpsmith | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 3.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Customize | Keywords: | has-patch dev-feedback |
Focuses: | Cc: |
Description
If you take the following steps you will receive a notice for default_data.
- Custom header is enabled with a default header image (with no other header images uploaded).
- The user clicks Remove Header Image.
- The user clicks Restore Original Header Image.
Attachments (2)
Change History (8)
#2
@
12 years ago
If you add the following to TwentyTwelve, it produces the same error.
add_theme_support( 'custom-header', array( 'default-image' => 'http://domain.com/wp-content/themes/twentytwelve/images/header.png', //Ensure image is there 'header-text' => '', 'default-text-color' => 'blank', 'width' => 350, 'height' => 100, 'random-default' => false, ) );
Here's a screencast:
http://screencast.com/t/T0fTxyCZbH8G
Please note while the video demonstrates it with a Genesis Child theme image, this was tested in both Genesis, TwentyEleven, and TwentyTwelve.
#3
@
12 years ago
- Component changed from General to Administration
- Keywords has-patch dev-feedback needs-testing added
#4
@
12 years ago
- Component changed from Administration to Appearance
- Keywords needs-testing removed
- Milestone changed from Awaiting Review to 3.6
Confirmed with the code from comment:2.
23181.2.patch is an alternative patch.
#5
@
12 years ago
- Cc kovshenin added
23181.patch can potentially leave old header image data in the header_image_data theme mod. If we're checking with !empty
perhaps we should remove_theme_mod
otherwise. 23181.2.patch looks reasonable, since it overwrites the previous value with an empty object.
Note: See
TracTickets for help on using
tickets.
I could not recreate it in latest trunk with the steps outlined above.