mirror of
git://develop.git.wordpress.org/
synced 2025-03-21 20:40:44 +01:00
Removes the mutually exclusive directives check in `wp_robots()`, ie allow both `follow` and `nofollow` to be specified and for `archive` and `noarchive` to be specified. This fixes a bug in which WordPress would defer to the most permissive over the least permissive. When contradictory instructions are included, WordPress will defer to the search engine's or archivist's resolution policy: generally this is to observe the least, not most permissive. Props Cybr, flixos90, SergeyBiryukov. Merges [50566] to the 5.7 branch. Fixes #52713. git-svn-id: https://develop.svn.wordpress.org/branches/5.7@50587 602fd350-edb4-49c9-b593-d223f7449a82