WordPress Is Not Indexed Because of Search Engine Visibility Setting
The new site has a correct map and content, but generates a noindex directive.
How to identify the source of the problem
Check Settings → Reading and final meta robots in HTML public pages.
Check the bug log, recent plugin changes and the environment version on the site test copy.
Repair steps
Disable deliberate lock after publication, keeping noindex for private staging.
How to Test Solution
Public sites do not have noindex and staging remains excluded from indexing.
Security and restrictions
Make a backup before you migrate or update PHP. Do not enter access data in untrusted forms.