[wp-trac] [WordPress Trac] #14773: Error in slug parsing leads to unlimited URLs for the same article = duplicate content
WordPress Trac
noreply at wordpress.org
Mon Feb 13 09:46:59 UTC 2017
#14773: Error in slug parsing leads to unlimited URLs for the same article =
duplicate content
-------------------------------------+-----------------------------
Reporter: thermoman | Owner: dd32
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: Future Release
Component: Canonical | Version: 2.5
Severity: normal | Resolution:
Keywords: has-patch needs-refresh | Focuses:
-------------------------------------+-----------------------------
Comment (by ivantipov):
What would be the repercussions of turning off sanitization on query to
fix this, as such?
{{{#!php
function raw_sanitize_title($title, $raw_title, $context) {
if ($context === 'query') {
return $raw_title;
}
return $title;
}
add_filter('sanitize_title', 'raw_sanitize_title', 10, 3);
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/14773#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list