[wp-trac] [WordPress Trac] #63899: 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 12:26:08 UTC 2025
#63899: Undefined array key 1 in /var/www/html/wp-includes/interactivity-api/class-
wp-interactivity-api.php on line 1014 Deprecated: trim():
--------------------------+-----------------------------
Reporter: tkay01 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.8.2
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
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
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63899>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list