Opened 17 months ago

Last modified 6 months ago

#19674 new defect (bug)

Do not prefix wp_title() with spaces if $sep is empty

Reported by: SergeyBiryukov Owned by:
Priority: normal Milestone: Future Release
Component: Themes Version: 2.0
Severity: trivial Keywords: has-patch 2nd-opinion
Cc: sirzooro

Description

  1. Add wp_title('') to header.php.
  2. Notice two spaces before the title:
    <title>  Hello World</title>
    

This was previously brought up in #7114, but the fix suggested there wasn't backward compatible.

Attachments (1)

19674.patch (429 bytes) - added by SergeyBiryukov 17 months ago.

Download all attachments as: .zip

Change History (5)

Wondering if one space might still be expected by themes. For example, if bloginfo('name') is used before wp_title();

  • Keywords 2nd-opinion added
  • Milestone changed from 3.4 to Future Release

#22653 was marked as a duplicate.

  • Cc sirzooro added
Note: See TracTickets for help on using tickets.