From 742c112201280091dbb7ea412e7ae8b56a2802ab Mon Sep 17 00:00:00 2001 From: alaczek Date: Thu, 25 Jan 2024 11:24:53 +1100 Subject: [PATCH] Nook: A round of minor fixes (#7626) * Delete wp-custom-template-qi-blocks-full-width.html template * Update functions.php Update function names. * Update style.css --- nook/functions.php | 18 +++++++++--------- nook/style.css | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/nook/functions.php b/nook/functions.php index 3c1f225645..08fad6df83 100644 --- a/nook/functions.php +++ b/nook/functions.php @@ -11,7 +11,7 @@ declare( strict_types = 1 ); -if ( ! function_exists( 'creatio2_support' ) ) : +if ( ! function_exists( 'nook_support' ) ) : /** * Sets up theme defaults and registers support for various WordPress features. @@ -20,20 +20,20 @@ * * @return void */ - function creatio2_support() { + function nook_support() { // Enqueue editor styles. add_editor_style( 'style.css' ); // Make theme available for translation. - load_theme_textdomain( 'creatio2' ); + load_theme_textdomain( 'nook' ); } endif; -add_action( 'after_setup_theme', 'creatio2_support' ); +add_action( 'after_setup_theme', 'nook_support' ); -if ( ! function_exists( 'creatio2_styles' ) ) : +if ( ! function_exists( 'nook_styles' ) ) : /** * Enqueue styles. @@ -42,21 +42,21 @@ function creatio2_support() { * * @return void */ - function creatio2_styles() { + function nook_styles() { // Register theme stylesheet. wp_register_style( - 'creatio2-style', + 'nook-style', get_stylesheet_directory_uri() . '/style.css', array(), wp_get_theme()->get( 'Version' ) ); // Enqueue theme stylesheet. - wp_enqueue_style( 'creatio2-style' ); + wp_enqueue_style( 'nook-style' ); } endif; -add_action( 'wp_enqueue_scripts', 'creatio2_styles' ); +add_action( 'wp_enqueue_scripts', 'nook_styles' ); diff --git a/nook/style.css b/nook/style.css index 5c55687039..2a67b782d7 100644 --- a/nook/style.css +++ b/nook/style.css @@ -5,7 +5,7 @@ Author: Automattic Author URI: https://automattic.com/ Description: Nook is a classic blogging theme offering a delightful canvas for your DIY projects, delicious recipes, and creative inspirations. Requires at least: 6.0 -Tested up to: 6.4.2-alpha-57098 +Tested up to: 6.4.2 Requires PHP: 5.7 Version: 1.0.1 License: GNU General Public License v2 or later