Problem With WordPress 6.3
-
With WordPress 6.3 change of wp_register_script and $args param.
wp_register_script('remote_sdk', 'https://cdn.onesignal.com/sdks/OneSignalSDK.js#asyncload', array(), false, true);
Must be change to
wp_register_script('remote_sdk', 'https://cdn.onesignal.com/sdks/OneSignalSDK.js', array(), false, ['in_footer' => true, 'strategy' => 'async']);
because with old version the script tag fails with 404 error, because composed script tag was wrong
src="https://cdn.onesignal.com/sdks/OneSignalSDK.js' async='async"
- The topic ‘Problem With WordPress 6.3’ is closed to new replies.