diff --git a/wp-admin/edit-form-blocks.php b/wp-admin/edit-form-blocks.php index c1c37487ef..3e4fd40e7f 100644 --- a/wp-admin/edit-form-blocks.php +++ b/wp-admin/edit-form-blocks.php @@ -125,7 +125,11 @@ $meta_box_url = add_query_arg( ), $meta_box_url ); -wp_localize_script( 'wp-editor', '_wpMetaBoxUrl', $meta_box_url ); +wp_add_inline_script( + 'wp-editor', + sprintf( 'var _wpMetaBoxUrl = %s;', wp_json_encode( $meta_box_url ) ), + 'before' +); /* diff --git a/wp-includes/version.php b/wp-includes/version.php index 554cf7c8b3..a8fdb969ef 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-alpha-48840'; +$wp_version = '5.6-alpha-48841'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.