Download all files FTP
This commit is contained in:
@@ -1032,6 +1032,20 @@ final class WP_Interactivity_API {
|
||||
return;
|
||||
}
|
||||
|
||||
// Skip if the suffix is an event handler.
|
||||
if ( str_starts_with( $entry['suffix'], 'on' ) ) {
|
||||
_doing_it_wrong(
|
||||
__METHOD__,
|
||||
sprintf(
|
||||
/* translators: %s: The directive, e.g. data-wp-on--click. */
|
||||
__( 'Binding event handler attributes is not supported. Please use "%s" instead.' ),
|
||||
esc_attr( 'data-wp-on--' . substr( $entry['suffix'], 2 ) )
|
||||
),
|
||||
'6.9.2'
|
||||
);
|
||||
continue;
|
||||
}
|
||||
|
||||
$result = $this->evaluate( $entry );
|
||||
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user