Skip to content

Commit

Permalink
Initialize status variable to prevent a debug notice.
Browse files Browse the repository at this point in the history
  • Loading branch information
bradyvercher committed Jan 25, 2015
1 parent 8f12d07 commit f9bca08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/class-simple-image-widget-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ protected function get_found_posts_html( $posts ) {
foreach ( $posts as $post ) {
$title = trim( $post->post_title ) ? $post->post_title : __( '(no title)' );
$post_link = 'attachment' == get_post_type( $post->ID ) ? wp_get_attachment_url( $post->ID ) : get_permalink( $post->ID );
$status = '';

switch ( $post->post_status ) {
case 'publish' :
Expand Down

0 comments on commit f9bca08

Please sign in to comment.