wp_default_packages_vendor

The timeline below displays how wordpress function wp_default_packages_vendor has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.5

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @global WP_Locale $wp_locale WordPress date and time locale object.
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor($scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'regenerator-runtime', 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-importmap', 'wp-polyfill-node-contains', 'wp-polyfill-url', 'wp-polyfill-dom-rect', 'wp-polyfill-element-closest', 'wp-polyfill-object-fit', 'wp-polyfill-inert', 'wp-polyfill' => array('wp-polyfill-inert', 'regenerator-runtime'));
    $vendor_scripts_versions = array('react' => '18.2.0', 'react-dom' => '18.2.0', 'regenerator-runtime' => '0.14.0', 'moment' => '2.29.4', 'lodash' => '4.17.21', 'wp-polyfill-fetch' => '3.6.17', 'wp-polyfill-formdata' => '4.0.10', 'wp-polyfill-node-contains' => '4.8.0', 'wp-polyfill-url' => '3.6.4', 'wp-polyfill-dom-rect' => '4.8.0', 'wp-polyfill-element-closest' => '3.0.2', 'wp-polyfill-object-fit' => '2.3.5', 'wp-polyfill-inert' => '3.1.2', 'wp-polyfill' => '3.15.0', 'wp-polyfill-importmap' => '1.8.2');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.updateLocale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y')), 'LLL' => __('F j, Y g:i a'), 'LLLL' => null)))), 'after');
}

WordPress Version: 6.4

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @global WP_Locale $wp_locale WordPress date and time locale object.
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor($scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'regenerator-runtime', 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-url', 'wp-polyfill-dom-rect', 'wp-polyfill-element-closest', 'wp-polyfill-object-fit', 'wp-polyfill-inert', 'wp-polyfill' => array('wp-polyfill-inert', 'regenerator-runtime'));
    $vendor_scripts_versions = array('react' => '18.2.0', 'react-dom' => '18.2.0', 'regenerator-runtime' => '0.14.0', 'moment' => '2.29.4', 'lodash' => '4.17.19', 'wp-polyfill-fetch' => '3.6.17', 'wp-polyfill-formdata' => '4.0.10', 'wp-polyfill-node-contains' => '4.8.0', 'wp-polyfill-url' => '3.6.4', 'wp-polyfill-dom-rect' => '4.8.0', 'wp-polyfill-element-closest' => '3.0.2', 'wp-polyfill-object-fit' => '2.3.5', 'wp-polyfill-inert' => '3.1.2', 'wp-polyfill' => '3.15.0');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.updateLocale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y')), 'LLL' => __('F j, Y g:i a'), 'LLLL' => null)))), 'after');
}

WordPress Version: 6.2

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @global WP_Locale $wp_locale WordPress date and time locale object.
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor($scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'regenerator-runtime', 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-url', 'wp-polyfill-dom-rect', 'wp-polyfill-element-closest', 'wp-polyfill-object-fit', 'wp-polyfill-inert', 'wp-polyfill' => array('wp-polyfill-inert', 'regenerator-runtime'));
    $vendor_scripts_versions = array('react' => '18.2.0', 'react-dom' => '18.2.0', 'regenerator-runtime' => '0.13.11', 'moment' => '2.29.4', 'lodash' => '4.17.19', 'wp-polyfill-fetch' => '3.6.2', 'wp-polyfill-formdata' => '4.0.10', 'wp-polyfill-node-contains' => '4.6.0', 'wp-polyfill-url' => '3.6.4', 'wp-polyfill-dom-rect' => '4.6.0', 'wp-polyfill-element-closest' => '3.0.2', 'wp-polyfill-object-fit' => '2.3.5', 'wp-polyfill-inert' => '3.1.2', 'wp-polyfill' => '3.15.0');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.updateLocale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y')), 'LLL' => __('F j, Y g:i a'), 'LLLL' => null)))), 'after');
}

WordPress Version: 6.1

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @global WP_Locale $wp_locale WordPress date and time locale object.
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor($scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'regenerator-runtime', 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-url', 'wp-polyfill-dom-rect', 'wp-polyfill-element-closest', 'wp-polyfill-object-fit', 'wp-polyfill' => array('regenerator-runtime'));
    $vendor_scripts_versions = array('react' => '17.0.1', 'react-dom' => '17.0.1', 'regenerator-runtime' => '0.13.9', 'moment' => '2.29.4', 'lodash' => '4.17.19', 'wp-polyfill-fetch' => '3.6.2', 'wp-polyfill-formdata' => '4.0.10', 'wp-polyfill-node-contains' => '4.4.0', 'wp-polyfill-url' => '3.6.4', 'wp-polyfill-dom-rect' => '4.4.0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill-object-fit' => '2.3.5', 'wp-polyfill' => '3.15.0');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.updateLocale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y')), 'LLL' => __('F j, Y g:i a'), 'LLLL' => null)))), 'after');
}

WordPress Version: 5.9

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @global WP_Locale $wp_locale WordPress date and time locale object.
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor($scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'regenerator-runtime', 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-url', 'wp-polyfill-dom-rect', 'wp-polyfill-element-closest', 'wp-polyfill-object-fit', 'wp-polyfill' => array('regenerator-runtime'));
    $vendor_scripts_versions = array('react' => '17.0.1', 'react-dom' => '17.0.1', 'regenerator-runtime' => '0.13.9', 'moment' => '2.29.1', 'lodash' => '4.17.19', 'wp-polyfill-fetch' => '3.6.2', 'wp-polyfill-formdata' => '4.0.0', 'wp-polyfill-node-contains' => '3.105.0', 'wp-polyfill-url' => '3.6.4', 'wp-polyfill-dom-rect' => '3.104.0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill-object-fit' => '2.3.5', 'wp-polyfill' => '3.15.0');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.updateLocale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y')), 'LLL' => __('F j, Y g:i a'), 'LLLL' => null)))), 'after');
}

WordPress Version: 5.8

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor($scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'regenerator-runtime', 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-url', 'wp-polyfill-dom-rect', 'wp-polyfill-element-closest', 'wp-polyfill-object-fit', 'wp-polyfill' => array('regenerator-runtime'));
    $vendor_scripts_versions = array('react' => '16.13.1', 'react-dom' => '16.13.1', 'regenerator-runtime' => '0.13.7', 'moment' => '2.29.1', 'lodash' => '4.17.19', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '4.0.0', 'wp-polyfill-node-contains' => '3.105.0', 'wp-polyfill-url' => '3.6.4', 'wp-polyfill-dom-rect' => '3.104.0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill-object-fit' => '2.3.5', 'wp-polyfill' => '3.15.0');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.updateLocale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y')), 'LLL' => __('F j, Y g:i a'), 'LLLL' => null)))), 'after');
}

WordPress Version: 7.3

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor($scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-url', 'wp-polyfill-dom-rect', 'wp-polyfill-element-closest', 'wp-polyfill-object-fit', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.13.1', 'react-dom' => '16.13.1', 'moment' => '2.26.0', 'lodash' => '4.17.21', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.42.0', 'wp-polyfill-url' => '3.6.4', 'wp-polyfill-dom-rect' => '3.42.0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill-object-fit' => '2.3.4', 'wp-polyfill' => '7.4.4');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.DOMRect' => 'wp-polyfill-dom-rect', 'window.URL && window.URL.prototype && window.URLSearchParams' => 'wp-polyfill-url', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest', '\'objectFit\' in document.documentElement.style' => 'wp-polyfill-object-fit')));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.updateLocale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}

WordPress Version: 7.2

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor($scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-url', 'wp-polyfill-dom-rect', 'wp-polyfill-element-closest', 'wp-polyfill-object-fit', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.13.1', 'react-dom' => '16.13.1', 'moment' => '2.26.0', 'lodash' => '4.17.19', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.42.0', 'wp-polyfill-url' => '3.6.4', 'wp-polyfill-dom-rect' => '3.42.0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill-object-fit' => '2.3.4', 'wp-polyfill' => '7.4.4');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.DOMRect' => 'wp-polyfill-dom-rect', 'window.URL && window.URL.prototype && window.URLSearchParams' => 'wp-polyfill-url', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest', '\'objectFit\' in document.documentElement.style' => 'wp-polyfill-object-fit')));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.updateLocale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}

