Version Description
- Fix: Keep the format of Address widget's textarea text as it is. (Props - https://github.com/caveman99)
Download this release
Release Info
Developer | brainstormworg |
Plugin | Astra Widgets |
Version | 1.2.11 |
Comparing to | |
See all releases |
Code changes from version 1.2.10 to 1.2.11
astra-widgets.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Astra Widgets
|
4 |
* Plugin URI: https://wpastra.com/
|
5 |
* Description: The Fastest Way to Add More Widgets into Your WordPress Website.
|
6 |
-
* Version: 1.2.
|
7 |
* Author: Brainstorm Force
|
8 |
* Author URI: https://www.brainstormforce.com
|
9 |
* Text Domain: astra-widgets
|
@@ -25,7 +25,7 @@ define( 'ASTRA_WIDGETS_FILE', __FILE__ );
|
|
25 |
define( 'ASTRA_WIDGETS_BASE', plugin_basename( ASTRA_WIDGETS_FILE ) );
|
26 |
define( 'ASTRA_WIDGETS_DIR', plugin_dir_path( ASTRA_WIDGETS_FILE ) );
|
27 |
define( 'ASTRA_WIDGETS_URI', plugins_url( '/', ASTRA_WIDGETS_FILE ) );
|
28 |
-
define( 'ASTRA_WIDGETS_VER', '1.2.
|
29 |
define( 'ASTRA_WIDGETS_TEMPLATE_DEBUG_MODE', false );
|
30 |
|
31 |
require_once ASTRA_WIDGETS_DIR . 'classes/class-astra-widgets.php';
|
3 |
* Plugin Name: Astra Widgets
|
4 |
* Plugin URI: https://wpastra.com/
|
5 |
* Description: The Fastest Way to Add More Widgets into Your WordPress Website.
|
6 |
+
* Version: 1.2.11
|
7 |
* Author: Brainstorm Force
|
8 |
* Author URI: https://www.brainstormforce.com
|
9 |
* Text Domain: astra-widgets
|
25 |
define( 'ASTRA_WIDGETS_BASE', plugin_basename( ASTRA_WIDGETS_FILE ) );
|
26 |
define( 'ASTRA_WIDGETS_DIR', plugin_dir_path( ASTRA_WIDGETS_FILE ) );
|
27 |
define( 'ASTRA_WIDGETS_URI', plugins_url( '/', ASTRA_WIDGETS_FILE ) );
|
28 |
+
define( 'ASTRA_WIDGETS_VER', '1.2.11' );
|
29 |
define( 'ASTRA_WIDGETS_TEMPLATE_DEBUG_MODE', false );
|
30 |
|
31 |
require_once ASTRA_WIDGETS_DIR . 'classes/class-astra-widgets.php';
|
classes/class-astra-widgets-helper.php
CHANGED
@@ -655,7 +655,7 @@ if ( ! class_exists( 'Astra_Widgets_Helper' ) ) :
|
|
655 |
* Check if block editor is active or not.
|
656 |
*
|
657 |
* @return boolean true|false
|
658 |
-
* @since
|
659 |
*/
|
660 |
public function is_widget_block_editor() {
|
661 |
if ( current_theme_supports( 'widgets-block-editor' ) ) {
|
655 |
* Check if block editor is active or not.
|
656 |
*
|
657 |
* @return boolean true|false
|
658 |
+
* @since 1.2.10
|
659 |
*/
|
660 |
public function is_widget_block_editor() {
|
661 |
if ( current_theme_supports( 'widgets-block-editor' ) ) {
|
classes/widgets/class-astra-widget-address.php
CHANGED
@@ -226,6 +226,11 @@ if ( ! class_exists( 'Astra_Widget_Address' ) ) :
|
|
226 |
|
227 |
$instance = array_map( 'sanitize_text_field', $instance );
|
228 |
|
|
|
|
|
|
|
|
|
|
|
229 |
return $instance;
|
230 |
}
|
231 |
|
226 |
|
227 |
$instance = array_map( 'sanitize_text_field', $instance );
|
228 |
|
229 |
+
// Address is a textarea field and needs to preserve linebreaks and whitespace.
|
230 |
+
if ( ! empty( $new_instance['address'] ) ) {
|
231 |
+
$instance['address'] = sanitize_textarea_field( $new_instance['address'] );
|
232 |
+
}
|
233 |
+
|
234 |
return $instance;
|
235 |
}
|
236 |
|
readme.txt
CHANGED
@@ -3,9 +3,9 @@ Contributors: brainstormforce
|
|
3 |
Donate link: https://www.paypal.me/BrainstormForce
|
4 |
Tags: Address widget, Social profile widget, List icon widget, Social media, Add widget
|
5 |
Requires at least: 4.7
|
6 |
-
Tested up to:
|
7 |
Requires PHP: 5.2
|
8 |
-
Stable tag: 1.2.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -76,6 +76,9 @@ In your WordPress admin dashboard go to Appearance -> Widgets, drag the Astra :
|
|
76 |
|
77 |
== Changelog ==
|
78 |
|
|
|
|
|
|
|
79 |
= 1.2.10 =
|
80 |
- Fix: Astra Social Profile: Repeater field not showing in widget block editor. ( https://wpastra.com/docs/resolving-repeater-fields-not-working-in-widget-block-editor/ )
|
81 |
- Fix: Astra List Icons: Repeater field not showing in widget block editor.
|
3 |
Donate link: https://www.paypal.me/BrainstormForce
|
4 |
Tags: Address widget, Social profile widget, List icon widget, Social media, Add widget
|
5 |
Requires at least: 4.7
|
6 |
+
Tested up to: 6.0
|
7 |
Requires PHP: 5.2
|
8 |
+
Stable tag: 1.2.11
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
76 |
|
77 |
== Changelog ==
|
78 |
|
79 |
+
= 1.2.11 =
|
80 |
+
- Fix: Keep the format of Address widget's textarea text as it is. (Props - https://github.com/caveman99)
|
81 |
+
|
82 |
= 1.2.10 =
|
83 |
- Fix: Astra Social Profile: Repeater field not showing in widget block editor. ( https://wpastra.com/docs/resolving-repeater-fields-not-working-in-widget-block-editor/ )
|
84 |
- Fix: Astra List Icons: Repeater field not showing in widget block editor.
|