Changeset 53144
- Timestamp:
- 04/11/2022 07:58:04 PM (14 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r53053 r53144 4640 4640 $regex, 4641 4641 static function( $matches ) { 4642 if ( ! $matches[0]) {4642 if ( ! isset( $matches[0] ) ) { 4643 4643 return ''; 4644 4644 } 4645 4645 4646 if ( ! empty( $matches['non_cdata'] ) ) {4646 if ( isset( $matches['non_cdata'] ) ) { 4647 4647 // escape HTML entities in the non-CDATA Section. 4648 4648 return _wp_specialchars( $matches['non_cdata'], ENT_XML1 ); -
trunk/tests/phpunit/tests/formatting/escXml.php
r51623 r53144 42 42 "SELECT meta_key, meta_value FROM wp_trunk_sitemeta WHERE meta_key IN ('site_name', 'siteurl', 'active_sitewide_plugins', '_site_transient_timeout_theme_roots', '_site_transient_theme_roots', 'site_admins', 'can_compress_scripts', 'global_terms_enabled') AND site_id = 1", 43 43 'SELECT meta_key, meta_value FROM wp_trunk_sitemeta WHERE meta_key IN ('site_name', 'siteurl', 'active_sitewide_plugins', '_site_transient_timeout_theme_roots', '_site_transient_theme_roots', 'site_admins', 'can_compress_scripts', 'global_terms_enabled') AND site_id = 1', 44 ), 45 // Zero string. 46 array( 47 '0', 48 '0', 44 49 ), 45 50 );
Note: See TracChangeset
for help on using the changeset viewer.