Opened 5 years ago
Closed 5 years ago
#52816 closed defect (bug) (fixed)
Post metabox style Twenty Seventeen has a border
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 5.7.1 | Priority: | normal |
| Severity: | normal | Version: | 5.7 |
| Component: | Bundled Theme | Keywords: | has-patch commit fixed-major |
| Focuses: | ui, css | Cc: |
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 changed from Awaiting Review to 5.7.1
Hi there, welcome to WordPress Trac! Thanks for the report.
A similar issue was fixed in [50465] / #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
}
#4
@
5 years ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 50534:
#5
@
5 years ago
- Keywords fixed-major added
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening for backporting to the 5.7 branch.
This ticket was mentioned in Slack in #core by audrasjb. View the logs.
5 years ago
Note: See
TracTickets for help on using
tickets.
Twenty Seventeen post metabox