diff --git a/includes/server/api.php b/includes/server/api.php index ad382b7..f02e1b9 100644 --- a/includes/server/api.php +++ b/includes/server/api.php @@ -119,9 +119,7 @@ function handle_non_api_requests() { global $wp_query; $accept = $_SERVER['HTTP_ACCEPT']; if ( strpos( $accept, 'application/ld+json' ) !== false ) { - $current_url = \trailingslashit( - home_url( add_query_arg( $_GET, $wp->request ) ) - ); + $current_url = home_url( add_query_arg( $_GET, \trailingslashit( $wp->request ) ) ); $objects = \pterotype\objects\get_objects_by( 'url', $current_url ); if ( count( $objects ) > 0 ) { $object = $objects[0];