[wp-trac] [WordPress Trac] #16155: "Shortlink" button in admin bar relies on shortlink meta tag to work

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 8 07:58:11 UTC 2011


#16155: "Shortlink" button in admin bar relies on shortlink meta tag to work
----------------------------+-----------------------------
 Reporter:  solarissmoke    |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  3.1
 Severity:  normal          |   Keywords:  dev-feedback
----------------------------+-----------------------------
 If you remove the remove the action that adds {{{<link rel="shortlink" ...
 }}} into the head of a post, the shortlink button in the admin bar says
 "No shortlink available for this page" when you click it, even though the
 href for the link is a valid shortlink.

 IMO the absence of the {{{<link>}}} does not mean that one doesn't exist
 (it could be announced in other ways, e.g., a HTTP header), and so the
 admin bar button needs to take this into account.

 Maybe the {{{clickShortlink}}} Javascript function should check the href
 of the shortlink button in cases where there is no {{{<link>}}} tag?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16155>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list