Skip to content

Commit

Permalink
updates doc block comment in copy-post.php
Browse files Browse the repository at this point in the history
  • Loading branch information
sdixon194 committed Jul 8, 2021
1 parent 4c52f17 commit 8ec3185
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion projects/plugins/jetpack/modules/copy-post.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ public function update_post_data( $target_post_id, $post, $update ) {
add_filter( 'default_content', array( $this, 'filter_content' ), 10, 2 );
add_filter( 'default_excerpt', array( $this, 'filter_excerpt' ), 10, 2 );

// Required to avoid the block editor from adding default blocks according to post format.
/*
* Required to avoid the block editor from adding default blocks according to post format.
* @todo: simplify once WordPress 5.8 is the minimum required version.
*/
if ( version_compare( $wp_version, '5.8', '>=' ) ) {
add_filter( 'block_editor_settings_all', array( $this, 'remove_post_format_template' ) );
} else {
Expand Down

0 comments on commit 8ec3185

Please sign in to comment.