Make WordPress Core


Ignore:
Timestamp:
06/14/2026 11:45:08 PM (16 hours ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/interactivity-api/class-wp-interactivity-api.php

    r62458 r62499  
    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'] ) ) {
Note: See TracChangeset for help on using the changeset viewer.