From 8dfca9ba1c2a4b511f2cd485dc53e48c0c9e0218 Mon Sep 17 00:00:00 2001 From: michelvaldrighi Date: Fri, 20 Feb 2004 01:53:41 +0000 Subject: [PATCH] more quotes replacements git-svn-id: http://svn.automattic.com/wordpress/trunk@896 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/template-functions-links.php | 4 +-- wp-includes/template-functions-post.php | 36 ++++++++++++------------ 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/wp-includes/template-functions-links.php b/wp-includes/template-functions-links.php index 8e879616f5..06ddaae404 100644 --- a/wp-includes/template-functions-links.php +++ b/wp-includes/template-functions-links.php @@ -135,7 +135,7 @@ function edit_post_link($link = 'Edit This', $before = '', $after = '') { } $location = "$siteurl/wp-admin/post.php?action=edit&post=$post->ID"; - echo "$before $link $after"; + echo "$before $link $after"; } function edit_comment_link($link = 'Edit This', $before = '', $after = '') { @@ -153,7 +153,7 @@ function edit_comment_link($link = 'Edit This', $before = '', $after = '') { } $location = "$siteurl/wp-admin/post.php?action=editcomment&comment=$comment->comment_ID"; - echo "$before $link $after"; + echo "$before $link $after"; } ?> \ No newline at end of file diff --git a/wp-includes/template-functions-post.php b/wp-includes/template-functions-post.php index 0038f16f65..616f434f6b 100644 --- a/wp-includes/template-functions-post.php +++ b/wp-includes/template-functions-post.php @@ -16,11 +16,11 @@ add_filter('the_excerpt', 'convert_chars'); add_filter('the_excerpt', 'wpautop'); function get_the_password_form() { - $output = "
+ $output = '

This post is password protected. To view it please enter your password below:

-

+

- "; + '; return $output; } @@ -124,7 +124,7 @@ function get_the_content($more_link_text = '(more...)', $stripteaser = 0, $more_ if ($more) { $output .= ''.$content[1]; } else { - $output .= " $more_link_text"; + $output .= ' $more_link_text"; } } if ($preview) { // preview fix for javascript bug with foreign languages @@ -178,7 +178,7 @@ function get_the_excerpt($fakeit = true) { $output = stripslashes($post->post_excerpt); if (!empty($post->post_password)) { // if there's a password if ($_COOKIE['wp-postpass_'.$cookiehash] != $post->post_password) { // and it doesn't match the cookie - $output = "There is no excerpt because this is a protected post."; + $output = 'There is no excerpt because this is a protected post.'; return $output; } } @@ -223,7 +223,7 @@ function link_pages($before='
', $after='
', $next_or_number='number', echo $before; for ($i = 1; $i < ($numpages+1); $i = $i + 1) { $j=str_replace('%',"$i",$pagelink); - echo " "; + echo ' '; if (($i != $page) || ((!$more) && ($page==1))) { if ('' == get_settings('permalink_structure')) { echo ''; @@ -346,15 +346,15 @@ function next_posts($max_page = 0) { // original by cfactor at cooltux.org if (empty($p) && ($what_to_show == 'paged')) { $qstr = $HTTP_SERVER_VARS['QUERY_STRING']; if (!empty($qstr)) { - $qstr = preg_replace("/&paged=\d{0,}/","",$qstr); - $qstr = preg_replace("/paged=\d{0,}/","",$qstr); + $qstr = preg_replace('/&paged=\d{0,}/', '', $qstr); + $qstr = preg_replace('/paged=\d{0,}/', '', $qstr); } elseif (stristr($HTTP_SERVER_VARS['REQUEST_URI'], $HTTP_SERVER_VARS['SCRIPT_NAME'] )) { if ('' != $qstr = str_replace($HTTP_SERVER_VARS['SCRIPT_NAME'], '', $HTTP_SERVER_VARS['REQUEST_URI']) ) { - $qstr = preg_replace("/^\//", "", $qstr); - $qstr = preg_replace("/paged\/\d{0,}\//", "", $qstr); - $qstr = preg_replace("/paged\/\d{0,}/", "", $qstr); - $qstr = preg_replace("/\/$/", "", $qstr); + $qstr = preg_replace('/^\//', '', $qstr); + $qstr = preg_replace('/paged\/\d{0,}\//', '', $qstr); + $qstr = preg_replace('/paged\/\d{0,}/', '', $qstr); + $qstr = preg_replace('/\/$/', '', $qstr); } } if (!$paged) $paged = 1; @@ -399,15 +399,15 @@ function previous_posts() { // original by cfactor at cooltux.org if (empty($p) && ($what_to_show == 'paged')) { $qstr = $HTTP_SERVER_VARS['QUERY_STRING']; if (!empty($qstr)) { - $qstr = preg_replace("/&paged=\d{0,}/","",$qstr); - $qstr = preg_replace("/paged=\d{0,}/","",$qstr); + $qstr = preg_replace('/&paged=\d{0,}/', '', $qstr); + $qstr = preg_replace('/paged=\d{0,}/', '', $qstr); } elseif (stristr($HTTP_SERVER_VARS['REQUEST_URI'], $HTTP_SERVER_VARS['SCRIPT_NAME'] )) { if ('' != $qstr = str_replace($HTTP_SERVER_VARS['SCRIPT_NAME'], '', $HTTP_SERVER_VARS['REQUEST_URI']) ) { - $qstr = preg_replace("/^\//", "", $qstr); - $qstr = preg_replace("/paged\/\d{0,}\//", "", $qstr); - $qstr = preg_replace("/paged\/\d{0,}/", "", $qstr); - $qstr = preg_replace("/\/$/", "", $qstr); + $qstr = preg_replace('/^\//', '', $qstr); + $qstr = preg_replace("/paged\/\d{0,}\//", '', $qstr); + $qstr = preg_replace('/paged\/\d{0,}/', '', $qstr); + $qstr = preg_replace('/\/$/', '', $qstr); } } $nextpage = intval($paged) - 1;