WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 5 years ago

#3967 closed defect (bug) (fixed)

wp_title outputs separator for empty title

Reported by: dwc Owned by:
Milestone: 2.0.10 Priority: low
Severity: normal Version:
Component: Template Keywords: has-patch
Focuses: Cc:

Description

It appears that [5010] caused some changes in how wp_title works; specifically, the separator is returned even when no title exists (e.g. on the blog home page). For example:

University of Florida News -

Additionally the $posts global (used in the is_single() || is_page() branch) was removed from the list, which broke titles in additional cases.

Patch attached.

Attachments (1)

wp_title_fixup.patch (582 bytes) - added by dwc 7 years ago.

Download all attachments as: .zip

Change History (3)

dwc7 years ago

comment:1 Nazgul7 years ago

  • Keywords has-patch added

comment:2 ryan7 years ago

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

(In [5035]) wp_title() fixes from dwc. fixes #3967

Note: See TracTickets for help on using tickets.