Changeset 61913
- Timestamp:
- 03/10/2026 09:10:29 PM (3 days ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
-
class-wp-block-patterns-registry.php (modified) (1 diff)
-
template-loader.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-block-patterns-registry.php
r61880 r61913 175 175 } 176 176 177 $pattern_path = realpath( $patterns[ $pattern_name ]['filePath'] ?? '' ); 177 $file_path = $patterns[ $pattern_name ]['filePath'] ?? ''; 178 $is_stringy = is_string( $file_path ) || ( is_object( $file_path ) && method_exists( $file_path, '__toString' ) ); 179 $pattern_path = $is_stringy ? realpath( (string) $file_path ) : null; 178 180 if ( 179 181 ! isset( $patterns[ $pattern_name ]['content'] ) && -
trunk/src/wp-includes/template-loader.php
r61880 r61913 112 112 * @param string $template The path of the template to include. 113 113 */ 114 $template = apply_filters( 'template_include', $template ); 115 $template = is_string( $template ) ? realpath( $template ) : null; 114 $template = apply_filters( 'template_include', $template ); 115 $is_stringy = is_string( $template ) || ( is_object( $template ) && method_exists( $template, '__toString' ) ); 116 $template = $is_stringy ? realpath( (string) $template ) : null; 116 117 if ( 117 118 is_string( $template ) &&
Note: See TracChangeset
for help on using the changeset viewer.