Opened 5 years ago
Closed 5 years ago
#52816 closed defect (bug) (fixed)
Post metabox style Twenty Seventeen has a border
| Reported by: | joseeyoast | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.7.1 |
| Component: | Bundled Theme | Version: | 5.7 |
| Severity: | normal | Keywords: | has-patch commit fixed-major |
| Cc: | Focuses: | ui, css |
Description
In Twenty Seventeen the post metabox/editor styling looks incorrect, it has a border between them. It looks fine in Twenty Twenty-One.
Attachments (5)
Change History (12)
#1
@
5 years ago
- Milestone Awaiting Review → 5.7.1
Hi there, welcome to WordPress Trac! Thanks for the report.
A similar issue was fixed in #52646 for Twenty Fifteen and Twenty Sixteen. But it looks like Twenty Seventeen was missed in testing, I don't see it mentioned in comment:4:ticket:52646.
Moving to 5.7.1 to apply the fix to Twenty Seventeen as well.
#2
@
5 years ago
Step to reproduce the issue:
- Install Twenty Seventeen
- Add the following code to the theme’s functions.php file
- Go the post editor
function wporg_add_custom_box() {
$screens = [ 'post', 'wporg_cpt' ];
foreach ( $screens as $screen ) {
add_meta_box(
'wporg_box_id',
'Custom Meta Box Title',
'wporg_custom_box_html',
$screen
);
}
}
add_action( 'add_meta_boxes', 'wporg_add_custom_box' );
function wporg_custom_box_html( $post ) {
?>
<p>
<label for="wporg_field">Description for this field</label><br />
<input type="text" value="My value" />
</p>
<?php
}
#5
@
5 years ago
- Keywords fixed-major added
- Resolution fixed
- Status closed → reopened
Reopening for backporting to the 5.7 branch.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Twenty Seventeen post metabox