HEX
Server: Apache
System: Linux outside 5.4.8_Algonet_ZeroMAC_0.9.4.8 #6 SMP Mon Feb 3 20:36:07 CET 2020 x86_64
User: server (1002)
PHP: 8.3.20
Disabled: exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,parse_ini_file,show_source
Upload Files
File: /home/muoapartman/www/wp-content/plugins/gutenberg/lib/compat/wordpress-5.9/theme.php
<?php
/**
 * Additions to the WordPress theme.php file
 *
 * @package gutenberg
 */

if ( ! function_exists( 'wp_is_block_theme' ) ) {
	/**
	 * Returns whether the current theme is a block theme or not.
	 *
	 * @return boolean Whether the current theme is a block theme or not.
	 */
	function wp_is_block_theme() {
		return is_readable( get_theme_file_path( '/block-templates/index.html' ) ) ||
			is_readable( get_theme_file_path( '/templates/index.html' ) );
	}
}

/**
 * Note: We have to maintain this function for backward compatibility with WP 5.8.
 * The `validate_theme_requirements` method is using `gutenberg_is_fse_theme` in older versions of WP.
 *
 * @return boolean Whether the current theme is a block theme or not.
 */
function gutenberg_is_fse_theme() {
	return wp_is_block_theme();
}