Skip to content

Commit b497f09

Browse files
committed
Hotfix: 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.
https://wordpress.org/support/topic/wordpress-caught-an-error-with-one-of-your-plugins-auto-image-attributes-from/
1 parent fa3cf87 commit b497f09

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

admin/admin-setup.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ function iaff_register_settings() {
202202
'iaff_bu_settings_section_id', // Settings Section ID
203203
array(
204204
'class' => 'iaff_bu_image_title_settings',
205-
),
205+
)
206206
);
207207

208208
// Image Alt Text Settings
@@ -214,7 +214,7 @@ function iaff_register_settings() {
214214
'iaff_bu_settings_section_id', // Settings Section ID
215215
array(
216216
'class' => 'iaff_bu_image_alttext_settings',
217-
),
217+
)
218218
);
219219

220220
// Image Caption Settings
@@ -226,7 +226,7 @@ function iaff_register_settings() {
226226
'iaff_bu_settings_section_id', // Settings Section ID
227227
array(
228228
'class' => 'iaff_bu_image_caption_settings',
229-
),
229+
)
230230
);
231231

232232
// Image Description Settings
@@ -238,7 +238,7 @@ function iaff_register_settings() {
238238
'iaff_bu_settings_section_id', // Settings Section ID
239239
array(
240240
'class' => 'iaff_bu_image_description_settings',
241-
),
241+
)
242242
);
243243

244244
}

iaff_image-attributes-from-filename.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* 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.
66
* Author: Arun Basil Lal
77
* Author URI: https://imageattributespro.com/?utm_source=plugin-header&utm_medium=author-uri
8-
* Version: 4.3
8+
* Version: 4.3.1
99
* Text Domain: auto-image-attributes-from-filename-with-bulk-updater
1010
* Domain Path: /languages
1111
* License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
@@ -65,7 +65,7 @@
6565
* @since 1.3
6666
*/
6767
if ( ! defined( 'IAFF_VERSION_NUM' ) ) {
68-
define( 'IAFF_VERSION_NUM', '4.3' );
68+
define( 'IAFF_VERSION_NUM', '4.3.1' );
6969
}
7070

7171
/**
@@ -194,7 +194,7 @@ function iaff_upgrader() {
194194
$settings['bu_caption_source'],
195195
$settings['custom_attribute_bu_caption'],
196196
$settings['bu_description_source'],
197-
$settings['custom_attribute_bu_description'],
197+
$settings['custom_attribute_bu_description']
198198
);
199199

200200
update_option('iaff_settings', $settings);

readme.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ I am glad to hear that! You can either [upgrade to pro](https://imageattributesp
151151

152152
== Changelog ==
153153

154+
= 4.3.1 =
155+
* Date: 25.April.2023.
156+
* 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.
157+
154158
= 4.3 =
155159
* Date: 25.April.2023.
156160
* 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).
@@ -262,6 +266,10 @@ I am glad to hear that! You can either [upgrade to pro](https://imageattributesp
262266

263267
== Upgrade Notice ==
264268

269+
= 4.3.1 =
270+
* Date: 25.April.2023.
271+
* 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.
272+
265273
= 4.3 =
266274
* Date: 25.April.2023.
267275
* 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).

0 commit comments

Comments
 (0)