Editor: Revert a fix for incorrect usage of ID attributes on custom fields.

This reverts [47222] due to compatibility issues with plugins which are using the `#poststuff` selector.

See #46964
Built from https://develop.svn.wordpress.org/trunk@47410


git-svn-id: http://core.svn.wordpress.org/trunk@47197 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn 2020-03-03 00:37:06 +00:00
parent 9860470360
commit da52485cf1
24 changed files with 102 additions and 102 deletions

View File

@ -7,7 +7,7 @@
width: 49.5%; 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-3,
#wpbody-content #dashboard-widgets.columns-2 #postbox-container-4 { #wpbody-content #dashboard-widgets.columns-2 #postbox-container-4 {
float: left; float: left;
@ -43,7 +43,7 @@
width: 49.5%; 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-3,
.ie8 #wpbody-content #dashboard-widgets #postbox-container-4 { .ie8 #wpbody-content #dashboard-widgets #postbox-container-4 {
float: left; float: left;
@ -1113,7 +1113,7 @@ a.rsswidget {
width: 49.5%; 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-3,
#wpbody-content #dashboard-widgets #postbox-container-4 { #wpbody-content #dashboard-widgets #postbox-container-4 {
float: left; float: left;

File diff suppressed because one or more lines are too long

View File

@ -6,7 +6,7 @@
width: 49.5%; 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-3,
#wpbody-content #dashboard-widgets.columns-2 #postbox-container-4 { #wpbody-content #dashboard-widgets.columns-2 #postbox-container-4 {
float: right; float: right;
@ -42,7 +42,7 @@
width: 49.5%; 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-3,
.ie8 #wpbody-content #dashboard-widgets #postbox-container-4 { .ie8 #wpbody-content #dashboard-widgets #postbox-container-4 {
float: right; float: right;
@ -1112,7 +1112,7 @@ a.rsswidget {
width: 49.5%; 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-3,
#wpbody-content #dashboard-widgets #postbox-container-4 { #wpbody-content #dashboard-widgets #postbox-container-4 {
float: right; float: right;

File diff suppressed because one or more lines are too long

View File

@ -1,18 +1,18 @@
/*! This file is auto-generated */ /*! This file is auto-generated */
.poststuff { #poststuff {
padding-top: 10px; padding-top: 10px;
min-width: 763px; min-width: 763px;
} }
.poststuff #post-body { #poststuff #post-body {
padding: 0; padding: 0;
} }
.poststuff .postbox-container { #poststuff .postbox-container {
width: 100%; width: 100%;
} }
.poststuff #post-body.columns-2 { #poststuff #post-body.columns-2 {
margin-left: 300px; margin-left: 300px;
} }
@ -52,7 +52,7 @@
margin: 0; margin: 0;
} }
.poststuff #titlewrap { #poststuff #titlewrap {
border: 0; border: 0;
padding: 0; padding: 0;
} }
@ -415,7 +415,7 @@ form#tags-filter {
padding-top: 20px; padding-top: 20px;
} }
.poststuff #post-body.columns-2 #side-sortables { #poststuff #post-body.columns-2 #side-sortables {
width: 280px; width: 280px;
} }
@ -606,38 +606,38 @@ form#tags-filter {
text-indent: 0; text-indent: 0;
} }
.poststuff h3.hndle, /* Back-compat for pre-4.4 */ #poststuff h3.hndle, /* Back-compat for pre-4.4 */
.poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */ #poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */
.poststuff h2 { #poststuff h2 {
font-size: 14px; font-size: 14px;
padding: 8px 12px; padding: 8px 12px;
margin: 0; margin: 0;
line-height: 1.4; line-height: 1.4;
} }
.poststuff .stuffbox h2 { #poststuff .stuffbox h2 {
padding: 8px 10px; padding: 8px 10px;
} }
.poststuff .stuffbox > h2 { #poststuff .stuffbox > h2 {
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;
} }
.poststuff .inside { #poststuff .inside {
margin: 6px 0 0 0; margin: 6px 0 0 0;
} }
.poststuff .stuffbox .inside { #poststuff .stuffbox .inside {
margin: 0; margin: 0;
} }
.poststuff .inside #parent_id, #poststuff .inside #parent_id,
.poststuff .inside #page_template { #poststuff .inside #page_template {
max-width: 100%; max-width: 100%;
} }
.ie8 .poststuff .inside #parent_id, .ie8 #poststuff .inside #parent_id,
.ie8 .poststuff .inside #page_template { .ie8 #poststuff .inside #page_template {
width: 250px; width: 250px;
} }
@ -657,7 +657,7 @@ form#tags-filter {
} }
#linksubmitdiv .inside, /* Old Link Manager back-compat. */ #linksubmitdiv .inside, /* Old Link Manager back-compat. */
.poststuff #submitdiv .inside { #poststuff #submitdiv .inside {
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
@ -1106,11 +1106,11 @@ p.description code {
13.0 - Tags 13.0 - Tags
------------------------------------------------------------------------------*/ ------------------------------------------------------------------------------*/
.poststuff .tagsdiv .ajaxtag { #poststuff .tagsdiv .ajaxtag {
margin-top: 1em; margin-top: 1em;
} }
.poststuff .tagsdiv .howto { #poststuff .tagsdiv .howto {
margin: 1em 0 6px 0; margin: 1em 0 6px 0;
} }
@ -1155,7 +1155,7 @@ p.popular-tags a {
margin: 2px 0 12px; margin: 2px 0 12px;
} }
.poststuff .inside .the-tagcloud { #poststuff .inside .the-tagcloud {
margin: 5px 0 10px; margin: 5px 0 10px;
padding: 8px; padding: 8px;
border: 1px solid #ddd; border: 1px solid #ddd;
@ -1427,11 +1427,11 @@ table.links-table {
/* one column on the post write/edit screen */ /* one column on the post write/edit screen */
@media only screen and (max-width: 850px) { @media only screen and (max-width: 850px) {
.poststuff { #poststuff {
min-width: 0; min-width: 0;
} }
#wpbody-content .poststuff #post-body { #wpbody-content #poststuff #post-body {
margin: 0; margin: 0;
} }
@ -1440,14 +1440,14 @@ table.links-table {
width: 100%; width: 100%;
} }
.poststuff #postbox-container-1 .empty-container, #poststuff #postbox-container-1 .empty-container,
.poststuff #postbox-container-1 #side-sortables:empty { #poststuff #postbox-container-1 #side-sortables:empty {
border: 0 none; border: 0 none;
height: 0; height: 0;
min-height: 0; min-height: 0;
} }
.poststuff #post-body.columns-2 #side-sortables { #poststuff #post-body.columns-2 #side-sortables {
min-height: 0; min-height: 0;
width: auto; width: auto;
} }
@ -1472,13 +1472,13 @@ table.links-table {
padding: 10px 10px; padding: 10px 10px;
} }
.poststuff .stuffbox .inside { #poststuff .stuffbox .inside {
padding: 0 0 4px 2px; padding: 0 0 4px 2px;
} }
.poststuff h3.hndle, /* Back-compat for pre-4.4 */ #poststuff h3.hndle, /* Back-compat for pre-4.4 */
.poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */ #poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */
.poststuff h2 { #poststuff h2 {
padding: 12px; padding: 12px;
} }

