Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#23534 closed defect (bug) (fixed)

Post formats UI: undefined variable $format_class

Reported by: ethitter's profile ethitter Owned by: helen's profile helen
Milestone: 3.6 Priority: normal
Severity: normal Version: 3.6
Component: Editor Keywords: has-patch
Focuses: Cc:

Description

With the Post Formats UI changes that landed in r23449, the following PHP notice appears if a theme supports no formats:

Undefined variable: format_class in /wp-admin/edit-form-advanced.php on line 352

The attached patch ensures that $format_class is always defined.

Attachments (1)

23534.patch (489 bytes) - added by ethitter 11 years ago.

Download all attachments as: .zip

Change History (3)

@ethitter
11 years ago

#1 @SergeyBiryukov
11 years ago

  • Milestone changed from Awaiting Review to 3.6

#2 @helen
11 years ago

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

In 23456:

Prevent a notice for post types that don't support post formats. props ethitter. fixes #23534.

Note: See TracTickets for help on using tickets.