Make WordPress Core


Ignore:
Timestamp:
05/02/2022 10:36:45 AM (4 years ago)
Author:
gziolo
Message:

Editor: Update WordPress packages for 6.0 Beta 4

Included cherry-picked commits from the Gutenberg plugin that fix bugs discovere after WordPress 6.0 Beta 3.

Props zieladam, ndiego, darerodz.
See #55567.

File:
1 edited

Legend:

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

    r53278 r53329  
    2626        $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $classes ) );
    2727
     28        add_filter( 'comment_form_defaults', 'post_comments_form_block_form_defaults' );
     29
    2830        ob_start();
    2931        comment_form( array(), $block->context['postId'] );
    3032        $form = ob_get_clean();
     33
     34        remove_filter( 'comment_form_defaults', 'post_comments_form_block_form_defaults' );
    3135
    3236        // We use the outermost wrapping `<div />` returned by `comment_form()`
    … …  
    7175        return $fields;
    7276}
    73 add_filter( 'comment_form_defaults', 'post_comments_form_block_form_defaults' );
Note: See TracChangeset for help on using the changeset viewer.