diff --git a/inc/class-main.php b/inc/class-main.php index e2ac4feab..9eeb853e1 100644 --- a/inc/class-main.php +++ b/inc/class-main.php @@ -525,8 +525,6 @@ public function generate_svg_attachment_metadata( $metadata, $attachment_id ) { * Disable canonical redirect to make Posts pagination feature work. * * @param \WP_Query $request The query object. - * - * @return \WP_Query */ public function pagination_support( $request ) { if ( @@ -540,7 +538,6 @@ public function pagination_support( $request ) { ) { add_filter( 'redirect_canonical', '__return_false' ); } - return $request; }