Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#24190 closed defect (bug) (fixed)

Undefined variable in edit-form-advanced.php

Reported by: lightningspirit Owned by: SergeyBiryukov
Milestone: 3.6 Priority: normal
Severity: normal Version: 3.6
Component: Post Formats Keywords: has-patch
Focuses: Cc:


Last trunk commit throws an notice when editing or creating new page:
Notice: Undefined variable: post_format in edit-form-advanced.php

Possible resolution attached.

Attachments (1)

24190.diff (761 bytes) - added by lightningspirit 3 years ago.
Added isset() to $post_format variable

Download all attachments as: .zip

Change History (4)

3 years ago

Added isset() to $post_format variable

#1 @SergeyBiryukov
3 years ago

  • Component changed from Administration to Post Formats
  • Milestone changed from Awaiting Review to 3.6

#2 @SergeyBiryukov
3 years ago

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

In 24097:

Avoid an undefined variable notice. props lightningspirit. fixes #24190.

Note: See TracTickets for help on using tickets.