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

WordPress Trac noreply at wordpress.org
Thu Aug 15 15:57:18 UTC 2013


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

Comment (by nacin):

 As a plugin could return nothing from that filter (which is a valid return
 value, and will still be used for non-public post types), the check should
 probably be `$shortlink && $shortlink !== get_permalink( $post->ID )`.

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


More information about the wp-trac mailing list