[wp-trac] [WordPress Trac] #63899: Undefined array key 1 in WP_Interactivity_API::merge_style_property() (was: Undefined array key 1 in /var/www/html/wp-includes/interactivity-api/class-wp-interactivity-api.php on line 1014 Deprecated: trim():)
WordPress Trac
noreply at wordpress.org
Sat Aug 30 13:06:27 UTC 2025
#63899: Undefined array key 1 in WP_Interactivity_API::merge_style_property()
-------------------------------+------------------------------
Reporter: tkay01 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Interactivity API | Version: 6.8.2
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------------+------------------------------
Changes (by sabernhardt):
* component: General => Interactivity API
Old description:
> Hi, I have a question. In my new wordpress project I am getting an error
> from wordpress interactivity api, and not sure how to resolve this.
>
> I patched up the code with the following adjustments:
> - list( $name, $value ) = explode( ':', $style_assignment );
> if ( trim( $name ) !== $style_property_name ) {
> $result[] = ($name ? trim( $name ) : '') . ':' . ($value
> ? trim( $value ) : '') . ';';
> }
>
> Will there be an update for the interactivity api,or has it already been
> resolved somewhere? I could not find a clear answer. But I got it working
> currently.\
>
> kind regards,
>
> Ted
>
>
> See error:
> Warning: Undefined array key 1 in /var/www/html/wp-includes
> /interactivity-api/class-wp-interactivity-api.php on line 1014
> Deprecated: trim(): Passing null to parameter #1 ($string) of type string
> is deprecated in /var/www/html/wp-includes/interactivity-api/class-wp-
> interactivity-api.php on line 1016
New description:
Hi, I have a question. In my new wordpress project I am getting an error
from wordpress interactivity api, and not sure how to resolve this.
I patched up the code with the following adjustments:
{{{
list( $name, $value ) = explode( ':', $style_assignment );
if ( trim( $name ) !== $style_property_name ) {
$result[] = ($name ? trim( $name ) : '') . ':' . ($value ?
trim( $value ) : '') . ';';
}
}}}
Will there be an update for the interactivity api,or has it already been
resolved somewhere? I could not find a clear answer. But I got it working
currently.\
kind regards,
Ted
See error:
`Warning: Undefined array key 1 in /.../wp-includes/interactivity-api
/class-wp-interactivity-api.php on line 1014`
`Deprecated: trim(): Passing null to parameter #1 ($string) of type string
is deprecated in /.../wp-includes/interactivity-api/class-wp-
interactivity-api.php on line 1016`
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63899#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list