Skip to content

Commit d0a4e82

Browse files
committed
Update Astra theme from 4.11.17 to 4.11.18
1 parent 0ff892d commit d0a4e82

19 files changed

Lines changed: 416 additions & 39 deletions
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-element', 'wp-i18n'), 'version' => '20437646b94d569f0d02');
1+
<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-element', 'wp-i18n'), 'version' => 'dc39a9db76aba9b7f45c');

wp-content/themes/astra/admin/assets/build/dashboard-app.js

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

wp-content/themes/astra/assets/css/minified/compatibility/woocommerce/woocommerce-grid.min-rtl.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wp-content/themes/astra/assets/css/minified/compatibility/woocommerce/woocommerce-grid.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wp-content/themes/astra/changelog.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
*** Astra Changelog ***
22

3+
2025-12-16 - version 4.11.18
4+
* Improvement: Added support for the BuddyPress plugin.
5+
* Improvement: Resolved duplicate ID issue in the search form markup when the sticky header is active.
6+
* Improvement: Updated the CSS selector from .woocommerce-js to .woocommerce to prevent unintended styling on non-WooCommerce pages.
7+
* Improvement: Fixed embed aspect ratio issues in the Classic Editor.
8+
* Improvement: Enhanced dark color compatibility in the Style Guide.
9+
* Fix: Resolved an issue where the close icon was not displaying correctly when using change_cart_close_icon, which caused broken HTML.
10+
* Fix: Resolved an issue where products without ratings were incorrectly displaying empty star ratings.
11+
312
2025-12-08 - version 4.11.17
413
* New: Added a new “Disable Related Posts” option in the single post meta settings to hide related posts for specific posts.
514
* Improvement: Full Width Container now applies correctly on WooCommerce Product Category and Tag pages.

wp-content/themes/astra/functions.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/**
1616
* Define Constants
1717
*/
18-
define( 'ASTRA_THEME_VERSION', '4.11.17' );
18+
define( 'ASTRA_THEME_VERSION', '4.11.18' );
1919
define( 'ASTRA_THEME_SETTINGS', 'astra-settings' );
2020
define( 'ASTRA_THEME_DIR', trailingslashit( get_template_directory() ) );
2121
define( 'ASTRA_THEME_URI', trailingslashit( esc_url( get_template_directory_uri() ) ) );
@@ -179,6 +179,7 @@
179179
require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-yoast-seo.php';
180180
require_once ASTRA_THEME_DIR . 'inc/compatibility/surecart/class-astra-surecart.php';
181181
require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-starter-content.php';
182+
require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-buddypress.php';
182183
require_once ASTRA_THEME_DIR . 'inc/addons/transparent-header/class-astra-ext-transparent-header.php';
183184
require_once ASTRA_THEME_DIR . 'inc/addons/breadcrumbs/class-astra-breadcrumbs.php';
184185
require_once ASTRA_THEME_DIR . 'inc/addons/scroll-to-top/class-astra-scroll-to-top.php';

wp-content/themes/astra/inc/class-astra-after-setup-theme.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,12 @@ public function setup_theme() {
150150
add_editor_style( 'assets/css/' . $dir_name . '/editor-style' . $file_prefix . '.css' );
151151
}
152152

