Permalink
Browse files

Changed “non-printable” characters to HTML entities per Theme-Check

  • Loading branch information...
splorp committed Dec 14, 2013
1 parent 061f192 commit 25969a3fe32000fc18940dabda9536dcd75af55d
Showing with 36 additions and 34 deletions.
  1. +5 −3 404.php
  2. +8 −8 archive.php
  3. +2 −2 category.php
  4. +1 −1 comments.php
  5. +2 −2 functions.php
  6. +3 −3 image.php
  7. +3 −3 index.php
  8. +4 −4 search.php
  9. +3 −3 sidebar.php
  10. +3 −3 single.php
  11. +2 −2 tag.php
View
@@ -10,8 +10,10 @@
<?php
/*
- * Note: The category_base and tag_base values are null by default and only return
- * a value if they’ve been set by the user. See: Settings > Permalinks > Optional
+ * The category_base and tag_base values are null by default
+ * and only return a value if they have been set by the user.
+ *
+ * cf. Settings > Permalinks > Optional
*/
$c == get_option('category_base');
@@ -47,7 +49,7 @@
<?php } else { ?>
<h2>Not found.</h2>
- <p>Sorry, you seem to be looking for something that simply isnt here.</p>
+ <p>Sorry, you seem to be looking for something that simply isn&#8217;t here.</p>
<?php } ?>
View
@@ -12,11 +12,11 @@
<?php $post = $posts[0];
// This is a hack.
- // We’re setting $post so that the_date() works.
+ // Setting $post so that the_date() works.
if (is_category()) { ?>
- <h2>Category: <?php single_cat_title(); ?> category</h2>
+ <h2>Category: &#8220;<?php single_cat_title(); ?>&#8221; category</h2>
<?php } elseif( is_tag() ) { ?>
- <h2>Tag: <?php single_tag_title(); ?></h2>
+ <h2>Tag: &#8220;<?php single_tag_title(); ?>&#8221;</h2>
<?php } elseif (is_day()) { ?>
<h2>Archive: <?php the_time('F jS, Y'); ?></h2>
<?php } elseif (is_month()) { ?>
@@ -37,9 +37,9 @@
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
<p class="published" title="<?php the_time('c') ?>"><?php the_date() ?></p>
- <h3 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent link to <?php the_title_attribute(); ?>"><?php if(the_title( '', '', false ) !='') the_title(); else echo 'Untitled';?></a></h3>
+ <h3 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent link to &#8220;<?php the_title_attribute(); ?>&#8221;"><?php if(the_title( '', '', false ) !='') the_title(); else echo 'Untitled';?></a></h3>
<?php the_excerpt(); ?>
- <p class="meta">This item was posted by <span class="vcard author"><cite class="fn"><a class="url" href="<?php the_author_meta('user_url') ?>" title="Visit the authors site"><?php the_author_meta('display_name'); ?></a></cite></span>.</p>
+ <p class="meta">This item was posted by <span class="vcard author"><cite class="fn"><a class="url" href="<?php the_author_meta('user_url') ?>" title="Visit the author&#8217;s site"><?php the_author_meta('display_name'); ?></a></cite></span>.</p>
<?php edit_post_link('Edit', '<p>', '</p>'); ?>
</article>
@@ -51,12 +51,12 @@
<?php else :
if ( is_category() ) {
- printf("<h2>Sorry, but there arent any posts in the %s category yet.</h2>", single_cat_title('',false));
+ printf("<h2>Sorry, but there aren&#8217;t any posts in the %s category yet.</h2>", single_cat_title('',false));
} elseif ( is_date() ) {
- echo("<h2>Sorry, but there arent any posts with this date.</h2>");
+ echo("<h2>Sorry, but there aren&#8217;t any posts with this date.</h2>");
} elseif ( is_author() ) {
$userdata = get_userdatabylogin(get_query_var('author_name'));
- printf("<h2>Sorry, but there arent any posts by %s yet.</h2>", $userdata->display_name);
+ printf("<h2>Sorry, but there aren&#8217;t any posts by %s yet.</h2>", $userdata->display_name);
} else {
echo("<h2>Sorry, no posts found.</h2>");
}
View
@@ -36,9 +36,9 @@
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
<p class="published" title="<?php the_time('c') ?>"><?php the_date() ?></p>
- <h3 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent link to <?php the_title_attribute(); ?>"><?php if(the_title( '', '', false ) !='') the_title(); else echo 'Untitled';?></a></h3>
+ <h3 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent link to &#8220;<?php the_title_attribute(); ?>&#8221;"><?php if(the_title( '', '', false ) !='') the_title(); else echo 'Untitled';?></a></h3>
<?php the_excerpt(); ?>
- <p class="meta">This item was posted by <span class="vcard author"><cite class="fn"><a class="url" href="<?php the_author_meta('user_url') ?>" title="Visit the authors site"><?php the_author_meta('display_name'); ?></a></cite></span>.</p>
+ <p class="meta">This item was posted by <span class="vcard author"><cite class="fn"><a class="url" href="<?php the_author_meta('user_url') ?>" title="Visit the author&#8217;s site"><?php the_author_meta('display_name'); ?></a></cite></span>.</p>
<?php edit_post_link('Edit','<p>','</p>'); ?>
</article>
View
@@ -18,7 +18,7 @@
}
if ( have_comments() ) : ?>
- <h3><?php comments_number('No Comments', 'One comment', '% comments' );?> on <?php the_title(); ?></h3>
+ <h3><?php comments_number('No Comments', 'One comment', '% comments' );?> on &#8220;<?php the_title(); ?>&#8221;</h3>
<?php if (show_comments_link_nav()): ?>
<p><?php previous_comments_link('Older'); delim_comment_link(); next_comments_link('Newer') ?></p>
View
@@ -548,7 +548,7 @@ function new_excerpt_more($more) {
global $post;
$t = get_post($post->ID);
$title = $t->post_title;
- return ' <a href="' . get_permalink($post->ID) . '" title="Read the rest of ' . $title . '">Read the rest of this item</a>';
+ return ' &#8230; <a href="' . get_permalink($post->ID) . '" title="Read the rest of &#8220;' . $title . '&#8221;">Read the rest of this item</a>';
}
add_filter('excerpt_more', 'new_excerpt_more');
@@ -584,7 +584,7 @@ function tersus_title( $title, $sep ) {
// Add pretty search terms
if ( is_search() )
- $title = 'Search Results ' . "$sep " . '' . get_search_query() . '' . " $sep " . get_bloginfo( 'name' );
+ $title = 'Search Results ' . "$sep " . '&#8220;' . get_search_query() . '&#8221;' . " $sep " . get_bloginfo( 'name' );
// Add a page number if necessary
if ( $paged >= 2 || $page >= 2 )
View
@@ -26,7 +26,7 @@
the_content();
?>
- <p>This item was posted by <span class="vcard author"><cite class="fn"><a class="url" href="<?php the_author_meta('user_url') ?>" title="Visit the authors site"><?php the_author_meta('display_name'); ?></a></cite></span> in <a href="<?php echo get_permalink($post->post_parent); ?>" title="View the gallery"><?php echo get_the_title($post->post_parent); ?></a>.</p>
+ <p>This item was posted by <span class="vcard author"><cite class="fn"><a class="url" href="<?php the_author_meta('user_url') ?>" title="Visit the author&#8217;s site"><?php the_author_meta('display_name'); ?></a></cite></span> in <a href="<?php echo get_permalink($post->post_parent); ?>" title="View the gallery"><?php echo get_the_title($post->post_parent); ?></a>.</p>
<?php the_taxonomies(); ?>
@@ -46,12 +46,12 @@
</article>
-<?php comments_template(); ?>
-
<?php if (show_image_link_nav()): ?>
<p><?php previous_image_link(0,'Previous Image'); delim_image_link(); next_image_link(0,'Next Image'); ?></p>
<?php endif; ?>
+<?php comments_template(); ?>
+
<?php endwhile; else: ?>
<p>Sorry, no attachments matched your criteria.</p>
<?php endif; ?>
View
@@ -16,7 +16,7 @@
<?php if(!has_post_format('aside') && !has_post_format('image')) { ?>
<p class="published" title="<?php the_time('c') ?>"><?php the_date() ?></p>
- <h2 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
+ <h2 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent link to &#8220;<?php the_title_attribute(); ?>&#8221;"><?php the_title(); ?></a></h2>
<?php }
the_content();
@@ -25,7 +25,7 @@
<h6>Author</h6>
<p class="vcard author">
<cite class="fn">
- <a class="url" href="<?php the_author_meta('user_url') ?>" title="Visit the authors site">
+ <a class="url" href="<?php the_author_meta('user_url') ?>" title="Visit the author&#8217;s site">
<?php the_author_meta('display_name'); ?>
</a>
</cite>
@@ -51,7 +51,7 @@
<?php else : ?>
<h2>Not found.</h2>
- <p>Sorry, you seem to be looking for something that simply isnt here.</p>
+ <p>Sorry, you seem to be looking for something that simply isn&#8217;t here.</p>
<?php endif; ?>
</section>
View
@@ -10,7 +10,7 @@
<section id="content">
<?php if (have_posts()) : ?>
- <h2>Search: <span><?php the_search_query(); ?></span></h2>
+ <h2>Search: &#8220;<span><?php the_search_query(); ?></span>&#8221;</h2>
<?php if (show_posts_link_nav()): ?>
<p><?php next_posts_link('Older'); delim_posts_link(); previous_posts_link('Newer') ?></p>
@@ -20,9 +20,9 @@
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
<p class="published" title="<?php the_time('c') ?>"><?php the_date() ?></p>
- <h3 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent link to <?php the_title_attribute(); ?>"><?php if(the_title( '', '', false ) !='') the_title(); else echo 'Untitled';?></a></h3>
+ <h3 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent link to &#8220;<?php the_title_attribute(); ?>&#8221;"><?php if(the_title( '', '', false ) !='') the_title(); else echo 'Untitled';?></a></h3>
<?php the_excerpt(); ?>
- <p class="meta">This item was posted by <span class="vcard author"><cite class="fn"><a class="url" href="<?php the_author_meta('user_url') ?>" title="Visit the authors site"><?php the_author_meta('display_name'); ?></a></cite></span>.</p>
+ <p class="meta">This item was posted by <span class="vcard author"><cite class="fn"><a class="url" href="<?php the_author_meta('user_url') ?>" title="Visit the author&#8217;s site"><?php the_author_meta('display_name'); ?></a></cite></span>.</p>
<?php edit_post_link('Edit', '<p>', '</p>'); ?>
</article>
@@ -35,7 +35,7 @@
<?php else : ?>
<h2>Not found.</h2>
- <p>Sorry, you seem to be looking for something that simply isnt here.</p>
+ <p>Sorry, you seem to be looking for something that simply isn&#8217;t here.</p>
<?php endif; ?>
</section>
View
@@ -24,10 +24,10 @@
<?php if (is_404()) { ?>
<?php } elseif (is_category()) { ?>
- <p>You are browsing the <strong><?php single_cat_title(''); ?></strong> category archive.</p>
+ <p>You are browsing the <strong>&#8220;<?php single_cat_title(''); ?>&#8221;</strong> category archive.</p>
<?php } elseif (is_tag()) { ?>
- <p>You are browsing the <strong><?php single_tag_title(''); ?></strong> tag archive.</p>
+ <p>You are browsing the <strong>&#8220;<?php single_tag_title(''); ?>&#8221;</strong> tag archive.</p>
<?php } elseif (is_day()) { ?>
<p>You are browsing the <strong><?php the_time('l, F jS, Y'); ?></strong> archive.</p>
@@ -39,7 +39,7 @@
<p>You are browsing the <strong><?php the_time('Y'); ?></strong> archive.</p>
<?php } elseif (is_search()) { ?>
- <p>You are browsing the search results for <strong><?php the_search_query(); ?></strong>.</p>
+ <p>You are browsing the search results for <strong>&#8220;<?php the_search_query(); ?>&#8221;</strong>.</p>
<?php } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<p>You are browsing the archive.</p>
View
@@ -20,7 +20,7 @@
<h2 class="entry-title"><?php if(the_title( '', '', false ) !='') the_title(); else echo 'Untitled';?></h2>
<?php the_content(); ?>
<?php wp_link_pages(array('before' => '<p>Pages: ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
- <p>This item was posted by <span class="vcard author"><cite class="fn"><a class="url" href="<?php the_author_meta('user_url') ?>" title="Visit the authors site"><?php the_author_meta('display_name'); ?></a></cite></span>.</p>
+ <p>This item was posted by <span class="vcard author"><cite class="fn"><a class="url" href="<?php the_author_meta('user_url') ?>" title="Visit the author&#8217;s site"><?php the_author_meta('display_name'); ?></a></cite></span>.</p>
<?php if (has_tag()) echo '<p>Tags:</p>'; the_tags('<ul><li>','</li><li>','</li></ul>'); ?>
@@ -45,12 +45,12 @@
</article>
-<?php comments_template(); ?>
-
<?php if (show_post_link_nav()): ?>
<p><?php previous_post_link('%link'); delim_post_link(); next_post_link('%link') ?></p>
<?php endif; ?>
+<?php comments_template(); ?>
+
<?php endwhile; else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
View
@@ -26,9 +26,9 @@
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
<p class="published" title="<?php the_time('c') ?>"><?php the_date() ?></p>
- <h3 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent link to <?php the_title_attribute(); ?>"><?php if(the_title( '', '', false ) !='') the_title(); else echo 'Untitled';?></a></h3>
+ <h3 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent link to &#8220;<?php the_title_attribute(); ?>&#8221;"><?php if(the_title( '', '', false ) !='') the_title(); else echo 'Untitled';?></a></h3>
<?php the_excerpt(); ?>
- <p class="meta">This item was posted by <span class="vcard author"><cite class="fn"><a class="url" href="<?php the_author_meta('user_url') ?>" title="Visit the authors site"><?php the_author_meta('display_name'); ?></a></cite></span>.</p>
+ <p class="meta">This item was posted by <span class="vcard author"><cite class="fn"><a class="url" href="<?php the_author_meta('user_url') ?>" title="Visit the author&#8217;s site"><?php the_author_meta('display_name'); ?></a></cite></span>.</p>
<?php edit_post_link('Edit','<p>','</p>'); ?>
</article>

0 comments on commit 25969a3

Please sign in to comment.