File diff suppressed because one or more lines are too long

View File

@ -1,17 +1,17 @@
.poststuff { #poststuff {
padding-top: 10px; padding-top: 10px;
min-width: 763px; min-width: 763px;
} }
.poststuff #post-body { #poststuff #post-body {
padding: 0; padding: 0;
} }
.poststuff .postbox-container { #poststuff .postbox-container {
width: 100%; width: 100%;
} }
.poststuff #post-body.columns-2 { #poststuff #post-body.columns-2 {
margin-right: 300px; margin-right: 300px;
} }
@ -51,7 +51,7 @@
margin: 0; margin: 0;
} }
.poststuff #titlewrap { #poststuff #titlewrap {
border: 0; border: 0;
padding: 0; padding: 0;
} }
@ -414,7 +414,7 @@ form#tags-filter {
padding-top: 20px; padding-top: 20px;
} }
.poststuff #post-body.columns-2 #side-sortables { #poststuff #post-body.columns-2 #side-sortables {
width: 280px; width: 280px;
} }
@ -605,38 +605,38 @@ form#tags-filter {
text-indent: 0; text-indent: 0;
} }
.poststuff h3.hndle, /* Back-compat for pre-4.4 */ #poststuff h3.hndle, /* Back-compat for pre-4.4 */
.poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */ #poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */
.poststuff h2 { #poststuff h2 {
font-size: 14px; font-size: 14px;
padding: 8px 12px; padding: 8px 12px;
margin: 0; margin: 0;
line-height: 1.4; line-height: 1.4;
} }
.poststuff .stuffbox h2 { #poststuff .stuffbox h2 {
padding: 8px 10px; padding: 8px 10px;
} }
.poststuff .stuffbox > h2 { #poststuff .stuffbox > h2 {
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;
} }
.poststuff .inside { #poststuff .inside {
margin: 6px 0 0 0; margin: 6px 0 0 0;
} }
.poststuff .stuffbox .inside { #poststuff .stuffbox .inside {
margin: 0; margin: 0;
} }
.poststuff .inside #parent_id, #poststuff .inside #parent_id,
.poststuff .inside #page_template { #poststuff .inside #page_template {
max-width: 100%; max-width: 100%;
} }
.ie8 .poststuff .inside #parent_id, .ie8 #poststuff .inside #parent_id,
.ie8 .poststuff .inside #page_template { .ie8 #poststuff .inside #page_template {
width: 250px; width: 250px;
} }
@ -656,7 +656,7 @@ form#tags-filter {
} }
#linksubmitdiv .inside, /* Old Link Manager back-compat. */ #linksubmitdiv .inside, /* Old Link Manager back-compat. */
.poststuff #submitdiv .inside { #poststuff #submitdiv .inside {
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
@ -1105,11 +1105,11 @@ p.description code {
13.0 - Tags 13.0 - Tags
------------------------------------------------------------------------------*/ ------------------------------------------------------------------------------*/
.poststuff .tagsdiv .ajaxtag { #poststuff .tagsdiv .ajaxtag {
margin-top: 1em; margin-top: 1em;
} }
.poststuff .tagsdiv .howto { #poststuff .tagsdiv .howto {
margin: 1em 0 6px 0; margin: 1em 0 6px 0;
} }
@ -1154,7 +1154,7 @@ p.popular-tags a {
margin: 2px 0 12px; margin: 2px 0 12px;
} }
.poststuff .inside .the-tagcloud { #poststuff .inside .the-tagcloud {
margin: 5px 0 10px; margin: 5px 0 10px;
padding: 8px; padding: 8px;
border: 1px solid #ddd; border: 1px solid #ddd;
@ -1426,11 +1426,11 @@ table.links-table {
/* one column on the post write/edit screen */ /* one column on the post write/edit screen */
@media only screen and (max-width: 850px) { @media only screen and (max-width: 850px) {
.poststuff { #poststuff {
min-width: 0; min-width: 0;
} }
#wpbody-content .poststuff #post-body { #wpbody-content #poststuff #post-body {
margin: 0; margin: 0;
} }
@ -1439,14 +1439,14 @@ table.links-table {
width: 100%; width: 100%;
} }
.poststuff #postbox-container-1 .empty-container, #poststuff #postbox-container-1 .empty-container,
.poststuff #postbox-container-1 #side-sortables:empty { #poststuff #postbox-container-1 #side-sortables:empty {
border: 0 none; border: 0 none;
height: 0; height: 0;
min-height: 0; min-height: 0;
} }
.poststuff #post-body.columns-2 #side-sortables { #poststuff #post-body.columns-2 #side-sortables {
min-height: 0; min-height: 0;
width: auto; width: auto;
} }
@ -1471,13 +1471,13 @@ table.links-table {
padding: 10px 10px; padding: 10px 10px;
} }
.poststuff .stuffbox .inside { #poststuff .stuffbox .inside {
padding: 0 2px 4px 0; padding: 0 2px 4px 0;
} }
.poststuff h3.hndle, /* Back-compat for pre-4.4 */ #poststuff h3.hndle, /* Back-compat for pre-4.4 */
.poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */ #poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */
.poststuff h2 { #poststuff h2 {
padding: 12px; padding: 12px;
} }

