mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 05:31:25 +01:00
4b8fa1bc8b
When the `WP_HTML_Processor` was introduced with its `::create_fragment()` static creator method, that method has been returning a `new self(...)`. Unfortunately, this means that subclasses cannot use that method since it will return the `WP_HTML_Processor` instead of the subclass. With this patch, the static creator method returns `new static(...)` to preserve the intended behavior. A new test asserts this behavior for future changes. Developed in https://github.com/WordPress/wordpress-develop/pull/6729 Discussed in https://core.trac.wordpress.org/ticket/61374 Props dmsnell, jonsurrell. Follow-up to [56274]. Fixes #61374. Built from https://develop.svn.wordpress.org/trunk@58363 git-svn-id: http://core.svn.wordpress.org/trunk@57812 1a063a9b-81f0-0310-95a4-ce76da25c4cd |
||
---|---|---|
.. | ||
class-wp-html-active-formatting-elements.php | ||
class-wp-html-attribute-token.php | ||
class-wp-html-decoder.php | ||
class-wp-html-open-elements.php | ||
class-wp-html-processor-state.php | ||
class-wp-html-processor.php | ||
class-wp-html-span.php | ||
class-wp-html-stack-event.php | ||
class-wp-html-tag-processor.php | ||
class-wp-html-text-replacement.php | ||
class-wp-html-token.php | ||
class-wp-html-unsupported-exception.php | ||
html5-named-character-references.php |