Make WordPress Core


Ignore:
Timestamp:
06/27/2023 02:20:18 PM (3 years ago)
Author:
Bernhard Reiter
Message:

Editor: update Wordpress npm packages.

Updates the wordpress npm packages and their dependencies to the latest versions, as well as auto-updates to relevant core PHP files.

Props youknowriad, joemcgill, spacedmonkey, ramonopoly, peterwilsoncc, bernhard-reiter, tyxla, dmsnell.
Fixes #58623.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/comments.php

    r55246 r56065  
    3030    }
    3131
    32     $comment_args = array(
    33         'post_id' => $post_id,
    34         'count'   => true,
    35         'status'  => 'approve',
    36     );
    3732    // Return early if there are no comments and comments are closed.
    38     if ( ! comments_open( $post_id ) && get_comments( $comment_args ) === 0 ) {
     33    if ( ! comments_open( $post_id ) && (int) get_comments_number( $post_id ) === 0 ) {
    3934        return '';
    4035    }
     
    213208     * the block has multiple styles.
    214209     */
     210    /** This filter is documented in wp-includes/blocks.php */
    215211    $metadata = apply_filters( 'block_type_metadata', $metadata );
    216212
Note: See TracChangeset for help on using the changeset viewer.