diff --git a/src/AssetsController.php b/src/AssetsController.php index 85990ba61b8..4d25eef1da9 100644 --- a/src/AssetsController.php +++ b/src/AssetsController.php @@ -86,7 +86,7 @@ public function register_assets() { * @return array URLs to print for resource hints. */ public function add_resource_hints( $urls, $relation_type ) { - if ( ! in_array( $relation_type, [ 'prefetch', 'prerender' ], true ) ) { + if ( ! in_array( $relation_type, [ 'prefetch', 'prerender' ], true ) || is_admin() ) { return $urls; }