From 8ec31853b180041b53c1b662b7b97d8992e3f863 Mon Sep 17 00:00:00 2001 From: sdixon194 Date: Thu, 8 Jul 2021 11:51:33 -0400 Subject: [PATCH] updates doc block comment in copy-post.php --- projects/plugins/jetpack/modules/copy-post.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/plugins/jetpack/modules/copy-post.php b/projects/plugins/jetpack/modules/copy-post.php index 069adef24cde9..dc92af45a1970 100644 --- a/projects/plugins/jetpack/modules/copy-post.php +++ b/projects/plugins/jetpack/modules/copy-post.php @@ -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 {