File diff suppressed because one or more lines are too long

View File

@ -14,7 +14,7 @@
width: 49.5%; 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-3,
#wpbody-content #dashboard-widgets #postbox-container-4 { #wpbody-content #dashboard-widgets #postbox-container-4 {
float: left; float: left;
@ -368,7 +368,7 @@ a.button.button-small {
#wrap, #wrap,
#postdivrich, #postdivrich,
#postdiv, #postdiv,
.poststuff, #poststuff,
.metabox-holder, .metabox-holder,
#titlediv, #titlediv,
#post-body, #post-body,
@ -415,12 +415,12 @@ form#template div {
padding: 0 4px; padding: 0 4px;
} }
.poststuff h2 { #poststuff h2 {
font-size: 1.6em; font-size: 1.6em;
} }
.poststuff .inside #parent_id, #poststuff .inside #parent_id,
.poststuff .inside #page_template, #poststuff .inside #page_template,
.inline-edit-row #post_parent, .inline-edit-row #post_parent,
.inline-edit-row select[name="page_template"] { .inline-edit-row select[name="page_template"] {
width: 250px; width: 250px;
@ -678,7 +678,7 @@ input[type="password"],
padding: 0; padding: 0;
} }
* html .poststuff h2 { * html #poststuff h2 {
margin-right: 0; margin-right: 0;
} }

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@
width: 49.5%; 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-3,
#wpbody-content #dashboard-widgets #postbox-container-4 { #wpbody-content #dashboard-widgets #postbox-container-4 {
float: right; float: right;
@ -367,7 +367,7 @@ a.button.button-small {
#wrap, #wrap,
#postdivrich, #postdivrich,
#postdiv, #postdiv,
.poststuff, #poststuff,
.metabox-holder, .metabox-holder,
#titlediv, #titlediv,
#post-body, #post-body,
@ -414,12 +414,12 @@ form#template div {
padding: 0 4px; padding: 0 4px;
} }
.poststuff h2 { #poststuff h2 {
font-size: 1.6em; font-size: 1.6em;
} }
.poststuff .inside #parent_id, #poststuff .inside #parent_id,
.poststuff .inside #page_template, #poststuff .inside #page_template,
.inline-edit-row #post_parent, .inline-edit-row #post_parent,
.inline-edit-row select[name="page_template"] { .inline-edit-row select[name="page_template"] {
width: 250px; width: 250px;
@ -677,7 +677,7 @@ input[type="password"],
padding: 0; padding: 0;
} }
* html .poststuff h2 { * html #poststuff h2 {
margin-left: 0; margin-left: 0;
} }

