From 49336af6c0179e13dd8485e923002f24d03ba1d2 Mon Sep 17 00:00:00 2001 From: Vijeta Raikar <110518282+vijetaR@users.noreply.github.com> Date: Fri, 15 Nov 2024 12:35:51 +0530 Subject: [PATCH 1/5] Fix: Undefined array key 0 --- modules/info-list/includes/frontend.css.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/info-list/includes/frontend.css.php b/modules/info-list/includes/frontend.css.php index c33f7a5..28e757f 100644 --- a/modules/info-list/includes/frontend.css.php +++ b/modules/info-list/includes/frontend.css.php @@ -383,7 +383,7 @@ image_type && ( 'custom' === $settings->list_icon_style || 'simple' === $settings->list_icon_style ) ) : + if ( ( isset( $item->image_type ) && 'photo' === $item->image_type ) && ( 'custom' === $settings->list_icon_style || 'simple' === $settings->list_icon_style ) ) : $img_size = array(); if ( 'library' === $item->photo_source && '' !== $item->photo ) : $img_size[0] = ( isset( FLBuilderPhoto::get_attachment_data( $item->photo )->width ) ) ? FLBuilderPhoto::get_attachment_data( $item->photo )->width : ''; @@ -392,7 +392,7 @@ $img_size = getimagesize( $item->photo_url ); endif; - if ( ( 0 !== intval( $img_size[0] ) ) && ( 0 !== intval( $img_size[1] ) ) ) : + if ( isset( $img_size[0] ) && isset( $img_size[1] ) && ( 0 !== intval( $img_size[0] ) ) && ( 0 !== intval( $img_size[1] ) ) ) : $actual_height = ( intval( $settings->icon_image_size ) * intval( $img_size[1] ) ) / intval( $img_size[0] ); if ( $actual_height > $settings->icon_image_size ) : From d5ea0e727991f45683216e1a41152fd9a8e38159 Mon Sep 17 00:00:00 2001 From: Vijeta Raikar <110518282+vijetaR@users.noreply.github.com> Date: Fri, 15 Nov 2024 12:44:15 +0530 Subject: [PATCH 2/5] Added changelog --- README.md | 3 +++ readme.txt | 3 +++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 2d09c56..fc9bf4b 100644 --- a/README.md +++ b/README.md @@ -215,6 +215,9 @@ Yes it is! This plugin comes with .po and .mo files. It is already translated in ## Changelog ## +### 1.5.13 ### +* Fixed: Info List - Resolved warning for undefined array key when selecting image size in the module. + ### 1.5.12 ### * Improvement: Improved code quality syntax and security checks for better coding standards and practices. * Fixed: Info List - Icon overlap issue. diff --git a/readme.txt b/readme.txt index 7e65ab9..3c3e697 100644 --- a/readme.txt +++ b/readme.txt @@ -215,6 +215,9 @@ Yes it is! This plugin comes with .po and .mo files. It is already translated in == Changelog == += 1.5.13 = +* Fixed: Info List - Resolved warning for undefined array key when selecting image size in the module. + = 1.5.12 = * Improvement: Improved code quality syntax and security checks for better coding standards and practices. * Fixed: Info List - Icon overlap issue. From 586fb7821d31fb8c1ed855a9b3282dbf02e3e081 Mon Sep 17 00:00:00 2001 From: Vijeta Raikar <110518282+vijetaR@users.noreply.github.com> Date: Fri, 15 Nov 2024 12:45:36 +0530 Subject: [PATCH 3/5] Tag WP 6.7 added --- README.md | 2 +- readme.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fc9bf4b..3ea3ce3 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ **Donate link:** https://www.paypal.me/BrainstormForce **Tags:** beaver builder, beaver builder free, beaver builder lite, beaver builder addons, beaver builder extensions **Requires at least:** 4.6 -**Tested up to:** 6.6 +**Tested up to:** 6.7 **Stable tag:** 1.5.12 **License:** GPLv2 or later **License URI:** https://www.gnu.org/licenses/gpl-2.0.html diff --git a/readme.txt b/readme.txt index 3c3e697..a4567d4 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: brainstormforce Donate link: https://www.paypal.me/BrainstormForce Tags: beaver builder, beaver builder free, beaver builder lite, beaver builder addons, beaver builder extensions Requires at least: 4.6 -Tested up to: 6.6 +Tested up to: 6.7 Stable tag: 1.5.12 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html From 9ee3ca636af7da9e1c2fe7e5047a5b380a0bd35f Mon Sep 17 00:00:00 2001 From: Vijeta Raikar <110518282+vijetaR@users.noreply.github.com> Date: Fri, 15 Nov 2024 12:47:59 +0530 Subject: [PATCH 4/5] Tag + ver.no + potfile --- README.md | 2 +- bb-ultimate-addon.php | 4 +-- languages/uabb.pot | 53 ++-------------------------------- readme.txt | 2 +- tests/php/stubs/lite-stubs.php | 2 +- 5 files changed, 7 insertions(+), 56 deletions(-) diff --git a/README.md b/README.md index 3ea3ce3..31e6fb4 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ **Tags:** beaver builder, beaver builder free, beaver builder lite, beaver builder addons, beaver builder extensions **Requires at least:** 4.6 **Tested up to:** 6.7 -**Stable tag:** 1.5.12 +**Stable tag:** 1.5.13 **License:** GPLv2 or later **License URI:** https://www.gnu.org/licenses/gpl-2.0.html diff --git a/bb-ultimate-addon.php b/bb-ultimate-addon.php index 449f5b0..0a0f811 100644 --- a/bb-ultimate-addon.php +++ b/bb-ultimate-addon.php @@ -3,7 +3,7 @@ * Plugin Name: Ultimate Addons for Beaver Builder - Lite * Plugin URI: http://www.ultimatebeaver.com/ * Description: Ultimate Addons is a free extension for Beaver Builder that adds 10 modules, and works on top of any Beaver Builder Package. (Free, Standard, Pro & Agency) You can use it with on any WordPress theme. - * Version: 1.5.12 + * Version: 1.5.13 * Author: Brainstorm Force * Author URI: http://www.brainstormforce.com * Text Domain: uabb @@ -18,7 +18,7 @@ define( 'BB_ULTIMATE_ADDON_DIR', plugin_dir_path( __FILE__ ) ); define( 'BB_ULTIMATE_ADDON_URL', plugins_url( '/', __FILE__ ) ); - define( 'BB_ULTIMATE_ADDON_LITE_VERSION', '1.5.12' ); + define( 'BB_ULTIMATE_ADDON_LITE_VERSION', '1.5.13' ); define( 'BSF_REMOVE_UABB_FROM_REGISTRATION_LISTING', true ); define( 'BB_ULTIMATE_ADDON_FILE', trailingslashit( dirname( __FILE__ ) ) . 'bb-ultimate-addon.php' );// @codingStandardsIgnoreLine. define( 'BB_ULTIMATE_ADDON_LITE', true ); diff --git a/languages/uabb.pot b/languages/uabb.pot index 2501f7b..12c28bc 100644 --- a/languages/uabb.pot +++ b/languages/uabb.pot @@ -2,11 +2,11 @@ # This file is distributed under the same license as the Ultimate Addons for Beaver Builder - Lite package. msgid "" msgstr "" -"Project-Id-Version: Ultimate Addons for Beaver Builder - Lite 1.5.12\n" +"Project-Id-Version: Ultimate Addons for Beaver Builder - Lite 1.5.13\n" "Report-Msgid-Bugs-To: " "https://wordpress.org/support/plugin/ultimate-addons-for-beaver-builder-" "lite\n" -"POT-Creation-Date: 2024-10-01 08:49:20+00:00\n" +"POT-Creation-Date: 2024-11-15 07:16:51+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -4509,41 +4509,6 @@ msgstr "" msgid "Justify" msgstr "" -#: vendor/wp-cli/core-command/src/Core_Command.php:749 -msgid "Wildcard DNS may not be configured correctly." -msgstr "" - -#: vendor/wp-cli/entity-command/src/Site_Command.php:157 -msgid "Uncategorized" -msgstr "" - -#: vendor/wp-cli/export-command/src/WP_Export_XML_Over_HTTP.php:20 -#: vendor/wp-cli/export-command/src/WP_Export_XML_Over_HTTP.php:25 -msgid "Export Error" -msgstr "" - -#: vendor/wp-cli/extension-command/src/WP_CLI/CommandWithUpgrade.php:770 -msgid " Try again" -msgstr "" - -#: vendor/wp-cli/extension-command/src/WP_CLI/CommandWithUpgrade.php:776 -msgid "API error. Try Again." -msgstr "" - -#: vendor/wp-cli/media-command/src/Media_Command.php:159 -msgid "image" -msgid_plural "images" -msgstr[0] "" -msgstr[1] "" - -#: vendor/wp-cli/wp-cli/php/utils-wp.php:247 -msgid "Inactive Widgets" -msgstr "" - -#: vendor/wp-cli/wp-cli/php/utils-wp.php:250 -msgid "Drag widgets here to remove them from the sidebar but keep their settings." -msgstr "" - #. Plugin Name of the plugin/theme msgid "Ultimate Addons for Beaver Builder - Lite" msgstr "" @@ -4594,18 +4559,4 @@ msgstr "" #: objects/fl-nested-form-button.php:225 objects/fl-nested-form-button.php:656 msgctxt "Width." msgid "Auto" -msgstr "" - -#: vendor/wp-cli/core-command/src/Core_Command.php:491 -#: vendor/wp-cli/core-command/src/Core_Command.php:565 -#. translators: placeholder is blog name -#. translators: placeholder is user supplied title -msgctxt "Default network name" -msgid "%s Sites" -msgstr "" - -#: vendor/wp-cli/entity-command/src/Site_Command.php:160 -#. translators: Default category slug -msgctxt "Default category slug" -msgid "Uncategorized" msgstr "" \ No newline at end of file diff --git a/readme.txt b/readme.txt index a4567d4..b3016db 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://www.paypal.me/BrainstormForce Tags: beaver builder, beaver builder free, beaver builder lite, beaver builder addons, beaver builder extensions Requires at least: 4.6 Tested up to: 6.7 -Stable tag: 1.5.12 +Stable tag: 1.5.13 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html diff --git a/tests/php/stubs/lite-stubs.php b/tests/php/stubs/lite-stubs.php index bef2304..f5fa8b3 100644 --- a/tests/php/stubs/lite-stubs.php +++ b/tests/php/stubs/lite-stubs.php @@ -2411,7 +2411,7 @@ public function __construct() { } \define( 'BB_ULTIMATE_ADDON_DIR', \plugin_dir_path( __FILE__ ) ); \define( 'BB_ULTIMATE_ADDON_URL', \plugins_url( '/', __FILE__ ) ); -\define( 'BB_ULTIMATE_ADDON_LITE_VERSION', '1.5.12' ); +\define( 'BB_ULTIMATE_ADDON_LITE_VERSION', '1.5.13' ); \define( 'BSF_REMOVE_UABB_FROM_REGISTRATION_LISTING', \true ); \define( 'BB_ULTIMATE_ADDON_FILE', \trailingslashit( __DIR__ ) . 'bb-ultimate-addon.php' ); // @codingStandardsIgnoreLine. From 7bdf4eed1df167b21090d3585cd007ccdb255c0c Mon Sep 17 00:00:00 2001 From: Vijeta Raikar <110518282+vijetaR@users.noreply.github.com> Date: Mon, 18 Nov 2024 15:21:03 +0530 Subject: [PATCH 5/5] ensure load_plugin_textdomain function translation are loaded during init actions --- classes/class-uabb-init.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/class-uabb-init.php b/classes/class-uabb-init.php index 6a654d3..7688ed0 100644 --- a/classes/class-uabb-init.php +++ b/classes/class-uabb-init.php @@ -53,6 +53,8 @@ public function __construct() { add_action( 'admin_notices', array( $this, 'admin_notices' ) ); add_action( 'network_admin_notices', array( $this, 'admin_notices' ) ); } + // Hook the load_plugin_textdomain function to the init action. + add_action( 'init', array( $this, 'load_plugin_textdomain' ) ); } /** * Function that renders links