#7114 closed enhancement (wontfix)
do not add whitespace to sep in wp_title()
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
wp_title() includes spaces in some places where I don't want them and leaves out spaces in some places where I do want them. This patch changes wp_title() to use exactly what is passed in for a sep without adding any whitespace to it. This gives the caller better control over the separator.
Example of too much whitespace:
<title>mmb » Blog Archive » python twitter client / module</title>
Example of not enough whitespace:
<title>mmb » 2008» June</title>
Attachments (1)
Change History (4)
#1
@
17 years ago
Test with default theme and WordPress 2.5.1:
Pre patch:
<title>test </title>
<title>test » 2008» June</title>
<title>test » Uncategorized</title>
<title>test » Blog Archive » Hello world!</title>
Post patch (remaining extra spaces can be fixed in theme):
<title>test </title>
<title>test » 2008 » June</title>
<title>test » Uncategorized</title>
<title>test » Blog Archive » Hello world!</title>
Example of separator without any whitespace:
<title>test </title>
<title>test XXX2008XXXJune</title>
<title>test XXXUncategorized</title>
<title>test » Blog Archive XXXHello world!</title>
do not add whitespace to sep in wp_title()