Fix previous and next post link function
This commit is contained in:
@@ -366,8 +366,8 @@ function sportspress_post_updated_messages( $messages ) {
|
|||||||
return $messages;
|
return $messages;
|
||||||
}
|
}
|
||||||
|
|
||||||
function sportspress_hide_adjacent_post_links( $output, $format, $link, $post ) {
|
function sportspress_hide_adjacent_post_links( $output = null, $format = null, $link = null, $post = null ) {
|
||||||
if ( property_exists( $post, 'post_type' ) && in_array( $post->post_type, sp_post_types() ) )
|
if ( is_object( $post ) && property_exists( $post, 'post_type' ) && in_array( $post->post_type, sp_post_types() ) )
|
||||||
return false;
|
return false;
|
||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user