From 81d0f15c80dd0488b406b991e184251a68047adf Mon Sep 17 00:00:00 2001 From: James Nylen Date: Fri, 26 May 2017 17:32:24 -0400 Subject: [PATCH] Fix whether `moment.js` is minified or not based on SCRIPT_DEBUG --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 096892b51a7e26..7ee38f3d33d259 100644 --- a/index.php +++ b/index.php @@ -172,7 +172,7 @@ function gutenberg_register_scripts() { 'https://unpkg.com/react-dom@next/umd/react-dom-server' . $react_suffix . '.js', array( 'react' ) ); - $moment_script = SCRIPT_DEBUG ? 'min/moment.min.js' : 'moment.js'; + $moment_script = SCRIPT_DEBUG ? 'moment.js' : 'min/moment.min.js'; gutenberg_register_vendor_script( 'moment', 'https://unpkg.com/moment@2.18.1/' . $moment_script,