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/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/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 @@ - -
- - 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' ); @@ -195,3 +199,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(); + } +} diff --git a/header.php b/header.php index 7c4f5560..1085d6f5 100644 --- a/header.php +++ b/header.php @@ -28,7 +28,7 @@ - +