From 4c31c5e87cd5c5378794da3efbc2a250ee9611cb Mon Sep 17 00:00:00 2001 From: Rami Yushuvaev <92088692+rami-elementor@users.noreply.github.com> Date: Mon, 27 Mar 2023 16:51:36 +0300 Subject: [PATCH 1/6] Fix: Child themes using `hello_elementor_body_open()` no longer working [ED-10258] (#283) * Fix: Child themes using `hello_elementor_body_open()` no longer working * Update functions.php --- functions.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/functions.php b/functions.php index 8f021574..40e5a143 100644 --- a/functions.php +++ b/functions.php @@ -195,3 +195,14 @@ function hello_elementor_check_hide_title( $val ) { } } add_filter( 'hello_elementor_page_title', 'hello_elementor_check_hide_title' ); + +/** + * BC: + * In v2.7.0 the theme removed the `hello_elementor_body_open()` from `header.php` replacing it with `wp_body_open()`. + * The following code prevents fatal errors in child themes that still use this function. + */ +if ( ! function_exists( 'hello_elementor_body_open' ) ) { + function hello_elementor_body_open() { + wp_body_open(); + } +} From d7e4fd1bcfa5464a817f284dd81bb3d1dc2affa0 Mon Sep 17 00:00:00 2001 From: Rami Yushuvaev <92088692+rami-elementor@users.noreply.github.com> Date: Mon, 27 Mar 2023 16:52:27 +0300 Subject: [PATCH 2/6] Tweak: Add excerpt support for pages [ED-10254] (#277) --- functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/functions.php b/functions.php index 40e5a143..b3214335 100644 --- a/functions.php +++ b/functions.php @@ -31,6 +31,10 @@ function hello_elementor_setup() { register_nav_menus( [ 'menu-2' => esc_html__( 'Footer', 'hello-elementor' ) ] ); } + if ( apply_filters( 'hello_elementor_post_type_support', true ) ) { + add_post_type_support( 'page', 'excerpt' ); + } + if ( apply_filters( 'hello_elementor_add_theme_support', true ) ) { add_theme_support( 'post-thumbnails' ); add_theme_support( 'automatic-feed-links' ); From 9ff1af557279906ba7d54624c5d57ded9fbc6066 Mon Sep 17 00:00:00 2001 From: Rami Yushuvaev <92088692+rami-elementor@users.noreply.github.com> Date: Mon, 27 Mar 2023 16:53:13 +0300 Subject: [PATCH 3/6] Fix: Empty "Skip to content" href [ED-10257] (#282) * Tweak: Update Tested Up to 6.1 * Fix: Empty "Skip to content" href --------- Co-authored-by: Yakir Sitbon --- header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/header.php b/header.php index 7c4f5560..1085d6f5 100644 --- a/header.php +++ b/header.php @@ -28,7 +28,7 @@ - + Date: Mon, 27 Mar 2023 17:00:13 +0300 Subject: [PATCH 4/6] Tweak: When comments is closed to post, display it to the user (#275) * Update readme * Tweak: When comments is closed to post, display it to the user * Fix the condition --- comments.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/comments.php b/comments.php index d132e2bd..b589f7a0 100644 --- a/comments.php +++ b/comments.php @@ -12,6 +12,14 @@ exit; // Exit if accessed directly. } +if ( ! post_type_supports( get_post_type(), 'comments' ) ) { + return; +} + +if ( ! have_comments() && ! comments_open() ) { + return; +} + // Comment Reply Script. if ( comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); @@ -60,13 +68,6 @@ - -

- - Date: Mon, 27 Mar 2023 17:41:51 +0300 Subject: [PATCH 5/6] Changelog 2.7.1 (#284) * Changelog 2.7.1 * Update README.md * Apply suggestions from code review --------- Co-authored-by: Yakir Sitbon --- README.md | 10 ++++++++-- readme.txt | 6 ++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c2065a55..b32498ee 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ **Contributors:** [elemntor](https://profiles.wordpress.org/elemntor), [KingYes](https://profiles.wordpress.org/KingYes), [ariel.k](https://profiles.wordpress.org/ariel.k), [jzaltzberg](https://profiles.wordpress.org/jzaltzberg), [mati1000](https://profiles.wordpress.org/mati1000), [bainternet](https://profiles.wordpress.org/bainternet) **Requires at least:** 5.9 **Tested up to:** 6.2 -**Stable tag:** 2.7.0 -**Version:** 2.7.0 +**Stable tag:** 2.7.0 +**Version:** 2.7.0 **Requires PHP:** 5.6 **License:** GNU General Public License v3 or later **License URI:** https://www.gnu.org/licenses/gpl-3.0.html @@ -92,6 +92,12 @@ Source: https://stocksnap.io/photo/4B83RD7BV9 ## Changelog ## +### 2.7.1 - 2023-03-27 ### +* Tweak: Add excerpt support for pages [ED-10254] +* Tweak: When comments is closed to post, display it to the user +* Fix: Empty "Skip to content" href ([#276](https://github.com/elementor/hello-theme/issues/276)) +* Fix: Child themes using hello_elementor_body_open() no longer working ([#278](https://github.com/elementor/hello-theme/issues/278)) + ### 2.7.0 - 2023-03-26 ### * Tweak: Update `Requires at least 5.9` * Tweak: Update `Tested up to 6.2` diff --git a/readme.txt b/readme.txt index 585238f0..062af988 100644 --- a/readme.txt +++ b/readme.txt @@ -90,6 +90,12 @@ Source: https://stocksnap.io/photo/4B83RD7BV9 == Changelog == += 2.7.1 - 2023-03-27 = +* Tweak: Add excerpt support for pages [ED-10254] +* Tweak: When comments is closed to post, display it to the user +* Fix: Empty "Skip to content" href ([#276](https://github.com/elementor/hello-theme/issues/276)) +* Fix: Child themes using hello_elementor_body_open() no longer working ([#278](https://github.com/elementor/hello-theme/issues/278)) + = 2.7.0 - 2023-03-26 = * Tweak: Update `Requires at least 5.9` * Tweak: Update `Tested up to 6.2` From caa6f04d16afc6d77899b780882753b482653dec Mon Sep 17 00:00:00 2001 From: KingYes Date: Mon, 27 Mar 2023 15:01:43 +0000 Subject: [PATCH 6/6] Bump 2.7.1 --- assets/scss/style.scss | 4 ++-- functions.php | 2 +- package-lock.json | 2 +- package.json | 4 ++-- readme.txt | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/assets/scss/style.scss b/assets/scss/style.scss index 79145d7a..7905ea18 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -4,8 +4,8 @@ Description: A plain-vanilla & lightweight theme for Elementor page builder Author: Elementor Team Author URI: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash - Version: 2.7.0 - Stable tag: 2.7.0 + Version: 2.7.1 + Stable tag: 2.7.1 Requires at least: 5.9 Tested up to: 6.2 Requires PHP: 5.6 diff --git a/functions.php b/functions.php index b3214335..f8af503e 100644 --- a/functions.php +++ b/functions.php @@ -9,7 +9,7 @@ exit; // Exit if accessed directly. } -define( 'HELLO_ELEMENTOR_VERSION', '2.7.0' ); +define( 'HELLO_ELEMENTOR_VERSION', '2.7.1' ); if ( ! isset( $content_width ) ) { $content_width = 800; // Pixels. diff --git a/package-lock.json b/package-lock.json index c67da1fd..7e6762b6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "elementor-hello-theme", - "version": "2.7.0", + "version": "2.7.1", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index a02057fd..15b6df05 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "slug": "elementor-hello-theme", "homepage": "https://elementor.com/", "description": "A sample theme for Elementor.", - "version": "2.7.0", + "version": "2.7.1", "last_beta_version": "2.4.0-beta3", "scripts": { "update-version": "node .github/scripts/update-version-in-files.js", @@ -53,7 +53,7 @@ "dependencies": { "@babel/plugin-transform-modules-commonjs": "^7.2.0", "@babel/plugin-transform-runtime": "^7.3.4", - "@lodder/grunt-postcss": "^3.1.1", + "@lodder/grunt-postcss": "^3.1.1", "grunt-autoprefixer": "^3.0.4", "grunt-cssnano": "^2.1.0" } diff --git a/readme.txt b/readme.txt index 062af988..fb7dcac1 100644 --- a/readme.txt +++ b/readme.txt @@ -3,8 +3,8 @@ Contributors: elemntor, KingYes, ariel.k, jzaltzberg, mati1000, bainternet Requires at least: 5.9 Tested up to: 6.2 -Stable tag: 2.7.0 -Version: 2.7.0 +Stable tag: 2.7.1 +Version: 2.7.1 Requires PHP: 5.6 License: GNU General Public License v3 or later License URI: https://www.gnu.org/licenses/gpl-3.0.html