mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 15:47:05 +00:00
Support timestamp permalinks. Make wider use of is_single(). Bug 0000194.
git-svn-id: https://develop.svn.wordpress.org/trunk@1491 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -98,7 +98,7 @@ function get_bloginfo($show='') {
|
||||
|
||||
function wp_title($sep = '»', $display = true) {
|
||||
global $wpdb;
|
||||
global $m, $year, $monthnum, $day, $cat, $p, $name, $month, $posts, $single;
|
||||
global $m, $year, $monthnum, $day, $cat, $p, $name, $month, $posts;
|
||||
|
||||
// If there's a category
|
||||
if(!empty($cat)) {
|
||||
@@ -128,7 +128,7 @@ function wp_title($sep = '»', $display = true) {
|
||||
}
|
||||
|
||||
// If there's a post
|
||||
if ($single) {
|
||||
if (is_single()) {
|
||||
$title = strip_tags($posts[0]->post_title);
|
||||
$title = apply_filters('single_post_title', $title);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user