Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#24236 closed defect (bug) (fixed)

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

Reported by: sc0ttkclark's profile sc0ttkclark Owned by: sergeybiryukov's profile 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 11 years ago.

Download all attachments as: .zip

Change History (5)

#1 @SergeyBiryukov
11 years ago

  • Milestone changed from Awaiting Review to 3.6

#2 @SergeyBiryukov
11 years ago

In 24148:

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

#3 @SergeyBiryukov
11 years ago

Also seeing this:

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

#4 @SergeyBiryukov
11 years 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.