Make WordPress Core


Ignore:
Timestamp:
09/13/2023 08:06:26 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Docs: Fix typo in a comment in wp_trim_excerpt().

Includes removing redundant @covers tags. There is already an existing annotation for the whole test class, following the PHPUnit recommendation:

This annotation can be added to the docblock of the test class or the individual test methods. The recommended way is to add the annotation to the docblock of the test class, not to the docblock of the test methods.

Follow-up to [56560].

See #58682.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/formatting.php

    r56560 r56561  
    39853985                /*
    39863986                 * Temporarily unhook do_blocks() since excerpt_remove_blocks( $text )
    3987                  * handels block rendering needed for excerpt.
     3987                 * handles block rendering needed for excerpt.
    39883988                 */
    39893989                $filter_block_removed = remove_filter( 'the_content', 'do_blocks', 9 );
Note: See TracChangeset for help on using the changeset viewer.