Permalink
Browse files

Critical Bug Fixes

Fixed a critical bug in category.php, search.php, and tag.php. Includes
other minor updates.
  • Loading branch information...
Brian Purkiss
Brian Purkiss committed Jan 16, 2012
1 parent 82d3b9f commit fbdf627bbda13a48bb77703e1201dd073c2263cd
View
@@ -17,7 +17,7 @@
<div class="post-single">
<h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php if ( has_post_thumbnail() ) { /* loades the post's featured thumbnail, requires Wordpress 3.0+ */ echo '<div class="featured-thumbnail">'; the_post_thumbnail(); echo '</div>'; } ?>
- <p><?php _e('Written on '); the_time('F j, Y'); _e(' at '); the_time() _e(', by '); the_author_posts_link() ?></p>
+ <p><?php _e('Written on '); the_time('F j, Y'); _e(' at '); the_time(); _e(', by '); the_author_posts_link() ?></p>
<div class="post-excerpt">
<?php the_excerpt(); /* the excerpt is loaded to help avoid duplicate content issues */ ?>
</div>
View
@@ -9,7 +9,7 @@
<h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php if ( has_post_thumbnail() ) { /* loades the post's featured thumbnail, requires Wordpress 3.0+ */ echo '<div class="featured-thumbnail">'; the_post_thumbnail(); echo '</div>'; } ?>
- <p><?php _e('Written on '); the_time('F j, Y'); _e(' at '); the_time() _e(', by '); the_author_posts_link() ?></p>
+ <p><?php _e('Written on '); the_time('F j, Y'); _e(' at '); the_time(); _e(', by '); the_author_posts_link() ?></p>
<div class="post-excerpt">
<?php the_excerpt(); /* the excerpt is loaded to help avoid duplicate content issues */ ?>
</div>
View
@@ -137,8 +137,15 @@ function category_id_class($classes) {
}
add_filter('post_class', 'category_id_class');
add_filter('body_class', 'category_id_class');
-
-
+
+ // adds a class to the post if there is a thumbnail
+ function has_thumb_class($classes) {
+ global $post;
+ if( has_post_thumbnail($post->ID) ) { $classes[] = 'has_thumb'; }
+ return $classes;
+ }
+ add_filter('post_class', 'has_thumb_class');
+
// add_action( 'admin_init', 'theme_options_init' );
// add_action( 'admin_menu', 'theme_options_add_page' );
View
@@ -16,7 +16,7 @@
<div id="page-meta">
<h3><?php _e('Written by '); the_author_posts_link() ?></h3>
- <p class="gravatar"><?php if(function_exists('get_avatar')) { echo get_avatar( get_the_author_email(), '80' ); } ?></p>
+ <p class="gravatar"><?php if(function_exists('get_avatar')) { echo get_avatar( get_the_author_meta('email'), '80' ); } ?></p>
<p><?php _e('Posted on '); the_time('F j, Y'); _e(' at '); the_time() ?></p>
</div><!--#pageMeta-->
</div><!--#post-# .post-->
View
@@ -7,7 +7,7 @@
<div class="post-single">
<h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php if ( has_post_thumbnail() ) { /* loades the post's featured thumbnail, requires Wordpress 3.0+ */ echo '<div class="featured-thumbnail">'; the_post_thumbnail(); echo '</div>'; } ?>
- <p><?php _e('Written on '); the_time('F j, Y'); _e(' at '); the_time() _e(', by '); the_author_posts_link() ?></p>
+ <p><?php _e('Written on '); the_time('F j, Y'); _e(' at '); the_time(); _e(', by '); the_author_posts_link() ?></p>
<div class="post-excerpt">
<?php the_excerpt(); /* the excerpt is loaded to help avoid duplicate content issues */ ?>
View
@@ -19,13 +19,13 @@
<p><?php _e(' Categories: '); the_category(', ') ?></p>
<p><?php the_tags('Tags: ', ', ', ' '); ?></p>
<p><?php _e('Receive new post updates:'); ?> <a href="<?php bloginfo('rss2_url'); ?>" rel="nofollow">Entries (RSS)</a></p>
- <p><?php _e('Receive follow up comments updates: '); ?><?php comments_rss_link('RSS 2.0'); ?></p>
+ <p><?php _e('Receive follow up comments updates: '); ?><?php post_comments_feed_link('RSS 2.0'); ?></p>
</div><!--#post-meta-->
<?php /* If a user fills out their bio info, it's included here */ ?>
<div id="post-author">
<h3><?php _e('Written by '); the_author_posts_link() ?></h3>
- <p class="gravatar"><?php if(function_exists('get_avatar')) { echo get_avatar( get_the_author_email(), '80' ); /* This avatar is the user's gravatar (http://gravatar.com) based on their administrative email address */ } ?></p>
+ <p class="gravatar"><?php if(function_exists('get_avatar')) { echo get_avatar( get_the_author_meta('email'), '80' ); /* This avatar is the user's gravatar (http://gravatar.com) based on their administrative email address */ } ?></p>
<div id="authorDescription">
<?php the_author_meta('description') ?>
<div id="author-link">
View
@@ -5,7 +5,7 @@ Theme URI: http://whiteboardframework.com/
Author: Bold Perspective
Author URI: http://boldperspective.com/
Description: Whiteboard Framework has been helping Wordpress developers cut back on their development time and improve their Wordpress powered websites since 2008.
-Version: 3.2
+Version: 3.2.1
* Built on the Whiteboard Framework
* http://whiteboardframework.com
@@ -22,7 +22,7 @@ List of divs in Whiteboard
Note that this list does not include the dynamically generated ids and classes, such as the body classes, the post ids, etc
*/
-body{
+body {
}
View
@@ -13,7 +13,7 @@
</div>
<div class="post-meta">
- <p><?php _e('Written on '); the_time('F j, Y'); _e(' at '); the_time() _e(', by '); the_author_posts_link() ?></p>
+ <p><?php _e('Written on '); the_time('F j, Y'); _e(' at '); the_time(); _e(', by '); the_author_posts_link() ?></p>
<p><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></p>
<p><?php _e('Categories: '); the_category(', ') ?></p>
<p><?php if (the_tags('Tags: ', ', ', ' ')); ?></p>
View
@@ -6,7 +6,7 @@
\f0\b\fs36 \cf0 Whiteboard
\b0\fs24 \
-Version 3.2\
+Version 3.2.1\
\
\
---\
@@ -62,6 +62,13 @@ Version 3.2\
\fs24 \
\
+\b version 3.2.1
+\b0 \
+ Fixed a critical bug on tag.php, category.php, and search.php - thanks to nddery (http://duvieusart.net/) for catching this\
+ Added a function to add a class to the post if there is a thumbnail\
+ Minor semantics updates - also thanks to nddery (http://duvieusart.net/)\
+\
+
\b version 3.2
\b0 \
Added the LifeGuard Help Plugin - More info: http://wplifeguard.com/lifeguard-plugin/\

0 comments on commit fbdf627

Please sign in to comment.