Skip to content

Commit d46dc65

Browse files
Copilotselul
andauthored
Merge origin/development into bugfix/4543
Co-authored-by: selul <3330746+selul@users.noreply.github.com>
2 parents 0c24050 + a91f78e commit d46dc65

11 files changed

Lines changed: 79 additions & 15 deletions

File tree

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
##### [Version 4.2.10](https://github.com/Codeinwp/neve/compare/v4.2.9...v4.2.10) (2026-07-29)
2+
3+
- Fixed the Related Products slider staying a plain grid on products that have no gallery images.
4+
- Updated dependencies
5+
6+
##### [Version 4.2.9](https://github.com/Codeinwp/neve/compare/v4.2.8...v4.2.9) (2026-07-22)
7+
8+
- Fixed a JavaScript conflict with third-party scripts that could stop the site logo from switching correctly between light and dark color palettes.
9+
- Fixed an error that could prevent the mobile menu from opening when certain optimization plugins delay the loading of scripts.
10+
- Fixed an issue where posts with manually written excerpts ignored the excerpt length setting and were missing the Read More link on blog and archive pages.
11+
- Fixed an issue where menu items with quotes in their titles could break the mobile submenu toggle button.
12+
- Fixed full-width images displaying with a small gap on each side instead of stretching edge to edge.
13+
- Updated dependencies
14+
115
##### [Version 4.2.8](https://github.com/Codeinwp/neve/compare/v4.2.7...v4.2.8) (2026-07-08)
216

317
- Fixed issue with alignment styles of wide full-width blocks

