more double-to-single quotes replacements

git-svn-id: http://svn.automattic.com/wordpress/trunk@895 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
michelvaldrighi 2004-02-20 01:42:39 +00:00
parent ba0f9c0f6b
commit e1beab4cb8
2 changed files with 25 additions and 25 deletions

View File

@ -54,7 +54,7 @@ function comments_popup_script($width=400, $height=400, $file='wp-comments-popup
global $wpcommentspopupfile, $wptrackbackpopupfile, $wppingbackpopupfile, $wpcommentsjavascript;
$wpcommentspopupfile = $file;
$wpcommentsjavascript = 1;
$javascript = "<script type='text/javascript'>\nfunction wpopen (macagna) {\n window.open(macagna, '_blank', 'width=$width,height=$height,scrollbars=yes,status=yes');\n}\n</script>\n";
$javascript = "<script type=\"text/javascript\">\nfunction wpopen (macagna) {\n window.open(macagna, '_blank', 'width=$width,height=$height,scrollbars=yes,status=yes');\n}\n</script>\n";
echo $javascript;
}
@ -74,7 +74,7 @@ function comments_popup_link($zero='No Comments', $one='1 Comment', $more='% Com
} else {
if (!empty($post->post_password)) { // if there's a password
if ($HTTP_COOKIE_VARS['wp-postpass_'.$cookiehash] != $post->post_password) { // and it doesn't match the cookie
echo("Enter your password to view comments");
echo('Enter your password to view comments');
return;
}
}
@ -171,7 +171,7 @@ function comment_author_url_link($linktext='', $before='', $after='') {
if ((!empty($url)) && ($url != 'http://') && ($url != 'http://url')) {
$display = ($linktext != '') ? $linktext : stripslashes($url);
echo $before;
echo "<a href='$url' rel='external'>$display</a>";
echo '<a href="'.$url.'" rel="external">'.$display.'</a>';
echo $after;
}
}
@ -237,7 +237,7 @@ function comments_rss_link($link_text='Comments RSS', $commentsrssfilename = 'wp
$url = $siteurl.'/'.$commentsrssfilename.$querystring_start.'p'.$querystring_equal.$id;
}
echo "<a href='$url'>$link_text</a>";
echo '<a href="'.$url.'">'.$link_text.'</a>';
}
function comment_author_rss() {

View File

@ -35,49 +35,49 @@ function get_bloginfo($show='') {
}
switch($show) {
case "url":
$output = $siteurl."/".$blogfilename;
case 'url':
$output = $siteurl.'/'.$blogfilename;
break;
case "description":
case 'description':
$output = $blogdescription;
break;
case "rdf_url":
case 'rdf_url':
$output = $siteurl.'/wp-rdf.php';
if ($do_perma) {
$output = $feed_url . '/rdf/';
}
break;
case "rss_url":
case 'rss_url':
$output = $siteurl.'/wp-rss.php';
if ($do_perma) {
$output = $feed_url . '/rss/';
}
break;
case "rss2_url":
case 'rss2_url':
$output = $siteurl.'/wp-rss2.php';
if ($do_perma) {
$output = $feed_url . '/rss2/';
}
break;
case "atom_url":
case 'atom_url':
$output = $siteurl.'/wp-atom.php';
if ($do_perma) {
$output = $feed_url . '/atom/';
}
break;
case "comments_rss2_url":
case 'comments_rss2_url':
$output = $siteurl.'/wp-commentsrss2.php';
if ($do_perma) {
$output = $comment_feed_url . '/rss2/';
}
break;
case "pingback_url":
case 'pingback_ur'":
$output = $siteurl.'/xmlrpc.php';
break;
case "admin_email":
case 'admin_email':
$output = $admin_email;
break;
case "name":
case 'name':
default:
$output = $blogname;
break;
@ -213,7 +213,7 @@ function get_archives($type='', $limit='', $format='html', $before = "", $after
if ('' != $limit) {
$limit = (int) $limit;
$limit = " LIMIT $limit";
$limit = ' LIMIT '.$limit;
}
// this is what will separate dates on weekly archive links
$archive_week_separator = '&#8211;';
@ -247,10 +247,10 @@ function get_archives($type='', $limit='', $format='html', $before = "", $after
foreach ($arcresults as $arcresult) {
$url = get_month_link($arcresult->year, $arcresult->month);
if ($show_post_count) {
$text = sprintf("%s %d", $month[zeroise($arcresult->month,2)], $arcresult->year);
$after = "&nbsp;($arcresult->posts)";
$text = sprintf('%s %d', $month[zeroise($arcresult->month,2)], $arcresult->year);
$after = '&nbsp;('.$arcresult->posts.')';
} else {
$text = sprintf("%s %d", $month[zeroise($arcresult->month,2)], $arcresult->year);
$text = sprintf('%s %d', $month[zeroise($arcresult->month,2)], $arcresult->year);
}
echo get_archives_link($url, $text, $format, $before, $after);
}
@ -279,7 +279,7 @@ function get_archives($type='', $limit='', $format='html', $before = "", $after
$arc_week = get_weekstartend($arcresult->yyyymmdd, $start_of_week);
$arc_week_start = date_i18n($archive_week_start_date_format, $arc_week['start']);
$arc_week_end = date_i18n($archive_week_end_date_format, $arc_week['end']);
$url = sprintf("%s/%s%sm%s%s%sw%s%d", $siteurl, $blogfilename, $querystring_start,
$url = sprintf('%s/%s%sm%s%s%sw%s%d', $siteurl, $blogfilename, $querystring_start,
$querystring_equal, $arc_year, $querystring_separator,
$querystring_equal, $arcresult->week);
$text = $arc_week_start . $archive_week_separator . $arc_week_end;
@ -459,7 +459,7 @@ function get_calendar($daylength = 1) {
if ($day == date('j', (time() + ($time_difference * 3600))) && $thismonth == date('m', time()+($time_difference * 3600)))
echo '<td id="today">';
else
echo "<td>";
echo '<td>';
if (in_array($day, $daywithpost)) { // any posts today?
echo '<a href="' . get_day_link($thisyear, $thismonth, $day) . "\" title=\"$ak_titles_for_day[$day]\">$day</a>";
@ -482,13 +482,13 @@ function get_calendar($daylength = 1) {
function allowed_tags() {
global $allowedtags;
foreach($allowedtags as $tag => $attributes) {
$allowed .= "<$tag";
$allowed .= '<'.$tag;
if (0 < count($attributes)) {
foreach ($attributes as $attribute => $limits) {
$allowed .= " $attribute=\"\"";
$allowed .= ' '.$attribute.'=""';
}
}
$allowed .= "> ";
$allowed .= '> ';
}
return htmlentities($allowed);
}
@ -497,7 +497,7 @@ function allowed_tags() {
function the_date_xml() {
global $post;
echo mysql2date("Y-m-d",$post->post_date);
echo mysql2date('Y-m-d',$post->post_date);
//echo ""+$post->post_date;
}