Editor: Fix incorrect usage of ID attributes on custom fields.
Repeated containers used for custom fields have duplicate ID attributes. Duplicate IDs are incorrect HTML, and will also cause unexpected results when trying to manipulate using JS. Duplicate IDs are changed to matching classes; CSS & JS updated to match. Props jankimoradiya, audrasjb, donmhico, afercia. Fixes #46964. Built from https://develop.svn.wordpress.org/trunk@47222 git-svn-id: http://core.svn.wordpress.org/trunk@47022 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1dbe25bc0a
commit
61ce35440c
|
@ -7,7 +7,7 @@
|
|||
width: 49.5%;
|
||||
}
|
||||
|
||||
#wpbody-content #dashboard-widgets.columns-2 #postbox-container-2,
|
||||
#wpbody-content #dashboard-widgets.columns-2 .postbox-container-2,
|
||||
#wpbody-content #dashboard-widgets.columns-2 #postbox-container-3,
|
||||
#wpbody-content #dashboard-widgets.columns-2 #postbox-container-4 {
|
||||
float: left;
|
||||
|
@ -43,7 +43,7 @@
|
|||
width: 49.5%;
|
||||
}
|
||||
|
||||
.ie8 #wpbody-content #dashboard-widgets #postbox-container-2,
|
||||
.ie8 #wpbody-content #dashboard-widgets .postbox-container-2,
|
||||
.ie8 #wpbody-content #dashboard-widgets #postbox-container-3,
|
||||
.ie8 #wpbody-content #dashboard-widgets #postbox-container-4 {
|
||||
float: left;
|
||||
|
@ -1113,7 +1113,7 @@ a.rsswidget {
|
|||
width: 49.5%;
|
||||
}
|
||||
|
||||
#wpbody-content #dashboard-widgets #postbox-container-2,
|
||||
#wpbody-content #dashboard-widgets .postbox-container-2,
|
||||
#wpbody-content #dashboard-widgets #postbox-container-3,
|
||||
#wpbody-content #dashboard-widgets #postbox-container-4 {
|
||||
float: left;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -6,7 +6,7 @@
|
|||
width: 49.5%;
|
||||
}
|
||||
|
||||
#wpbody-content #dashboard-widgets.columns-2 #postbox-container-2,
|
||||
#wpbody-content #dashboard-widgets.columns-2 .postbox-container-2,
|
||||
#wpbody-content #dashboard-widgets.columns-2 #postbox-container-3,
|
||||
#wpbody-content #dashboard-widgets.columns-2 #postbox-container-4 {
|
||||
float: right;
|
||||
|
@ -42,7 +42,7 @@
|
|||
width: 49.5%;
|
||||
}
|
||||
|
||||
.ie8 #wpbody-content #dashboard-widgets #postbox-container-2,
|
||||
.ie8 #wpbody-content #dashboard-widgets .postbox-container-2,
|
||||
.ie8 #wpbody-content #dashboard-widgets #postbox-container-3,
|
||||
.ie8 #wpbody-content #dashboard-widgets #postbox-container-4 {
|
||||
float: right;
|
||||
|
@ -1112,7 +1112,7 @@ a.rsswidget {
|
|||
width: 49.5%;
|
||||
}
|
||||
|
||||
#wpbody-content #dashboard-widgets #postbox-container-2,
|
||||
#wpbody-content #dashboard-widgets .postbox-container-2,
|
||||
#wpbody-content #dashboard-widgets #postbox-container-3,
|
||||
#wpbody-content #dashboard-widgets #postbox-container-4 {
|
||||
float: right;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,18 +1,18 @@
|
|||
/*! This file is auto-generated */
|
||||
#poststuff {
|
||||
.poststuff {
|
||||
padding-top: 10px;
|
||||
min-width: 763px;
|
||||
}
|
||||
|
||||
#poststuff #post-body {
|
||||
.poststuff #post-body {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#poststuff .postbox-container {
|
||||
.poststuff .postbox-container {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#poststuff #post-body.columns-2 {
|
||||
.poststuff #post-body.columns-2 {
|
||||
margin-left: 300px;
|
||||
}
|
||||
|
||||
|
@ -52,7 +52,7 @@
|
|||
margin: 0;
|
||||
}
|
||||
|
||||
#poststuff #titlewrap {
|
||||
.poststuff #titlewrap {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
@ -415,7 +415,7 @@ form#tags-filter {
|
|||
padding-top: 20px;
|
||||
}
|
||||
|
||||
#poststuff #post-body.columns-2 #side-sortables {
|
||||
.poststuff #post-body.columns-2 #side-sortables {
|
||||
width: 280px;
|
||||
}
|
||||
|
||||
|
@ -597,34 +597,34 @@ form#tags-filter {
|
|||
text-indent: 0;
|
||||
}
|
||||
|
||||
#poststuff h3.hndle, /* Back-compat for pre-4.4 */
|
||||
#poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */
|
||||
#poststuff h2 {
|
||||
.poststuff h3.hndle, /* Back-compat for pre-4.4 */
|
||||
.poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */
|
||||
.poststuff h2 {
|
||||
font-size: 14px;
|
||||
padding: 8px 12px;
|
||||
margin: 0;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
#poststuff .stuffbox h2 {
|
||||
.poststuff .stuffbox h2 {
|
||||
padding: 8px 10px;
|
||||
}
|
||||
|
||||
#poststuff .inside {
|
||||
.poststuff .inside {
|
||||
margin: 6px 0 0 0;
|
||||
}
|
||||
|
||||
#poststuff .stuffbox .inside {
|
||||
.poststuff .stuffbox .inside {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#poststuff .inside #parent_id,
|
||||
#poststuff .inside #page_template {
|
||||
.poststuff .inside #parent_id,
|
||||
.poststuff .inside #page_template {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.ie8 #poststuff .inside #parent_id,
|
||||
.ie8 #poststuff .inside #page_template {
|
||||
.ie8 .poststuff .inside #parent_id,
|
||||
.ie8 .poststuff .inside #page_template {
|
||||
width: 250px;
|
||||
}
|
||||
|
||||
|
@ -643,7 +643,7 @@ form#tags-filter {
|
|||
}
|
||||
|
||||
#linksubmitdiv .inside, /* Old Link Manager back-compat. */
|
||||
#poststuff #submitdiv .inside {
|
||||
.poststuff #submitdiv .inside {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
@ -1092,11 +1092,11 @@ p.description code {
|
|||
13.0 - Tags
|
||||
------------------------------------------------------------------------------*/
|
||||
|
||||
#poststuff .tagsdiv .ajaxtag {
|
||||
.poststuff .tagsdiv .ajaxtag {
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
#poststuff .tagsdiv .howto {
|
||||
.poststuff .tagsdiv .howto {
|
||||
margin: 1em 0 6px 0;
|
||||
}
|
||||
|
||||
|
@ -1141,7 +1141,7 @@ p.popular-tags a {
|
|||
margin: 2px 0 12px;
|
||||
}
|
||||
|
||||
#poststuff .inside .the-tagcloud {
|
||||
.poststuff .inside .the-tagcloud {
|
||||
margin: 5px 0 10px;
|
||||
padding: 8px;
|
||||
border: 1px solid #ddd;
|
||||
|
@ -1413,11 +1413,11 @@ table.links-table {
|
|||
|
||||
/* one column on the post write/edit screen */
|
||||
@media only screen and (max-width: 850px) {
|
||||
#poststuff {
|
||||
.poststuff {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
#wpbody-content #poststuff #post-body {
|
||||
#wpbody-content .poststuff #post-body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
|
@ -1426,14 +1426,14 @@ table.links-table {
|
|||
width: 100%;
|
||||
}
|
||||
|
||||
#poststuff #postbox-container-1 .empty-container,
|
||||
#poststuff #postbox-container-1 #side-sortables:empty {
|
||||
.poststuff #postbox-container-1 .empty-container,
|
||||
.poststuff #postbox-container-1 #side-sortables:empty {
|
||||
border: 0 none;
|
||||
height: 0;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
#poststuff #post-body.columns-2 #side-sortables {
|
||||
.poststuff #post-body.columns-2 #side-sortables {
|
||||
min-height: 0;
|
||||
width: auto;
|
||||
}
|
||||
|
@ -1458,13 +1458,13 @@ table.links-table {
|
|||
padding: 10px 10px;
|
||||
}
|
||||
|
||||
#poststuff .stuffbox .inside {
|
||||
.poststuff .stuffbox .inside {
|
||||
padding: 0 0 4px 2px;
|
||||
}
|
||||
|
||||
#poststuff h3.hndle, /* Back-compat for pre-4.4 */
|
||||
#poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */
|
||||
#poststuff h2 {
|
||||
.poststuff h3.hndle, /* Back-compat for pre-4.4 */
|
||||
.poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */
|
||||
.poststuff h2 {
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,17 +1,17 @@
|
|||
#poststuff {
|
||||
.poststuff {
|
||||
padding-top: 10px;
|
||||
min-width: 763px;
|
||||
}
|
||||
|
||||
#poststuff #post-body {
|
||||
.poststuff #post-body {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#poststuff .postbox-container {
|
||||
.poststuff .postbox-container {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#poststuff #post-body.columns-2 {
|
||||
.poststuff #post-body.columns-2 {
|
||||
margin-right: 300px;
|
||||
}
|
||||
|
||||
|
@ -51,7 +51,7 @@
|
|||
margin: 0;
|
||||
}
|
||||
|
||||
#poststuff #titlewrap {
|
||||
.poststuff #titlewrap {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
@ -414,7 +414,7 @@ form#tags-filter {
|
|||
padding-top: 20px;
|
||||
}
|
||||
|
||||
#poststuff #post-body.columns-2 #side-sortables {
|
||||
.poststuff #post-body.columns-2 #side-sortables {
|
||||
width: 280px;
|
||||
}
|
||||
|
||||
|
@ -596,34 +596,34 @@ form#tags-filter {
|
|||
text-indent: 0;
|
||||
}
|
||||
|
||||
#poststuff h3.hndle, /* Back-compat for pre-4.4 */
|
||||
#poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */
|
||||
#poststuff h2 {
|
||||
.poststuff h3.hndle, /* Back-compat for pre-4.4 */
|
||||
.poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */
|
||||
.poststuff h2 {
|
||||
font-size: 14px;
|
||||
padding: 8px 12px;
|
||||
margin: 0;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
#poststuff .stuffbox h2 {
|
||||
.poststuff .stuffbox h2 {
|
||||
padding: 8px 10px;
|
||||
}
|
||||
|
||||
#poststuff .inside {
|
||||
.poststuff .inside {
|
||||
margin: 6px 0 0 0;
|
||||
}
|
||||
|
||||
#poststuff .stuffbox .inside {
|
||||
.poststuff .stuffbox .inside {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#poststuff .inside #parent_id,
|
||||
#poststuff .inside #page_template {
|
||||
.poststuff .inside #parent_id,
|
||||
.poststuff .inside #page_template {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.ie8 #poststuff .inside #parent_id,
|
||||
.ie8 #poststuff .inside #page_template {
|
||||
.ie8 .poststuff .inside #parent_id,
|
||||
.ie8 .poststuff .inside #page_template {
|
||||
width: 250px;
|
||||
}
|
||||
|
||||
|
@ -642,7 +642,7 @@ form#tags-filter {
|
|||
}
|
||||
|
||||
#linksubmitdiv .inside, /* Old Link Manager back-compat. */
|
||||
#poststuff #submitdiv .inside {
|
||||
.poststuff #submitdiv .inside {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
@ -1091,11 +1091,11 @@ p.description code {
|
|||
13.0 - Tags
|
||||
------------------------------------------------------------------------------*/
|
||||
|
||||
#poststuff .tagsdiv .ajaxtag {
|
||||
.poststuff .tagsdiv .ajaxtag {
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
#poststuff .tagsdiv .howto {
|
||||
.poststuff .tagsdiv .howto {
|
||||
margin: 1em 0 6px 0;
|
||||
}
|
||||
|
||||
|
@ -1140,7 +1140,7 @@ p.popular-tags a {
|
|||
margin: 2px 0 12px;
|
||||
}
|
||||
|
||||
#poststuff .inside .the-tagcloud {
|
||||
.poststuff .inside .the-tagcloud {
|
||||
margin: 5px 0 10px;
|
||||
padding: 8px;
|
||||
border: 1px solid #ddd;
|
||||
|
@ -1412,11 +1412,11 @@ table.links-table {
|
|||
|
||||
/* one column on the post write/edit screen */
|
||||
@media only screen and (max-width: 850px) {
|
||||
#poststuff {
|
||||
.poststuff {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
#wpbody-content #poststuff #post-body {
|
||||
#wpbody-content .poststuff #post-body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
|
@ -1425,14 +1425,14 @@ table.links-table {
|
|||
width: 100%;
|
||||
}
|
||||
|
||||
#poststuff #postbox-container-1 .empty-container,
|
||||
#poststuff #postbox-container-1 #side-sortables:empty {
|
||||
.poststuff #postbox-container-1 .empty-container,
|
||||
.poststuff #postbox-container-1 #side-sortables:empty {
|
||||
border: 0 none;
|
||||
height: 0;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
#poststuff #post-body.columns-2 #side-sortables {
|
||||
.poststuff #post-body.columns-2 #side-sortables {
|
||||
min-height: 0;
|
||||
width: auto;
|
||||
}
|
||||
|
@ -1457,13 +1457,13 @@ table.links-table {
|
|||
padding: 10px 10px;
|
||||
}
|
||||
|
||||
#poststuff .stuffbox .inside {
|
||||
.poststuff .stuffbox .inside {
|
||||
padding: 0 2px 4px 0;
|
||||
}
|
||||
|
||||
#poststuff h3.hndle, /* Back-compat for pre-4.4 */
|
||||
#poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */
|
||||
#poststuff h2 {
|
||||
.poststuff h3.hndle, /* Back-compat for pre-4.4 */
|
||||
.poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */
|
||||
.poststuff h2 {
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -14,7 +14,7 @@
|
|||
width: 49.5%;
|
||||
}
|
||||
|
||||
#wpbody-content #dashboard-widgets #postbox-container-2,
|
||||
#wpbody-content #dashboard-widgets .postbox-container-2,
|
||||
#wpbody-content #dashboard-widgets #postbox-container-3,
|
||||
#wpbody-content #dashboard-widgets #postbox-container-4 {
|
||||
float: left;
|
||||
|
@ -368,7 +368,7 @@ a.button.button-small {
|
|||
#wrap,
|
||||
#postdivrich,
|
||||
#postdiv,
|
||||
#poststuff,
|
||||
.poststuff,
|
||||
.metabox-holder,
|
||||
#titlediv,
|
||||
#post-body,
|
||||
|
@ -415,12 +415,12 @@ form#template div {
|
|||
padding: 0 4px;
|
||||
}
|
||||
|
||||
#poststuff h2 {
|
||||
.poststuff h2 {
|
||||
font-size: 1.6em;
|
||||
}
|
||||
|
||||
#poststuff .inside #parent_id,
|
||||
#poststuff .inside #page_template,
|
||||
.poststuff .inside #parent_id,
|
||||
.poststuff .inside #page_template,
|
||||
.inline-edit-row #post_parent,
|
||||
.inline-edit-row select[name="page_template"] {
|
||||
width: 250px;
|
||||
|
@ -678,7 +678,7 @@ input[type="password"],
|
|||
padding: 0;
|
||||
}
|
||||
|
||||
* html #poststuff h2 {
|
||||
* html .poststuff h2 {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -13,7 +13,7 @@
|
|||
width: 49.5%;
|
||||
}
|
||||
|
||||
#wpbody-content #dashboard-widgets #postbox-container-2,
|
||||
#wpbody-content #dashboard-widgets .postbox-container-2,
|
||||
#wpbody-content #dashboard-widgets #postbox-container-3,
|
||||
#wpbody-content #dashboard-widgets #postbox-container-4 {
|
||||
float: right;
|
||||
|
@ -367,7 +367,7 @@ a.button.button-small {
|
|||
#wrap,
|
||||
#postdivrich,
|
||||
#postdiv,
|
||||
#poststuff,
|
||||
.poststuff,
|
||||
.metabox-holder,
|
||||
#titlediv,
|
||||
#post-body,
|
||||
|
@ -414,12 +414,12 @@ form#template div {
|
|||
padding: 0 4px;
|
||||
}
|
||||
|
||||
#poststuff h2 {
|
||||
.poststuff h2 {
|
||||
font-size: 1.6em;
|
||||
}
|
||||
|
||||
#poststuff .inside #parent_id,
|
||||
#poststuff .inside #page_template,
|
||||
.poststuff .inside #parent_id,
|
||||
.poststuff .inside #page_template,
|
||||
.inline-edit-row #post_parent,
|
||||
.inline-edit-row select[name="page_template"] {
|
||||
width: 250px;
|
||||
|
@ -677,7 +677,7 @@ input[type="password"],
|
|||
padding: 0;
|
||||
}
|
||||
|
||||
* html #poststuff h2 {
|
||||
* html .poststuff h2 {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1034,7 +1034,7 @@ border color while dragging a file over the uploader drop area */
|
|||
display: block;
|
||||
}
|
||||
|
||||
#poststuff .imgedit-group-top h2 {
|
||||
.poststuff .imgedit-group-top h2 {
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
@ -1042,7 +1042,7 @@ border color while dragging a file over the uploader drop area */
|
|||
line-height: 1.4;
|
||||
}
|
||||
|
||||
#poststuff .imgedit-group-top .button-link {
|
||||
.poststuff .imgedit-group-top .button-link {
|
||||
text-decoration: none;
|
||||
color: #23282d;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1033,7 +1033,7 @@ border color while dragging a file over the uploader drop area */
|
|||
display: block;
|
||||
}
|
||||
|
||||
#poststuff .imgedit-group-top h2 {
|
||||
.poststuff .imgedit-group-top h2 {
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
@ -1041,7 +1041,7 @@ border color while dragging a file over the uploader drop area */
|
|||
line-height: 1.4;
|
||||
}
|
||||
|
||||
#poststuff .imgedit-group-top .button-link {
|
||||
.poststuff .imgedit-group-top .button-link {
|
||||
text-decoration: none;
|
||||
color: #23282d;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -494,7 +494,7 @@ wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
|
|||
do_action( 'edit_form_top', $post );
|
||||
?>
|
||||
|
||||
<div id="poststuff">
|
||||
<div class="poststuff">
|
||||
<div id="post-body" class="metabox-holder columns-<?php echo 1 == get_current_screen()->get_columns() ? '1' : '2'; ?>">
|
||||
<div id="post-body-content">
|
||||
|
||||
|
@ -671,7 +671,7 @@ do_meta_boxes( $post_type, 'side', $post );
|
|||
|
||||
?>
|
||||
</div>
|
||||
<div id="postbox-container-2" class="postbox-container">
|
||||
<div class="postbox-container-2 postbox-container">
|
||||
<?php
|
||||
|
||||
do_meta_boxes( null, 'normal', $post );
|
||||
|
|
|
@ -16,7 +16,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<div class="wrap">
|
||||
<h1><?php _e( 'Edit Comment' ); ?></h1>
|
||||
|
||||
<div id="poststuff">
|
||||
<div class="poststuff">
|
||||
<input type="hidden" name="action" value="editedcomment" />
|
||||
<input type="hidden" name="comment_ID" value="<?php echo esc_attr( $comment->comment_ID ); ?>" />
|
||||
<input type="hidden" name="comment_post_ID" value="<?php echo esc_attr( $comment->comment_post_ID ); ?>" />
|
||||
|
@ -196,7 +196,7 @@ endif;
|
|||
</div><!-- /submitdiv -->
|
||||
</div>
|
||||
|
||||
<div id="postbox-container-2" class="postbox-container">
|
||||
<div class="postbox-container-2 postbox-container">
|
||||
<?php
|
||||
/** This action is documented in wp-admin/includes/meta-boxes.php */
|
||||
do_action( 'add_meta_boxes', 'comment', $comment );
|
||||
|
|
|
@ -106,7 +106,7 @@ wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
|
|||
wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false );
|
||||
?>
|
||||
|
||||
<div id="poststuff">
|
||||
<div class="poststuff">
|
||||
|
||||
<div id="post-body" class="metabox-holder columns-<?php echo 1 == get_current_screen()->get_columns() ? '1' : '2'; ?>">
|
||||
<div id="post-body-content">
|
||||
|
@ -144,7 +144,7 @@ $side_meta_boxes = do_meta_boxes( 'link', 'side', $link );
|
|||
|
||||
?>
|
||||
</div>
|
||||
<div id="postbox-container-2" class="postbox-container">
|
||||
<div class="postbox-container-2 postbox-container">
|
||||
<?php
|
||||
|
||||
do_meta_boxes( null, 'normal', $link );
|
||||
|
|
|
@ -245,7 +245,7 @@ function wp_dashboard() {
|
|||
<div id="postbox-container-1" class="postbox-container">
|
||||
<?php do_meta_boxes( $screen->id, 'normal', '' ); ?>
|
||||
</div>
|
||||
<div id="postbox-container-2" class="postbox-container">
|
||||
<div class="postbox-container-2 postbox-container">
|
||||
<?php do_meta_boxes( $screen->id, 'side', '' ); ?>
|
||||
</div>
|
||||
<div id="postbox-container-3" class="postbox-container">
|
||||
|
|
|
@ -2271,8 +2271,8 @@ function the_block_editor_meta_boxes() {
|
|||
</form>
|
||||
<?php foreach ( $locations as $location ) : ?>
|
||||
<form class="metabox-location-<?php echo esc_attr( $location ); ?>" onsubmit="return false;">
|
||||
<div id="poststuff" class="sidebar-open">
|
||||
<div id="postbox-container-2" class="postbox-container">
|
||||
<div class="poststuff" class="sidebar-open">
|
||||
<div class="postbox-container-2 postbox-container">
|
||||
<?php
|
||||
do_meta_boxes(
|
||||
$current_screen,
|
||||
|
|
|
@ -421,7 +421,7 @@
|
|||
break;
|
||||
case 0:
|
||||
case 180:
|
||||
if ( $('#poststuff').length ) {
|
||||
if ( $( '.poststuff' ).length ) {
|
||||
this._pb_edit(1);
|
||||
} else {
|
||||
if ( !check.length || !check.is(':checked') )
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
/*! This file is auto-generated */
|
||||
!function(a){var n=a(document);window.postboxes={handle_click:function(){var e,o=a(this),s=o.parent(".postbox"),t=s.attr("id");"dashboard_browser_nag"!==t&&(s.toggleClass("closed"),e=!s.hasClass("closed"),o.hasClass("handlediv")?o.attr("aria-expanded",e):o.closest(".postbox").find("button.handlediv").attr("aria-expanded",e),"press-this"!==postboxes.page&&postboxes.save_state(postboxes.page),t&&(!s.hasClass("closed")&&a.isFunction(postboxes.pbshow)?postboxes.pbshow(t):s.hasClass("closed")&&a.isFunction(postboxes.pbhide)&&postboxes.pbhide(t)),n.trigger("postbox-toggled",s))},add_postbox_toggles:function(t,e){var o=a(".postbox .hndle, .postbox .handlediv");this.page=t,this.init(t,e),o.on("click.postboxes",this.handle_click),a(".postbox .hndle a").click(function(e){e.stopPropagation()}),a(".postbox a.dismiss").on("click.postboxes",function(e){var o=a(this).parents(".postbox").attr("id")+"-hide";e.preventDefault(),a("#"+o).prop("checked",!1).triggerHandler("click")}),a(".hide-postbox-tog").bind("click.postboxes",function(){var e=a(this),o=e.val(),s=a("#"+o);e.prop("checked")?(s.show(),a.isFunction(postboxes.pbshow)&&postboxes.pbshow(o)):(s.hide(),a.isFunction(postboxes.pbhide)&&postboxes.pbhide(o)),postboxes.save_state(t),postboxes._mark_area(),n.trigger("postbox-toggled",s)}),a('.columns-prefs input[type="radio"]').bind("click.postboxes",function(){var e=parseInt(a(this).val(),10);e&&(postboxes._pb_edit(e),postboxes.save_order(t))})},init:function(o,e){var s=a(document.body).hasClass("mobile"),t=a(".postbox .handlediv");a.extend(this,e||{}),a("#wpbody-content").css("overflow","hidden"),a(".meta-box-sortables").sortable({placeholder:"sortable-placeholder",connectWith:".meta-box-sortables",items:".postbox",handle:".hndle",cursor:"move",delay:s?200:0,distance:2,tolerance:"pointer",forcePlaceholderSize:!0,helper:function(e,o){return o.clone().find(":input").attr("name",function(e,o){return"sort_"+parseInt(1e5*Math.random(),10).toString()+"_"+o}).end()},opacity:.65,stop:function(){var e=a(this);e.find("#dashboard_browser_nag").is(":visible")&&"dashboard_browser_nag"!=this.firstChild.id?e.sortable("cancel"):postboxes.save_order(o)},receive:function(e,o){"dashboard_browser_nag"==o.item[0].id&&a(o.sender).sortable("cancel"),postboxes._mark_area(),n.trigger("postbox-moved",o.item)}}),s&&(a(document.body).bind("orientationchange.postboxes",function(){postboxes._pb_change()}),this._pb_change()),this._mark_area(),t.each(function(){var e=a(this);e.attr("aria-expanded",!e.parent(".postbox").hasClass("closed"))})},save_state:function(e){var o,s;"nav-menus"!==e&&(o=a(".postbox").filter(".closed").map(function(){return this.id}).get().join(","),s=a(".postbox").filter(":hidden").map(function(){return this.id}).get().join(","),a.post(ajaxurl,{action:"closed-postboxes",closed:o,hidden:s,closedpostboxesnonce:jQuery("#closedpostboxesnonce").val(),page:e}))},save_order:function(e){var o,s=a(".columns-prefs input:checked").val()||0;o={action:"meta-box-order",_ajax_nonce:a("#meta-box-order-nonce").val(),page_columns:s,page:e},a(".meta-box-sortables").each(function(){o["order["+this.id.split("-")[0]+"]"]=a(this).sortable("toArray").join(",")}),a.post(ajaxurl,o)},_mark_area:function(){var o=a("div.postbox:visible").length,e=a("#post-body #side-sortables");a("#dashboard-widgets .meta-box-sortables:visible").each(function(){var e=a(this);1==o||e.children(".postbox:visible").length?e.removeClass("empty-container"):(e.addClass("empty-container"),e.attr("data-emptyString",postBoxL10n.postBoxEmptyString))}),e.length&&(e.children(".postbox:visible").length?e.removeClass("empty-container"):"280px"==a("#postbox-container-1").css("width")&&e.addClass("empty-container"))},_pb_edit:function(e){var o=a(".metabox-holder").get(0);o&&(o.className=o.className.replace(/columns-\d+/,"columns-"+e)),a(document).trigger("postboxes-columnchange")},_pb_change:function(){var e=a('label.columns-prefs-1 input[type="radio"]');switch(window.orientation){case 90:case-90:e.length&&e.is(":checked")||this._pb_edit(2);break;case 0:case 180:a("#poststuff").length?this._pb_edit(1):e.length&&e.is(":checked")||this._pb_edit(2)}},pbshow:!1,pbhide:!1}}(jQuery);
|
||||
!function(a){var n=a(document);window.postboxes={handle_click:function(){var e,o=a(this),s=o.parent(".postbox"),t=s.attr("id");"dashboard_browser_nag"!==t&&(s.toggleClass("closed"),e=!s.hasClass("closed"),o.hasClass("handlediv")?o.attr("aria-expanded",e):o.closest(".postbox").find("button.handlediv").attr("aria-expanded",e),"press-this"!==postboxes.page&&postboxes.save_state(postboxes.page),t&&(!s.hasClass("closed")&&a.isFunction(postboxes.pbshow)?postboxes.pbshow(t):s.hasClass("closed")&&a.isFunction(postboxes.pbhide)&&postboxes.pbhide(t)),n.trigger("postbox-toggled",s))},add_postbox_toggles:function(t,e){var o=a(".postbox .hndle, .postbox .handlediv");this.page=t,this.init(t,e),o.on("click.postboxes",this.handle_click),a(".postbox .hndle a").click(function(e){e.stopPropagation()}),a(".postbox a.dismiss").on("click.postboxes",function(e){var o=a(this).parents(".postbox").attr("id")+"-hide";e.preventDefault(),a("#"+o).prop("checked",!1).triggerHandler("click")}),a(".hide-postbox-tog").bind("click.postboxes",function(){var e=a(this),o=e.val(),s=a("#"+o);e.prop("checked")?(s.show(),a.isFunction(postboxes.pbshow)&&postboxes.pbshow(o)):(s.hide(),a.isFunction(postboxes.pbhide)&&postboxes.pbhide(o)),postboxes.save_state(t),postboxes._mark_area(),n.trigger("postbox-toggled",s)}),a('.columns-prefs input[type="radio"]').bind("click.postboxes",function(){var e=parseInt(a(this).val(),10);e&&(postboxes._pb_edit(e),postboxes.save_order(t))})},init:function(o,e){var s=a(document.body).hasClass("mobile"),t=a(".postbox .handlediv");a.extend(this,e||{}),a("#wpbody-content").css("overflow","hidden"),a(".meta-box-sortables").sortable({placeholder:"sortable-placeholder",connectWith:".meta-box-sortables",items:".postbox",handle:".hndle",cursor:"move",delay:s?200:0,distance:2,tolerance:"pointer",forcePlaceholderSize:!0,helper:function(e,o){return o.clone().find(":input").attr("name",function(e,o){return"sort_"+parseInt(1e5*Math.random(),10).toString()+"_"+o}).end()},opacity:.65,stop:function(){var e=a(this);e.find("#dashboard_browser_nag").is(":visible")&&"dashboard_browser_nag"!=this.firstChild.id?e.sortable("cancel"):postboxes.save_order(o)},receive:function(e,o){"dashboard_browser_nag"==o.item[0].id&&a(o.sender).sortable("cancel"),postboxes._mark_area(),n.trigger("postbox-moved",o.item)}}),s&&(a(document.body).bind("orientationchange.postboxes",function(){postboxes._pb_change()}),this._pb_change()),this._mark_area(),t.each(function(){var e=a(this);e.attr("aria-expanded",!e.parent(".postbox").hasClass("closed"))})},save_state:function(e){var o,s;"nav-menus"!==e&&(o=a(".postbox").filter(".closed").map(function(){return this.id}).get().join(","),s=a(".postbox").filter(":hidden").map(function(){return this.id}).get().join(","),a.post(ajaxurl,{action:"closed-postboxes",closed:o,hidden:s,closedpostboxesnonce:jQuery("#closedpostboxesnonce").val(),page:e}))},save_order:function(e){var o,s=a(".columns-prefs input:checked").val()||0;o={action:"meta-box-order",_ajax_nonce:a("#meta-box-order-nonce").val(),page_columns:s,page:e},a(".meta-box-sortables").each(function(){o["order["+this.id.split("-")[0]+"]"]=a(this).sortable("toArray").join(",")}),a.post(ajaxurl,o)},_mark_area:function(){var o=a("div.postbox:visible").length,e=a("#post-body #side-sortables");a("#dashboard-widgets .meta-box-sortables:visible").each(function(){var e=a(this);1==o||e.children(".postbox:visible").length?e.removeClass("empty-container"):(e.addClass("empty-container"),e.attr("data-emptyString",postBoxL10n.postBoxEmptyString))}),e.length&&(e.children(".postbox:visible").length?e.removeClass("empty-container"):"280px"==a("#postbox-container-1").css("width")&&e.addClass("empty-container"))},_pb_edit:function(e){var o=a(".metabox-holder").get(0);o&&(o.className=o.className.replace(/columns-\d+/,"columns-"+e)),a(document).trigger("postboxes-columnchange")},_pb_change:function(){var e=a('label.columns-prefs-1 input[type="radio"]');switch(window.orientation){case 90:case-90:e.length&&e.is(":checked")||this._pb_edit(2);break;case 0:case 180:a(".poststuff").length?this._pb_edit(1):e.length&&e.is(":checked")||this._pb_edit(2)}},pbshow:!1,pbhide:!1}}(jQuery);
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.4-alpha-47221';
|
||||
$wp_version = '5.4-alpha-47222';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue