How to check if one URL is not available, then change it with another?
-
I am new to WordPress. Please see the pictures: As you can see in Figure 1: There is an error. This error is due to not connecting to a specific link. As you can see in pictures 2 and 3, I have marked that link. This error is present in all pages of my WordPress admin area and has caused the admin panel to be very slow. In fact, WordPress tries to call the following link but fails:
https://stats.wp.com/w.js?ver=202108
So I’m going to put the w.js file in an accessible place and force WordPress to first check if this file is available before requesting it. And if it is not available, do not waste time and use the alternative link immediately. Can you help me implement this scenario?
- The topic ‘How to check if one URL is not available, then change it with another?’ is closed to new replies.