[wp-trac] [WordPress Trac] #18660: Enhance rel_canonical function, add filter
WordPress Trac
wp-trac at lists.automattic.com
Wed Sep 14 15:59:03 UTC 2011
#18660: Enhance rel_canonical function, add filter
-------------------------+-------------------------------------------------
Reporter: nathanrice | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Canonical | Version: 3.3
Severity: normal | Keywords: has-patch needs-testing 2nd-opinion
-------------------------+-------------------------------------------------
I think it's a bit shortsighted to think that only singular pages need the
canonical tag output in the `<head>`. Considering the fact that just about
any page on your site can be accessed with a malformed URL, I think it's
time to enhance this function.
The attached patch is just a first pass. But I think it gets us started in
the right direction. There's also a filter before output, so themes and
plugins can further enhance the output of this plugin (related #14458).
Patch is against [438126].
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18660>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list