File diff suppressed because one or more lines are too long

View File

@ -1034,7 +1034,7 @@ border color while dragging a file over the uploader drop area */
display: block; display: block;
} }
.poststuff .imgedit-group-top h2 { #poststuff .imgedit-group-top h2 {
display: inline-block; display: inline-block;
margin: 0; margin: 0;
padding: 0; padding: 0;
@ -1042,7 +1042,7 @@ border color while dragging a file over the uploader drop area */
line-height: 1.4; line-height: 1.4;
} }
.poststuff .imgedit-group-top .button-link { #poststuff .imgedit-group-top .button-link {
text-decoration: none; text-decoration: none;
color: #23282d; color: #23282d;
} }

File diff suppressed because one or more lines are too long

View File

@ -1033,7 +1033,7 @@ border color while dragging a file over the uploader drop area */
display: block; display: block;
} }
.poststuff .imgedit-group-top h2 { #poststuff .imgedit-group-top h2 {
display: inline-block; display: inline-block;
margin: 0; margin: 0;
padding: 0; padding: 0;
@ -1041,7 +1041,7 @@ border color while dragging a file over the uploader drop area */
line-height: 1.4; line-height: 1.4;
} }
.poststuff .imgedit-group-top .button-link { #poststuff .imgedit-group-top .button-link {
text-decoration: none; text-decoration: none;
color: #23282d; color: #23282d;
} }

File diff suppressed because one or more lines are too long

View File

@ -494,7 +494,7 @@ wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
do_action( 'edit_form_top', $post ); do_action( 'edit_form_top', $post );
?> ?>
<div class="poststuff"> <div id="poststuff">
<div id="post-body" class="metabox-holder columns-<?php echo 1 == get_current_screen()->get_columns() ? '1' : '2'; ?>"> <div id="post-body" class="metabox-holder columns-<?php echo 1 == get_current_screen()->get_columns() ? '1' : '2'; ?>">
<div id="post-body-content"> <div id="post-body-content">
@ -671,7 +671,7 @@ do_meta_boxes( $post_type, 'side', $post );
?> ?>
</div> </div>
<div class="postbox-container-2 postbox-container"> <div id="postbox-container-2" class="postbox-container">
<?php <?php
do_meta_boxes( null, 'normal', $post ); do_meta_boxes( null, 'normal', $post );

