[wp-trac] [WordPress Trac] #52713: Reverse logic in wp_robots function and filter
WordPress Trac
noreply at wordpress.org
Fri Mar 26 00:27:11 UTC 2021
#52713: Reverse logic in wp_robots function and filter
-------------------------------------------------+-------------------------
Reporter: Cybr | Owner: flixos90
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.7.1
Component: General | Version: 5.7
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses:
fixed-major dev-reviewed |
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"50587" 50587]:
{{{
#!CommitTicketReference repository="" revision="50587"
Robots: Remove contradictory directive check in `wp_robots()`.
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.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52713#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list