Make WordPress Core

Changeset 56561


Ignore:
Timestamp:
09/13/2023 08:06:26 AM (18 months 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.

Location:
trunk
Files:
2 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 );
  • trunk/tests/phpunit/tests/formatting/wpTrimExcerpt.php

    r56560 r56561  
    154154     *
    155155     * @ticket 58682
    156      *
    157      * @covers ::wp_trim_excerpt
    158156     */
    159157    public function test_wp_trim_excerpt_check_if_block_renders() {
     
    173171     *
    174172     * @ticket 58682
    175      *
    176      * @covers ::wp_trim_excerpt
    177173     */
    178174    public function test_wp_trim_excerpt_unhooks_do_blocks() {
     
    201197     *
    202198     * @ticket 58682
    203      *
    204      * @covers ::wp_trim_excerpt
    205199     */
    206200    public function test_wp_trim_excerpt_should_not_permanently_unhook_do_blocks() {
     
    216210     *
    217211     * @ticket 58682
    218      *
    219      * @covers ::wp_trim_excerpt
    220212     */
    221213    public function test_wp_trim_excerpt_does_not_restore_do_blocks_if_previously_unhooked() {
Note: See TracChangeset for help on using the changeset viewer.