WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/04/2010 03:51:04 PM (9 years ago)
Author:
nacin
Message:

Adjustments to [15549]. See #11624.

File:
1 edited

Legend:

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

    r15549 r15563  
    462462 * @return string
    463463 */
    464 function get_post_comments_feed_link($post_id = '', $feed = '') {
    465     if ( !$post_id )
     464function get_post_comments_feed_link($post_id = 0, $feed = '') {
     465    $post_id = absint( $post_id );
     466
     467    if ( ! $post_id )
    466468        $post_id = get_the_ID();
    467469
    468     $post_id = absint($post_id);
    469 
    470     if ( empty($feed) )
     470    if ( empty( $feed ) )
    471471        $feed = get_default_feed();
    472472
Note: See TracChangeset for help on using the changeset viewer.