How to diagnose, repair, and monitor your Google Search Console health — step by step.
A robots.txt line like Disallow: /wp-includes/ looks like cleaning up technical clutter. It is actually one of the most damaging lines a WordPress site can carry: Googlebot cannot fetch the CSS and JavaScript it needs to render your pages, so it indexes what a browser with no stylesheet would see.
Fetch /robots.txt and look for Disallow rules covering wp-includes or the admin asset paths inside wp-content. Remove them — blocking these directories was never needed for security and breaks rendering. If your robots.txt is a physical file on the server, edit the file; a WordPress robots filter will not touch it. Then re-validate a key URL in the URL Inspection tool.
/robots.txt (browser UA on shared hosts).The robots asset-block check flags these lines as critical, the repair handles both the filter path and the physical file with a backup of the original, and the diagnosis explains which lines are safe to keep so you do not strip real security blocks by accident.
No. wp-includes serves public assets. Blocking it does not protect anything and actively harms crawling. Real hardening happens elsewhere (logins, file permissions, WAF).
Your browser caches assets. Googlebot fetches raw and obeys robots.txt literally. The rendered-source check in Search Console shows you Google's view.
Indirectly: robots problems reduce crawl confidence and contribute to the discovered-not-indexed state.