WordPress Version: .10

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor($scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-url', 'wp-polyfill-dom-rect', 'wp-polyfill-element-closest', 'wp-polyfill-object-fit', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.13.1', 'react-dom' => '16.13.1', 'moment' => '2.26.0', 'lodash' => '4.17.21', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.42.0', 'wp-polyfill-url' => '3.6.4', 'wp-polyfill-dom-rect' => '3.42.0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill-object-fit' => '2.3.4', 'wp-polyfill' => '7.4.4');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.DOMRect' => 'wp-polyfill-dom-rect', 'window.URL && window.URL.prototype && window.URLSearchParams' => 'wp-polyfill-url', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest', '\'objectFit\' in document.documentElement.style' => 'wp-polyfill-object-fit')));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.updateLocale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}

WordPress Version: 5.7

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor($scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-url', 'wp-polyfill-dom-rect', 'wp-polyfill-element-closest', 'wp-polyfill-object-fit', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.13.1', 'react-dom' => '16.13.1', 'moment' => '2.26.0', 'lodash' => '4.17.19', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.42.0', 'wp-polyfill-url' => '3.6.4', 'wp-polyfill-dom-rect' => '3.42.0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill-object-fit' => '2.3.4', 'wp-polyfill' => '7.4.4');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.DOMRect' => 'wp-polyfill-dom-rect', 'window.URL && window.URL.prototype && window.URLSearchParams' => 'wp-polyfill-url', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest', '\'objectFit\' in document.documentElement.style' => 'wp-polyfill-object-fit')));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.updateLocale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}

