From 95f0065c3e0ce05f48c29ed906cd964cb1a8a4c9 Mon Sep 17 00:00:00 2001 From: Ludwig Date: Thu, 22 Aug 2024 18:08:34 +0100 Subject: [PATCH] Get version from wp_get_theme() data + Tested up to WordPress 6.6 --- functions.php | 2 +- readme.txt | 12 ++++++++---- style.css | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/functions.php b/functions.php index 7f38d9a..7040999 100644 --- a/functions.php +++ b/functions.php @@ -14,7 +14,7 @@ exit; // Exit if accessed directly. } -define( 'HELLO_ELEMENTOR_CHILD_VERSION', '2.0.0' ); +define( 'HELLO_ELEMENTOR_CHILD_VERSION', wp_get_theme()->get( 'Version' ) ); /** * Load child theme scripts & styles. diff --git a/readme.txt b/readme.txt index 0f27ba5..da083ab 100644 --- a/readme.txt +++ b/readme.txt @@ -1,10 +1,10 @@ === Hello Elementor Child === -Contributors: elemntor, KingYes, ariel.k, jzaltzberg, mati1000, bainternet +Contributors: elemntor, KingYes, ariel.k, jzaltzberg, mati1000, bainternet, ludwigyou Requires at least: 5.9 -Tested up to: 6.2 -Stable tag: 2.0.0 -Version: 2.0.0 +Tested up to: 6.6 +Stable tag: 3.0.0 +Version: 3.0.0 Requires PHP: 5.6 License: GNU General Public License v3 or later License URI: https://www.gnu.org/licenses/gpl-3.0.html @@ -44,6 +44,10 @@ Source: https://stocksnap.io/photo/4B83RD7BV9 == Changelog == += 3.0.0 - 2024-08-22 = +* Get version from wp_get_theme() data +* Tested up to WordPress 6.6 + = 2.0.0 - 2023-04-27 = * Load child theme stylesheet after parent theme stylesheet * Added a constant for better version management diff --git a/style.css b/style.css index c3d5d07..fe14f48 100644 --- a/style.css +++ b/style.css @@ -5,7 +5,7 @@ Description: Hello Elementor Child is a child theme of Hello Elementor, created Author: Elementor Team Author URI: https://elementor.com/ Template: hello-elementor -Version: 2.0.0 +Version: 3.0.0 Text Domain: hello-elementor-child License: GNU General Public License v3 or later. License URI: https://www.gnu.org/licenses/gpl-3.0.html