- Timestamp:
- 03/10/2026 09:10:29 PM (3 months ago)
- File:
-
- 1 edited
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'] ) &&
Note: See TracChangeset
for help on using the changeset viewer.