Fix argument passed to filter

This commit is contained in:
Tetrakern 2024-01-28 00:19:44 +01:00
parent 4b8117bf52
commit fe878126ec
2 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ remove_filter( 'posts_where', 'fictioneer_exclude_protected_posts' );
}
$title = fictioneer_get_safe_title( $post->ID );
$story = $story_id ? fictioneer_get_story_data( $story_id, false ) : false; // Does not refresh comment count!
$story = $story_id ? fictioneer_get_story_data( $story_id, false ) : null; // Does not refresh comment count!
$text_icon = get_post_meta( $post->ID, 'fictioneer_chapter_text_icon', true );
// Chapter images

View File

@ -123,7 +123,7 @@ remove_filter( 'posts_where', 'fictioneer_exclude_protected_posts' );
$title = fictioneer_get_safe_title( $post->ID );
$chapter_rating = get_post_meta( $post->ID, 'fictioneer_chapter_rating', true );
$story = $story_id ? fictioneer_get_story_data( $story_id, false ) : false; // Does not refresh comment count!
$story = $story_id ? fictioneer_get_story_data( $story_id, false ) : null; // Does not refresh comment count!
$text_icon = get_post_meta( $post->ID, 'fictioneer_chapter_text_icon', true );
// Chapter images