Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions modules/post-actions/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 .= "<nav class='o2-post-footer-actions'>";

Expand Down Expand Up @@ -123,7 +124,8 @@ function after_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 .= "</div>";
$content .= "<ul class='o2-post-footer-action-row'>";
Expand Down