diff --git a/src/wp-includes/class-wp-comment-query.php b/src/wp-includes/class-wp-comment-query.php index 771123ff5a..bdb750c025 100644 --- a/src/wp-includes/class-wp-comment-query.php +++ b/src/wp-includes/class-wp-comment-query.php @@ -311,7 +311,7 @@ class WP_Comment_Query { /** * Parse arguments passed to the comment query with default query parameters. * - * @since 4.2.0 Extracted from WP_Comment_Query::query(). + * @since 4.2.0 Extracted from WP_Comment_Query::query(). * * @access public * @@ -323,6 +323,14 @@ class WP_Comment_Query { } $this->query_vars = wp_parse_args( $query, $this->query_var_defaults ); + + /** + * Fires after the comment query vars have been parsed. + * + * @since 4.2.0 + * + * @param WP_Comment_Query &$this The WP_Comment_Query instance (passed by reference). + */ do_action_ref_array( 'parse_comment_query', array( &$this ) ); }