wordpress/wp-content/themes/basic/themify/themify-utils.php
/**
 * Get contents of a file
 * wp_filesystem sometimes fails, using include seems safer
 *
 * return string|bool
 */
Get contents of a file
wp_filesystem sometimes fails, using include seems safer

return string|bool
Get contents of a file wp_filesystem sometimes fails using include seems safer return string|bool
function themify_get_file_contents( $path ) {
	if( is_file( $path ) ) {
		ob_start();
		include $path;
		return ob_get_clean();
	}
	return false;
}
function themify_get_file_contents ( $ path ) { if ( is_file ( $ path ) ) { ob_start ( ) ; include $ path ; return ob_get_clean ( ) ; } return false ; }
Get contents of a file
 wp_filesystem sometimes fails, using include seems safer
Get contents of a file wp_filesystem sometimes fails using include seems safer