WordPress Version: 6.5

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor($scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-url', 'wp-polyfill-dom-rect', 'wp-polyfill-element-closest', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.13.1', 'react-dom' => '16.13.1', 'moment' => '2.26.0', 'lodash' => '4.17.21', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.42.0', 'wp-polyfill-url' => '3.6.4', 'wp-polyfill-dom-rect' => '3.42.0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill' => '7.4.4');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.DOMRect' => 'wp-polyfill-dom-rect', 'window.URL && window.URL.prototype && window.URLSearchParams' => 'wp-polyfill-url', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest')));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.updateLocale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}

WordPress Version: 6.2

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor($scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-url', 'wp-polyfill-dom-rect', 'wp-polyfill-element-closest', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.13.1', 'react-dom' => '16.13.1', 'moment' => '2.26.0', 'lodash' => '4.17.19', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.42.0', 'wp-polyfill-url' => '3.6.4', 'wp-polyfill-dom-rect' => '3.42.0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill' => '7.4.4');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.DOMRect' => 'wp-polyfill-dom-rect', 'window.URL && window.URL.prototype && window.URLSearchParams' => 'wp-polyfill-url', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest')));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.updateLocale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}

WordPress Version: .10

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor($scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-url', 'wp-polyfill-dom-rect', 'wp-polyfill-element-closest', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.13.1', 'react-dom' => '16.13.1', 'moment' => '2.26.0', 'lodash' => '4.17.21', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.42.0', 'wp-polyfill-url' => '3.6.4', 'wp-polyfill-dom-rect' => '3.42.0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill' => '7.4.4');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.DOMRect' => 'wp-polyfill-dom-rect', 'window.URL && window.URL.prototype && window.URLSearchParams' => 'wp-polyfill-url', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest')));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.updateLocale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}

WordPress Version: 5.6

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor($scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-url', 'wp-polyfill-dom-rect', 'wp-polyfill-element-closest', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.13.1', 'react-dom' => '16.13.1', 'moment' => '2.26.0', 'lodash' => '4.17.19', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.42.0', 'wp-polyfill-url' => '3.6.4', 'wp-polyfill-dom-rect' => '3.42.0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill' => '7.4.4');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.DOMRect' => 'wp-polyfill-dom-rect', 'window.URL && window.URL.prototype && window.URLSearchParams' => 'wp-polyfill-url', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest')));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.updateLocale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}

WordPress Version: 5.6

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor($scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-url', 'wp-polyfill-dom-rect', 'wp-polyfill-element-closest', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.9.0', 'react-dom' => '16.9.0', 'moment' => '2.26.0', 'lodash' => '4.17.21', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.42.0', 'wp-polyfill-url' => '3.6.4', 'wp-polyfill-dom-rect' => '3.42.0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill' => '7.4.4');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.DOMRect' => 'wp-polyfill-dom-rect', 'window.URL && window.URL.prototype && window.URLSearchParams' => 'wp-polyfill-url', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest')));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.updateLocale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}

WordPress Version: 5.2

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor($scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-url', 'wp-polyfill-dom-rect', 'wp-polyfill-element-closest', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.9.0', 'react-dom' => '16.9.0', 'moment' => '2.26.0', 'lodash' => '4.17.15', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.42.0', 'wp-polyfill-url' => '3.6.4', 'wp-polyfill-dom-rect' => '3.42.0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill' => '7.4.4');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.DOMRect' => 'wp-polyfill-dom-rect', 'window.URL && window.URL.prototype && window.URLSearchParams' => 'wp-polyfill-url', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest')));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.updateLocale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}

WordPress Version: .10

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor($scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-url', 'wp-polyfill-dom-rect', 'wp-polyfill-element-closest', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.9.0', 'react-dom' => '16.9.0', 'moment' => '2.26.0', 'lodash' => '4.17.21', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.42.0', 'wp-polyfill-url' => '3.6.4', 'wp-polyfill-dom-rect' => '3.42.0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill' => '7.4.4');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.DOMRect' => 'wp-polyfill-dom-rect', 'window.URL && window.URL.prototype && window.URLSearchParams' => 'wp-polyfill-url', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest')));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.updateLocale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}

WordPress Version: 5.5

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor($scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-url', 'wp-polyfill-dom-rect', 'wp-polyfill-element-closest', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.9.0', 'react-dom' => '16.9.0', 'moment' => '2.26.0', 'lodash' => '4.17.15', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.42.0', 'wp-polyfill-url' => '3.6.4', 'wp-polyfill-dom-rect' => '3.42.0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill' => '7.4.4');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.DOMRect' => 'wp-polyfill-dom-rect', 'window.URL && window.URL.prototype && window.URLSearchParams' => 'wp-polyfill-url', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest')));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.updateLocale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}

WordPress Version: 4.7

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor($scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-url', 'wp-polyfill-dom-rect', 'wp-polyfill-element-closest', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.9.0', 'react-dom' => '16.9.0', 'moment' => '2.22.2', 'lodash' => '4.17.21', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.42.0', 'wp-polyfill-url' => '3.6.4', 'wp-polyfill-dom-rect' => '3.42.0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill' => '7.4.4');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.DOMRect' => 'wp-polyfill-dom-rect', 'window.URL && window.URL.prototype && window.URLSearchParams' => 'wp-polyfill-url', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest')));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.locale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}

WordPress Version: 4.2

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor($scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-url', 'wp-polyfill-dom-rect', 'wp-polyfill-element-closest', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.9.0', 'react-dom' => '16.9.0', 'moment' => '2.22.2', 'lodash' => '4.17.15', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.42.0', 'wp-polyfill-url' => '3.6.4', 'wp-polyfill-dom-rect' => '3.42.0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill' => '7.4.4');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.DOMRect' => 'wp-polyfill-dom-rect', 'window.URL && window.URL.prototype && window.URLSearchParams' => 'wp-polyfill-url', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest')));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.locale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}

WordPress Version: .10

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor($scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-url', 'wp-polyfill-dom-rect', 'wp-polyfill-element-closest', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.9.0', 'react-dom' => '16.9.0', 'moment' => '2.22.2', 'lodash' => '4.17.21', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.42.0', 'wp-polyfill-url' => '3.6.4', 'wp-polyfill-dom-rect' => '3.42.0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill' => '7.4.4');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.DOMRect' => 'wp-polyfill-dom-rect', 'window.URL && window.URL.prototype && window.URLSearchParams' => 'wp-polyfill-url', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest')));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.locale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}

WordPress Version: 5.4

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor($scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-url', 'wp-polyfill-dom-rect', 'wp-polyfill-element-closest', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.9.0', 'react-dom' => '16.9.0', 'moment' => '2.22.2', 'lodash' => '4.17.15', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.42.0', 'wp-polyfill-url' => '3.6.4', 'wp-polyfill-dom-rect' => '3.42.0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill' => '7.4.4');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.DOMRect' => 'wp-polyfill-dom-rect', 'window.URL && window.URL.prototype && window.URLSearchParams' => 'wp-polyfill-url', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest')));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.locale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}

WordPress Version: 3.9

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor(&$scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-element-closest', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.9.0', 'react-dom' => '16.9.0', 'moment' => '2.22.2', 'lodash' => '4.17.21', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.26.0-0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill' => '7.4.4');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest')));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.locale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}

WordPress Version: 3.2

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor(&$scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-element-closest', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.9.0', 'react-dom' => '16.9.0', 'moment' => '2.22.2', 'lodash' => '4.17.15', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.26.0-0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill' => '7.4.4');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest')));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.locale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}

WordPress Version: .10

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor(&$scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-element-closest', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.9.0', 'react-dom' => '16.9.0', 'moment' => '2.22.2', 'lodash' => '4.17.21', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.26.0-0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill' => '7.4.4');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest')));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.locale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}

WordPress Version: 5.3

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor(&$scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-element-closest', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.9.0', 'react-dom' => '16.9.0', 'moment' => '2.22.2', 'lodash' => '4.17.15', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.26.0-0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill' => '7.4.4');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest')));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.locale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}

