Ticket #21309: 21309.13.diff
File 21309.13.diff, 791 bytes (added by , 13 years ago) |
---|
-
wp-includes/link-template.php
2421 2421 * @param string $after Optional HTML to display after the link. 2422 2422 */ 2423 2423 function the_shortlink( $text = '', $title = '', $before = '', $after = '' ) { 2424 $post = get_post(); 2425 2424 2426 if ( empty( $text ) ) 2425 2427 $text = __('This is the short link.'); 2426 2428 2427 2429 if ( empty( $title ) ) 2428 2430 $title = the_title_attribute( array( 'echo' => false ) ); 2429 2431 2430 $shortlink = wp_get_shortlink( );2432 $shortlink = wp_get_shortlink( $post->ID ); 2431 2433 2432 2434 if ( !empty( $shortlink ) ) { 2433 2435 $link = '<a rel="shortlink" href="' . esc_url( $shortlink ) . '" title="' . $title . '">' . $text . '</a>';