Make WordPress Core


Ignore:
Timestamp:
10/05/2023 10:40:48 PM (17 months ago)
Author:
SergeyBiryukov
Message:

HTML API: Rename WP_HTML_Processor::createFragment() to follow WPCS.

WP_HTML_Processor::create_fragment() is the correct method name as per the WordPress PHP coding standards.

Follow-up to [56274].

Props dmsnell, jrf, hellofromTonya, SergeyBiryukov.
Fixes #59547.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/html-api/wpHtmlSupportRequiredOpenElements.php

    r56380 r56790  
    4545     */
    4646    private function ensure_support_is_added_everywhere( $tag_name ) {
    47         $p = WP_HTML_Processor::createFragment( "<$tag_name>" );
     47        $p = WP_HTML_Processor::create_fragment( "<$tag_name>" );
    4848
    4949        $this->assertFalse( $p->step(), "Must support terminating elements in specific scope check before adding support for the {$tag_name} element." );
Note: See TracChangeset for help on using the changeset viewer.