Skip to content

Commit a5b2768

Browse files
committed
Updated wp class name
1 parent ae8170b commit a5b2768

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

html-api-debugger/html-api-integration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ function get_normalized_html( string $html, array $options ): ?string {
7171
*/
7272
function get_tree( string $html, array $options ): array {
7373
$selector = null;
74-
if ( isset( $options['selector'] ) && class_exists( '\WP_CSS_Selector_List' ) ) {
75-
$selector = \WP_CSS_Selector_List::from_selectors( $options['selector'] );
74+
if ( isset( $options['selector'] ) && class_exists( '\WP_CSS_Selector' ) ) {
75+
$selector = \WP_CSS_Selector::from_selectors( $options['selector'] );
7676
}
7777

7878
$processor_state = new ReflectionProperty( WP_HTML_Processor::class, 'state' );

0 commit comments

Comments
 (0)