Skip to content

Commit 0a9838d

Browse files
Coding Standards: Remove unused local variable $all_class_directives.
This removes an unused variable in `WP_Interactivity_API::data_wp_class_processor()`. Follow-up to [57563], [61020]. Props Soean. See #64897. git-svn-id: https://develop.svn.wordpress.org/trunk@62499 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 8a89014 commit 0a9838d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/wp-includes/interactivity-api/class-wp-interactivity-api.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,8 +1086,7 @@ private function data_wp_bind_processor( WP_Interactivity_API_Directives_Process
10861086
*/
10871087
private function data_wp_class_processor( WP_Interactivity_API_Directives_Processor $p, string $mode ) {
10881088
if ( 'enter' === $mode ) {
1089-
$all_class_directives = $p->get_attribute_names_with_prefix( 'data-wp-class--' );
1090-
$entries = $this->get_directive_entries( $p, 'class' );
1089+
$entries = $this->get_directive_entries( $p, 'class' );
10911090
foreach ( $entries as $entry ) {
10921091
if ( empty( $entry['suffix'] ) ) {
10931092
continue;

0 commit comments

Comments
 (0)