WordPress.org

Make WordPress Core

#24236 closed defect (bug) (fixed)

Undefined variable in edit-form-advanced.php for Post formats

Reported by: sc0ttkclark Owned by: SergeyBiryukov
Milestone: 3.6 Priority: normal
Severity: normal Version: 3.6
Component: Post Formats Keywords:
Focuses: Cc:

Description

Related to #24190

Seeing this exact issue w/ $show_post_format_ui and line 424:

<div class="wp-post-format-ui<?php if ( ! $show_post_format_ui ) echo ' no-ui' ?>">

Getting undefined notice for $show_post_format_ui:

"Notice: Undefined variable: show_post_format_ui"

Just like in #24190, this one requires another variable set up above to define it to 0

Attachments (1)

24236.patch (927 bytes) - added by SergeyBiryukov 15 months ago.

Download all attachments as: .zip

Change History (5)

comment:1 SergeyBiryukov15 months ago

  • Milestone changed from Awaiting Review to 3.6

comment:2 SergeyBiryukov15 months ago

In 24148:

Avoid an undefined variable notice. props sc0ttkclark. see #24236.

comment:3 SergeyBiryukov15 months ago

Also seeing this:

Notice:  Undefined variable: all_post_formats in wp-admin/edit-form-advanced.php on line 426

SergeyBiryukov15 months ago

comment:4 SergeyBiryukov15 months ago

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

In 24149:

Avoid an undefined variable notice. fixes #24236.

Note: See TracTickets for help on using tickets.