[wp-trac] [WordPress Trac] #36198: wp_shortlink_wp_head should exit on non-singles and frontpage

WordPress Trac noreply at wordpress.org
Fri Mar 11 22:00:30 UTC 2016


#36198: wp_shortlink_wp_head should exit on non-singles and frontpage
-----------------------------+----------------------
 Reporter:  andrejcremoznik  |       Owner:
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Permalinks       |     Version:  3.0
 Severity:  normal           |  Resolution:  wontfix
 Keywords:                   |     Focuses:
-----------------------------+----------------------
Changes (by swissspidy):

 * status:  new => closed
 * version:  4.4.2 => 3.0
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 The return value of `wp_get_shortlink()` can be filtered. It's possible
 that someone's creating a shortlink for archives and other areas. If not,
 that function returns an empty string, which `wp_shortlink_wp_head()`
 checks for. This behaviour shouldn't be changed, otherwise it would break
 BC.

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


More information about the wp-trac mailing list