-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
756b597
commit 49cb9b0
Showing
1 changed file
with
0 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,13 +28,6 @@ function render_block_core_post_excerpt( $attributes, $content, $block ) { | |
*/ | ||
$excerpt_length = $attributes['excerptLength']; | ||
|
||
/** | ||
* Filters the displayed post excerpt. | ||
* | ||
* @see get_the_excerpt() | ||
* | ||
* @param string $post_excerpt The post excerpt. | ||
*/ | ||
$excerpt = apply_filters( 'the_excerpt', get_the_excerpt( $block->context['postId'] ) ); | ||
Check warning on line 31 in packages/block-library/src/post-excerpt/index.php GitHub Actions / PHP coding standards
Check failure on line 31 in packages/block-library/src/post-excerpt/index.php GitHub Actions / PHP coding standards
|
||
if ( isset( $excerpt_length ) ) { | ||
$excerpt = wp_trim_words( $excerpt, $excerpt_length ); | ||
|