153-
if ( apply_filters( 'astra_fullwidth_oembed', false ) ) {
154-
// Filters the oEmbed process to run the responsive_oembed_wrapper() function.
153+
if ( apply_filters( 'astra_fullwidth_oembed', true ) ) {
154+
// Filters the oEmbed process to run the responsive_oembed_wrapper() function - Fixes the legacy classic editor embeds.
155155
add_filter( 'embed_oembed_html', array( $this, 'responsive_oembed_wrapper' ), 10, 3 );
156-
} else {
157-
// Enable support for responsive embedded content.
158-
add_theme_support( 'responsive-embeds' );
159156
}
157+
// Enable support for responsive embedded content.
158+
add_theme_support( 'responsive-embeds' );
160159

161160
// WooCommerce.
162161
add_theme_support( 'woocommerce' );
@@ -310,6 +309,11 @@ public function setup_content_width() {
310309
* @return string Updated embed markup.
311310
*/
312311
public function responsive_oembed_wrapper( $html, $url, $attr, $core_yt_block = false ) {
312+
// Only process in the_content filter for classic (non-Gutenberg) content.
313+
if ( ! doing_filter( 'the_content' ) || has_blocks() ) {
314+
return $html;
315+
}
316+
313317
$add_astra_oembed_wrapper = apply_filters( 'astra_responsive_oembed_wrapper_enable', true );
314318
$ast_embed_wrapper_class = apply_filters( 'astra_embed_wrapper_class', '' );
315319

wp-content/themes/astra/inc/class-astra-dynamic-css.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ public static function return_output( $dynamic_css, $dynamic_css_filtered = '' )
585585
'--ast-global-color-secondary' => $color_palette_reorganize ? 'var(--ast-global-color-5)' : 'var(--ast-global-color-4)',
586586
'--ast-global-color-alternate-background' => $color_palette_reorganize ? 'var(--ast-global-color-6)' : 'var(--ast-global-color-7)',
587587
'--ast-global-color-subtle-background' => $color_palette_reorganize ? 'var(--ast-global-color-7)' : 'var(--ast-global-color-6)',
588-
'--ast-bg-style-guide' => $is_dark_palette ? 'var( --ast-global-color-secondary, --ast-global-color-5 )' : '#F8FAFC',
588+
'--ast-bg-style-guide' => 'var( --ast-global-color-secondary, --ast-global-color-5 )',
589589
'--ast-shadow-style-guide' => $is_dark_palette ? '0px 0px 4px 0 #ffffff57' : '0px 0px 4px 0 #00000057',
590590
'--ast-global-dark-bg-style' => $is_dark_palette ? 'var( --ast-global-color-secondary, --ast-global-color-5 )' : '#fff',
591591
'--ast-global-dark-lfs' => $is_dark_palette ? 'var( --ast-global-color-secondary, --ast-global-color-5 )' : '#fbfbfb',
@@ -2431,7 +2431,7 @@ public static function return_output( $dynamic_css, $dynamic_css_filtered = '' )
24312431
);
24322432
} else {
24332433
if ( is_single() && astra_get_option( 'single-content-images-shadow', false ) ) {
2434-
$default_layout_update_css['.ast-article-single img'] = array(
2434+
$default_layout_update_css['.ast-article-single figure, .ast-article-single img:not(figure img)'] = array(
24352435
'box-shadow' => '0 0 30px 0 rgba(0,0,0,.15)',
24362436
'-webkit-box-shadow' => '0 0 30px 0 rgba(0,0,0,.15)',
24372437
'-moz-box-shadow' => '0 0 30px 0 rgba(0,0,0,.15)',
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
<?php
2+
/**
3+
* BuddyPress Compatibility File.
4+
*
5+
* @package Astra
6+
* @since 4.11.18
7+
*/
8+
9+
// If plugin - 'BuddyPress' not exist then return.
10+
if ( ! class_exists( 'BuddyPress' ) ) {
11+
return;
12+
}
13+
14+
/**
15+
* Astra BuddyPress Compatibility
16+
*
17+
* @since 4.11.18
18+
*/
19+
class Astra_BuddyPress {
20+
/**
21+
* Constructor
22+
*
23+
* @since 4.11.18
24+
*/
25+
public function __construct() {
26+
add_filter( 'astra_page_layout', array( $this, 'buddypress_page_layout' ), 20 );
27+
add_filter( 'astra_get_content_layout', array( $this, 'buddypress_content_layout' ), 20 );
28+
add_filter( 'astra_is_content_layout_boxed', array( $this, 'buddypress_content_layout_boxed' ), 20 );
29+
add_filter( 'astra_is_sidebar_layout_boxed', array( $this, 'buddypress_sidebar_layout_boxed' ), 20 );
30+
}
31+
32+
/**
33+
* Check if current page is a BuddyPress directory page.
34+
*
35+
* @return bool
36+
* @since 4.11.18
37+
* @psalm-suppress UndefinedFunction
38+
*/
39+
private function is_bp_directory() {
40+
return function_exists( 'is_buddypress' ) && function_exists( 'bp_is_directory' ) && is_buddypress() && bp_is_directory();
41+
}
42+
43+
/**
44+
* Filter sidebar layout for BuddyPress pages.
45+
*
46+
* @param string $layout Layout.
47+
* @return string
48+
* @since 4.11.18
49+
*/
50+
public function buddypress_page_layout( $layout ) {
51+
if ( ! $this->is_bp_directory() ) {
52+
return $layout;
53+
}
54+
55+
$sidebar_layout = astra_get_option( 'archive-buddypress-sidebar-layout', 'default' );
56+
$content_layout = astra_get_option( 'archive-buddypress-ast-content-layout', 'default' );
57+
58+
if ( 'normal-width-container' === $content_layout && 'default' !== $sidebar_layout && ! empty( $sidebar_layout ) ) {
59+
return $sidebar_layout;
60+
}
61+
62+
return 'no-sidebar';
63+
}
64+
65+
/**
66+
* Filter content layout for BuddyPress pages.
67+
*
68+
* @param string $layout Layout.
69+
* @return string
70+
* @since 4.11.18
71+
*/
72+
public function buddypress_content_layout( $layout ) {
73+
if ( ! $this->is_bp_directory() ) {
74+
return $layout;
75+
}
76+
77+
$content_layout = astra_get_option( 'archive-buddypress-ast-content-layout', 'default' );
78+
79+
if ( 'default' !== $content_layout && ! empty( $content_layout ) ) {
80+
return astra_toggle_layout( 'archive-buddypress-ast-content-layout', 'archive' );
81+
}
82+
83+
return astra_toggle_layout( 'ast-site-content-layout', 'global', false );
84+
}
85+
86+
/**
87+
* Filter content layout boxed for BuddyPress pages.
88+
*
89+
* @param bool $is_boxed Is boxed layout.
90+
* @return bool
91+
* @since 4.11.18
92+
*/
93+
public function buddypress_content_layout_boxed( $is_boxed ) {
94+
if ( ! $this->is_bp_directory() ) {
95+
return $is_boxed;
96+
}
97+
98+
$content_style = astra_get_option( 'archive-buddypress-content-style', 'default' );
99+
100+
if ( 'default' !== $content_style && ! empty( $content_style ) ) {
101+
return 'boxed' === $content_style;
102+
}
103+
104+
return 'boxed' === astra_get_option( 'site-content-style', 'unboxed' );
105+
}
106+
107+
/**
108+
* Filter sidebar layout boxed for BuddyPress pages.
109+
*
110+
* @param bool $is_sidebar_boxed Is sidebar boxed layout.
111+
* @return bool
112+
* @since 4.11.18
113+
*/
114+
public function buddypress_sidebar_layout_boxed( $is_sidebar_boxed ) {
115+
if ( ! $this->is_bp_directory() ) {
116+
return $is_sidebar_boxed;
117+
}
118+
119+
$sidebar_style = astra_get_option( 'archive-buddypress-sidebar-style', 'default' );
120+
121+
if ( 'default' !== $sidebar_style && ! empty( $sidebar_style ) ) {
122+
return 'boxed' === $sidebar_style;
123+
}
124+
125+
return false;
126+
}
127+
}
128+
129+
/**
130+
* Kicking this off by instantiating the class
131+
*/
132+
new Astra_BuddyPress();

wp-content/themes/astra/inc/compatibility/starter-content/astra-settings-export.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"customizer-settings": {
33
"astra-settings": {
4-
"theme-auto-version": "4.11.16",
4+
"theme-auto-version": "4.11.18",
55
"blog-single-post-structure": [
66
"single-image",
77
"single-title-meta"

0 commit comments

Comments
 (0)