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:
parent
ba0f9c0f6b
commit
e1beab4cb8
|
@ -54,7 +54,7 @@ function comments_popup_script($width=400, $height=400, $file='wp-comments-popup
|
||||||
global $wpcommentspopupfile, $wptrackbackpopupfile, $wppingbackpopupfile, $wpcommentsjavascript;
|
global $wpcommentspopupfile, $wptrackbackpopupfile, $wppingbackpopupfile, $wpcommentsjavascript;
|
||||||
$wpcommentspopupfile = $file;
|
$wpcommentspopupfile = $file;
|
||||||
$wpcommentsjavascript = 1;
|
$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;
|
echo $javascript;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ function comments_popup_link($zero='No Comments', $one='1 Comment', $more='% Com
|
||||||
} else {
|
} else {
|
||||||
if (!empty($post->post_password)) { // if there's a password
|
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
|
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;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -171,7 +171,7 @@ function comment_author_url_link($linktext='', $before='', $after='') {
|
||||||
if ((!empty($url)) && ($url != 'http://') && ($url != 'http://url')) {
|
if ((!empty($url)) && ($url != 'http://') && ($url != 'http://url')) {
|
||||||
$display = ($linktext != '') ? $linktext : stripslashes($url);
|
$display = ($linktext != '') ? $linktext : stripslashes($url);
|
||||||
echo $before;
|
echo $before;
|
||||||
echo "<a href='$url' rel='external'>$display</a>";
|
echo '<a href="'.$url.'" rel="external">'.$display.'</a>';
|
||||||
echo $after;
|
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;
|
$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() {
|
function comment_author_rss() {
|
||||||
|
|
|
@ -35,49 +35,49 @@ function get_bloginfo($show='') {
|
||||||
}
|
}
|
||||||
|
|
||||||
switch($show) {
|
switch($show) {
|
||||||
case "url":
|
case 'url':
|
||||||
$output = $siteurl."/".$blogfilename;
|
$output = $siteurl.'/'.$blogfilename;
|
||||||
break;
|
break;
|
||||||
case "description":
|
case 'description':
|
||||||
$output = $blogdescription;
|
$output = $blogdescription;
|
||||||
break;
|
break;
|
||||||
case "rdf_url":
|
case 'rdf_url':
|
||||||
$output = $siteurl.'/wp-rdf.php';
|
$output = $siteurl.'/wp-rdf.php';
|
||||||
if ($do_perma) {
|
if ($do_perma) {
|
||||||
$output = $feed_url . '/rdf/';
|
$output = $feed_url . '/rdf/';
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "rss_url":
|
case 'rss_url':
|
||||||
$output = $siteurl.'/wp-rss.php';
|
$output = $siteurl.'/wp-rss.php';
|
||||||
if ($do_perma) {
|
if ($do_perma) {
|
||||||
$output = $feed_url . '/rss/';
|
$output = $feed_url . '/rss/';
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "rss2_url":
|
case 'rss2_url':
|
||||||
$output = $siteurl.'/wp-rss2.php';
|
$output = $siteurl.'/wp-rss2.php';
|
||||||
if ($do_perma) {
|
if ($do_perma) {
|
||||||
$output = $feed_url . '/rss2/';
|
$output = $feed_url . '/rss2/';
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "atom_url":
|
case 'atom_url':
|
||||||
$output = $siteurl.'/wp-atom.php';
|
$output = $siteurl.'/wp-atom.php';
|
||||||
if ($do_perma) {
|
if ($do_perma) {
|
||||||
$output = $feed_url . '/atom/';
|
$output = $feed_url . '/atom/';
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "comments_rss2_url":
|
case 'comments_rss2_url':
|
||||||
$output = $siteurl.'/wp-commentsrss2.php';
|
$output = $siteurl.'/wp-commentsrss2.php';
|
||||||
if ($do_perma) {
|
if ($do_perma) {
|
||||||
$output = $comment_feed_url . '/rss2/';
|
$output = $comment_feed_url . '/rss2/';
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "pingback_url":
|
case 'pingback_ur'":
|
||||||
$output = $siteurl.'/xmlrpc.php';
|
$output = $siteurl.'/xmlrpc.php';
|
||||||
break;
|
break;
|
||||||
case "admin_email":
|
case 'admin_email':
|
||||||
$output = $admin_email;
|
$output = $admin_email;
|
||||||
break;
|
break;
|
||||||
case "name":
|
case 'name':
|
||||||
default:
|
default:
|
||||||
$output = $blogname;
|
$output = $blogname;
|
||||||
break;
|
break;
|
||||||
|
@ -213,7 +213,7 @@ function get_archives($type='', $limit='', $format='html', $before = "", $after
|
||||||
|
|
||||||
if ('' != $limit) {
|
if ('' != $limit) {
|
||||||
$limit = (int) $limit;
|
$limit = (int) $limit;
|
||||||
$limit = " LIMIT $limit";
|
$limit = ' LIMIT '.$limit;
|
||||||
}
|
}
|
||||||
// this is what will separate dates on weekly archive links
|
// this is what will separate dates on weekly archive links
|
||||||
$archive_week_separator = '–';
|
$archive_week_separator = '–';
|
||||||
|
@ -247,10 +247,10 @@ function get_archives($type='', $limit='', $format='html', $before = "", $after
|
||||||
foreach ($arcresults as $arcresult) {
|
foreach ($arcresults as $arcresult) {
|
||||||
$url = get_month_link($arcresult->year, $arcresult->month);
|
$url = get_month_link($arcresult->year, $arcresult->month);
|
||||||
if ($show_post_count) {
|
if ($show_post_count) {
|
||||||
$text = sprintf("%s %d", $month[zeroise($arcresult->month,2)], $arcresult->year);
|
$text = sprintf('%s %d', $month[zeroise($arcresult->month,2)], $arcresult->year);
|
||||||
$after = " ($arcresult->posts)";
|
$after = ' ('.$arcresult->posts.')';
|
||||||
} else {
|
} 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);
|
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 = get_weekstartend($arcresult->yyyymmdd, $start_of_week);
|
||||||
$arc_week_start = date_i18n($archive_week_start_date_format, $arc_week['start']);
|
$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']);
|
$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, $arc_year, $querystring_separator,
|
||||||
$querystring_equal, $arcresult->week);
|
$querystring_equal, $arcresult->week);
|
||||||
$text = $arc_week_start . $archive_week_separator . $arc_week_end;
|
$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)))
|
if ($day == date('j', (time() + ($time_difference * 3600))) && $thismonth == date('m', time()+($time_difference * 3600)))
|
||||||
echo '<td id="today">';
|
echo '<td id="today">';
|
||||||
else
|
else
|
||||||
echo "<td>";
|
echo '<td>';
|
||||||
|
|
||||||
if (in_array($day, $daywithpost)) { // any posts today?
|
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>";
|
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() {
|
function allowed_tags() {
|
||||||
global $allowedtags;
|
global $allowedtags;
|
||||||
foreach($allowedtags as $tag => $attributes) {
|
foreach($allowedtags as $tag => $attributes) {
|
||||||
$allowed .= "<$tag";
|
$allowed .= '<'.$tag;
|
||||||
if (0 < count($attributes)) {
|
if (0 < count($attributes)) {
|
||||||
foreach ($attributes as $attribute => $limits) {
|
foreach ($attributes as $attribute => $limits) {
|
||||||
$allowed .= " $attribute=\"\"";
|
$allowed .= ' '.$attribute.'=""';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$allowed .= "> ";
|
$allowed .= '> ';
|
||||||
}
|
}
|
||||||
return htmlentities($allowed);
|
return htmlentities($allowed);
|
||||||
}
|
}
|
||||||
|
@ -497,7 +497,7 @@ function allowed_tags() {
|
||||||
|
|
||||||
function the_date_xml() {
|
function the_date_xml() {
|
||||||
global $post;
|
global $post;
|
||||||
echo mysql2date("Y-m-d",$post->post_date);
|
echo mysql2date('Y-m-d',$post->post_date);
|
||||||
//echo ""+$post->post_date;
|
//echo ""+$post->post_date;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue