Skip to content

Commit acd8420

Browse files
committed
Update Astra theme from 4.11.12 to 4.11.13
1 parent 873e06e commit acd8420

49 files changed

Lines changed: 940 additions & 61800 deletions

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' => '2486d8225887455a321f');
1+
<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-element', 'wp-i18n'), 'version' => '8a87e30ed45b874265db');

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 & 7 deletions
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-i18n'), 'version' => '078d2056e973ae49445d');
1+
<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-i18n'), 'version' => '15d552aa24219b4da793');

wp-content/themes/astra/admin/assets/theme-builder/build/index.css

Lines changed: 1 addition & 6 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/theme-builder/build/index.js

Lines changed: 1 addition & 61421 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/theme-builder/build/index.rtl.css

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

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

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ function() {
8080
add_action( 'wp_ajax_astra_analytics_optin_status', array( $this, 'astra_analytics_optin_status' ) );
8181
add_action( 'wp_ajax_astra_recommended_plugin_activate', array( $this, 'required_plugin_activate' ) );
8282
add_action( 'wp_ajax_astra_recommended_plugin_deactivate', array( $this, 'required_plugin_deactivate' ) );
83+
add_action( 'wp_ajax_astra_load_google_fonts', array( $this, 'load_google_fonts' ) );
8384
}
8485

8586
/**
@@ -464,6 +465,38 @@ public function required_plugin_deactivate() {
464465
)
465466
);
466467
}
468+
469+
/**
470+
* AJAX handler for loading Google Fonts data
471+
*
472+
* @since 4.11.13
473+
* @return void
474+
*/
475+
public function load_google_fonts() {
476+
if ( ! current_user_can( 'customize' ) ) {
477+
wp_send_json_error(
478+
array(
479+
'success' => false,
480+
'message' => $this->get_error_msg( 'permission' ),
481+
)
482+
);
483+
}
484+
485+
check_ajax_referer( 'astra_customizer_nonce', 'nonce' );
486+
487+
$google_fonts = Astra_Font_Families::get_google_fonts();
488+
$custom_fonts = Astra_Font_Families::get_custom_fonts();
489+
490+
$response = array(
491+
'success' => true,
492+
'data' => array(
493+
'google' => $google_fonts,
494+
'custom' => $custom_fonts,
495+
),
496+
);
497+
498+
wp_send_json_success( $response );
499+
}
467500
}
468501

469502
Astra_Admin_Ajax::get_instance();

wp-content/themes/astra/assets/js/minified/customizer-google-fonts.min.js

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

0 commit comments

Comments
 (0)