Make WordPress Core

Ticket #35015: 35015.1.diff

File 35015.1.diff, 1.0 KB (added by danielbachhuber, 9 years ago)
  • src/wp-includes/post-template.php

    diff --git a/src/wp-includes/post-template.php b/src/wp-includes/post-template.php
    index 3164509..2d89b3e 100644
    a b function the_guid( $id = 0 ) { 
    179179         *
    180180         * @see get_the_guid()
    181181         *
    182          * @param string $post_guid Escaped Global Unique Identifier (guid) of the post.
     182         * @param string  $post_guid  Escaped Global Unique Identifier (guid) of the post.
     183         * @param integer $id         ID for the post.
    183184         */
    184         echo apply_filters( 'the_guid', get_the_guid( $id ) );
     185        echo apply_filters( 'the_guid', get_the_guid( $id ), $id );
    185186}
    186187
    187188/**
    function get_the_guid( $id = 0 ) { 
    204205         *
    205206         * @since 1.5.0
    206207         *
    207          * @param string $post_guid Global Unique Identifier (guid) of the post.
     208         * @param string  $post_guid  Global Unique Identifier (guid) of the post.
     209         * @param integer $id         ID for the post.
    208210         */
    209         return apply_filters( 'get_the_guid', $post->guid );
     211        return apply_filters( 'get_the_guid', $post->guid, $id );
    210212}
    211213
    212214/**