[wp-trac] [WordPress Trac] #52713: Reverse logic in wp_robots function and filter
WordPress Trac
noreply at wordpress.org
Tue Mar 23 23:00:18 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:
---------------------------------------------+-----------------------
Changes (by peterwilsoncc):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"50566" 50566]:
{{{
#!CommitTicketReference repository="" revision="50566"
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.
Fixes #52713.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52713#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list