[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:55:16 UTC 2021
#53625: The 'explode' function does not work on widget block editor.
-----------------------------------------------+---------------------------
Reporter: subrataemfluence | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Widgets | Version: trunk
Severity: major | Resolution: invalid
Keywords: has-screenshots reporter-feedback | Focuses:
| administration
-----------------------------------------------+---------------------------
Changes (by zieladam):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
The problem is a bug in the PlatformSubscriber widget. See the debugger
screenshot above.
1. The backend receives a value like "396060," and calls `array_pop(
explode( ",", $groups ) )`
1. `explode()` returns `["396060", ""]`
1. `array_pop()` pops `""`
1. An empty string of length 0 is stored in the database
I'll close this ticket because it does not seem to be a problem with the
widgets editor. Feel free to bring up anything I may have missed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53625#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list