Make WordPress Core

Opened 21 months ago

Last modified 3 months ago

#21510 new defect (bug)

Use get_background_color() in _custom_background_cb()

Reported by: greenshady Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.4.1
Component: Appearance Keywords: has-patch
Focuses: Cc:


When themes add a default background color via the custom-background feature, it isn't shown until the user saves it in the admin. The issue is that the _custom_background_cb() uses get_theme_mod( 'background_color' ) instead of get_background_color(), which will handle the default.

The attached patch should correct this.

Attachments (1)

get_background_color.diff (458 bytes) - added by greenshady 21 months ago.

Download all attachments as: .zip

Change History (5)

comment:1 Jayjdk21 months ago

  • Cc kontakt@… added

comment:3 obenland21 months ago

  • Cc konstantin@… added

comment:4 nacin3 months ago

  • Component changed from Themes to Appearance
Note: See TracTickets for help on using tickets.