Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 6 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 9 years ago.

Download all attachments as: .zip

Change History (3)

@dwc9 years ago

comment:1 @Nazgul9 years ago

  • Keywords has-patch added

comment:2 @ryan9 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.