[wp-trac] [WordPress Trac] #56947: Gap above admin menu when plugins folder does not exist

WordPress Trac noreply at wordpress.org
Wed Nov 2 01:21:46 UTC 2022


#56947: Gap above admin menu when plugins folder does not exist
----------------------------+-----------------------------
 Reporter:  ironprogrammer  |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 The absence of the `/wp-content/plugins` directory causes a gap to appear
 above the admin menu. This gap can be seen on the following pages:

   /wp-admin/plugins.php
   /wp-admin/update-core.php
   /wp-admin/site-health.php
   /wp-admin/plugin-editor.php

 The gap (margin) is applied to `#adminmenuback` and `#adminmenuwrap`
 (encloses the admin menu) through the `.php-error` class on `<body>`,
 though no error is logged.

 === Steps to Reproduce
 1. Delete the `plugins` folder inside `/wp-content` (**do not** delete
 `wp-content` itself!)
 2. Navigate to one of the above identified pages, e.g. `/wp-
 admin/plugins.php`.
 3. 🐞 Observe the margin between the admin menu and header bar (Figure 1).

 === Expected Results
 When testing a patch to validate it works as expected:
 - ✅ In WP admin, there should not be a gap between the menu bar and admin
 menu.

 When reproducing the bug:
 - ❌ In WP admin, a gap appears above the admin menu (Figure 1).

 === Supplemental Artifacts
   ''Figure 1''
   [[Image(https://cldup.com/tauzyO7kPS.png, 50%)]]

   **Test Report Icons:**
   🐞 <= Indicates where issue ("bug") occurs.
   ✅ <= Behavior is ''expected''.
   ❌ <= Behavior is ''NOT expected''.

 Props peterwilsoncc, priethor, ndiego, wildworks.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56947>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list