Make WordPress Core

Changeset 58615

Timestamp:
07/02/2024 10:41:33 AM (5 weeks ago)
Author:
Bernhard Reiter
Message:

Block Hooks: Fix a number of multi-line comment openers.

Add the missing second asterisk to a number of multi-line comment openers, and remove a superfluous second asterisk from two others.

Follow-up to [58614].
Props mukesh27.
See #60854.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-template-utils.php

    r58614 r58615  
    618618
    619619    if ( 'wp_template_part' === $template->type && $has_hooked_blocks ) {
    620         /**
     620        /*
    621621         * In order for hooked blocks to be inserted at positions first_child and last_child in a template part,
    622622         * we need to wrap its content a mock template part block and traverse it.
     
    10231023            $attributes                     = ! empty( $existing_ignored_hooked_blocks ) ? array( 'metadata' => array( 'ignoredHookedBlocks' => json_decode( $existing_ignored_hooked_blocks, true ) ) ) : array();
    10241024
    1025             /**
     1025            /*
    10261026             * In order for hooked blocks to be inserted at positions first_child and last_child in a template part,
    10271027             * we need to wrap its content a mock template part block and traverse it.
  • trunk/tests/phpunit/tests/block-templates/buildBlockTemplateResultFromFile.php

    r58614 r58615  
    218218    }
    219219
    220     /*
     220    /*
    221221     * @ticket 60506
    222222     * @ticket 60854
     
    243243    }
    244244
    245     /*
     245    /*
    246246     * @ticket 60506
    247247     * @ticket 60854
  • trunk/tests/phpunit/tests/block-templates/buildBlockTemplateResultFromPost.php

    r58614 r58615  
    112112    }
    113113
    114     /*
     114    /*
    115115     * @ticket 59646
    116116     * @ticket 60506
     
    134134    }
    135135
    136     /*
     136    /*
    137137     * @ticket 59646
    138138     * @ticket 60506
Note: See TracChangeset for help on using the changeset viewer.