WordPress.org

Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #47131, comment 5


Ignore:
Timestamp:
05/30/2019 01:54:21 PM (4 months ago)
Author:
anevins
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #47131, comment 5

    v2 v3  
    1 Worth investigating whether this is the case with other metaboxes and if so to apply a wider solution.
    2 It has been suggested that this may be an issue in the classic editor and not just Media. The icon/dragging shouldn’t be enabled if there’s only one metabox present.
     1Suggestions from the Core Media meeting: https://wordpress.slack.com/archives/C02SX62S6/p1559224344044600
     2
     3* Worth investigating whether this is the case with other metaboxes and if so to apply a wider solution.
     4
     5* It has been suggested that this may be an issue in the classic editor and not just Media. The icon/dragging shouldn’t be enabled if there’s only one metabox present.
     6
     7* In common.js I see the jQuery-UI sortables are enabled for any `$sortables = $('.meta-box-sortables'),` It could be as simple as checking the length of the jQuery collection and return if 1