Skip to content

Commit 02d7c56

Browse files
committed
Revert r61920 from the 6.5 branch.
Incorrect target. git-svn-id: https://develop.svn.wordpress.org/branches/6.5@61921 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 60d317d commit 02d7c56

3 files changed

Lines changed: 3 additions & 20 deletions

File tree

src/wp-includes/class-wp-block-patterns-registry.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,7 @@ private function get_content( $pattern_name, $outside_init_only = false ) {
199199
$patterns = &$this->registered_patterns;
200200
}
201201

202-
$file_path = $patterns[ $pattern_name ]['filePath'] ?? '';
203-
$is_stringy = is_string( $file_path ) || ( is_object( $file_path ) && method_exists( $file_path, '__toString' ) );
204-
$pattern_path = $is_stringy ? realpath( (string) $file_path ) : null;
202+
$pattern_path = realpath( $patterns[ $pattern_name ]['filePath'] ?? '' );
205203
if (
206204
! isset( $patterns[ $pattern_name ]['content'] ) &&
207205
is_string( $pattern_path ) &&

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -672,20 +672,6 @@ private function data_wp_class_processor( WP_Interactivity_API_Directives_Proces
672672
return;
673673
}
674674

675-
// Skip if the bound attribute is an event handler.
676-
if ( str_starts_with( $bound_attribute, 'on' ) ) {
677-
_doing_it_wrong(
678-
__METHOD__,
679-
sprintf(
680-
/* translators: %s: The directive, e.g. data-wp-on--click. */
681-
__( 'Binding event handler attributes is not supported. Please use "%s" instead.' ),
682-
esc_attr( 'data-wp-on--' . substr( $bound_attribute, 2 ) )
683-
),
684-
'6.8.5'
685-
);
686-
continue;
687-
}
688-
689675
$attribute_value = $p->get_attribute( $attribute_name );
690676
$result = $this->evaluate( $attribute_value, end( $namespace_stack ), end( $context_stack ) );
691677

src/wp-includes/template-loader.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,8 @@
101101
*
102102
* @param string $template The path of the template to include.
103103
*/
104-
$template = apply_filters( 'template_include', $template );
105-
$is_stringy = is_string( $template ) || ( is_object( $template ) && method_exists( $template, '__toString' ) );
106-
$template = $is_stringy ? realpath( (string) $template ) : null;
104+
$template = apply_filters( 'template_include', $template );
105+
$template = is_string( $template ) ? realpath( $template ) : null;
107106
if (
108107
is_string( $template ) &&
109108
( str_ends_with( $template, '.php' ) || str_ends_with( $template, '.html' ) ) &&

0 commit comments

Comments
 (0)