WordPress.org

Make WordPress Core

Ticket #4834: link-template.patch

File link-template.patch, 420 bytes (added by Viper007Bond, 8 years ago)
  • wp-includes/link-template.php

     
    6060        ); 
    6161 
    6262        $post = &get_post($id); 
     63 
     64        if ( empty($post->ID) ) return FALSE; 
     65 
    6366        if ( $post->post_type == 'page' ) 
    6467                return get_page_link($post->ID); 
    6568        elseif ($post->post_type == 'attachment')