[wp-trac] [WordPress Trac] #18632: wp_get_shortlink() Should Always Return a URL

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 16 00:18:51 UTC 2011


#18632: wp_get_shortlink() Should Always Return a URL
-------------------------------------+------------------------------
 Reporter:  cais                     |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Template                 |     Version:  3.1
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------------------
Changes (by nacin):

 * version:  3.3 => 3.1


Comment:

 To me it seems like the inline documentation should be updated.

 Our shortlink API is designed to only provide a shortlink when one is
 available. If no shorter link is available, I'd rather not return
 something.

 This patch would also be a change from its introduction. Not a backwards
 incompatible change, granted.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18632#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list