WordPress Version: 2.3

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor(&$scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-element-closest', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.8.4', 'react-dom' => '16.8.4', 'moment' => '2.22.2', 'lodash' => '4.17.11', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.26.0-0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill' => '7.0.0');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest')));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.locale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}

WordPress Version: .20

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor(&$scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-element-closest', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.8.4', 'react-dom' => '16.8.4', 'moment' => '2.22.2', 'lodash' => '4.17.21', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.26.0-0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill' => '7.0.0');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest')));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.locale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}

WordPress Version: 2.2

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor(&$scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-element-closest', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.8.4', 'react-dom' => '16.8.4', 'moment' => '2.22.2', 'lodash' => '4.17.11', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.26.0-0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill' => '7.0.0');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest')));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.locale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}

WordPress Version: .12

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor(&$scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-element-closest', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.8.4', 'react-dom' => '16.8.4', 'moment' => '2.22.2', 'lodash' => '4.17.21', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.26.0-0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill' => '7.0.0');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest')));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.locale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}

WordPress Version: 5.2

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor(&$scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-element-closest', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.8.4', 'react-dom' => '16.8.4', 'moment' => '2.22.2', 'lodash' => '4.17.11', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.26.0-0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill' => '7.0.0');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest')));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.locale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}

WordPress Version: 1.2

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor(&$scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-element-closest', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.6.3', 'react-dom' => '16.6.3', 'moment' => '2.22.2', 'lodash' => '4.17.11', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.26.0-0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill' => '7.0.0');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest')));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.locale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}

WordPress Version: .11

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor(&$scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-element-closest', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.6.3', 'react-dom' => '16.6.3', 'moment' => '2.22.2', 'lodash' => '4.17.21', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.26.0-0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill' => '7.0.0');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest')));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.locale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}

WordPress Version: 0.3

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor(&$scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-element-closest', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.6.3', 'react-dom' => '16.6.3', 'moment' => '2.22.2', 'lodash' => '4.17.11', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.26.0-0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill' => '7.0.0');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest')));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.locale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}

