From afd13cc6b95826c618c9a9e08a1d35b8065262c4 Mon Sep 17 00:00:00 2001 From: Brandon Payton Date: Mon, 9 Jul 2018 23:23:32 -0700 Subject: [PATCH] Fix incorrect polyfill script handles (#7857) This change fixes incorrect polyfill script handles introduced by e697f72. --- lib/client-assets.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/client-assets.php b/lib/client-assets.php index 950f611cfc6fea..6d75bbab9b8042 100644 --- a/lib/client-assets.php +++ b/lib/client-assets.php @@ -185,7 +185,7 @@ function gutenberg_register_scripts_and_styles() { wp_add_inline_script( 'wp-dom', gutenberg_get_script_polyfill( array( - 'document.contains' => 'node-contains', + 'document.contains' => 'wp-polyfill-node-contains', ) ), 'before' ); @@ -274,8 +274,8 @@ function gutenberg_register_scripts_and_styles() { wp_add_inline_script( 'wp-blocks', gutenberg_get_script_polyfill( array( - '\'Promise\' in window' => 'promise', - '\'fetch\' in window' => 'fetch', + '\'Promise\' in window' => 'wp-polyfill-promise', + '\'fetch\' in window' => 'wp-polyfill-fetch', ) ), 'before' ); @@ -445,7 +445,7 @@ function gutenberg_register_scripts_and_styles() { ); wp_add_inline_script( 'wp-edit-post', - gutenberg_get_script_polyfill( array( 'window.FormData && window.FormData.prototype.keys' => 'formdata' ) ), + gutenberg_get_script_polyfill( array( 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata' ) ), 'before' );