From 9636e717eb655083165ecd0a54261e0db3ff4b71 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Wed, 11 Jun 2003 19:48:43 +0000 Subject: [PATCH] XHTML 1.1 compliant permalink git-svn-id: http://svn.automattic.com/wordpress/trunk@205 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- b2-include/b2template.functions.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/b2-include/b2template.functions.php b/b2-include/b2template.functions.php index ccf881f351..e3b0865c08 100644 --- a/b2-include/b2template.functions.php +++ b/b2-include/b2template.functions.php @@ -1126,7 +1126,7 @@ function permalink_anchor($mode = 'id') { break; case 'id': default: - echo ''; + echo ''; break; } } @@ -1148,17 +1148,17 @@ function permalink_link($file='', $mode = 'id') { $archive_mode = get_settings('archive_mode'); switch($archive_mode) { case 'daily': - echo $file.$querystring_start.'m'.$querystring_equal.substr($post->post_date,0,4).substr($post->post_date,5,2).substr($postdata['Date'],8,2).'#'.$anchor; + echo $file.$querystring_start.'m'.$querystring_equal.substr($post->post_date,0,4).substr($post->post_date,5,2).substr($postdata['Date'],8,2).'#post-'.$anchor; break; case 'monthly': - echo $file.$querystring_start.'m'.$querystring_equal.substr($post->post_date,0,4).substr($post->post_date,5,2).'#'.$anchor; + echo $file.$querystring_start.'m'.$querystring_equal.substr($post->post_date,0,4).substr($post->post_date,5,2).'#post-'.$anchor; break; case 'weekly': if((!isset($cacheweekly)) || (empty($cacheweekly[$postdata['Date']]))) { $cacheweekly[$post->post_date] = $wpdb->get_var("SELECT WEEK('$post->post_date')"); ++$querycount; } - echo $file.$querystring_start.'m'.$querystring_equal.substr($post->post_date,0,4).$querystring_separator.'w'.$querystring_equal.$cacheweekly[$post->post_date].'#'.$anchor; + echo $file.$querystring_start.'m'.$querystring_equal.substr($post->post_date,0,4).$querystring_separator.'w'.$querystring_equal.$cacheweekly[$post->post_date].'#post-'.$anchor; break; case 'postbypost': echo $file.$querystring_start.'p'.$querystring_equal.$id;