Make WordPress Core

Changeset 896


Ignore:
Timestamp:
02/20/2004 01:53:41 AM (21 years ago)
Author:
michelvaldrighi
Message:

more quotes replacements

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/template-functions-links.php

    r801 r896  
    136136
    137137    $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";
    139139}
    140140
     
    154154
    155155    $location = "$siteurl/wp-admin/post.php?action=editcomment&amp;comment=$comment->comment_ID";
    156     echo "$before <a href='$location'>$link</a> $after";
     156    echo "$before <a href=\"$location\">$link</a> $after";
    157157}
    158158
  • trunk/wp-includes/template-functions-post.php

    r886 r896  
    1717
    1818function 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">
    2020    <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>
    2222    </form>
    23     ";
     23    ';
    2424    return $output;
    2525}
     
    125125            $output .= '<a id="more-'.$id.'"></a>'.$content[1];
    126126        } 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>";
    128128        }
    129129    }
     
    179179    if (!empty($post->post_password)) { // if there's a password
    180180        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.';
    182182            return $output;
    183183        }
     
    224224            for ($i = 1; $i < ($numpages+1); $i = $i + 1) {
    225225                $j=str_replace('%',"$i",$pagelink);
    226                 echo " ";
     226                echo ' ';
    227227                if (($i != $page) || ((!$more) && ($page==1))) {
    228228                if ('' == get_settings('permalink_structure')) {
     
    347347        $qstr = $HTTP_SERVER_VARS['QUERY_STRING'];
    348348        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);
    351351        } elseif (stristr($HTTP_SERVER_VARS['REQUEST_URI'], $HTTP_SERVER_VARS['SCRIPT_NAME'] )) {
    352352            if ('' != $qstr = str_replace($HTTP_SERVER_VARS['SCRIPT_NAME'], '',
    353353                                            $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);
    358358            }
    359359        }
     
    400400        $qstr = $HTTP_SERVER_VARS['QUERY_STRING'];
    401401        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);
    404404        } elseif (stristr($HTTP_SERVER_VARS['REQUEST_URI'], $HTTP_SERVER_VARS['SCRIPT_NAME'] )) {
    405405            if ('' != $qstr = str_replace($HTTP_SERVER_VARS['SCRIPT_NAME'], '',
    406406                                            $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);
    411411            }
    412412        }
Note: See TracChangeset for help on using the changeset viewer.