Fix previous and next post link function

This commit is contained in:
Brian Miyaji
2014-06-26 20:27:43 +10:00
parent bb0158fad2
commit 0514fd25dc

View File

@@ -366,8 +366,8 @@ function sportspress_post_updated_messages( $messages ) {
return $messages;
}
function sportspress_hide_adjacent_post_links( $output, $format, $link, $post ) {
if ( property_exists( $post, 'post_type' ) && in_array( $post->post_type, sp_post_types() ) )
function sportspress_hide_adjacent_post_links( $output = null, $format = null, $link = null, $post = null ) {
if ( is_object( $post ) && property_exists( $post, 'post_type' ) && in_array( $post->post_type, sp_post_types() ) )
return false;
return $output;
}