Skip to content

Commit

Permalink
Hotfix: Bug Fix: Fix a bug where trailing commas were used with unset…
Browse files Browse the repository at this point in the history
… and function calls. This is unsupported in PHP versions older than 7.3.

https://wordpress.org/support/topic/wordpress-caught-an-error-with-one-of-your-plugins-auto-image-attributes-from/
  • Loading branch information
arunbasillal committed Apr 25, 2023
1 parent fa3cf87 commit b497f09
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
8 changes: 4 additions & 4 deletions admin/admin-setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ function iaff_register_settings() {
'iaff_bu_settings_section_id', // Settings Section ID
array(
'class' => 'iaff_bu_image_title_settings',
),
)
);

// Image Alt Text Settings
Expand All @@ -214,7 +214,7 @@ function iaff_register_settings() {
'iaff_bu_settings_section_id', // Settings Section ID
array(
'class' => 'iaff_bu_image_alttext_settings',
),
)
);

// Image Caption Settings
Expand All @@ -226,7 +226,7 @@ function iaff_register_settings() {
'iaff_bu_settings_section_id', // Settings Section ID
array(
'class' => 'iaff_bu_image_caption_settings',
),
)
);

// Image Description Settings
Expand All @@ -238,7 +238,7 @@ function iaff_register_settings() {
'iaff_bu_settings_section_id', // Settings Section ID
array(
'class' => 'iaff_bu_image_description_settings',
),
)
);

}
Expand Down
6 changes: 3 additions & 3 deletions iaff_image-attributes-from-filename.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Automatically Add Image Title, Image Caption, Description And Alt Text From Image Filename. Since this plugin includes a bulk updater this can update both existing images in the Media Library and new images.
* Author: Arun Basil Lal
* Author URI: https://imageattributespro.com/?utm_source=plugin-header&utm_medium=author-uri
* Version: 4.3
* Version: 4.3.1
* Text Domain: auto-image-attributes-from-filename-with-bulk-updater
* Domain Path: /languages
* License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Expand Down Expand Up @@ -65,7 +65,7 @@
* @since 1.3
*/
if ( ! defined( 'IAFF_VERSION_NUM' ) ) {
define( 'IAFF_VERSION_NUM', '4.3' );
define( 'IAFF_VERSION_NUM', '4.3.1' );
}

/**
Expand Down Expand Up @@ -194,7 +194,7 @@ function iaff_upgrader() {
$settings['bu_caption_source'],
$settings['custom_attribute_bu_caption'],
$settings['bu_description_source'],
$settings['custom_attribute_bu_description'],
$settings['custom_attribute_bu_description']
);

update_option('iaff_settings', $settings);
Expand Down
8 changes: 8 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ I am glad to hear that! You can either [upgrade to pro](https://imageattributesp

== Changelog ==

= 4.3.1 =
* Date: 25.April.2023.
* Bug Fix: Fix a bug where trailing commas were used with unset and function calls. This is unsupported in PHP versions older than 7.3.

= 4.3 =
* Date: 25.April.2023.
* Enhancement: Compatibility with Image Attributes Pro version 4.3. [Check what's new in 4.3](https://imageattributespro.com/changelog/?utm_source=wordpress.org&utm_medium=changelog).
Expand Down Expand Up @@ -262,6 +266,10 @@ I am glad to hear that! You can either [upgrade to pro](https://imageattributesp

== Upgrade Notice ==

= 4.3.1 =
* Date: 25.April.2023.
* Bug Fix: Fix a bug where trailing commas were used with unset and function calls. This is unsupported in PHP versions older than 7.3.

= 4.3 =
* Date: 25.April.2023.
* Enhancement: Compatibility with Image Attributes Pro version 4.3. [Check what's new in 4.3](https://imageattributespro.com/changelog/?utm_source=wordpress.org&utm_medium=changelog).
Expand Down

0 comments on commit b497f09

Please sign in to comment.