[wp-trac] [WordPress Trac] #18660: Enhance rel_canonical function, add filter
WordPress Trac
wp-trac at lists.automattic.com
Wed Sep 14 19:16:43 UTC 2011
#18660: Enhance rel_canonical function, add filter
-------------------------------------------------+-------------------------
Reporter: nathanrice | Owner:
Type: enhancement | joostdevalk
Priority: normal | Status: assigned
Component: Canonical | Milestone: Awaiting
Severity: normal | Review
Keywords: has-patch needs-testing 2nd-opinion | Version: 3.3
| Resolution:
-------------------------------------------------+-------------------------
Changes (by joostdevalk):
* owner: => joostdevalk
* status: new => assigned
Comment:
+1 on fixing this.
I've attached a better patch, based on the code in my WordPress SEO
plugin. The pagination canonical Genesis uses is at best agressive
optimization, and not based on the canonical standards, so we should
indeed not include that.
This patch makes sure WordPress outputs a canonical on:
* singular posts, pages, etc.
* the homepage & frontpage
* taxonomy, category & tag archives
* post type archives
* dated archives
It also deals with pagination, both for paged posts and pages and all
paginated archives.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18660#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list