WordPress.org

Make WordPress Core

Ticket #31168: 31168.6.diff

File 31168.6.diff, 727 bytes (added by valendesigns, 6 years ago)
  • src/wp-includes/post.php

    diff --git src/wp-includes/post.php src/wp-includes/post.php
    index 52600b8..c55d64f 100644
    function get_default_comment_status( $post_type = 'post', $comment_type = 'comme 
    41114111         *
    41124112         * @param string $status       Default status for the given post type,
    41134113         *                             either 'open' or 'closed'.
     4114         * @param string $post_type    Post type. Default is `post`.
    41144115         * @param string $comment_type Type of comment. Default is `comment`.
    41154116         */
    4116         return apply_filters( "get_{$post_type}_default_comment_status", $status, $comment_type );
     4117        return apply_filters( 'get_default_comment_status', $status, $post_type, $comment_type );
    41174118}
    41184119
    41194120/**