WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/28/2010 11:57:28 AM (9 years ago)
Author:
scribu
Message:

Don't use the global anymore. Fixes #11624

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/link-template.php

    r15481 r15549  
    463463 */
    464464function get_post_comments_feed_link($post_id = '', $feed = '') {
    465     global $id;
    466 
    467     if ( empty($post_id) )
    468         $post_id = (int) $id;
     465    if ( !$post_id )
     466        $post_id = get_the_ID();
     467
     468    $post_id = absint($post_id);
    469469
    470470    if ( empty($feed) )
Note: See TracChangeset for help on using the changeset viewer.