[wp-trac] [WordPress Trac] #14760: wp_get_shortlink not working on pages

WordPress Trac wp-trac at lists.automattic.com
Sun May 8 14:08:01 UTC 2011


#14760: wp_get_shortlink not working on pages
-------------------------------------+-----------------------------
 Reporter:  mattsay                  |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  General                  |     Version:  3.0
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+-----------------------------
Changes (by layotte):

 * cc: lew@… (added)


Comment:

 Updated patch to remove the permalink_structure check. If the user does
 not have permalinks turned on, this function returns a blank string as the
 shortlink. It should be permalink agnostic... so plugins/themes can use it
 without worrying about permalink checks.

 Thoughts?

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


More information about the wp-trac mailing list