Compare commits

..

1 Commits

Author SHA1 Message Date
Sergey Biryukov
058f990367 Tag 5.7
Built from https://develop.svn.wordpress.org/tags/5.7@50514


git-svn-id: http://core.svn.wordpress.org/tags/5.7@50127 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-09 20:18:09 +00:00
351 changed files with 80703 additions and 84631 deletions

View File

@@ -23,7 +23,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<div class="about__header">
<div class="about__header-image">
<img alt="<?php _e( 'Code is Poetry' ); ?>" src="<?php echo admin_url( 'images/about-badge.svg' ); ?>" />
<img alt="<?php _e( 'Code is Poetry' ); ?>" src="images/about-badge.svg" />
</div>
<div class="about__header-title">
@@ -64,234 +64,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
</div>
</div>
<hr />
<div class="about__section changelog">
<div class="column has-border has-subtle-background-color">
<h2 class="is-smaller-heading"><?php _e( 'Maintenance and Security Releases' ); ?></h2>
<p>
<?php
printf(
/* translators: %s: WordPress version number. */
__( '<strong>Version %s</strong> addressed some security issues.' ),
'5.7.10'
);
?>
<?php
printf(
/* translators: %s: HelpHub URL. */
__( 'For more information, see <a href="%s">the release notes</a>.' ),
sprintf(
/* translators: %s: WordPress version. */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
sanitize_title( '5.7.10' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: %s: WordPress version number. */
__( '<strong>Version %s</strong> addressed some security issues.' ),
'5.7.9'
);
?>
<?php
printf(
/* translators: %s: HelpHub URL. */
__( 'For more information, see <a href="%s">the release notes</a>.' ),
sprintf(
/* translators: %s: WordPress version. */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
sanitize_title( '5.7.9' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: %s: WordPress version number. */
__( '<strong>Version %s</strong> addressed some security issues.' ),
'5.7.8'
);
?>
<?php
printf(
/* translators: %s: HelpHub URL. */
__( 'For more information, see <a href="%s">the release notes</a>.' ),
sprintf(
/* translators: %s: WordPress version. */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
sanitize_title( '5.7.8' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: %s: WordPress version number. */
__( '<strong>Version %s</strong> addressed some security issues.' ),
'5.7.7'
);
?>
<?php
printf(
/* translators: %s: HelpHub URL. */
__( 'For more information, see <a href="%s">the release notes</a>.' ),
sprintf(
/* translators: %s: WordPress version. */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
sanitize_title( '5.7.7' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: %s: WordPress version number. */
__( '<strong>Version %s</strong> addressed some security issues.' ),
'5.7.6'
);
?>
<?php
printf(
/* translators: %s: HelpHub URL. */
__( 'For more information, see <a href="%s">the release notes</a>.' ),
sprintf(
/* translators: %s: WordPress version. */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
sanitize_title( '5.7.6' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: %s: WordPress version number. */
__( '<strong>Version %s</strong> addressed some security issues.' ),
'5.7.5'
);
?>
<?php
printf(
/* translators: %s: HelpHub URL. */
__( 'For more information, see <a href="%s">the release notes</a>.' ),
sprintf(
/* translators: %s: WordPress version. */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
sanitize_title( '5.7.5' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: %s: WordPress version number. */
__( '<strong>Version %s</strong> addressed one security issue.' ),
'5.7.4'
);
?>
<?php
printf(
/* translators: %s: HelpHub URL. */
__( 'For more information, see <a href="%s">the release notes</a>.' ),
sprintf(
/* translators: %s: WordPress version. */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
sanitize_title( '5.7.4' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: 1: WordPress version number, 2: Plural number of bugs. More than one security issue. */
_n(
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.',
5
),
'5.7.3',
number_format_i18n( 5 )
);
?>
<?php
printf(
/* translators: %s: HelpHub URL. */
__( 'For more information, see <a href="%s">the release notes</a>.' ),
sprintf(
/* translators: %s: WordPress version. */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
sanitize_title( '5.7.3' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: %s: WordPress version number. */
__( '<strong>Version %s</strong> addressed one security issue.' ),
'5.7.2'
);
?>
<?php
printf(
/* translators: %s: HelpHub URL. */
__( 'For more information, see <a href="%s">the release notes</a>.' ),
sprintf(
/* translators: %s: WordPress version. */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
sanitize_title( '5.7.2' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: 1: WordPress version number, 2: Plural number of bugs. More than one security issue. */
_n(
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.',
26
),
'5.7.1',
number_format_i18n( 26 )
);
?>
<?php
printf(
/* translators: %s: HelpHub URL. */
__( 'For more information, see <a href="%s">the release notes</a>.' ),
sprintf(
/* translators: %s: WordPress version. */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
sanitize_title( '5.7.1' )
)
);
?>
</p>
</div>
</div>
<hr />
<hr class="is-large" />
<div class="about__section has-2-columns">
<h2 class="is-section-header is-smaller-heading">
@@ -317,7 +90,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<div class="column about__image">
<video controls>
<source src="https://s.w.org/images/core/5.7/about-57-drag-drop-image.mp4" type="video/mp4" />
<source src="https://s.w.org/images/core/5.7/about-57-drag-drop-image.webm" type="video/webm" />
<source src="https://s.w.org/images/core/5.7/about-57-drag-drop-image.mp4" type="video/webm" />
</video>
</div>
</div>
@@ -406,8 +179,8 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<div class="about__section has-subtle-background-color">
<div class="column about__image">
<picture>
<source media="(max-width: 600px)" srcset="<?php echo admin_url( 'images/about-color-palette-vert.svg' ); ?>" />
<img alt="" src="<?php echo admin_url( 'images/about-color-palette.svg' ); ?>" />
<source media="(max-width: 600px)" srcset="images/about-color-palette-vert.svg" />
<img alt="" src="images/about-color-palette.svg" />
</picture>
</div>
</div>
@@ -466,7 +239,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>
<script>
window.addEventListener( 'load', function() {
wp.domReady( function() {
var createElement = wp.element.createElement;
var Fragment = wp.element.Fragment;
var render = wp.element.render;
@@ -581,15 +354,3 @@ _n_noop(
/* translators: %s: Documentation URL. */
__( 'For more information, see <a href="%s">the release notes</a>.' );
/* translators: 1: WordPress version number, 2: Link to update WordPress */
__( 'Important! Your version of WordPress (%1$s) is no longer supported, you will not receive any security updates for your website. To keep your site secure, please <a href="%2$s">update to the latest version of WordPress</a>.' );
/* translators: 1: WordPress version number, 2: Link to update WordPress */
__( 'Important! Your version of WordPress (%1$s) will stop receiving security updates in the near future. To keep your site secure, please <a href="%2$s">update to the latest version of WordPress</a>.' );
/* translators: %s: The major version of WordPress for this branch. */
__( 'This is the final release of WordPress %s' );
/* translators: The localized WordPress download URL. */
__( 'https://wordpress.org/download/' );

View File

@@ -22,7 +22,7 @@ $credits = wp_credits();
<div class="about__header">
<div class="about__header-image">
<img alt="<?php _e( 'Code is Poetry' ); ?>" src="<?php echo admin_url( 'images/about-badge.svg' ); ?>" />
<img alt="<?php _e( 'Code is Poetry' ); ?>" src="images/about-badge.svg" />
</div>
<div class="about__header-container">

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -103,16 +103,16 @@
}
.wp-color-picker::-webkit-input-placeholder {
color: #646970;
color: #787c82;
}
.wp-color-picker::-moz-placeholder {
color: #646970;
color: #787c82;
opacity: 1;
}
.wp-color-picker:-ms-input-placeholder {
color: #646970;
color: #787c82;
}
.wp-picker-container input[type="text"].iris-error {

View File

@@ -1,2 +1,2 @@
/*! This file is auto-generated */
.wp-color-picker{width:80px;direction:ltr}.wp-picker-container .hidden{display:none}.wp-picker-container .wp-color-result.button{min-height:30px;margin:0 0 6px 6px;padding:0 30px 0 0;font-size:11px}.wp-color-result-text{background:#f6f7f7;border-radius:2px 0 0 2px;border-right:1px solid #c3c4c7;color:#50575e;display:block;line-height:2.54545455;padding:0 6px;text-align:center}.wp-color-result:focus,.wp-color-result:hover{background:#f6f7f7;border-color:#8c8f94;color:#1d2327}.wp-color-result:focus:after,.wp-color-result:hover:after{color:#1d2327;border-color:#a7aaad;border-right:1px solid #8c8f94}.wp-picker-container{display:inline-block}.wp-color-result:focus{border-color:#4f94d4;box-shadow:0 0 3px rgba(34,113,177,.8)}.wp-color-result:active{transform:none!important}.wp-picker-open+.wp-picker-input-wrap{display:inline-block;vertical-align:top}.wp-picker-input-wrap label{display:inline-block;vertical-align:top}.form-table .wp-picker-input-wrap label{margin:0!important}.wp-customizer .wp-picker-input-wrap .button.wp-picker-clear,.wp-customizer .wp-picker-input-wrap .button.wp-picker-default,.wp-picker-input-wrap .button.wp-picker-clear,.wp-picker-input-wrap .button.wp-picker-default{margin-right:6px;padding:0 8px;line-height:2.54545455;min-height:30px}.wp-picker-container .iris-square-slider .ui-slider-handle:focus{background-color:#50575e}.wp-picker-container .iris-picker{border-radius:0;border-color:#dcdcde;margin-top:6px}.wp-picker-container input[type=text].wp-color-picker{width:4rem;font-size:12px;font-family:monospace;line-height:2.33333333;margin:0;padding:0 5px;vertical-align:top;min-height:30px}.wp-color-picker::-webkit-input-placeholder{color:#646970}.wp-color-picker::-moz-placeholder{color:#646970;opacity:1}.wp-color-picker:-ms-input-placeholder{color:#646970}.wp-picker-container input[type=text].iris-error{background-color:#fcf0f1;border-color:#d63638;color:#000}.iris-picker .iris-strip .ui-slider-handle:focus,.iris-picker .ui-square-handle:focus{border-color:#3582c4;border-style:solid;box-shadow:0 0 0 1px #3582c4;outline:2px solid transparent}.iris-picker .iris-palette:focus{box-shadow:0 0 0 2px #3582c4}@media screen and (max-width:782px){.wp-picker-container input[type=text].wp-color-picker{width:5rem;font-size:16px;line-height:1.875;min-height:32px}.wp-customizer .wp-picker-container input[type=text].wp-color-picker{padding:0 5px}.wp-picker-input-wrap .button.wp-picker-clear,.wp-picker-input-wrap .button.wp-picker-default{padding:0 8px;line-height:2.14285714;min-height:32px}.wp-customizer .wp-picker-input-wrap .button.wp-picker-clear,.wp-customizer .wp-picker-input-wrap .button.wp-picker-default{padding:0 8px;font-size:14px;line-height:2.14285714;min-height:32px}.wp-picker-container .wp-color-result.button{padding:0 40px 0 0;font-size:14px;line-height:2.14285714}.wp-customizer .wp-picker-container .wp-color-result.button{font-size:14px;line-height:2.14285714}.wp-picker-container .wp-color-result-text{padding:0 14px;font-size:inherit;line-height:inherit}.wp-customizer .wp-picker-container .wp-color-result-text{padding:0 10px}}
.wp-color-picker{width:80px;direction:ltr}.wp-picker-container .hidden{display:none}.wp-picker-container .wp-color-result.button{min-height:30px;margin:0 0 6px 6px;padding:0 30px 0 0;font-size:11px}.wp-color-result-text{background:#f6f7f7;border-radius:2px 0 0 2px;border-right:1px solid #c3c4c7;color:#50575e;display:block;line-height:2.54545455;padding:0 6px;text-align:center}.wp-color-result:focus,.wp-color-result:hover{background:#f6f7f7;border-color:#8c8f94;color:#1d2327}.wp-color-result:focus:after,.wp-color-result:hover:after{color:#1d2327;border-color:#a7aaad;border-right:1px solid #8c8f94}.wp-picker-container{display:inline-block}.wp-color-result:focus{border-color:#4f94d4;box-shadow:0 0 3px rgba(34,113,177,.8)}.wp-color-result:active{transform:none!important}.wp-picker-open+.wp-picker-input-wrap{display:inline-block;vertical-align:top}.wp-picker-input-wrap label{display:inline-block;vertical-align:top}.form-table .wp-picker-input-wrap label{margin:0!important}.wp-customizer .wp-picker-input-wrap .button.wp-picker-clear,.wp-customizer .wp-picker-input-wrap .button.wp-picker-default,.wp-picker-input-wrap .button.wp-picker-clear,.wp-picker-input-wrap .button.wp-picker-default{margin-right:6px;padding:0 8px;line-height:2.54545455;min-height:30px}.wp-picker-container .iris-square-slider .ui-slider-handle:focus{background-color:#50575e}.wp-picker-container .iris-picker{border-radius:0;border-color:#dcdcde;margin-top:6px}.wp-picker-container input[type=text].wp-color-picker{width:4rem;font-size:12px;font-family:monospace;line-height:2.33333333;margin:0;padding:0 5px;vertical-align:top;min-height:30px}.wp-color-picker::-webkit-input-placeholder{color:#787c82}.wp-color-picker::-moz-placeholder{color:#787c82;opacity:1}.wp-color-picker:-ms-input-placeholder{color:#787c82}.wp-picker-container input[type=text].iris-error{background-color:#fcf0f1;border-color:#d63638;color:#000}.iris-picker .iris-strip .ui-slider-handle:focus,.iris-picker .ui-square-handle:focus{border-color:#3582c4;border-style:solid;box-shadow:0 0 0 1px #3582c4;outline:2px solid transparent}.iris-picker .iris-palette:focus{box-shadow:0 0 0 2px #3582c4}@media screen and (max-width:782px){.wp-picker-container input[type=text].wp-color-picker{width:5rem;font-size:16px;line-height:1.875;min-height:32px}.wp-customizer .wp-picker-container input[type=text].wp-color-picker{padding:0 5px}.wp-picker-input-wrap .button.wp-picker-clear,.wp-picker-input-wrap .button.wp-picker-default{padding:0 8px;line-height:2.14285714;min-height:32px}.wp-customizer .wp-picker-input-wrap .button.wp-picker-clear,.wp-customizer .wp-picker-input-wrap .button.wp-picker-default{padding:0 8px;font-size:14px;line-height:2.14285714;min-height:32px}.wp-picker-container .wp-color-result.button{padding:0 40px 0 0;font-size:14px;line-height:2.14285714}.wp-customizer .wp-picker-container .wp-color-result.button{font-size:14px;line-height:2.14285714}.wp-picker-container .wp-color-result-text{padding:0 14px;font-size:inherit;line-height:inherit}.wp-customizer .wp-picker-container .wp-color-result-text{padding:0 10px}}

View File

@@ -102,16 +102,16 @@
}
.wp-color-picker::-webkit-input-placeholder {
color: #646970;
color: #787c82;
}
.wp-color-picker::-moz-placeholder {
color: #646970;
color: #787c82;
opacity: 1;
}
.wp-color-picker:-ms-input-placeholder {
color: #646970;
color: #787c82;
}
.wp-picker-container input[type="text"].iris-error {

View File

@@ -1,2 +1,2 @@
/*! This file is auto-generated */
.wp-color-picker{width:80px;direction:ltr}.wp-picker-container .hidden{display:none}.wp-picker-container .wp-color-result.button{min-height:30px;margin:0 6px 6px 0;padding:0 0 0 30px;font-size:11px}.wp-color-result-text{background:#f6f7f7;border-radius:0 2px 2px 0;border-left:1px solid #c3c4c7;color:#50575e;display:block;line-height:2.54545455;padding:0 6px;text-align:center}.wp-color-result:focus,.wp-color-result:hover{background:#f6f7f7;border-color:#8c8f94;color:#1d2327}.wp-color-result:focus:after,.wp-color-result:hover:after{color:#1d2327;border-color:#a7aaad;border-left:1px solid #8c8f94}.wp-picker-container{display:inline-block}.wp-color-result:focus{border-color:#4f94d4;box-shadow:0 0 3px rgba(34,113,177,.8)}.wp-color-result:active{transform:none!important}.wp-picker-open+.wp-picker-input-wrap{display:inline-block;vertical-align:top}.wp-picker-input-wrap label{display:inline-block;vertical-align:top}.form-table .wp-picker-input-wrap label{margin:0!important}.wp-customizer .wp-picker-input-wrap .button.wp-picker-clear,.wp-customizer .wp-picker-input-wrap .button.wp-picker-default,.wp-picker-input-wrap .button.wp-picker-clear,.wp-picker-input-wrap .button.wp-picker-default{margin-left:6px;padding:0 8px;line-height:2.54545455;min-height:30px}.wp-picker-container .iris-square-slider .ui-slider-handle:focus{background-color:#50575e}.wp-picker-container .iris-picker{border-radius:0;border-color:#dcdcde;margin-top:6px}.wp-picker-container input[type=text].wp-color-picker{width:4rem;font-size:12px;font-family:monospace;line-height:2.33333333;margin:0;padding:0 5px;vertical-align:top;min-height:30px}.wp-color-picker::-webkit-input-placeholder{color:#646970}.wp-color-picker::-moz-placeholder{color:#646970;opacity:1}.wp-color-picker:-ms-input-placeholder{color:#646970}.wp-picker-container input[type=text].iris-error{background-color:#fcf0f1;border-color:#d63638;color:#000}.iris-picker .iris-strip .ui-slider-handle:focus,.iris-picker .ui-square-handle:focus{border-color:#3582c4;border-style:solid;box-shadow:0 0 0 1px #3582c4;outline:2px solid transparent}.iris-picker .iris-palette:focus{box-shadow:0 0 0 2px #3582c4}@media screen and (max-width:782px){.wp-picker-container input[type=text].wp-color-picker{width:5rem;font-size:16px;line-height:1.875;min-height:32px}.wp-customizer .wp-picker-container input[type=text].wp-color-picker{padding:0 5px}.wp-picker-input-wrap .button.wp-picker-clear,.wp-picker-input-wrap .button.wp-picker-default{padding:0 8px;line-height:2.14285714;min-height:32px}.wp-customizer .wp-picker-input-wrap .button.wp-picker-clear,.wp-customizer .wp-picker-input-wrap .button.wp-picker-default{padding:0 8px;font-size:14px;line-height:2.14285714;min-height:32px}.wp-picker-container .wp-color-result.button{padding:0 0 0 40px;font-size:14px;line-height:2.14285714}.wp-customizer .wp-picker-container .wp-color-result.button{font-size:14px;line-height:2.14285714}.wp-picker-container .wp-color-result-text{padding:0 14px;font-size:inherit;line-height:inherit}.wp-customizer .wp-picker-container .wp-color-result-text{padding:0 10px}}
.wp-color-picker{width:80px;direction:ltr}.wp-picker-container .hidden{display:none}.wp-picker-container .wp-color-result.button{min-height:30px;margin:0 6px 6px 0;padding:0 0 0 30px;font-size:11px}.wp-color-result-text{background:#f6f7f7;border-radius:0 2px 2px 0;border-left:1px solid #c3c4c7;color:#50575e;display:block;line-height:2.54545455;padding:0 6px;text-align:center}.wp-color-result:focus,.wp-color-result:hover{background:#f6f7f7;border-color:#8c8f94;color:#1d2327}.wp-color-result:focus:after,.wp-color-result:hover:after{color:#1d2327;border-color:#a7aaad;border-left:1px solid #8c8f94}.wp-picker-container{display:inline-block}.wp-color-result:focus{border-color:#4f94d4;box-shadow:0 0 3px rgba(34,113,177,.8)}.wp-color-result:active{transform:none!important}.wp-picker-open+.wp-picker-input-wrap{display:inline-block;vertical-align:top}.wp-picker-input-wrap label{display:inline-block;vertical-align:top}.form-table .wp-picker-input-wrap label{margin:0!important}.wp-customizer .wp-picker-input-wrap .button.wp-picker-clear,.wp-customizer .wp-picker-input-wrap .button.wp-picker-default,.wp-picker-input-wrap .button.wp-picker-clear,.wp-picker-input-wrap .button.wp-picker-default{margin-left:6px;padding:0 8px;line-height:2.54545455;min-height:30px}.wp-picker-container .iris-square-slider .ui-slider-handle:focus{background-color:#50575e}.wp-picker-container .iris-picker{border-radius:0;border-color:#dcdcde;margin-top:6px}.wp-picker-container input[type=text].wp-color-picker{width:4rem;font-size:12px;font-family:monospace;line-height:2.33333333;margin:0;padding:0 5px;vertical-align:top;min-height:30px}.wp-color-picker::-webkit-input-placeholder{color:#787c82}.wp-color-picker::-moz-placeholder{color:#787c82;opacity:1}.wp-color-picker:-ms-input-placeholder{color:#787c82}.wp-picker-container input[type=text].iris-error{background-color:#fcf0f1;border-color:#d63638;color:#000}.iris-picker .iris-strip .ui-slider-handle:focus,.iris-picker .ui-square-handle:focus{border-color:#3582c4;border-style:solid;box-shadow:0 0 0 1px #3582c4;outline:2px solid transparent}.iris-picker .iris-palette:focus{box-shadow:0 0 0 2px #3582c4}@media screen and (max-width:782px){.wp-picker-container input[type=text].wp-color-picker{width:5rem;font-size:16px;line-height:1.875;min-height:32px}.wp-customizer .wp-picker-container input[type=text].wp-color-picker{padding:0 5px}.wp-picker-input-wrap .button.wp-picker-clear,.wp-picker-input-wrap .button.wp-picker-default{padding:0 8px;line-height:2.14285714;min-height:32px}.wp-customizer .wp-picker-input-wrap .button.wp-picker-clear,.wp-customizer .wp-picker-input-wrap .button.wp-picker-default{padding:0 8px;font-size:14px;line-height:2.14285714;min-height:32px}.wp-picker-container .wp-color-result.button{padding:0 0 0 40px;font-size:14px;line-height:2.14285714}.wp-customizer .wp-picker-container .wp-color-result.button{font-size:14px;line-height:2.14285714}.wp-picker-container .wp-color-result-text{padding:0 14px;font-size:inherit;line-height:inherit}.wp-customizer .wp-picker-container .wp-color-result-text{padding:0 10px}}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1021,7 +1021,7 @@ th.action-links {
top: -1px;
padding: 4px 10px;
border-radius: 30px;
background: #646970;
background: #787c82;
color: #fff;
font-size: 14px;
font-weight: 600;
@@ -1119,7 +1119,7 @@ th.action-links {
.wp-filter .drawer-toggle:before {
content: "\f111";
margin: 0 0 0 5px;
color: #646970;
color: #787c82;
font: normal 16px/1 dashicons;
vertical-align: text-bottom;
-webkit-font-smoothing: antialiased;
@@ -1174,13 +1174,13 @@ th.action-links {
.show-filters .wp-filter .button.drawer-toggle {
border-radius: 2px;
background: #646970;
background: #787c82;
color: #fff;
}
.show-filters .wp-filter .drawer-toggle:hover,
.show-filters .wp-filter .drawer-toggle:focus {
background: #2271b1;
background: #72aee6;
}
.show-filters .wp-filter .drawer-toggle:before {

File diff suppressed because one or more lines are too long

View File

@@ -1020,7 +1020,7 @@ th.action-links {
top: -1px;
padding: 4px 10px;
border-radius: 30px;
background: #646970;
background: #787c82;
color: #fff;
font-size: 14px;
font-weight: 600;
@@ -1118,7 +1118,7 @@ th.action-links {
.wp-filter .drawer-toggle:before {
content: "\f111";
margin: 0 5px 0 0;
color: #646970;
color: #787c82;
font: normal 16px/1 dashicons;
vertical-align: text-bottom;
-webkit-font-smoothing: antialiased;
@@ -1173,13 +1173,13 @@ th.action-links {
.show-filters .wp-filter .button.drawer-toggle {
border-radius: 2px;
background: #646970;
background: #787c82;
color: #fff;
}
.show-filters .wp-filter .drawer-toggle:hover,
.show-filters .wp-filter .drawer-toggle:focus {
background: #2271b1;
background: #72aee6;
}
.show-filters .wp-filter .drawer-toggle:before {

File diff suppressed because one or more lines are too long

View File

@@ -2604,7 +2604,7 @@ body.adding-widget .add-new-widget:before,
height: 30px;
line-height: 2.1;
text-align: center;
color: #646970;
color: #787c82;
}
#available-widgets-filter .clear-results,
@@ -2672,7 +2672,7 @@ body.adding-widget .add-new-widget:before,
top: 7px;
right: 26px;
z-index: 1;
color: #646970;
color: #787c82;
height: 30px;
width: 30px;
line-height: 2;

File diff suppressed because one or more lines are too long

View File

@@ -2603,7 +2603,7 @@ body.adding-widget .add-new-widget:before,
height: 30px;
line-height: 2.1;
text-align: center;
color: #646970;
color: #787c82;
}
#available-widgets-filter .clear-results,
@@ -2671,7 +2671,7 @@ body.adding-widget .add-new-widget:before,
top: 7px;
left: 26px;
z-index: 1;
color: #646970;
color: #787c82;
height: 30px;
width: 30px;
line-height: 2;

File diff suppressed because one or more lines are too long

View File

@@ -138,7 +138,7 @@
#customize-theme-controls .move-widget-area {
display: none;
background: #fff;
border: 1px solid #c3c4c7;
border: 1px solid #dcdcde;
border-top: none;
cursor: auto;
}
@@ -164,7 +164,7 @@
margin: 0;
padding: 13px 42px 15px 15px;
color: #50575e;
border-top: 1px solid #c3c4c7;
border-top: 1px solid #f0f0f1;
cursor: pointer;
-webkit-user-select: none;
-ms-user-select: none;
@@ -183,12 +183,13 @@
}
#customize-theme-controls .widget-area-select li:last-child {
border-bottom: 1px solid #c3c4c7;
border-bottom: 1px solid #f0f0f1;
}
#customize-theme-controls .widget-area-select .selected {
color: #fff;
background: #2271b1;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
background: #72aee6;
}
#customize-theme-controls .widget-area-select .selected:before {
@@ -261,7 +262,7 @@
#available-widgets .widget .widget-description {
padding: 0;
color: #646970;
color: #787c82;
}
#customize-preview {

File diff suppressed because one or more lines are too long

View File

@@ -137,7 +137,7 @@
#customize-theme-controls .move-widget-area {
display: none;
background: #fff;
border: 1px solid #c3c4c7;
border: 1px solid #dcdcde;
border-top: none;
cursor: auto;
}
@@ -163,7 +163,7 @@
margin: 0;
padding: 13px 15px 15px 42px;
color: #50575e;
border-top: 1px solid #c3c4c7;
border-top: 1px solid #f0f0f1;
cursor: pointer;
-webkit-user-select: none;
-ms-user-select: none;
@@ -182,12 +182,13 @@
}
#customize-theme-controls .widget-area-select li:last-child {
border-bottom: 1px solid #c3c4c7;
border-bottom: 1px solid #f0f0f1;
}
#customize-theme-controls .widget-area-select .selected {
color: #fff;
background: #2271b1;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
background: #72aee6;
}
#customize-theme-controls .widget-area-select .selected:before {
@@ -260,7 +261,7 @@
#available-widgets .widget .widget-description {
padding: 0;
color: #646970;
color: #787c82;
}
#customize-preview {

File diff suppressed because one or more lines are too long

View File

@@ -141,7 +141,7 @@
}
.welcome-panel p {
color: #646970;
color: #787c82;
}
.welcome-panel li a {
@@ -513,7 +513,7 @@ body #dashboard-widgets .postbox form .submit {
}
.rssSummary {
color: #646970;
color: #787c82;
margin-top: 4px;
}
@@ -533,7 +533,7 @@ body #dashboard-widgets .postbox form .submit {
#dashboard_primary .rss-widget span,
#dashboard_primary .rss-widget span.rss-date {
color: #646970;
color: #787c82;
}
#dashboard_primary .rss-widget span.rss-date {
@@ -694,7 +694,7 @@ body #dashboard-widgets .postbox form .submit {
margin-bottom: 1em;
}
#dashboard_quick_press .drafts li time {
color: #646970;
color: #787c82;
}
#dashboard_quick_press .drafts p {
@@ -757,7 +757,7 @@ body #dashboard-widgets .postbox form .submit {
}
#dashboard_activity .no-activity p {
color: #646970;
color: #787c82;
font-size: 16px;
}
@@ -770,7 +770,7 @@ body #dashboard-widgets .postbox form .submit {
#dashboard_activity .subsubsub a .count,
#dashboard_activity .subsubsub a.current .count {
color: #646970; /* white background on the dashboard but #f0f0f1 on list tables */
color: #787c82; /* white background on the dashboard but #f1f1f1 on list tables */
}
#future-posts ul,
@@ -789,7 +789,7 @@ body #dashboard-widgets .postbox form .submit {
display: inline-block;
margin-left: 5px;
min-width: 150px;
color: #646970;
color: #787c82;
}
.activity-block {
@@ -996,7 +996,7 @@ a.rsswidget {
}
.rss-widget span.rss-date {
color: #646970;
color: #787c82;
font-size: 13px;
margin-right: 3px;
}

File diff suppressed because one or more lines are too long

View File

@@ -140,7 +140,7 @@
}
.welcome-panel p {
color: #646970;
color: #787c82;
}
.welcome-panel li a {
@@ -512,7 +512,7 @@ body #dashboard-widgets .postbox form .submit {
}
.rssSummary {
color: #646970;
color: #787c82;
margin-top: 4px;
}
@@ -532,7 +532,7 @@ body #dashboard-widgets .postbox form .submit {
#dashboard_primary .rss-widget span,
#dashboard_primary .rss-widget span.rss-date {
color: #646970;
color: #787c82;
}
#dashboard_primary .rss-widget span.rss-date {
@@ -693,7 +693,7 @@ body #dashboard-widgets .postbox form .submit {
margin-bottom: 1em;
}
#dashboard_quick_press .drafts li time {
color: #646970;
color: #787c82;
}
#dashboard_quick_press .drafts p {
@@ -756,7 +756,7 @@ body #dashboard-widgets .postbox form .submit {
}
#dashboard_activity .no-activity p {
color: #646970;
color: #787c82;
font-size: 16px;
}
@@ -769,7 +769,7 @@ body #dashboard-widgets .postbox form .submit {
#dashboard_activity .subsubsub a .count,
#dashboard_activity .subsubsub a.current .count {
color: #646970; /* white background on the dashboard but #f0f0f1 on list tables */
color: #787c82; /* white background on the dashboard but #f1f1f1 on list tables */
}
#future-posts ul,
@@ -788,7 +788,7 @@ body #dashboard-widgets .postbox form .submit {
display: inline-block;
margin-right: 5px;
min-width: 150px;
color: #646970;
color: #787c82;
}
.activity-block {
@@ -995,7 +995,7 @@ a.rsswidget {
}
.rss-widget span.rss-date {
color: #646970;
color: #787c82;
font-size: 13px;
margin-left: 3px;
}

File diff suppressed because one or more lines are too long

View File

@@ -71,7 +71,7 @@ div#media-upload-header {
.media-upload-form label.form-help,
td.help {
color: #646970;
color: #787c82;
}
form {

File diff suppressed because one or more lines are too long

View File

@@ -70,7 +70,7 @@ div#media-upload-header {
.media-upload-form label.form-help,
td.help {
color: #646970;
color: #787c82;
}
form {

File diff suppressed because one or more lines are too long

View File

@@ -69,7 +69,7 @@
}
#titlediv #title-prompt-text {
color: #646970;
color: #787c82;
position: absolute;
font-size: 1.7em;
padding: 10px;
@@ -964,11 +964,6 @@ form#tags-filter {
input#create-page {
margin-top: 10px;
}
.wp-core-ui button.privacy-text-copy {
white-space: normal;
line-height: 1.8;
}
}
@media only screen and (max-width: 1004px) {
@@ -1442,7 +1437,7 @@ p.popular-tags a {
content: "(" attr( href ) ")";
display: inline-block;
padding: 0 4px;
color: #646970;
color: #787c82;
font-size: 13px;
word-break: break-all;
}

File diff suppressed because one or more lines are too long

View File

@@ -68,7 +68,7 @@
}
#titlediv #title-prompt-text {
color: #646970;
color: #787c82;
position: absolute;
font-size: 1.7em;
padding: 10px;
@@ -963,11 +963,6 @@ form#tags-filter {
input#create-page {
margin-top: 10px;
}
.wp-core-ui button.privacy-text-copy {
white-space: normal;
line-height: 1.8;
}
}
@media only screen and (max-width: 1004px) {
@@ -1441,7 +1436,7 @@ p.popular-tags a {
content: "(" attr( href ) ")";
display: inline-block;
padding: 0 4px;
color: #646970;
color: #787c82;
font-size: 13px;
word-break: break-all;
}

File diff suppressed because one or more lines are too long

View File

@@ -227,16 +227,16 @@ textarea[readonly] {
}
::-webkit-input-placeholder {
color: #646970;
color: #787c82;
}
::-moz-placeholder {
color: #646970;
color: #787c82;
opacity: 1;
}
:-ms-input-placeholder {
color: #646970;
color: #787c82;
}
.form-invalid .form-required,
@@ -1318,7 +1318,7 @@ table.form-table td .updated p {
.status-label.status-request-pending {
font-weight: 400;
font-style: italic;
color: #646970;
color: #787c82;
}
.status-label.status-request-failed {

File diff suppressed because one or more lines are too long

View File

@@ -226,16 +226,16 @@ textarea[readonly] {
}
::-webkit-input-placeholder {
color: #646970;
color: #787c82;
}
::-moz-placeholder {
color: #646970;
color: #787c82;
opacity: 1;
}
:-ms-input-placeholder {
color: #646970;
color: #787c82;
}
.form-invalid .form-required,
@@ -1317,7 +1317,7 @@ table.form-table td .updated p {
.status-label.status-request-pending {
font-weight: 400;
font-style: italic;
color: #646970;
color: #787c82;
}
.status-label.status-request-failed {

File diff suppressed because one or more lines are too long

View File

@@ -56,7 +56,7 @@
min-width: 24px;
height: 2em;
border-radius: 5px;
background-color: #646970;
background-color: #787c82;
color: #fff;
font-size: 11px;
line-height: 1.90909090;
@@ -72,7 +72,7 @@
margin-right: 8px;
width: 0;
height: 0;
border-top: 5px solid #646970;
border-top: 5px solid #787c82;
border-left: 5px solid transparent;
}
@@ -1578,16 +1578,20 @@ div.action-links,
/* ms */
/* Background Color for Site Status */
.wp-list-table .site-deleted,
.wp-list-table tr.site-deleted,
.wp-list-table tr.site-deleted {
background: #ff8085;
}
.wp-list-table .site-spammed,
.wp-list-table tr.site-spammed {
background: #ffabaf;
}
.wp-list-table .site-archived,
.wp-list-table tr.site-archived {
background: #fcf0f1;
}
.wp-list-table .site-spammed,
.wp-list-table tr.site-spammed,
.wp-list-table .site-mature,
.wp-list-table tr.site-mature {
background: #fcf9e8;
background: #facfd2;
}
.sites.fixed .column-lastupdated,

File diff suppressed because one or more lines are too long

View File

@@ -55,7 +55,7 @@
min-width: 24px;
height: 2em;
border-radius: 5px;
background-color: #646970;
background-color: #787c82;
color: #fff;
font-size: 11px;
line-height: 1.90909090;
@@ -71,7 +71,7 @@
margin-left: 8px;
width: 0;
height: 0;
border-top: 5px solid #646970;
border-top: 5px solid #787c82;
border-right: 5px solid transparent;
}
@@ -1577,16 +1577,20 @@ div.action-links,
/* ms */
/* Background Color for Site Status */
.wp-list-table .site-deleted,
.wp-list-table tr.site-deleted,
.wp-list-table tr.site-deleted {
background: #ff8085;
}
.wp-list-table .site-spammed,
.wp-list-table tr.site-spammed {
background: #ffabaf;
}
.wp-list-table .site-archived,
.wp-list-table tr.site-archived {
background: #fcf0f1;
}
.wp-list-table .site-spammed,
.wp-list-table tr.site-spammed,
.wp-list-table .site-mature,
.wp-list-table tr.site-mature {
background: #fcf9e8;
background: #facfd2;
}
.sites.fixed .column-lastupdated,

File diff suppressed because one or more lines are too long

View File

@@ -132,7 +132,7 @@ p {
.login form {
margin-top: 20px;
margin-right: 0;
padding: 26px 24px 34px;
padding: 26px 24px 46px;
font-weight: 400;
overflow: hidden;
background: #fff;
@@ -191,18 +191,6 @@ p {
float: left;
}
.login .reset-pass-submit {
display: flex;
flex-flow: row wrap;
justify-content: space-between;
}
.login .reset-pass-submit .button {
display: inline-block;
float: none;
margin-bottom: 6px;
}
.login .admin-email-confirm-form .submit {
text-align: center;
}

File diff suppressed because one or more lines are too long

View File

@@ -131,7 +131,7 @@ p {
.login form {
margin-top: 20px;
margin-left: 0;
padding: 26px 24px 34px;
padding: 26px 24px 46px;
font-weight: 400;
overflow: hidden;
background: #fff;
@@ -190,18 +190,6 @@ p {
float: right;
}
.login .reset-pass-submit {
display: flex;
flex-flow: row wrap;
justify-content: space-between;
}
.login .reset-pass-submit .button {
display: inline-block;
float: none;
margin-bottom: 6px;
}
.login .admin-email-confirm-form .submit {
text-align: center;
}

File diff suppressed because one or more lines are too long

View File

@@ -136,7 +136,7 @@ ul.add-menu-item-tabs li {
}
.theme-location-set {
color: #646970;
color: #787c82;
font-size: 11px;
}
@@ -456,8 +456,8 @@ ul.add-menu-item-tabs li {
}
#menu-to-edit .menu-item-invalid .menu-item-handle {
background: #fcf0f1;
border-color: #d63638;
background: #facfd2;
border-color: #ffabaf;
}
.no-js .menu-item-edit-active .item-edit {
@@ -483,7 +483,7 @@ ul.add-menu-item-tabs li {
}
.menu-item-handle .menu-item-title.no-title {
color: #646970;
color: #787c82;
}
/* Sortables */
@@ -690,7 +690,7 @@ body.menu-max-depth-11 { min-width: 1280px !important; }
margin: 0 0 15px;
padding: 3px 5px 5px;
border: 1px solid #dcdcde;
color: #646970;
color: #787c82;
font-size: 12px;
}

File diff suppressed because one or more lines are too long

View File

@@ -135,7 +135,7 @@ ul.add-menu-item-tabs li {
}
.theme-location-set {
color: #646970;
color: #787c82;
font-size: 11px;
}
@@ -455,8 +455,8 @@ ul.add-menu-item-tabs li {
}
#menu-to-edit .menu-item-invalid .menu-item-handle {
background: #fcf0f1;
border-color: #d63638;
background: #facfd2;
border-color: #ffabaf;
}
.no-js .menu-item-edit-active .item-edit {
@@ -482,7 +482,7 @@ ul.add-menu-item-tabs li {
}
.menu-item-handle .menu-item-title.no-title {
color: #646970;
color: #787c82;
}
/* Sortables */
@@ -689,7 +689,7 @@ body.menu-max-depth-11 { min-width: 1280px !important; }
margin: 0 0 15px;
padding: 3px 5px 5px;
border: 1px solid #dcdcde;
color: #646970;
color: #787c82;
font-size: 12px;
}

File diff suppressed because one or more lines are too long

View File

@@ -132,7 +132,7 @@ body.folded .revisions .loading-indicator {
}
.revisions-controls .author-card .date {
color: #646970;
color: #787c82;
}
.revisions-controls .author-card.autosave {

File diff suppressed because one or more lines are too long

View File

@@ -131,7 +131,7 @@ body.folded .revisions .loading-indicator {
}
.revisions-controls .author-card .date {
color: #646970;
color: #787c82;
}
.revisions-controls .author-card.autosave {

File diff suppressed because one or more lines are too long

View File

@@ -662,7 +662,7 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
}
.theme-overlay .theme-version {
color: #646970;
color: #787c82;
font-size: 13px;
font-weight: 400;
float: none;
@@ -672,7 +672,7 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
.theme-overlay .theme-author {
margin: 15px 0 25px;
color: #646970;
color: #787c82;
font-size: 16px;
font-weight: 400;
line-height: inherit;
@@ -705,7 +705,7 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
.theme-overlay .theme-tags {
border-top: 3px solid #f0f0f1;
color: #646970;
color: #8c8f94;
font-size: 13px;
font-weight: 400;
margin: 30px 0 0 0;
@@ -1124,7 +1124,7 @@ p.no-themes-local {
.theme-details .num-ratings,
.theme-details .no-rating {
font-size: 11px;
color: #646970;
color: #787c82;
}
.theme-details .no-rating {
@@ -1856,7 +1856,7 @@ body.full-overlay-active {
.theme-details .theme-description {
float: right;
color: #646970;
color: #787c82;
line-height: 1.6;
max-width: 100%;
}

File diff suppressed because one or more lines are too long

View File

@@ -661,7 +661,7 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
}
.theme-overlay .theme-version {
color: #646970;
color: #787c82;
font-size: 13px;
font-weight: 400;
float: none;
@@ -671,7 +671,7 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
.theme-overlay .theme-author {
margin: 15px 0 25px;
color: #646970;
color: #787c82;
font-size: 16px;
font-weight: 400;
line-height: inherit;
@@ -704,7 +704,7 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
.theme-overlay .theme-tags {
border-top: 3px solid #f0f0f1;
color: #646970;
color: #8c8f94;
font-size: 13px;
font-weight: 400;
margin: 30px 0 0 0;
@@ -1123,7 +1123,7 @@ p.no-themes-local {
.theme-details .num-ratings,
.theme-details .no-rating {
font-size: 11px;
color: #646970;
color: #787c82;
}
.theme-details .no-rating {
@@ -1855,7 +1855,7 @@ body.full-overlay-active {
.theme-details .theme-description {
float: left;
color: #646970;
color: #787c82;
line-height: 1.6;
max-width: 100%;
}

File diff suppressed because one or more lines are too long

View File

@@ -355,7 +355,7 @@
padding: 0 0 15px;
margin: 0;
font-style: normal;
color: #646970;
color: #787c82;
}
.widget-holder .description,

File diff suppressed because one or more lines are too long

View File

@@ -354,7 +354,7 @@
padding: 0 0 15px;
margin: 0;
font-style: normal;
color: #646970;
color: #787c82;
}
.widget-holder .description,

File diff suppressed because one or more lines are too long

View File

@@ -25,7 +25,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<div class="about__header">
<div class="about__header-image">
<img alt="<?php _e( 'Code is Poetry' ); ?>" src="<?php echo admin_url( 'images/about-badge.svg' ); ?>" />
<img alt="<?php _e( 'Code is Poetry' ); ?>" src="images/about-badge.svg" />
</div>
<div class="about__header-container">

View File

@@ -2722,10 +2722,6 @@ function wp_ajax_set_attachment_thumbnail() {
wp_send_json_error();
}
if ( false === check_ajax_referer( 'set-attachment-thumbnail', '_ajax_nonce', false ) ) {
wp_send_json_error();
}
$post_ids = array();
// For each URL, try to find its corresponding post ID.
foreach ( $_POST['urls'] as $url ) {
@@ -2978,7 +2974,7 @@ function wp_ajax_query_attachments() {
// Filter query clauses to include filenames.
if ( isset( $query['s'] ) ) {
add_filter( 'wp_allow_query_attachment_by_filename', '__return_true' );
add_filter( 'posts_clauses', '_filter_query_attachment_filenames' );
}
/**
@@ -3765,29 +3761,13 @@ function wp_ajax_parse_media_shortcode() {
$shortcode = wp_unslash( $_POST['shortcode'] );
// Only process previews for media related shortcodes:
$found_shortcodes = get_shortcode_tags_in_content( $shortcode );
$media_shortcodes = array(
'audio',
'embed',
'playlist',
'video',
'gallery',
);
$other_shortcodes = array_diff( $found_shortcodes, $media_shortcodes );
if ( ! empty( $other_shortcodes ) ) {
wp_send_json_error();
}
if ( ! empty( $_POST['post_ID'] ) ) {
$post = get_post( (int) $_POST['post_ID'] );
}
// The embed shortcode requires a post.
if ( ! $post || ! current_user_can( 'edit_post', $post->ID ) ) {
if ( in_array( 'embed', $found_shortcodes, true ) ) {
if ( 'embed' === $shortcode ) {
wp_send_json_error();
}
} else {

View File

@@ -622,19 +622,6 @@ class WP_Comments_List_Table extends WP_List_Table {
}
$this->user_can = current_user_can( 'edit_comment', $comment->comment_ID );
$edit_post_cap = $post ? 'edit_post' : 'edit_posts';
if (
current_user_can( $edit_post_cap, $comment->comment_post_ID ) ||
(
empty( $post->post_password ) &&
current_user_can( 'read_post', $comment->comment_post_ID )
)
) {
// The user has access to the post
} else {
return false;
}
echo "<tr id='comment-$comment->comment_ID' class='$the_comment_class'>";
$this->single_row_columns( $comment );
echo "</tr>\n";

View File

@@ -735,20 +735,6 @@ class WP_List_Table {
$pending_comments_number
);
$post_object = get_post( $post_id );
$edit_post_cap = $post_object ? 'edit_post' : 'edit_posts';
if (
current_user_can( $edit_post_cap, $post_id ) ||
(
empty( $post_object->post_password ) &&
current_user_can( 'read_post', $post_id )
)
) {
// The user has access to the post and thus can see comments
} else {
return false;
}
if ( ! $approved_comments && ! $pending_comments ) {
// No comments at all.
printf(

View File

@@ -420,11 +420,11 @@ final class WP_Privacy_Policy_Content {
<div class="privacy-settings-accordion-actions">
<span class="success" aria-hidden="true"><?php _e( 'Copied!' ); ?></span>
<button type="button" class="privacy-text-copy button">
<span aria-hidden="true"><?php _e( 'Copy suggested policy text to clipboard' ); ?></span>
<?php _e( 'Copy suggested policy text to clipboard' ); ?>
<span class="screen-reader-text">
<?php
/* translators: %s: Plugin name. */
printf( __( 'Copy suggested policy text from %s.' ), $plugin_name );
sprintf( __( 'Copy suggested policy text from %s.' ), $plugin_name );
?>
</span>
</button>

View File

@@ -1528,7 +1528,7 @@ class WP_Site_Health {
if ( ! wp_is_using_https() ) {
// If the website is not using HTTPS, provide more information about whether it is supported and how it can
// be enabled.
$result['status'] = 'recommended';
$result['status'] = 'critical';
$result['label'] = __( 'Your website does not use HTTPS' );
if ( wp_is_site_url_using_https() ) {
@@ -1630,6 +1630,36 @@ class WP_Site_Health {
);
}
}
} elseif ( ! wp_is_https_supported() ) {
// If the website is using HTTPS, but HTTPS is actually not supported, inform the user about the potential
// problems.
$result['status'] = 'critical';
$result['label'] = __( 'There are problems with the HTTPS connection of your website' );
$https_detection_errors = get_option( 'https_detection_errors' );
if ( ! empty( $https_detection_errors['ssl_verification_failed'] ) ) {
$result['description'] = sprintf(
'<p>%s</p>',
sprintf(
/* translators: %s: URL to Settings > General > WordPress Address. */
__( 'Your <a href="%s">WordPress Address</a> is set up to use HTTPS, but the SSL certificate appears to be invalid.' ),
esc_url( admin_url( 'options-general.php' ) . '#siteurl' )
)
);
} else {
$result['description'] = sprintf(
'<p>%s</p>',
sprintf(
/* translators: %s: URL to Settings > General > WordPress Address. */
__( 'Your <a href="%s">WordPress Address</a> is set up to use HTTPS, but your website appears to be unavailable when using an HTTPS connection.' ),
esc_url( admin_url( 'options-general.php' ) . '#siteurl' )
)
);
}
$result['description'] .= sprintf(
'<p>%s</p>',
__( 'Talk to your web host about resolving this HTTPS issue for your website.' )
);
}
return $result;

View File

@@ -1052,17 +1052,7 @@ function wp_dashboard_recent_comments( $total_items = 5 ) {
echo '<ul id="the-comment-list" data-wp-lists="list:comment">';
foreach ( $comments as $comment ) {
$comment_post = get_post( $comment->comment_post_ID );
if (
current_user_can( 'edit_post', $comment->comment_post_ID ) ||
(
empty( $comment_post->post_password ) &&
current_user_can( 'read_post', $comment->comment_post_ID )
)
) {
_wp_dashboard_recent_comments_row( $comment );
}
_wp_dashboard_recent_comments_row( $comment );
}
echo '</ul>';

View File

@@ -711,7 +711,6 @@ function wp_read_image_metadata( $file ) {
);
$iptc = array();
$info = array();
/*
* Read IPTC first, since it might contain data not available in exif such
* as caption, description etc.

View File

@@ -1269,7 +1269,7 @@ function wp_edit_attachments_query_vars( $q = false ) {
// Filter query clauses to include filenames.
if ( isset( $q['s'] ) ) {
add_filter( 'wp_allow_query_attachment_by_filename', '__return_true' );
add_filter( 'posts_clauses', '_filter_query_attachment_filenames' );
}
return $q;

View File

@@ -1658,8 +1658,8 @@ function upgrade_280() {
$start = 0;
while ( $rows = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options ORDER BY option_id LIMIT $start, 20" ) ) {
foreach ( $rows as $row ) {
$value = maybe_unserialize( $row->option_value );
if ( $value === $row->option_value ) {
$value = $row->option_value;
if ( ! @unserialize( $value ) ) {
$value = stripslashes( $value );
}
if ( $value !== $row->option_value ) {

View File

@@ -599,8 +599,6 @@ Please click the following link to activate your user account:
* Checks if the Authorize Application Password request is valid.
*
* @since 5.6.0
* @since 6.2.0 Allow insecure HTTP connections for the local environment.
* @since 6.3.2 Validates the success and reject URLs to prevent javascript pseudo protocol being executed.
*
* @param array $request {
* The array of request data. All arguments are optional and may be empty.
@@ -616,22 +614,24 @@ Please click the following link to activate your user account:
function wp_is_authorize_application_password_request_valid( $request, $user ) {
$error = new WP_Error();
if ( isset( $request['success_url'] ) ) {
$validated_success_url = wp_is_authorize_application_redirect_url_valid( $request['success_url'] );
if ( is_wp_error( $validated_success_url ) ) {
if ( ! empty( $request['success_url'] ) ) {
$scheme = wp_parse_url( $request['success_url'], PHP_URL_SCHEME );
if ( 'http' === $scheme ) {
$error->add(
$validated_success_url->get_error_code(),
$validated_success_url->get_error_message()
'invalid_redirect_scheme',
__( 'The success url must be served over a secure connection.' )
);
}
}
if ( isset( $request['reject_url'] ) ) {
$validated_reject_url = wp_is_authorize_application_redirect_url_valid( $request['reject_url'] );
if ( is_wp_error( $validated_reject_url ) ) {
if ( ! empty( $request['reject_url'] ) ) {
$scheme = wp_parse_url( $request['reject_url'], PHP_URL_SCHEME );
if ( 'http' === $scheme ) {
$error->add(
$validated_reject_url->get_error_code(),
$validated_reject_url->get_error_message()
'invalid_redirect_scheme',
__( 'The rejection url must be served over a secure connection.' )
);
}
}
@@ -660,59 +660,3 @@ function wp_is_authorize_application_password_request_valid( $request, $user ) {
return true;
}
/**
* Validates the redirect URL protocol scheme. The protocol can be anything except http and javascript.
*
* @since 6.3.2
*
* @param string $url - The redirect URL to be validated.
*
* @return true|WP_Error True if the redirect URL is valid, a WP_Error object otherwise.
*/
function wp_is_authorize_application_redirect_url_valid( $url ) {
$bad_protocols = array( 'javascript', 'data' );
if ( empty( $url ) ) {
return true;
}
// Based on https://www.rfc-editor.org/rfc/rfc2396#section-3.1
$valid_scheme_regex = '/^[a-zA-Z][a-zA-Z0-9+.-]*:/';
if ( ! preg_match( $valid_scheme_regex, $url ) ) {
return new WP_Error(
'invalid_redirect_url_format',
__( 'Invalid URL format.' )
);
}
/**
* Filters the list of invalid protocols used in applications redirect URLs.
*
* @since 6.3.2
*
* @param string[] $bad_protocols Array of invalid protocols.
* @param string $url The redirect URL to be validated.
*/
$invalid_protocols = array_map( 'strtolower', apply_filters( 'wp_authorize_application_redirect_url_invalid_protocols', $bad_protocols, $url ) );
$scheme = wp_parse_url( $url, PHP_URL_SCHEME );
$host = wp_parse_url( $url, PHP_URL_HOST );
$is_local = 'local' === wp_get_environment_type();
// validates if the proper URI format is applied to the $url
if ( empty( $host ) || empty( $scheme ) || in_array( strtolower( $scheme ), $invalid_protocols, true ) ) {
return new WP_Error(
'invalid_redirect_url_format',
__( 'Invalid URL format.' )
);
}
if ( 'http' === $scheme && ! $is_local ) {
return new WP_Error(
'invalid_redirect_scheme',
__( 'The URL must be served over a secure connection.' )
);
}
return true;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,2 +1,2 @@
/*! This file is auto-generated */
window.wp=window.wp||{},wp.svgPainter=function(e,i,n){"use strict";var t,o,a,m,r,s,c,u,l,f={},g=[];function p(){for(;l<256;)m=String.fromCharCode(l),s+=m,u[l]=l,c[l]=r.indexOf(m),++l}function d(n,t,e,a,i,o){for(var r,s=0,c=0,u="",l=0,f=(n=String(n)).length;c<f;){for(s=(s<<i)+(m=(m=n.charCodeAt(c))<256?e[m]:-1),l+=i;o<=l;)l-=o,u+=a.charAt(r=s>>l),s^=r<<l;++c}return!t&&0<l&&(u+=a.charAt(s<<o-l)),u}return e(n).ready(function(){n.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")&&(e(n.body).removeClass("no-svg").addClass("svg"),wp.svgPainter.init())}),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s="",c=[256],u=[256],l=0,o={atob:function(n){var t;for(m||p(),n=n.replace(/[^A-Za-z0-9\+\/\=]/g,""),n=String(n).split("="),t=n.length;n[--t]=d(n[t],!0,c,s,6,8),0<t;);return n=n.join("")},btoa:function(n){return m||p(),(n=d(n,!1,u,r,8,6))+"====".slice(n.length%4||4)}},{init:function(){a=this,t=e("#adminmenu .wp-menu-image, #wpadminbar .ab-item"),this.setColors(),this.findElements(),this.paint()},setColors:function(n){(n=void 0===n&&void 0!==i._wpColorScheme?i._wpColorScheme:n)&&n.icons&&n.icons.base&&n.icons.current&&n.icons.focus&&(f=n.icons)},findElements:function(){t.each(function(){var n=e(this),t=n.css("background-image");t&&-1!=t.indexOf("data:image/svg+xml;base64")&&g.push(n)})},paint:function(){e.each(g,function(n,t){var e=t.parent().parent();e.hasClass("current")||e.hasClass("wp-has-current-submenu")?a.paintElement(t,"current"):(a.paintElement(t,"base"),e.on("mouseenter",function(){a.paintElement(t,"focus")}).on("mouseleave",function(){i.setTimeout(function(){a.paintElement(t,"base")},100)}))})},paintElement:function(n,t){var e,a;if(t&&f.hasOwnProperty(t)&&(a=f[t],a.match(/^(#[0-9a-f]{3}|#[0-9a-f]{6})$/i)&&"none"!==(e=n.data("wp-ui-svg-"+a)))){if(!e){if(!(t=n.css("background-image").match(/.+data:image\/svg\+xml;base64,([A-Za-z0-9\+\/\=]+)/))||!t[1])return void n.data("wp-ui-svg-"+a,"none");try{e=("atob"in i?i:o).atob(t[1])}catch(n){}if(!e)return void n.data("wp-ui-svg-"+a,"none");e=(e=(e=e.replace(/fill="(.+?)"/g,'fill="'+a+'"')).replace(/style="(.+?)"/g,'style="fill:'+a+'"')).replace(/fill:.*?;/g,"fill: "+a+";"),e=("btoa"in i?i:o).btoa(e),n.data("wp-ui-svg-"+a,e)}n.attr("style",'background-image: url("data:image/svg+xml;base64,'+e+'") !important;')}}}}(jQuery,window,document);
window.wp=window.wp||{},wp.svgPainter=function(e,o,n){"use strict";var t,r,a,m,i,s,c,u,l,f={},g=[];function p(){for(;l<256;)m=String.fromCharCode(l),s+=m,u[l]=l,c[l]=i.indexOf(m),++l}function d(n,t,e,a,i,o){for(var r,s=0,c=0,u="",l=0,f=(n=String(n)).length;c<f;){for(s=(s<<i)+(m=(m=n.charCodeAt(c))<256?e[m]:-1),l+=i;o<=l;)r=s>>(l-=o),u+=a.charAt(r),s^=r<<l;++c}return!t&&0<l&&(u+=a.charAt(s<<o-l)),u}return e(n).ready(function(){n.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")&&(e(n.body).removeClass("no-svg").addClass("svg"),wp.svgPainter.init())}),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s="",c=[256],u=[256],l=0,r={atob:function(n){var t;for(m||p(),n=n.replace(/[^A-Za-z0-9\+\/\=]/g,""),n=String(n).split("="),t=n.length;n[--t]=d(n[t],!0,c,s,6,8),0<t;);return n=n.join("")},btoa:function(n){return m||p(),(n=d(n,!1,u,i,8,6))+"====".slice(n.length%4||4)}},{init:function(){a=this,t=e("#adminmenu .wp-menu-image, #wpadminbar .ab-item"),this.setColors(),this.findElements(),this.paint()},setColors:function(n){(n=void 0===n&&void 0!==o._wpColorScheme?o._wpColorScheme:n)&&n.icons&&n.icons.base&&n.icons.current&&n.icons.focus&&(f=n.icons)},findElements:function(){t.each(function(){var n=e(this),t=n.css("background-image");t&&-1!=t.indexOf("data:image/svg+xml;base64")&&g.push(n)})},paint:function(){e.each(g,function(n,t){var e=t.parent().parent();e.hasClass("current")||e.hasClass("wp-has-current-submenu")?a.paintElement(t,"current"):(a.paintElement(t,"base"),e.on("mouseenter",function(){a.paintElement(t,"focus")}).on("mouseleave",function(){o.setTimeout(function(){a.paintElement(t,"base")},100)}))})},paintElement:function(n,t){var e,a,i;if(t&&f.hasOwnProperty(t)&&(i=f[t],i.match(/^(#[0-9a-f]{3}|#[0-9a-f]{6})$/i)&&"none"!==(e=n.data("wp-ui-svg-"+i)))){if(!e){if(!(a=n.css("background-image").match(/.+data:image\/svg\+xml;base64,([A-Za-z0-9\+\/\=]+)/))||!a[1])return void n.data("wp-ui-svg-"+i,"none");try{e=("atob"in o?o:r).atob(a[1])}catch(n){}if(!e)return void n.data("wp-ui-svg-"+i,"none");e=(e=(e=e.replace(/fill="(.+?)"/g,'fill="'+i+'"')).replace(/style="(.+?)"/g,'style="fill:'+i+'"')).replace(/fill:.*?;/g,"fill: "+i+";"),e=("btoa"in o?o:r).btoa(e),n.data("wp-ui-svg-"+i,e)}n.attr("style",'background-image: url("data:image/svg+xml;base64,'+e+'") !important;')}}}}(jQuery,window,document);

Some files were not shown because too many files have changed in this diff Show More