Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get version from wp_get_theme() data + Tested up to WordPress 6.6 #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
12 changes: 8 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down