Changeset 896
- Timestamp:
- 02/20/2004 01:53:41 AM (21 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-links.php
r801 r896 136 136 137 137 $location = "$siteurl/wp-admin/post.php?action=edit&post=$post->ID"; 138 echo "$before <a href= '$location'>$link</a> $after";138 echo "$before <a href=\"$location\">$link</a> $after"; 139 139 } 140 140 … … 154 154 155 155 $location = "$siteurl/wp-admin/post.php?action=editcomment&comment=$comment->comment_ID"; 156 echo "$before <a href= '$location'>$link</a> $after";156 echo "$before <a href=\"$location\">$link</a> $after"; 157 157 } 158 158 -
trunk/wp-includes/template-functions-post.php
r886 r896 17 17 18 18 function get_the_password_form() { 19 $output = "<form action='" . get_settings('siteurl') . "/wp-pass.php' method='post'>19 $output = '<form action="' . get_settings('siteurl') . '/wp-pass.php" method="post"> 20 20 <p>This post is password protected. To view it please enter your password below:</p> 21 <p><label>Password: <input name= 'post_password' type='text' size='20' /></label> <input type='submit' name='Submit' value='Submit'/></p>21 <p><label>Password: <input name="post_password" type="text" size="20" /></label> <input type="submit" name="Submit" value="Submit" /></p> 22 22 </form> 23 ";23 '; 24 24 return $output; 25 25 } … … 125 125 $output .= '<a id="more-'.$id.'"></a>'.$content[1]; 126 126 } else { 127 $output .= " <a href='". get_permalink() . "#more-$id'>$more_link_text</a>";127 $output .= ' <a href="'. get_permalink() . "#more-$id\">$more_link_text</a>"; 128 128 } 129 129 } … … 179 179 if (!empty($post->post_password)) { // if there's a password 180 180 if ($_COOKIE['wp-postpass_'.$cookiehash] != $post->post_password) { // and it doesn't match the cookie 181 $output = "There is no excerpt because this is a protected post.";181 $output = 'There is no excerpt because this is a protected post.'; 182 182 return $output; 183 183 } … … 224 224 for ($i = 1; $i < ($numpages+1); $i = $i + 1) { 225 225 $j=str_replace('%',"$i",$pagelink); 226 echo " ";226 echo ' '; 227 227 if (($i != $page) || ((!$more) && ($page==1))) { 228 228 if ('' == get_settings('permalink_structure')) { … … 347 347 $qstr = $HTTP_SERVER_VARS['QUERY_STRING']; 348 348 if (!empty($qstr)) { 349 $qstr = preg_replace( "/&paged=\d{0,}/","",$qstr);350 $qstr = preg_replace( "/paged=\d{0,}/","",$qstr);349 $qstr = preg_replace('/&paged=\d{0,}/', '', $qstr); 350 $qstr = preg_replace('/paged=\d{0,}/', '', $qstr); 351 351 } elseif (stristr($HTTP_SERVER_VARS['REQUEST_URI'], $HTTP_SERVER_VARS['SCRIPT_NAME'] )) { 352 352 if ('' != $qstr = str_replace($HTTP_SERVER_VARS['SCRIPT_NAME'], '', 353 353 $HTTP_SERVER_VARS['REQUEST_URI']) ) { 354 $qstr = preg_replace( "/^\//", "", $qstr);355 $qstr = preg_replace( "/paged\/\d{0,}\//", "", $qstr);356 $qstr = preg_replace( "/paged\/\d{0,}/", "", $qstr);357 $qstr = preg_replace( "/\/$/", "", $qstr);354 $qstr = preg_replace('/^\//', '', $qstr); 355 $qstr = preg_replace('/paged\/\d{0,}\//', '', $qstr); 356 $qstr = preg_replace('/paged\/\d{0,}/', '', $qstr); 357 $qstr = preg_replace('/\/$/', '', $qstr); 358 358 } 359 359 } … … 400 400 $qstr = $HTTP_SERVER_VARS['QUERY_STRING']; 401 401 if (!empty($qstr)) { 402 $qstr = preg_replace( "/&paged=\d{0,}/","",$qstr);403 $qstr = preg_replace( "/paged=\d{0,}/","",$qstr);402 $qstr = preg_replace('/&paged=\d{0,}/', '', $qstr); 403 $qstr = preg_replace('/paged=\d{0,}/', '', $qstr); 404 404 } elseif (stristr($HTTP_SERVER_VARS['REQUEST_URI'], $HTTP_SERVER_VARS['SCRIPT_NAME'] )) { 405 405 if ('' != $qstr = str_replace($HTTP_SERVER_VARS['SCRIPT_NAME'], '', 406 406 $HTTP_SERVER_VARS['REQUEST_URI']) ) { 407 $qstr = preg_replace( "/^\//", "", $qstr);408 $qstr = preg_replace("/paged\/\d{0,}\//", "", $qstr);409 $qstr = preg_replace( "/paged\/\d{0,}/", "", $qstr);410 $qstr = preg_replace( "/\/$/", "", $qstr);407 $qstr = preg_replace('/^\//', '', $qstr); 408 $qstr = preg_replace("/paged\/\d{0,}\//", '', $qstr); 409 $qstr = preg_replace('/paged\/\d{0,}/', '', $qstr); 410 $qstr = preg_replace('/\/$/', '', $qstr); 411 411 } 412 412 }
Note: See TracChangeset
for help on using the changeset viewer.