Skip to content

Commit

Permalink
Prefer using wp_trim_words
Browse files Browse the repository at this point in the history
  • Loading branch information
akirk committed Oct 14, 2023
1 parent 1fd0f86 commit 9f6d645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -2476,7 +2476,7 @@ public function override_post_format_title( $title, $post_id = null ) {
if ( $screen && 'edit-post' === $screen->id ) {
if ( 'status' === get_post_format() ) {
$post = get_post( $post_id );
return wp_trim_excerpt( wp_strip_all_tags( $post->post_content ) );
return wp_trim_words( wp_strip_all_tags( $post->post_content ) );
}
}
}
Expand Down

0 comments on commit 9f6d645

Please sign in to comment.