diff --git a/modules/post-actions/load.php b/modules/post-actions/load.php index 425ab5a..62f2e45 100644 --- a/modules/post-actions/load.php +++ b/modules/post-actions/load.php @@ -91,7 +91,8 @@ function before_post_likes( $content ) { return $content; } - $actions = apply_filters( 'o2_filter_post_actions', array(), $post->ID ); + $post_id = ! empty( $post->ID ) ? $post->ID : 0; + $actions = apply_filters( 'o2_filter_post_actions', array(), $post_id ); $content .= "