assets/js/src/frontend/blog.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ const triggerSelector = '.infinite-scroll-trigger';
1010
* Initialize blog JS.
1111
*/
1212
export const initBlog = () => {
13-
if (document.querySelector('.blog.nv-index-posts') === null) {
13+
if (
14+
document.querySelector('.blog.nv-index-posts') === null ||
15+
typeof NeveProperties === 'undefined'
16+
) {
1417
return false;
1518
}
1619
masonry();

assets/js/src/frontend/hgf.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ HFG.prototype.toggleMenuSidebar = function (toggle, target = null) {
9292
);
9393

9494
if (
95-
(!NeveProperties.isCustomize &&
95+
((typeof NeveProperties === 'undefined' ||
96+
!NeveProperties.isCustomize) &&
9697
doc.body.classList.contains(sidebarClasses[0])) ||
9798
toggle === false
9899
) {

composer.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

functions.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
* @package Neve
99
*/
1010

11-
if ( ! defined( 'NEVE_VERSION' ) ) {
12-
define( 'NEVE_VERSION', '4.2.8' );
13-
}
11+
define( 'NEVE_VERSION', '4.2.10' );
1412
define( 'NEVE_INC_DIR', trailingslashit( get_template_directory() ) . 'inc/' );
1513
define( 'NEVE_ASSETS_URL', trailingslashit( get_template_directory_uri() ) . 'assets/' );
1614
define( 'NEVE_MAIN_DIR', get_template_directory() . '/' );

inc/core/styles/dynamic_selector.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class Dynamic_Selector {
2929
const META_DEVICE_ONLY = 'device_only';
3030
const META_FILTER = 'filter';
3131
const META_AS_JSON = 'as_json';
32+
const META_IS_EMPTY = 'is_empty';
3233

3334
const KEY_SELECTOR = 'selectors';
3435
const KEY_RULES = 'rules';
@@ -174,6 +175,10 @@ public function get_value( $meta ) {
174175
$default = isset( $meta[ self::META_DEFAULT ] ) ? $meta[ self::META_DEFAULT ] : false;
175176
$value = Mods::get( $key, $default );
176177

178+
// Only check whether the value is empty when the meta has the is_empty flag set to true.
179+
if ( isset( $meta[ self::META_IS_EMPTY ] ) && $meta[ self::META_IS_EMPTY ] && empty( $value ) ) {
180+
return $default;
181+
}
177182

178183
if ( $value === false || $value === null || $value === '' ) {
179184
return $default;

inc/views/partials/excerpt.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,11 @@ private function get_excerpt( $length = 25, $post_id = null ) {
7575
return apply_filters( 'the_content', get_the_content( null, false, $post_id ) );
7676
}
7777

78-
if ( has_excerpt() ) {
79-
return apply_filters( 'the_excerpt', get_the_excerpt( $post_id ) );
78+
if ( has_excerpt( $post_id ) ) {
79+
$excerpt_more = apply_filters( 'excerpt_more', ' [&hellip;]' );
80+
$content = wp_trim_words( get_the_excerpt( $post_id ), $length, $excerpt_more );
81+
82+
return apply_filters( 'the_excerpt', $content );
8083
}
8184

8285
add_filter( 'excerpt_length', array( $this, 'change_excerpt_length' ), 10 );

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "neve",
33
"nicename": "Neve",
4-
"version": "4.2.8",
4+
"version": "4.2.10",
55
"description": "Neve theme by ThemeIsle",
66
"category": "themes",
77
"author": "ThemeIsle <friends@themeisle.com>",

readme.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,26 @@ Neve is distributed under the terms of the GNU GPLv2 or later
1919

2020
## Changelog ##
2121

22+
##### [Version 4.2.10](https://github.com/Codeinwp/neve/compare/v4.2.9...v4.2.10) (2026-07-29)
23+
24+
- Fixed the Related Products slider staying a plain grid on products that have no gallery images.
25+
- Updated dependencies
26+
27+
28+
29+
30+
##### [Version 4.2.9](https://github.com/Codeinwp/neve/compare/v4.2.8...v4.2.9) (2026-07-22)
31+
32+
- Fixed a JavaScript conflict with third-party scripts that could stop the site logo from switching correctly between light and dark color palettes.
33+
- Fixed an error that could prevent the mobile menu from opening when certain optimization plugins delay the loading of scripts.
34+
- Fixed an issue where posts with manually written excerpts ignored the excerpt length setting and were missing the Read More link on blog and archive pages.
35+
- Fixed an issue where menu items with quotes in their titles could break the mobile submenu toggle button.
36+
- Fixed full-width images displaying with a small gap on each side instead of stretching edge to edge.
37+
- Updated dependencies
38+
39+
40+
41+
2242
##### [Version 4.2.8](https://github.com/Codeinwp/neve/compare/v4.2.7...v4.2.8) (2026-07-08)
2343

2444
- Fixed issue with alignment styles of wide full-width blocks

readme.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,26 @@ Neve is distributed under the terms of the GNU GPLv2 or later
1919

2020
== Changelog ==
2121

22+
##### [Version 4.2.10](https://github.com/Codeinwp/neve/compare/v4.2.9...v4.2.10) (2026-07-29)
23+
24+
- Fixed the Related Products slider staying a plain grid on products that have no gallery images.
25+
- Updated dependencies
26+
27+
28+
29+
30+
##### [Version 4.2.9](https://github.com/Codeinwp/neve/compare/v4.2.8...v4.2.9) (2026-07-22)
31+
32+
- Fixed a JavaScript conflict with third-party scripts that could stop the site logo from switching correctly between light and dark color palettes.
33+
- Fixed an error that could prevent the mobile menu from opening when certain optimization plugins delay the loading of scripts.
34+
- Fixed an issue where posts with manually written excerpts ignored the excerpt length setting and were missing the Read More link on blog and archive pages.
35+
- Fixed an issue where menu items with quotes in their titles could break the mobile submenu toggle button.
36+
- Fixed full-width images displaying with a small gap on each side instead of stretching edge to edge.
37+
- Updated dependencies
38+
39+
40+
41+
2242
##### [Version 4.2.8](https://github.com/Codeinwp/neve/compare/v4.2.7...v4.2.8) (2026-07-08)
2343

2444
- Fixed issue with alignment styles of wide full-width blocks

0 commit comments

Comments
 (0)