diff --git wp-includes/deprecated.php wp-includes/deprecated.php
index 582b2fd..a255015 100644
|
|
function get_boundary_post_rel_link($title = '%title', $in_same_cat = false, $ex |
2634 | 2634 | |
2635 | 2635 | $posts = get_boundary_post($in_same_cat, $excluded_categories, $start); |
2636 | 2636 | // If there is no post stop. |
2637 | | if ( empty($posts) ) |
| 2637 | if ( empty($posts) || ! is_single() || is_attachment() ) |
2638 | 2638 | return; |
2639 | 2639 | |
2640 | 2640 | // Even though we limited get_posts to return only 1 item it still returns an array of objects. |
diff --git wp-includes/link-template.php wp-includes/link-template.php
index 656313e..6fdfef6 100644
|
|
function prev_post_rel_link( $title = '%title', $in_same_term = false, $excluded |
1753 | 1753 | */ |
1754 | 1754 | function get_boundary_post( $in_same_term = false, $excluded_terms = '', $start = true, $taxonomy = 'category' ) { |
1755 | 1755 | $post = get_post(); |
1756 | | if ( ! $post || ! is_single() || is_attachment() || ! taxonomy_exists( $taxonomy ) ) |
| 1756 | if ( ! taxonomy_exists( $taxonomy ) ) |
1757 | 1757 | return null; |
1758 | 1758 | |
1759 | 1759 | $query_args = array( |