Hi guys,
After upgrading to 5.1.3 and testing the new Wrapper Attributes, I’m getting a notice when creating a field type “Select” and inserting a width to it. Tested with Debug mode ON. Notice as follow:
Notice: Undefined index: data-width in /acf/api/api-helpers.php on line 469
Anybody else is getting the notice after the upgrade?
Cheers.
same here. on any field which have width in Wraper Atributes. local testing
Undefined index: data-width in wp-content\plugins\advanced-custom-fields-pro\api\api-helpers.php on line 457
Same problem here. Any news?
Yes, I can confirm this bug on 5.1.3 / WordPress 4.0 / PHP 5.4.16 / Apache 2.4.4
Can confirm same issue here, using xampp for local theme development.
There is a simple bugfix.
You only need to add the following line after Line 416 of the api/api-helpers.php file:
‘data-width’ => ”,
Hi Guys
Looks like a syntax error on my behalf.
Line 457 should be changed from:
$wrapper['data-width'] .= $width;
to
$wrapper['data-width'] = $width;
Thanks
E