WordPress.org

Make WordPress Core

Ticket #13212: 13212.diff

File 13212.diff, 405 bytes (added by ShaneF, 5 years ago)
  • link-template.php

     
    21702170        if ( false !== $shortlink ) 
    21712171                return $shortlink; 
    21722172 
    2173         global $wp_query; 
     2173        global $wp_query, $id; 
    21742174        $post_id = 0; 
    21752175        if ( 'query' == $context && is_single() ) 
    21762176                $post_id = $wp_query->get_queried_object_id();