Skip to content
Browse files

Fix yet another parse error from b4393dd

I'm tired.
  • Loading branch information...
1 parent 6ab0f05 commit 5e7756a26b16c4489c498a11aa5b2417146f770f @jayj committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 functions/widget-related-posts.php
View
4 functions/widget-related-posts.php
@@ -249,7 +249,7 @@ function flush_widget_cache( $post_ID = null ) {
/* A post is being updated or deleted */
if ( isset( $post_ID ) ) :
// Delete the related post meta for all the related posts
- if ( isset( $related_meta ) ) {
+ if ( isset( $related_meta ) ) :
$related_posts = array( $post_ID );
@@ -258,7 +258,7 @@ function flush_widget_cache( $post_ID = null ) {
foreach( get_posts( array( 'include' => $related_posts, 'post_type' => 'post' ) ) as $postinfo )
delete_post_meta( $postinfo->ID, 'related' );
- }
+ endif;
// The widget settings has been updated: delete the post meta for all posts
else :

0 comments on commit 5e7756a

Please sign in to comment.
Something went wrong with that request. Please try again.