Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

How to check if one URL is not available, then change it with another?

$
0
0

Replies: 0

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?

image 1
image 2
image 3


Viewing all articles
Browse latest Browse all 59525

Trending Articles