[wp-trac] [WordPress Trac] #53552: Inactive Widgets prevent placement of new widget if `multiple` is false

WordPress Trac noreply at wordpress.org
Tue Aug 10 13:35:17 UTC 2021


#53552: Inactive Widgets prevent placement of new widget if `multiple` is false
-------------------------------------------------+-------------------------
 Reporter:  MattyRob                             |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  5.8.1
Component:  Widgets                              |     Version:  5.8
 Severity:  normal                               |  Resolution:
 Keywords:  needs-testing needs-patch needs-     |     Focuses:
  design                                         |  administration
-------------------------------------------------+-------------------------

Comment (by lucatume):

 Posting a contribution about expected behavior that surfaced while
 reviewing this ticket in #core-tests:

 > some kind of workaround that alerts the user to an Inactive Widget
 instance or the disregards widgets in the Inactive Area when assessing the
 'multiple' instance parameter is needed here to provide a good user
 experience

 A question about expected behavior that came up during test triage:
 1. Widget A is not multiple, only one instance of is allowed.
 2. User adds an instance of Widget A, let's call it A.1, to the active
 Widgets.
 3. User moves A.1 to inactive.
 4. User adds a new instance of Widget A, let's call it A.2, to the active
 Widgets.
 5. User moves A.1 back to active.

 Should 4 be prevented? This would imply that "single instance" means "at
 most one instance in existence".
 Should 5 be prevented? This would imply that "single instance" means "at
 most one active instance".

 Since there is no patch yet, the discussion of this point might be
 postponed to the first version of such patch to see what option of the two
 is implemented, how it works, and how it "feels" when put to use.

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


More information about the wp-trac mailing list