diff --git a/wp-includes/class-wp-theme.php b/wp-includes/class-wp-theme.php index ee74099766..49020d5e96 100644 --- a/wp-includes/class-wp-theme.php +++ b/wp-includes/class-wp-theme.php @@ -1860,6 +1860,16 @@ final class WP_Theme implements ArrayAccess { $files = (array) self::scandir( $dirpath, 'php', -1 ); + /** + * Filters list of block pattern files for a theme. + * + * @since 6.8.0 + * + * @param array $files Array of theme files found within `patterns` directory. + * @param string $dirpath Path of theme `patterns` directory being scanned. + */ + $files = apply_filters( 'theme_block_pattern_files', $files, $dirpath ); + $dirpath = trailingslashit( $dirpath ); if ( ! $files ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 070731d23b..7cd7ce3a4e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-RC2-60143'; +$wp_version = '6.8-RC2-60144'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.