Changeset 61880
- Timestamp:
- 03/10/2026 12:19:38 PM (3 days ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 4 edited
-
class-wp-block-patterns-registry.php (modified) (2 diffs)
-
class-wp-http-ixr-client.php (modified) (1 diff)
-
html-api/class-wp-html-tag-processor.php (modified) (1 diff)
-
template-loader.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-block-patterns-registry.php
r61348 r61880 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 } -
trunk/src/wp-includes/class-wp-http-ixr-client.php
r61879 r61880 90 90 } 91 91 92 $response = wp_ safe_remote_post( $url, $args );92 $response = wp_remote_post( $url, $args ); 93 93 94 94 if ( is_wp_error( $response ) ) { -
trunk/src/wp-includes/html-api/class-wp-html-tag-processor.php
r61796 r61880 5062 5062 */ 5063 5063 const TEXT_IS_WHITESPACE = 'TEXT_IS_WHITESPACE'; 5064 5065 /** 5066 * Wakeup magic method. 5067 * 5068 * @since 6.9.2 5069 */ 5070 public function __wakeup() { 5071 throw new \LogicException( __CLASS__ . ' should never be unserialized' ); 5072 } 5064 5073 } -
trunk/src/wp-includes/template-loader.php
r60936 r61880 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.