• Resolved dreamzspl

    (@dreamzspl)


    Hi,

    When i set the wp-admin url to a custom link, the console log shows up an error:

    “Uncaught ReferenceError: wp is not defined”

    Referencing this script:

    <script type='text/javascript' id='wp-a11y-js-translations'>( function( domain, translations ) {
    	var localeData = translations.locale_data[ domain ] || translations.locale_data.messages;
    	localeData[""].domain = domain;
    	wp.i18n.setLocaleData( localeData, domain );
    } )( "default", { "locale_data": { "messages": { "": {} } } } );</script> 

    When i disable the hide login plugin, the error is gone.

    Any advise please?

    Thank you.

    • This topic was modified 4 years, 2 months ago by dreamzspl.
  • The topic ‘Uncaught ReferenceError: wp is not defined – Using WP 5.51’ is closed to new replies.