Skip to content

Commit 602493e

Browse files
committed
Update Astra theme from 4.12.3 to 4.12.4
1 parent 0893df8 commit 602493e

86 files changed

Lines changed: 1202 additions & 1252 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

wp-content/themes/astra/admin/assets/build/dashboard-app-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.
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' => '611f111aba2b4fa50e69');
1+
<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-element', 'wp-i18n'), 'version' => '2a8a86755bc0ec86ce06');

wp-content/themes/astra/admin/assets/build/dashboard-app.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/admin/assets/build/dashboard-app.js

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

wp-content/themes/astra/admin/assets/utils/helpers.js

Lines changed: 0 additions & 196 deletions
This file was deleted.

wp-content/themes/astra/admin/includes/class-astra-admin-ajax.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ public function astra_admin_settings_typewise() {
9696
'self_hosted_gfonts' => 'bool',
9797
'preload_local_fonts' => 'bool',
9898
'use_old_header_footer' => 'bool',
99+
'show_learn_tab' => 'bool',
99100
)
100101
);
101102
}

wp-content/themes/astra/admin/includes/class-astra-api-init.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ public function get_admin_settings( $request ) {
166166
'use_old_header_footer' => astra_get_option( 'is-header-footer-builder', false ),
167167
'use_upgrade_notices' => astra_showcase_upgrade_notices(),
168168
'analytics_enabled' => get_option( 'astra_usage_optin', 'no' ) === 'yes',
169+
'show_learn_tab' => self::get_admin_settings_option( 'show_learn_tab', true ),
169170
)
170171
);
171172

wp-content/themes/astra/admin/includes/class-astra-menu.php

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,11 @@ public function setup_menu() {
223223
// }
224224
}
225225

226-
if ( is_callable( 'Astra_Learn::get_incomplete_chapters_count' ) ) {
226+
$admin_settings = get_option( 'astra_admin_settings', array() );
227+
$show_learn_tab = isset( $admin_settings['show_learn_tab'] ) ? $admin_settings['show_learn_tab'] : true;
228+
229+
// Add Learn submenu with incomplete chapters count if there are any incomplete chapters and the Learn tab is enabled.
230+
if ( false !== $show_learn_tab && is_callable( 'Astra_Learn::get_incomplete_chapters_count' ) ) {
227231
$incomplete_count = Astra_Learn::get_incomplete_chapters_count();
228232
if ( $incomplete_count > 0 ) {
229233
$learn_menu_title = __( 'Learn', 'astra' ) . sprintf(
@@ -834,38 +838,6 @@ public static function astra_get_woo_extensions( $under_useful_plugins = true )
834838
),
835839
);
836840

837-
if ( ! $under_useful_plugins ) {
838-
$extensions[] = array(
839-
'title' => 'OttoKit: WordPress Automation',
840-
'subtitle' => __( 'Connect your WordPress plugins, WooCommerce sites, apps, and websites for powerful automations.', 'astra' ),
841-
'status' => self::get_plugin_status( 'suretriggers/suretriggers.php' ),
842-
'slug' => 'suretriggers',
843-
'path' => 'suretriggers/suretriggers.php',
844-
'redirection' => admin_url( 'admin.php?page=suretriggers' ),
845-
'ratings' => '(60+)',
846-
'activations' => '1,00,000 +',
847-
'logoPath' => array(
848-
'internal_icon' => true,
849-
'icon_path' => 'ottokit',
850-
),
851-
);
852-
}
853-
854-
$extensions[] = array(
855-
'title' => 'Spectra: Blocks Builder',
856-
'subtitle' => $under_useful_plugins ? __( 'Free WordPress Page Builder.', 'astra' ) : __( 'Power-up block editor with advanced blocks for faster and effortlessly website creation.', 'astra' ),
857-
'status' => self::get_plugin_status( 'ultimate-addons-for-gutenberg/ultimate-addons-for-gutenberg.php' ),
858-
'slug' => 'ultimate-addons-for-gutenberg',
859-
'path' => 'ultimate-addons-for-gutenberg/ultimate-addons-for-gutenberg.php',
860-
'redirection' => admin_url( 'options-general.php?page=spectra' ),
861-
'ratings' => '(1500+)',
862-
'activations' => '1,000,000 +',
863-
'logoPath' => array(
864-
'internal_icon' => false,
865-
'icon_path' => 'https://ps.w.org/ultimate-addons-for-gutenberg/assets/icon-256x256.gif',
866-
),
867-
);
868-
869841
$extensions[] = array(
870842
'title' => 'Modern Cart for WooCommerce',
871843
'subtitle' => $under_useful_plugins ? __( 'Modern Cart: A smarter way to sell', 'astra' ) : __( 'Say goodbye to slow checkouts – boost sales with a smooth, hassle-free experience.', 'astra' ),

wp-content/themes/astra/assets/css/minified/command-palette.min-rtl.css

Lines changed: 1 addition & 0 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/command-palette.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.

0 commit comments

Comments
 (0)