From 8325c5e0f937344399cd90ee9fda7c7f7c37d0b4 Mon Sep 17 00:00:00 2001 From: Lax Mariappan Date: Thu, 7 Dec 2023 13:32:44 +0530 Subject: [PATCH] fix PHPCS spacing on the patch --- src/wp-includes/canonical.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/canonical.php b/src/wp-includes/canonical.php index 03ec61178c9c6..6cb11bcaeef21 100644 --- a/src/wp-includes/canonical.php +++ b/src/wp-includes/canonical.php @@ -555,7 +555,7 @@ function redirect_canonical( $requested_url = null, $do_redirect = true ) { // If attachment is attached to a post, attachment page inherits parent post's private status, // so fetch the post to have its private status checked later. if ( $attachment_parent_id ) { - $redirect_obj = get_post ( $attachment_parent_id ); + $redirect_obj = get_post( $attachment_parent_id ); } $redirect_url = wp_get_attachment_url( $attachment_id );