WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#25400 closed defect (bug) (fixed)

Twenty Twelve, Twenty Fourteen: Simplify header image check

Reported by: obenland Owned by: lancewillett
Milestone: 3.7 Priority: normal
Severity: normal Version: 3.5
Component: Bundled Theme Keywords: has-patch
Focuses: Cc:

Description

get_header_image() will return the boolean false or an empty string if there is no header image. Both will be evaluated as false by the if statement. We already do this in Twenty Ten.

Loosely related: #25156.

Attachments (1)

25400.diff (1.8 KB) - added by obenland 7 years ago.

Download all attachments as: .zip

Change History (3)

@obenland
7 years ago

#1 @lancewillett
7 years ago

In 25604:

Twenty Fourteen: simplify header image check, props obenland. See #25400.

#2 @lancewillett
7 years ago

  • Owner set to lancewillett
  • Resolution set to fixed
  • Status changed from new to closed

In 25626:

Twenty Twelve: simplify header image check, props obenland. Closes #25400.

Note: See TracTickets for help on using tickets.