[wp-trac] [WordPress Trac] #36168: Introduce get_canonical_url function

WordPress Trac noreply at wordpress.org
Tue Mar 15 16:59:52 UTC 2016


#36168: Introduce get_canonical_url function
-------------------------------------------------+-------------------------
 Reporter:  joostdevalk                          |       Owner:
     Type:  enhancement                          |  joostdevalk
 Priority:  normal                               |      Status:  assigned
Component:  Canonical                            |   Milestone:  Future
 Severity:  normal                               |  Release
 Keywords:  has-patch dev-feedback 4.6-early     |     Version:
  needs-unit-tests                               |  Resolution:
                                                 |     Focuses:
-------------------------------------------------+-------------------------

Comment (by joostdevalk):

 Replying to [comment:5 markjaquith]:
 > So the main difference is that this integrates post paging and comments
 paging?

 No, that code was there already, just got moved as otherwise this wouldn't
 work. I'd say the main difference is that we have a specific function and
 filter for the canonical, because it's conceptually different from the
 rather generic `get_permalink`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36168#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list