From a4ae75d1d0ec471ec13d91d1b0aa9a2746a02080 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 25 Mar 2026 16:05:04 +0000 Subject: [PATCH] Update theme for modern WordPress and PHP compatibility - Bump PHP requirement from 5.6 to 7.4 (5.6 EOL since 2017) - Bump minimum WordPress from 4.6 to 4.7 (REST API in core) - Update tested up to WordPress 6.7 - Add ABSPATH check to functions.php to prevent direct access - Add missing wp_footer() call in index.php for plugin compatibility - Fix duplicate add_theme_support('custom-logo') call - Fix inconsistent indentation (tabs instead of mixed tabs/spaces) - Replace shell-style comment (#) with PHP-standard (//) - Bump version to 1.1.0 https://claude.ai/code/session_01JQY1U3p4KWScWiMVkd9co5 --- functions.php | 35 ++++++++++++++++++----------------- index.php | 1 + style.css | 8 ++++---- 3 files changed, 23 insertions(+), 21 deletions(-) diff --git a/functions.php b/functions.php index 01d3cdc..e63fa9f 100644 --- a/functions.php +++ b/functions.php @@ -1,4 +1,6 @@ - 256, - 'width' => 256, - 'flex-height' => true, - 'flex-width' => true, - 'header-text' => array( 'site-title', 'site-description' ), - ) - ); - } + add_theme_support( + 'custom-logo', + array( + 'height' => 256, + 'width' => 256, + 'flex-height' => true, + 'flex-width' => true, + 'header-text' => array( 'site-title', 'site-description' ), + ) + ); +} add_action( 'after_setup_theme', 'blank_wordpress_theme_support' ); diff --git a/index.php b/index.php index 602bbed..546dd46 100644 --- a/index.php +++ b/index.php @@ -16,5 +16,6 @@ > + \ No newline at end of file diff --git a/style.css b/style.css index a620542..e7c955c 100644 --- a/style.css +++ b/style.css @@ -4,12 +4,12 @@ Theme URI: https://github.com/GrowthWizard/blank-wordpress-theme Author: Dominik Stein Author URI: https://steindominik.de/ Description: A WordPress Theme which doesn't show any content in the frontend and is completely blank. Since the Backend (exampledomain.de/wp-content) is still available, you can use this WordPress Theme as headless CMS for any Javascript Framework you like (i.e. via RestAPI). Enjoy! -Version: 1.0.0 +Version: 1.1.0 License: GNU General Public License v3 or later License URI: https://www.gnu.org/licenses/gpl-3.0.html Tags: featured-images, theme-options, Text Domain: blank-wordpress-theme -Requires at least: 4.6 -Tested up to: 6.3 -Requires PHP: 5.6 +Requires at least: 4.7 +Tested up to: 6.7 +Requires PHP: 7.4 */