WordPress Version: .20

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor(&$scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-element-closest', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.6.3', 'react-dom' => '16.6.3', 'moment' => '2.22.2', 'lodash' => '4.17.21', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.26.0-0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill' => '7.0.0');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest')));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.locale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}

WordPress Version: 0.2

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor(&$scripts)
{
    global $wp_locale;
    $dev_suffix = wp_scripts_get_suffix('dev');
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-element-closest', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.6.3', 'react-dom' => '16.6.3', 'moment' => '2.22.2', 'lodash' => '4.17.11', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.26.0-0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill' => '7.0.0');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$dev_suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest')));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.locale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}

WordPress Version: .14

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor(&$scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-element-closest', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.6.3', 'react-dom' => '16.6.3', 'moment' => '2.22.2', 'lodash' => '4.17.21', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.26.0-0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill' => '7.0.0');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest')));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.locale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}

WordPress Version: .10

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor(&$scripts)
{
    global $wp_locale;
    $suffix = wp_scripts_get_suffix();
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-element-closest', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.6.3', 'react-dom' => '16.6.3', 'moment' => '2.22.2', 'lodash' => '4.17.11', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.26.0-0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill' => '7.0.0');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest')));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.locale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}

WordPress Version: 5.0

/**
 * Registers all the WordPress vendor scripts that are in the standardized
 * `js/dist/vendor/` location.
 *
 * For the order of `$scripts->add` see `wp_default_scripts`.
 *
 * @since 5.0.0
 *
 * @param WP_Scripts $scripts WP_Scripts object.
 */
function wp_default_packages_vendor(&$scripts)
{
    global $wp_locale;
    $dev_suffix = wp_scripts_get_suffix('dev');
    $vendor_scripts = array('react' => array('wp-polyfill'), 'react-dom' => array('react'), 'moment', 'lodash', 'wp-polyfill-fetch', 'wp-polyfill-formdata', 'wp-polyfill-node-contains', 'wp-polyfill-element-closest', 'wp-polyfill');
    $vendor_scripts_versions = array('react' => '16.6.3', 'react-dom' => '16.6.3', 'moment' => '2.22.2', 'lodash' => '4.17.11', 'wp-polyfill-fetch' => '3.0.0', 'wp-polyfill-formdata' => '3.0.12', 'wp-polyfill-node-contains' => '3.26.0-0', 'wp-polyfill-element-closest' => '2.0.2', 'wp-polyfill' => '7.0.0');
    foreach ($vendor_scripts as $handle => $dependencies) {
        if (is_string($dependencies)) {
            $handle = $dependencies;
            $dependencies = array();
        }
        $path = "/wp-includes/js/dist/vendor/{$handle}{$dev_suffix}.js";
        $version = $vendor_scripts_versions[$handle];
        $scripts->add($handle, $path, $dependencies, $version, 1);
    }
    $scripts->add('wp-polyfill', null, array('wp-polyfill'));
    did_action('init') && $scripts->add_inline_script('wp-polyfill', wp_get_script_polyfill($scripts, array('\'fetch\' in window' => 'wp-polyfill-fetch', 'document.contains' => 'wp-polyfill-node-contains', 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest'), 'after'));
    did_action('init') && $scripts->add_inline_script('lodash', 'window.lodash = _.noConflict();');
    did_action('init') && $scripts->add_inline_script('moment', sprintf("moment.locale( '%s', %s );", get_user_locale(), wp_json_encode(array('months' => array_values($wp_locale->month), 'monthsShort' => array_values($wp_locale->month_abbrev), 'weekdays' => array_values($wp_locale->weekday), 'weekdaysShort' => array_values($wp_locale->weekday_abbrev), 'week' => array('dow' => (int) get_option('start_of_week', 0)), 'longDateFormat' => array('LT' => get_option('time_format', __('g:i a', 'default')), 'LTS' => null, 'L' => null, 'LL' => get_option('date_format', __('F j, Y', 'default')), 'LLL' => __('F j, Y g:i a', 'default'), 'LLLL' => null)))), 'after');
}