mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-10 21:40:08 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@56790 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -44,7 +44,7 @@ class Tests_HtmlApi_WpHtmlSupportRequiredOpenElements extends WP_UnitTestCase {
|
||||
* @param string $tag_name the HTML Processor should abort when encountering this tag, e.g. "BUTTON".
|
||||
*/
|
||||
private function ensure_support_is_added_everywhere( $tag_name ) {
|
||||
$p = WP_HTML_Processor::createFragment( "<$tag_name>" );
|
||||
$p = WP_HTML_Processor::create_fragment( "<$tag_name>" );
|
||||
|
||||
$this->assertFalse( $p->step(), "Must support terminating elements in specific scope check before adding support for the {$tag_name} element." );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user