11 Jun 2012 20:17
Re: Problem with appearance -> background
To comment on: <at> Nacin: As you "removed" that image, we have to print out a "background-image: none", in order to override any background image references in the stylesheet. I want it to revert to the background references in the stylesheet. ref: last email sent to thread, child themes overriding and execution css order. -----Original Message----- From: Philip M. Hofer (Frumph) Sent: Monday, June 11, 2012 11:13 AM To: wp-testers@... Subject: Re: [wp-testers] Problem with appearance -> background Sorry, didn't see your comment at the bottom about behavior being off Expected behavior - Theme registered a background color or image - custom-background class enabled printf of the background css. Theme cleared of background color and image. custom-background class doesn't exist AND printf of background css non-existant Child Theme registered a background color or image - custom background class enabled and primary themes defaults replaced with child themes registration overrides in the printf of the background css ______________ If you test it, you will see that when you create "defaults" it overrides everything including any changes the end user might want to make, they are forever stuck with using appearance -> background. Theme creators like myself, and I can only speak for myself in this regard see it as a potential boon to my theme to have the default background and color enabled in the appearance -> background. But, unfortunately if a child theme is added to it - the main theme overrides anything the child themes look has immediately. Regardless. Its 'an extra setup step' to use the appearance -> background at that time, making the end user put the information into the appearance -> background just because it wasn’t programmed to replace info or be empty if removed. -----Original Message----- From: Andrew Nacin Sent: Monday, June 11, 2012 10:57 AM To: wp-testers@... Subject: Re: [wp-testers] Problem with appearance -> background On Mon, Jun 11, 2012 at 4:37 AM, Jon Cave <jon@...> wrote: > On Mon, Jun 11, 2012 at 5:13 AM, Philip M. Hofer (Frumph) > <philip@...> wrote: > > The body class "custom-background" is staying even after clearing > everything > > from the appearance -> background > > Confirmed. I reopened http://core.trac.wordpress.org/ticket/20448 with a > patch. > > Thanks for the report. Frumph — Best I can tell, this is not actually a bug. I don't think you "cleared everything" from Appearance > Background. You pressed "Remove Background Image," but your theme registers a default image, either via the BACKGROUND_IMAGE constant (old) or the default-image argument passed to add_theme_support() (3.4). As you "removed" that image, we have to print out a "background-image: none", in order to override any background image references in the stylesheet. If your theme registers a default image, we are always going to print body.custom-background. But, if your theme does not register a default image and you do register a default color, then there is a small bug: If you have no customizations at all (nothing in the DB), then it is possible to end up with the "custom-background" body class but not actually have the <style> block printed. The class should not be there. I've added a comment to the same ticket, http://core.trac.wordpress.org/ticket/20448. If this behavior strikes you as off, please let us know. _______________________________________________ wp-testers mailing list wp-testers@... http://lists.automattic.com/mailman/listinfo/wp-testers _______________________________________________ wp-testers mailing list wp-testers@... http://lists.automattic.com/mailman/listinfo/wp-testers
RSS Feed