Make WordPress Core

Ticket #40286: 40286.patch

File 40286.patch, 895 bytes (added by shulard, 8 years ago)
  • src/wp-includes/comment-template.php

    diff --git c/src/wp-includes/comment-template.php w/src/wp-includes/comment-template.php
    index 56e0ccda54..e97229f5f6 100644
    c w function comments_open( $post_id = null ) { 
    12011201         * @param bool        $open    Whether the current post is open for comments.
    12021202         * @param int|WP_Post $post_id The post ID or WP_Post object.
    12031203         */
    1204         return apply_filters( 'comments_open', $open, $_post->ID );
     1204        return apply_filters( 'comments_open', $open, $post_id );
    12051205}
    12061206
    12071207/**
    function pings_open( $post_id = null ) { 
    12261226         * @param bool        $open    Whether the current post is open for pings.
    12271227         * @param int|WP_Post $post_id The post ID or WP_Post object.
    12281228         */
    1229         return apply_filters( 'pings_open', $open, $_post->ID );
     1229        return apply_filters( 'pings_open', $open, $post_id );
    12301230}
    12311231
    12321232/**