wp-auth-check & wp_auth_check_load – disable to edit pages

[ad_1]

So I have been having problems viewing and saving pages in the site admin – but it seems like this issue occurs only when editing some pages – not all of them. The site uses Divi as the theme and has about a dozen plugins inc. a few custom plugins I wrote. \[None of my plugins deal with Authorizations.\]

Using the Chrome Developers Console, network tab, I discovered this issue might be with AJAX calls including **wp-auth-check**.

Somewhere in Stack Exhange someone mentioned to disable this via this line of code in functions.php:

`remove_action( ‘admin_enqueue_scripts’, ‘wp_auth_check_load’ );`

When I added that line to functions.php, the issue went away! Yay!

But now that I’m done editing, I commented it out and will uncomment it the next time I need to work on the pages. \[I don’t think my client has issues with new Posts.\]

I skimmed the docs for this, but perhaps someone can explain in plain English perhaps where this is coming from, and if I need to comment it out whenever I’m not working on the site and/or any other issues related to this. TIA

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer