Skip to content

Commit

Permalink
Merge pull request #2 from clubduece/scrutinizer-patch-1
Browse files Browse the repository at this point in the history
Scrutinizer Auto-Fixes
  • Loading branch information
Daryl Lozupone committed Apr 29, 2015
2 parents a831ec9 + 63f1a60 commit 68e94ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/class-custom-sidebars.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ public function init() {

$query = new WP_Query( $args );

if( $query->have_posts() ) {
if ( $query->have_posts() ) {
$posts = $query->posts;
}

wp_cache_set( 'posts', 'custom_sidebars' );
}

foreach( $posts as $post ) {
foreach ( $posts as $post ) {
$args = apply_filters( 'custom_sidebar_args', array(
'name' => sprintf( __( 'Sidebar: %s', 'custom_sidebars' ), $post->post_title ),
'id' => $this->get_sidebar_id( $post->ID ),
Expand Down

0 comments on commit 68e94ce

Please sign in to comment.