Make WordPress Core

Ticket #57420: 57420.diff

File 57420.diff, 453 bytes (added by benjgrolleau, 17 months ago)
  • src/wp-includes/class-wp-theme-json.php

    diff --git a/src/wp-includes/class-wp-theme-json.php b/src/wp-includes/class-wp-theme-json.php
    index f9e8e371c5..46bb0ef6cc 100644
    a b class WP_Theme_JSON { 
    481481                        $class_name = static::__EXPERIMENTAL_ELEMENT_CLASS_NAMES[ $element ];
    482482                }
    483483
    484                 return $class_name;
     484                return apply_filters( "element_class_name", $class_name, $element );
    485485        }
    486486
    487487        /**