Skip to content

Commit

Permalink
Fix: Removes filter comment
Browse files Browse the repository at this point in the history
  • Loading branch information
CoderAbhinav committed Dec 10, 2024
1 parent 756b597 commit 49cb9b0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/block-library/src/post-excerpt/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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

View workflow job for this annotation

GitHub Actions / PHP coding standards

Equals sign not aligned correctly; expected 1 space but found 8 spaces

Check failure on line 31 in packages/block-library/src/post-excerpt/index.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Missing @SInCE tag for the "apply_filters()" hook function.
if ( isset( $excerpt_length ) ) {
$excerpt = wp_trim_words( $excerpt, $excerpt_length );
Expand Down

0 comments on commit 49cb9b0

Please sign in to comment.