mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Quote problem could cause invalid markup.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
03aae33f99
commit
064a0eb79e
@ -536,7 +536,7 @@ function previous_post($format='%', $previous='previous post: ', $title='yes', $
|
||||
$p_id = $p_info->ID;
|
||||
$string = '<a href="'.$blogfilename.$querystring_start.'p'.$querystring_equal.$p_id.$querystring_separator.'more'.$querystring_equal.'1'.$querystring_separator.'c'.$querystring_equal.'1">'.$previous;
|
||||
if (!($title!='yes')) {
|
||||
$string .= stripslashes($p_title);
|
||||
$string .= wptexturize(stripslashes($p_title));
|
||||
}
|
||||
$string .= '</a>';
|
||||
$format = str_replace('%',$string,$format);
|
||||
@ -581,7 +581,7 @@ function next_post($format='%', $next='next post: ', $title='yes', $in_same_cat=
|
||||
$p_id = $p_info->ID;
|
||||
$string = '<a href="'.$blogfilename.$querystring_start.'p'.$querystring_equal.$p_id.$querystring_separator.'more'.$querystring_equal.'1'.$querystring_separator.'c'.$querystring_equal.'1">'.$next;
|
||||
if ($title=='yes') {
|
||||
$string .= stripslashes($p_title);
|
||||
$string .= wptexturize(stripslashes($p_title));
|
||||
}
|
||||
$string .= '</a>';
|
||||
$format = str_replace('%',$string,$format);
|
||||
|
Loading…
Reference in New Issue
Block a user