Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 9 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:


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 11 years ago.

Download all attachments as: .zip

Change History (3)

11 years ago

#1 @Nazgul
11 years ago

  • Keywords has-patch added

#2 @ryan
11 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.