get( 'Version' ) ); /** Check if the WordPress version is 5.5 or higher, and if the PHP version is at least 7.2. If not, do not activate. */ if ( version_compare( $GLOBALS['wp_version'], '5.5', '<' ) || version_compare( PHP_VERSION_ID, '70200', '<' ) ) { require get_template_directory() . '/inc/back-compat.php'; return; } // Theme support require_once 'classes/class-theme-support.php'; // Block styles require_once 'inc/block-styles.php'; /** * Enqueue the style.css file. * * @since 1.0.0 */ function armando_styles() { wp_enqueue_style( 'armando-style', get_stylesheet_uri(), ARMANDO_VERSION ); if ( is_singular() ) { wp_enqueue_script( "comment-reply" ); } } add_action( 'wp_enqueue_scripts', 'armando_styles' ); /** * Show '(no title)' in frontend if post has no title to make it selectable. */ add_filter( 'the_title', function( $title ) { if ( ! is_admin() && empty( $title ) ) { $title = __( '(no title)', 'armando' ); } return $title; } );