diff --git a/src/wp-includes/link-template.php b/src/wp-includes/link-template.php index d21100f457..c63355eab3 100644 --- a/src/wp-includes/link-template.php +++ b/src/wp-includes/link-template.php @@ -1133,7 +1133,7 @@ function get_adjacent_post( $in_same_term = false, $excluded_terms = '', $previo $excluded_terms = array(); } - $adjacent = new WP_Get_Adjacent_Post( array( + $adjacent = new WP_Adjacent_Post( array( 'post' => get_post(), 'previous' => $previous, 'taxonomy' => $taxonomy, @@ -1151,7 +1151,7 @@ function get_adjacent_post( $in_same_term = false, $excluded_terms = '', $previo * next post based on the criteria specified. Supports retrieving posts with the * same taxonomy terms and posts that lack specific terms. */ -class WP_Get_Adjacent_Post { +class WP_Adjacent_Post { public $adjacent_post = null; protected $current_post = false;