View File

@ -16,7 +16,7 @@ if ( ! defined( 'ABSPATH' ) ) {
<div class="wrap"> <div class="wrap">
<h1><?php _e( 'Edit Comment' ); ?></h1> <h1><?php _e( 'Edit Comment' ); ?></h1>
<div class="poststuff"> <div id="poststuff">
<input type="hidden" name="action" value="editedcomment" /> <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_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 ); ?>" /> <input type="hidden" name="comment_post_ID" value="<?php echo esc_attr( $comment->comment_post_ID ); ?>" />
@ -214,7 +214,7 @@ endif;
</div><!-- /submitdiv --> </div><!-- /submitdiv -->
</div> </div>
<div class="postbox-container-2 postbox-container"> <div id="postbox-container-2" class="postbox-container">
<?php <?php
/** This action is documented in wp-admin/includes/meta-boxes.php */ /** This action is documented in wp-admin/includes/meta-boxes.php */
do_action( 'add_meta_boxes', 'comment', $comment ); do_action( 'add_meta_boxes', 'comment', $comment );

View File

@ -106,7 +106,7 @@ wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false );
?> ?>
<div class="poststuff"> <div id="poststuff">
<div id="post-body" class="metabox-holder columns-<?php echo 1 == get_current_screen()->get_columns() ? '1' : '2'; ?>"> <div id="post-body" class="metabox-holder columns-<?php echo 1 == get_current_screen()->get_columns() ? '1' : '2'; ?>">
<div id="post-body-content"> <div id="post-body-content">
@ -144,7 +144,7 @@ $side_meta_boxes = do_meta_boxes( 'link', 'side', $link );
?> ?>
</div> </div>
<div class="postbox-container-2 postbox-container"> <div id="postbox-container-2" class="postbox-container">
<?php <?php
do_meta_boxes( null, 'normal', $link ); do_meta_boxes( null, 'normal', $link );

View File

@ -245,7 +245,7 @@ function wp_dashboard() {
<div id="postbox-container-1" class="postbox-container"> <div id="postbox-container-1" class="postbox-container">
<?php do_meta_boxes( $screen->id, 'normal', '' ); ?> <?php do_meta_boxes( $screen->id, 'normal', '' ); ?>
</div> </div>
<div class="postbox-container-2 postbox-container"> <div id="postbox-container-2" class="postbox-container">
<?php do_meta_boxes( $screen->id, 'side', '' ); ?> <?php do_meta_boxes( $screen->id, 'side', '' ); ?>
</div> </div>
<div id="postbox-container-3" class="postbox-container"> <div id="postbox-container-3" class="postbox-container">

View File

@ -2275,8 +2275,8 @@ function the_block_editor_meta_boxes() {
</form> </form>
<?php foreach ( $locations as $location ) : ?> <?php foreach ( $locations as $location ) : ?>
<form class="metabox-location-<?php echo esc_attr( $location ); ?>" onsubmit="return false;"> <form class="metabox-location-<?php echo esc_attr( $location ); ?>" onsubmit="return false;">
<div class="poststuff" class="sidebar-open"> <div id="poststuff" class="sidebar-open">
<div class="postbox-container-2 postbox-container"> <div id="postbox-container-2" class="postbox-container">
<?php <?php
do_meta_boxes( do_meta_boxes(
$current_screen, $current_screen,

View File

@ -421,7 +421,7 @@
break; break;
case 0: case 0:
case 180: case 180:
if ( $( '.poststuff' ).length ) { if ( $( '#poststuff' ).length ) {
this._pb_edit(1); this._pb_edit(1);
} else { } else {
if ( !check.length || !check.is(':checked') ) if ( !check.length || !check.is(':checked') )

View File

@ -1,2 +1,2 @@
/*! This file is auto-generated */ /*! 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);

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.4-beta3-47409'; $wp_version = '5.4-beta3-47410';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.