Opened 3 months ago

Closed 3 months ago

#23534 closed defect (bug) (fixed)

Post formats UI: undefined variable $format_class

Reported by: ethitter Owned by: helen
Priority: normal Milestone: 3.6
Component: Editor Version: trunk
Severity: normal Keywords: has-patch
Cc: ethitter

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 3 months ago.

Download all attachments as: .zip

Change History (3)

  • Milestone changed from Awaiting Review to 3.6
  • 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.