[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:05: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
-----------------------------------------------+---------------------------
Changes (by andraganescu):

 * keywords:  has-screenshots => has-screenshots reporter-feedback


Comment:

 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:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list