[wp-trac] [WordPress Trac] #53625: The 'explode' function does not work on widget block editor.
WordPress Trac
noreply at wordpress.org
Fri Jul 9 15:46:23 UTC 2021
#53625: The 'explode' function does not work on widget block editor.
-----------------------------------------------+---------------------------
Reporter: subrataemfluence | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Widgets | Version: trunk
Severity: major | Resolution:
Keywords: has-screenshots reporter-feedback | Focuses:
| administration
-----------------------------------------------+---------------------------
Comment (by zieladam):
I don't think this is actually breaking anything, but it's worth pointing
out that here:
{{{#!php
<?php
$instance['groups'] = array_pop ( explode( ',', $groups ) );
}}}
A warning is logged:
Only variables can be passed by reference
Because array_pop expects to receive a variable, not a value.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53625#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list