Changeset 61892
- Timestamp:
- 03/10/2026 01:55:45 PM (3 days ago)
- Location:
- branches/6.9
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
src/wp-includes/class-wp-block-patterns-registry.php (modified) (2 diffs)
-
src/wp-includes/html-api/class-wp-html-tag-processor.php (modified) (1 diff)
-
src/wp-includes/template-loader.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/6.9
- Property svn:mergeinfo changed
/trunk merged: 61880-61881
- Property svn:mergeinfo changed
-
branches/6.9/src/wp-includes/class-wp-block-patterns-registry.php
r60904 r61892 174 174 $patterns = &$this->registered_patterns; 175 175 } 176 if ( ! isset( $patterns[ $pattern_name ]['content'] ) && isset( $patterns[ $pattern_name ]['filePath'] ) ) { 176 177 $pattern_path = realpath( $patterns[ $pattern_name ]['filePath'] ?? '' ); 178 if ( 179 ! isset( $patterns[ $pattern_name ]['content'] ) && 180 is_string( $pattern_path ) && 181 ( str_ends_with( $pattern_path, '.php' ) || str_ends_with( $pattern_path, '.html' ) ) && 182 is_file( $pattern_path ) && 183 is_readable( $pattern_path ) 184 ) { 177 185 ob_start(); 178 186 include $patterns[ $pattern_name ]['filePath']; … … 180 188 unset( $patterns[ $pattern_name ]['filePath'] ); 181 189 } 190 182 191 return $patterns[ $pattern_name ]['content']; 183 192 } -
branches/6.9/src/wp-includes/html-api/class-wp-html-tag-processor.php
r61350 r61892 4681 4681 */ 4682 4682 const TEXT_IS_WHITESPACE = 'TEXT_IS_WHITESPACE'; 4683 4684 /** 4685 * Wakeup magic method. 4686 * 4687 * @since 6.9.2 4688 */ 4689 public function __wakeup() { 4690 throw new \LogicException( __CLASS__ . ' should never be unserialized' ); 4691 } 4683 4692 } -
branches/6.9/src/wp-includes/template-loader.php
r60936 r61892 113 113 */ 114 114 $template = apply_filters( 'template_include', $template ); 115 if ( $template ) { 115 $template = is_string( $template ) ? realpath( $template ) : null; 116 if ( 117 is_string( $template ) && 118 ( str_ends_with( $template, '.php' ) || str_ends_with( $template, '.html' ) ) && 119 is_file( $template ) && 120 is_readable( $template ) 121 ) { 116 122 /** 117 123 * Fires immediately before including the template.
Note: See TracChangeset
for help on using the changeset viewer.