Opened 3 years ago
Closed 2 years ago
#15507 closed defect (bug) (fixed)
Remove wp_admin_body_style()
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1 |
| Component: | Administration | Version: | 3.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
I think we can remove the function. For admin we can use $admin_body_class and wp-admin.css and or themes can use body_class() .
Attachments (2)
Change History (10)
comment:2
WraithKenny
— 2 years ago
Places the padding-top: 28px rule on the first appropriate element that isn't set to height: 100%; (which is #wphead).
In 3.1-RC3, you can see that the height of body.admin-bar is larger than 100% (easier to see on pages where the window is taller then the page content) which creates scroll-bars where none are needed.
(Might also provide a hint to Theme designers who look to wp-admin for css support on layouts that have css-positioned elements.)
Tested on Firefox 4.
comment:3
WraithKenny
— 2 years ago
- Resolution fixed deleted
- Severity changed from normal to trivial
- Status changed from closed to reopened
comment:4
WraithKenny
— 2 years ago
- Severity changed from trivial to normal
comment:5
SergeyBiryukov
— 2 years ago
Patch tested, removes unnecessary scrollbars.
(In [16600]) Remove wp_admin_body_style(). Props ocean90. fixes #15507