WordPress.org

Make WordPress Core

#23534 closed defect (bug) (fixed)

Post formats UI: undefined variable $format_class

Reported by: ethitter Owned by: 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 14 months ago.

Download all attachments as: .zip

Change History (3)

ethitter14 months ago

comment:1 SergeyBiryukov14 months ago

  • Milestone changed from Awaiting Review to 3.6

comment:2 helen14 months 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.