How to know if I have activated Cloudfare successfully?

DNS changes usually take 24 to 48 hours to fully start working but it still doesn’t work, perhaps you can use the Cloudflare Diagnostic Center. I also found this tool that check if your website is using Cloudflare DNS / CDN/Proxy / SSL. Otherwise, there is a similar topic on their forum that explain how … Read more

CSP nonces with Cloudflare Workers

Thank you for your answer, you are absolutely right. I also corrected my mistake. I’ll post the code if it helps. Code for Cloudflare Workers: https://gist.github.com/richie5um/b2999177b27095af13ec619e44742116 Code for WordPress : add_filter( ‘script_loader_tag’, ‘add_nonce_to_script’, 10, 3 ); function add_nonce_to_script( $tag, $handle, $source ) { $search = “type=”text/javascript””; $replace = “type=”text/javascript” nonce=”””; $subject = $tag; $output = … Read more

On a multisite environment, get the subdomain value as variable

wp_insert_site recieves WP_Site object, which contains details about the current site. https://developer.wordpress.org/reference/hooks/wp_insert_site/ do_action( ‘wp_insert_site’, WP_Site $new_site ) Fires once a site has been inserted into the database. https://developer.wordpress.org/reference/classes/wp_site/ WP_Site Object ( [blog_id] => 2 [domain] => localhost [path] => /m2/sagres/ [site_id] => 1 [registered] => 2018-03-23 13:49:37 [last_updated] => 2019-03-05 15:52:10 [public] => 0 [archived] … Read more

WordPress does not show correct page

The problem is with the permalinks. Swithing to «plain» made the problem go away. Still haven’t solved how to get correct behavior from «post name». With this setting, wordpress just delivers a random page. Case closed.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)