[wp-trac] [WordPress Trac] #53625: The 'explode' function does not work on widget block editor.

WordPress Trac noreply at wordpress.org
Thu Jul 8 15:10:55 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 subrataemfluence):

 Thank you for checking out on this! Yes, you are right, `explode()` might
 not be the only one. Because I faced the issue with this, I mentioned it.

 3) The comma-separated string is formed clientside when I select/unselect
 the checkboxes.

 I will work on 1 and 2 tomorrow and add as much information I can collect.

 Replying to [comment:3 andraganescu]:
 > HI @subrataemfluence thanks for posting the problem, it's very helpful.
 Reading the ticket, I believe it's unlikely that `explode` is the problem.
 Most likely something about ` $groups             =
 $new_instance['groups'];` could be different with the block editor
 enabled. I'd like to ask you for three things, please:
 >
 > 1) Can you add verbatim what you send to `register_widget` for this
 widget?
 >
 > 2) Could you `var_dump`, or inspect in xcode, ` $groups             =
 $new_instance['groups'];` with and without the block editor enabled? What
 is the value of $new_instance['groups'] in these cases?
 >
 > 3) When is the comma-separated string formed? Clientside or after save?
 >
 > Alternatively you could attach the entire widget code so we could test
 without the back and forth.
 >
 > Thank you!

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53625#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list