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

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 2 11:07:43 UTC 2010


#14760: wp_get_shortlink not working on pages
-----------------------------+----------------------------------------------
 Reporter:  mattsay          |       Owner:                 
     Type:  feature request  |      Status:  new            
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  General          |     Version:                 
 Severity:  normal           |    Keywords:                 
-----------------------------+----------------------------------------------
 wp_get_shortlink doesn't return anything on pages.

 reason:


 {{{
 2196   if ( isset($post->post_type) && 'post' == $post->post_type )
 2197         $shortlink = home_url('?p=' . $post->ID);
 }}}

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


More information about the wp-trac mailing list