mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
91e7a067a8
When returning modifiable text in the HTML API, if the text segment coerces to `false` inside `empty()`, then an empty string has been returned instead of the string itself. For example, the text node in the following HTML snippet: {{{ <div>0</div> }}} In this patch the `empty()` check is removed. The purpose of the original check was to skip further processing if the text content is empty, but the check is not needed and the additioanl processing is minimal. Removing the code removes the defect and leaves a cleaner method in its absence. Developed in https://github.com/WordPress/wordpress-develop/pull/6199 Follow-up to [57348] Follow-up to #60170 Built from https://develop.svn.wordpress.org/trunk@57738 git-svn-id: http://core.svn.wordpress.org/trunk@57239 1a063a9b-81f0-0310-95a4-ce76da25c4cd |
||
---|---|---|
.. | ||
class-wp-html-active-formatting-elements.php | ||
class-wp-html-attribute-token.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-tag-processor.php | ||
class-wp-html-text-replacement.php | ||
class-wp-html-token.php | ||
class-wp-html-unsupported-exception.php |