- Timestamp:
- 10/01/2025 12:57:19 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/html-api/class-wp-html-processor.php
r60647 r60887 298 298 } 299 299 300 if ( ! is_string( $html ) ) { 301 _doing_it_wrong( 302 __METHOD__, 303 __( 'The HTML parameter must be a string.' ), 304 '6.9.0' 305 ); 306 return null; 307 } 308 300 309 $context_processor = static::create_full_parser( "<!DOCTYPE html>{$context}", $encoding ); 301 310 if ( null === $context_processor ) { … … 338 347 public static function create_full_parser( $html, $known_definite_encoding = 'UTF-8' ) { 339 348 if ( 'UTF-8' !== $known_definite_encoding ) { 349 return null; 350 } 351 if ( ! is_string( $html ) ) { 352 _doing_it_wrong( 353 __METHOD__, 354 __( 'The HTML parameter must be a string.' ), 355 '6.9.0' 356 ); 340 357 return null; 341 358 }
Note: See TracChangeset
for help on using the changeset viewer.