Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#17566 closed defect (bug) (fixed)

Twenty Eleven Instantiate $show_sep in templates.

Reported by: mfields's profile mfields Owned by: iandstewart's profile iandstewart
Milestone: 3.2 Priority: normal
Severity: normal Version: 3.2
Component: Bundled Theme Keywords: has-patch
Focuses: Cc:

Description

A notice will be generated in case where a taxonomy archive is queried for that contains posts not having the 'post' post_type. The notice is generated because the value of $show_sep is being tested against, but the variable does not exist where post_type != 'post'. I first noticed this in content.php but have instantiate the var in all other templates where I found it.

Attachments (1)

17566-instantiate-show_sep-variable.diff (1.6 KB) - added by mfields 13 years ago.
Instantiate $show_sep where needed in template files.

Download all attachments as: .zip

Change History (3)

@mfields
13 years ago

Instantiate $show_sep where needed in template files.

#1 @ocean90
13 years ago

  • Component changed from Themes to Bundled Theme
  • Keywords dev-feedback removed
  • Milestone changed from Awaiting Review to 3.2
  • Owner set to iandstewart
  • Status changed from new to assigned
  • Summary changed from Instantiate $show_sep in templates. to Twenty Eleven Instantiate $show_sep in templates.

Closed as a dup: #17716

#2 @iandstewart
13 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In [18186]:

Twenty Eleven: prevent notices in taxonomy archives using custom post types; Props mfields; Fixes #17566

Note: See TracTickets for help on using tickets.