From e36dd30e24a652da8843609bff2b3bf49f245b88 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Fri, 17 Aug 2018 10:59:25 -0400 Subject: [PATCH] Framework: Fix typo for removing excerpt block stripping --- lib/blocks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/blocks.php b/lib/blocks.php index 9401e790cac218..20371aad75a40e 100644 --- a/lib/blocks.php +++ b/lib/blocks.php @@ -252,7 +252,7 @@ function strip_dynamic_blocks_add_filter( $text ) { add_filter( 'get_the_excerpt', 'strip_dynamic_blocks_add_filter', 9 ); // Before wp_trim_excerpt(). /** - * Adds the content filter to strip dynamic blocks from excerpts. + * Removes the content filter to strip dynamic blocks from excerpts. * * It's a bit hacky for now, but once this gets merged into core the function * can just be called in `wp_trim_excerpt()`. @@ -267,4 +267,4 @@ function strip_dynamic_blocks_remove_filter( $text ) { return $text; } -add_filter( 'wp_trim_excerpt', 'strip_dynamic_blocks_add_filter', 0 ); // Before all other. +add_filter( 'wp_trim_excerpt', 'strip_dynamic_blocks_remove_filter', 0 ); // Before all other.