WordPress.org

Make WordPress Core

Ticket #51446: 51446.diff

File 51446.diff, 872 bytes (added by garrett-eclipse, 7 months ago)

Specifically use localhost in the qunit tests to avoid CORS issues from localost to file:///

  • tests/qunit/index.html

     
    1313                <script>
    1414                        window._wpUtilSettings = {
    1515                                'ajax': {
    16                                         'url': '\/wp-admin\/admin-ajax.php'
     16                                        'url': 'http:\/\/localhost\/wp-admin\/admin-ajax.php'
    1717                                }
    1818                        };
    1919                </script>
     
    2929                <script src="../../build/wp-includes/js/dist/i18n.js"></script>
    3030                <script src="../../build/wp-includes/js/dist/a11y.js"></script>
    3131                <script>
    32                         window._wpMediaModelsL10n = {"settings":{"ajaxurl":"\/wp-admin\/admin-ajax.php","post":{"id":0}}};
     32                        window._wpMediaModelsL10n = {"settings":{"ajaxurl":"http:\/\/localhost\/wp-admin\/admin-ajax.php","post":{"id":0}}};
    3333                </script>
    3434                <script src="../../build/wp-includes/js/media-models.js"></script>
    3535                <script>