Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
055731393c |
@@ -51,87 +51,12 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
<div class="about__section changelog">
|
||||
<div class="column">
|
||||
<h2><?php _e( 'Maintenance and Security Releases' ); ?></h2>
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: 1: WordPress version number, 2: Plural number of bugs. */
|
||||
_n(
|
||||
'<strong>Version %1$s</strong> addressed %2$s bug.',
|
||||
'<strong>Version %1$s</strong> addressed %2$s bugs.',
|
||||
1
|
||||
),
|
||||
'5.3.6',
|
||||
number_format_i18n( 1 )
|
||||
);
|
||||
?>
|
||||
<?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.3.6' )
|
||||
)
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s: WordPress version number */
|
||||
__( '<strong>Version %s</strong> addressed some security issues.' ),
|
||||
'5.3.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.3.5' )
|
||||
)
|
||||
);
|
||||
?>
|
||||
</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.',
|
||||
2
|
||||
),
|
||||
'5.3.4',
|
||||
number_format_i18n( 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.3.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.',
|
||||
10
|
||||
),
|
||||
'5.3.3',
|
||||
number_format_i18n( 10 )
|
||||
'5.3.3'
|
||||
);
|
||||
?>
|
||||
<?php
|
||||
|
||||
@@ -82,13 +82,13 @@ wp_enqueue_script( 'svg-painter' );
|
||||
$admin_body_class = preg_replace( '/[^a-z0-9_-]+/i', '-', $hook_suffix );
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
addLoadEvent = function(func){if(typeof jQuery!=='undefined')jQuery(document).ready(func);else if(typeof wpOnload!=='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
|
||||
var ajaxurl = '<?php echo esc_js( admin_url( 'admin-ajax.php', 'relative' ) ); ?>',
|
||||
pagenow = '<?php echo esc_js( $current_screen->id ); ?>',
|
||||
typenow = '<?php echo esc_js( $current_screen->post_type ); ?>',
|
||||
adminpage = '<?php echo esc_js( $admin_body_class ); ?>',
|
||||
thousandsSeparator = '<?php echo esc_js( $wp_locale->number_format['thousands_sep'] ); ?>',
|
||||
decimalPoint = '<?php echo esc_js( $wp_locale->number_format['decimal_point'] ); ?>',
|
||||
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
|
||||
var ajaxurl = '<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>',
|
||||
pagenow = '<?php echo $current_screen->id; ?>',
|
||||
typenow = '<?php echo $current_screen->post_type; ?>',
|
||||
adminpage = '<?php echo $admin_body_class; ?>',
|
||||
thousandsSeparator = '<?php echo addslashes( $wp_locale->number_format['thousands_sep'] ); ?>',
|
||||
decimalPoint = '<?php echo addslashes( $wp_locale->number_format['decimal_point'] ); ?>',
|
||||
isRtl = <?php echo (int) is_rtl(); ?>;
|
||||
</script>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
|
||||
@@ -581,8 +581,6 @@ class Custom_Background {
|
||||
* @deprecated 3.5.0
|
||||
*/
|
||||
public function wp_set_background_image() {
|
||||
check_ajax_referer( 'custom-background' );
|
||||
|
||||
if ( ! current_user_can( 'edit_theme_options' ) || ! isset( $_POST['attachment_id'] ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -343,7 +343,7 @@ class Custom_Image_Header {
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
(function($){
|
||||
var default_color = '<?php echo esc_js( $default_color ); ?>',
|
||||
var default_color = '<?php echo $default_color; ?>',
|
||||
header_text_fields;
|
||||
|
||||
function pickColor(color) {
|
||||
|
||||
@@ -531,7 +531,7 @@ function wp_iframe( $content_func, ...$args ) {
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
|
||||
var ajaxurl = '<?php echo esc_js( admin_url( 'admin-ajax.php', 'relative' ) ); ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
|
||||
var ajaxurl = '<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
|
||||
isRtl = <?php echo (int) is_rtl(); ?>;
|
||||
</script>
|
||||
<?php
|
||||
@@ -3212,7 +3212,7 @@ function edit_form_image_editor( $post ) {
|
||||
|
||||
?>
|
||||
</label>
|
||||
<?php wp_editor( format_to_edit( $post->post_content ), 'attachment_content', $editor_args ); ?>
|
||||
<?php wp_editor( $post->post_content, 'attachment_content', $editor_args ); ?>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
|
||||
@@ -679,48 +679,23 @@ function set_screen_options() {
|
||||
}
|
||||
break;
|
||||
default:
|
||||
$screen_option = false;
|
||||
|
||||
if ( '_page' === substr( $option, -5 ) || 'layout_columns' === $option ) {
|
||||
/**
|
||||
* Filters a screen option value before it is set.
|
||||
*
|
||||
* The filter can also be used to modify non-standard [items]_per_page
|
||||
* settings. See the parent function for a full list of standard options.
|
||||
*
|
||||
* Returning false to the filter will skip saving the current option.
|
||||
*
|
||||
* @since 2.8.0
|
||||
* @since 5.4.2 Only applied to options ending with '_page',
|
||||
* or the 'layout_columns' option.
|
||||
*
|
||||
* @see set_screen_options()
|
||||
*
|
||||
* @param mixed $screen_option The value to save instead of the option value.
|
||||
* Default false (to skip saving the current option).
|
||||
* @param string $option The option name.
|
||||
* @param int $value The option value.
|
||||
*/
|
||||
$screen_option = apply_filters( 'set-screen-option', $screen_option, $option, $value ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
|
||||
}
|
||||
|
||||
/**
|
||||
* Filters a screen option value before it is set.
|
||||
*
|
||||
* The dynamic portion of the hook, `$option`, refers to the option name.
|
||||
* The filter can also be used to modify non-standard [items]_per_page
|
||||
* settings. See the parent function for a full list of standard options.
|
||||
*
|
||||
* Returning false to the filter will skip saving the current option.
|
||||
*
|
||||
* @since 5.4.2
|
||||
* @since 2.8.0
|
||||
*
|
||||
* @see set_screen_options()
|
||||
*
|
||||
* @param mixed $screen_option The value to save instead of the option value.
|
||||
* Default false (to skip saving the current option).
|
||||
* @param string $option The option name.
|
||||
* @param int $value The option value.
|
||||
* @param bool $keep Whether to save or skip saving the screen option value. Default false.
|
||||
* @param string $option The option name.
|
||||
* @param int $value The number of rows to use.
|
||||
*/
|
||||
$value = apply_filters( "set_screen_option_{$option}", $screen_option, $option, $value );
|
||||
$value = apply_filters( 'set-screen-option', false, $option, $value ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
|
||||
|
||||
if ( false === $value ) {
|
||||
return;
|
||||
|
||||
@@ -840,7 +840,7 @@ function can_edit_network( $network_id ) {
|
||||
function _thickbox_path_admin_subfolder() {
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
var tb_pathToImage = "<?php echo esc_js( includes_url( 'js/thickbox/loadingAnimation.gif', 'relative' ) ); ?>";
|
||||
var tb_pathToImage = "<?php echo includes_url( 'js/thickbox/loadingAnimation.gif', 'relative' ); ?>";
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
|
||||
@@ -1967,12 +1967,12 @@ function iframe_header( $title = '', $deprecated = false ) {
|
||||
<script type="text/javascript">
|
||||
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
|
||||
function tb_close(){var win=window.dialogArguments||opener||parent||top;win.tb_remove();}
|
||||
var ajaxurl = '<?php echo esc_js( admin_url( 'admin-ajax.php', 'relative' ) ); ?>',
|
||||
pagenow = '<?php echo esc_js( $current_screen->id ); ?>',
|
||||
typenow = '<?php echo esc_js( $current_screen->post_type ); ?>',
|
||||
adminpage = '<?php echo esc_js( $admin_body_class ); ?>',
|
||||
thousandsSeparator = '<?php echo esc_js( $wp_locale->number_format['thousands_sep'] ); ?>',
|
||||
decimalPoint = '<?php echo esc_js( $wp_locale->number_format['decimal_point'] ); ?>',
|
||||
var ajaxurl = '<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>',
|
||||
pagenow = '<?php echo $current_screen->id; ?>',
|
||||
typenow = '<?php echo $current_screen->post_type; ?>',
|
||||
adminpage = '<?php echo $admin_body_class; ?>',
|
||||
thousandsSeparator = '<?php echo addslashes( $wp_locale->number_format['thousands_sep'] ); ?>',
|
||||
decimalPoint = '<?php echo addslashes( $wp_locale->number_format['decimal_point'] ); ?>',
|
||||
isRtl = <?php echo (int) is_rtl(); ?>;
|
||||
</script>
|
||||
<?php
|
||||
|
||||
@@ -277,7 +277,6 @@ function get_theme_feature_list( $api = true ) {
|
||||
|
||||
__( 'Features' ) => array(
|
||||
'accessibility-ready' => __( 'Accessibility Ready' ),
|
||||
'block-styles' => __( 'Block Editor Styles' ),
|
||||
'custom-background' => __( 'Custom Background' ),
|
||||
'custom-colors' => __( 'Custom Colors' ),
|
||||
'custom-header' => __( 'Custom Header' ),
|
||||
@@ -300,7 +299,6 @@ function get_theme_feature_list( $api = true ) {
|
||||
'four-columns' => __( 'Four Columns' ),
|
||||
'left-sidebar' => __( 'Left Sidebar' ),
|
||||
'right-sidebar' => __( 'Right Sidebar' ),
|
||||
'wide-blocks' => __( 'Wide Blocks' ),
|
||||
),
|
||||
|
||||
);
|
||||
|
||||
@@ -126,13 +126,11 @@
|
||||
frame.on( 'select', function() {
|
||||
// Grab the selected attachment.
|
||||
var attachment = frame.state().get('selection').first();
|
||||
var nonceValue = $( '#_wpnonce' ).val() || '';
|
||||
|
||||
// Run an AJAX request to set the background image.
|
||||
$.post( ajaxurl, {
|
||||
action: 'set-background-image',
|
||||
attachment_id: attachment.id,
|
||||
_ajax_nonce: nonceValue,
|
||||
size: 'full'
|
||||
}).done( function() {
|
||||
// When the request completes, reload the window.
|
||||
|
||||
2
wp-admin/js/custom-background.min.js
vendored
2
wp-admin/js/custom-background.min.js
vendored
@@ -1 +1 @@
|
||||
!function(e){e(document).ready(function(){var o,a=e("#custom-background-image");e("#background-color").wpColorPicker({change:function(n,c){a.css("background-color",c.color.toString())},clear:function(){a.css("background-color","")}}),e('select[name="background-size"]').change(function(){a.css("background-size",e(this).val())}),e('input[name="background-position"]').change(function(){a.css("background-position",e(this).val())}),e('input[name="background-repeat"]').change(function(){a.css("background-repeat",e(this).is(":checked")?"repeat":"no-repeat")}),e('input[name="background-attachment"]').change(function(){a.css("background-attachment",e(this).is(":checked")?"scroll":"fixed")}),e("#choose-from-library-link").click(function(n){var c=e(this);n.preventDefault(),o||(o=wp.media.frames.customBackground=wp.media({title:c.data("choose"),library:{type:"image"},button:{text:c.data("update"),close:!1}})).on("select",function(){var n=o.state().get("selection").first(),c=e("#_wpnonce").val()||"";e.post(ajaxurl,{action:"set-background-image",attachment_id:n.id,_ajax_nonce:c,size:"full"}).done(function(){window.location.reload()})}),o.open()})})}(jQuery);
|
||||
!function(e){e(document).ready(function(){var o,t=e("#custom-background-image");e("#background-color").wpColorPicker({change:function(n,c){t.css("background-color",c.color.toString())},clear:function(){t.css("background-color","")}}),e('select[name="background-size"]').change(function(){t.css("background-size",e(this).val())}),e('input[name="background-position"]').change(function(){t.css("background-position",e(this).val())}),e('input[name="background-repeat"]').change(function(){t.css("background-repeat",e(this).is(":checked")?"repeat":"no-repeat")}),e('input[name="background-attachment"]').change(function(){t.css("background-attachment",e(this).is(":checked")?"scroll":"fixed")}),e("#choose-from-library-link").click(function(n){var c=e(this);n.preventDefault(),o||(o=wp.media.frames.customBackground=wp.media({title:c.data("choose"),library:{type:"image"},button:{text:c.data("update"),close:!1}})).on("select",function(){var n=o.state().get("selection").first();e.post(ajaxurl,{action:"set-background-image",attachment_id:n.id,size:"full"}).done(function(){window.location.reload()})}),o.open()})})}(jQuery);
|
||||
@@ -11,7 +11,7 @@ jQuery(function($) {
|
||||
* Adds a click event handler to the element with a 'wp-gallery' class.
|
||||
*/
|
||||
$( 'body' ).bind( 'click.wp-gallery', function(e) {
|
||||
var target = $( e.target ), id, img_size, nonceValue;
|
||||
var target = $( e.target ), id, img_size;
|
||||
|
||||
if ( target.hasClass( 'wp-set-header' ) ) {
|
||||
// Opens the image to preview it full size.
|
||||
@@ -21,7 +21,6 @@ jQuery(function($) {
|
||||
// Sets the image as background of the theme.
|
||||
id = target.data( 'attachment-id' );
|
||||
img_size = $( 'input[name="attachments[' + id + '][image-size]"]:checked').val();
|
||||
nonceValue = $( '#_wpnonce' ).val() && '';
|
||||
|
||||
/**
|
||||
* This AJAX action has been deprecated since 3.5.0, see custom-background.php
|
||||
@@ -29,7 +28,6 @@ jQuery(function($) {
|
||||
jQuery.post(ajaxurl, {
|
||||
action: 'set-background-image',
|
||||
attachment_id: id,
|
||||
_ajax_nonce: nonceValue,
|
||||
size: img_size
|
||||
}, function() {
|
||||
var win = window.dialogArguments || opener || parent || top;
|
||||
|
||||
2
wp-admin/js/media-gallery.min.js
vendored
2
wp-admin/js/media-gallery.min.js
vendored
@@ -1 +1 @@
|
||||
jQuery(function(r){r("body").bind("click.wp-gallery",function(a){var e,t,n,o=r(a.target);o.hasClass("wp-set-header")?((window.dialogArguments||opener||parent||top).location.href=o.data("location"),a.preventDefault()):o.hasClass("wp-set-background")&&(e=o.data("attachment-id"),t=r('input[name="attachments['+e+'][image-size]"]:checked').val(),n=r("#_wpnonce").val()&&"",jQuery.post(ajaxurl,{action:"set-background-image",attachment_id:e,_ajax_nonce:n,size:t},function(){var a=window.dialogArguments||opener||parent||top;a.tb_remove(),a.location.reload()}),a.preventDefault())})});
|
||||
jQuery(function(o){o("body").bind("click.wp-gallery",function(a){var e,t,n=o(a.target);n.hasClass("wp-set-header")?((window.dialogArguments||opener||parent||top).location.href=n.data("location"),a.preventDefault()):n.hasClass("wp-set-background")&&(e=n.data("attachment-id"),t=o('input[name="attachments['+e+'][image-size]"]:checked').val(),jQuery.post(ajaxurl,{action:"set-background-image",attachment_id:e,size:t},function(){var a=window.dialogArguments||opener||parent||top;a.tb_remove(),a.location.reload()}),a.preventDefault())})});
|
||||
@@ -77,9 +77,9 @@ if ( get_user_setting( 'uploader' ) || isset( $_GET['browser-uploader'] ) ) {
|
||||
<?php media_upload_form(); ?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var post_id = <?php echo absint( $post_id ); ?>, shortform = 3;
|
||||
var post_id = <?php echo $post_id; ?>, shortform = 3;
|
||||
</script>
|
||||
<input type="hidden" name="post_id" id="post_id" value="<?php echo absint( $post_id ); ?>" />
|
||||
<input type="hidden" name="post_id" id="post_id" value="<?php echo $post_id; ?>" />
|
||||
<?php wp_nonce_field( 'media-form' ); ?>
|
||||
<div id="media-items" class="hide-if-no-js"></div>
|
||||
</form>
|
||||
|
||||
@@ -217,7 +217,7 @@ if ( ! wp_is_large_network( 'users' ) && apply_filters( 'show_network_site_users
|
||||
require( ABSPATH . 'wp-admin/admin-header.php' ); ?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var current_site_id = <?php echo absint( $id ); ?>;
|
||||
var current_site_id = <?php echo $id; ?>;
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
@@ -408,7 +408,7 @@ if ( ! is_multisite() && current_user_can( 'edit_themes' ) && $broken_themes ) {
|
||||
</tr>
|
||||
<?php foreach ( $broken_themes as $broken_theme ) : ?>
|
||||
<tr>
|
||||
<td><?php echo $broken_theme->get( 'Name' ) ? $broken_theme->display( 'Name' ) : esc_html( $broken_theme->get_stylesheet() ); ?></td>
|
||||
<td><?php echo $broken_theme->get( 'Name' ) ? $broken_theme->display( 'Name' ) : $broken_theme->get_stylesheet(); ?></td>
|
||||
<td><?php echo $broken_theme->errors()->get_error_message(); ?></td>
|
||||
<?php
|
||||
if ( $can_resume ) {
|
||||
|
||||
@@ -56,8 +56,8 @@ do_action( 'set_comment_cookies', $comment, $user, $cookies_consent );
|
||||
|
||||
$location = empty( $_POST['redirect_to'] ) ? get_comment_link( $comment ) : $_POST['redirect_to'] . '#comment-' . $comment->comment_ID;
|
||||
|
||||
// If user didn't consent to cookies, add specific query arguments to display the awaiting moderation message.
|
||||
if ( ! $cookies_consent && 'unapproved' === wp_get_comment_status( $comment ) && ! empty( $comment->comment_author_email ) ) {
|
||||
// Add specific query arguments to display the awaiting moderation message.
|
||||
if ( 'unapproved' === wp_get_comment_status( $comment ) && ! empty( $comment->comment_author_email ) ) {
|
||||
$location = add_query_arg(
|
||||
array(
|
||||
'unapproved' => $comment->comment_ID,
|
||||
|
||||
@@ -42,17 +42,4 @@ class Requests_Utility_FilteredIterator extends ArrayIterator {
|
||||
$value = call_user_func($this->callback, $value);
|
||||
return $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function unserialize( $serialized ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function __unserialize( $serialized ) { // phpcs:ignore PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.MethodDoubleUnderscore,PHPCompatibility.FunctionNameRestrictions.NewMagicMethods.__unserializeFound
|
||||
$this->unserialize( $serialized );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ function render_block_core_rss( $attributes ) {
|
||||
$class .= ' ' . $attributes['className'];
|
||||
}
|
||||
|
||||
$list_items_markup = sprintf( "<ul class='%s'>%s</ul>", esc_attr( $class ), $list_items );
|
||||
$list_items_markup = "<ul class='{$class}'>{$list_items}</ul>";
|
||||
|
||||
// PHP 5.2 compatibility. See: http://simplepie.org/wiki/faq/i_m_getting_memory_leaks.
|
||||
$rss->__destruct();
|
||||
|
||||
@@ -52,7 +52,7 @@ function render_block_core_search( $attributes ) {
|
||||
|
||||
return sprintf(
|
||||
'<form class="%s" role="search" method="get" action="%s">%s</form>',
|
||||
esc_attr( $class ),
|
||||
$class,
|
||||
esc_url( home_url( '/' ) ),
|
||||
$label_markup . $input_markup . $button_markup
|
||||
);
|
||||
|
||||
@@ -181,11 +181,7 @@ class Walker_Comment extends Walker {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( 'comment' === $comment->comment_type ) {
|
||||
add_filter( 'comment_text', array( $this, 'filter_comment_text' ), 40, 2 );
|
||||
}
|
||||
|
||||
if ( ( 'pingback' === $comment->comment_type || 'trackback' === $comment->comment_type ) && $args['short_ping'] ) {
|
||||
if ( ( 'pingback' == $comment->comment_type || 'trackback' == $comment->comment_type ) && $args['short_ping'] ) {
|
||||
ob_start();
|
||||
$this->ping( $comment, $depth, $args );
|
||||
$output .= ob_get_clean();
|
||||
@@ -198,10 +194,6 @@ class Walker_Comment extends Walker {
|
||||
$this->comment( $comment, $depth, $args );
|
||||
$output .= ob_get_clean();
|
||||
}
|
||||
|
||||
if ( 'comment' === $comment->comment_type ) {
|
||||
remove_filter( 'comment_text', array( $this, 'filter_comment_text' ), 40, 2 );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -252,29 +244,6 @@ class Walker_Comment extends Walker {
|
||||
<?php
|
||||
}
|
||||
|
||||
/**
|
||||
* Filters the comment text.
|
||||
*
|
||||
* Removes links from the pending comment's text if the commenter did not consent
|
||||
* to the comment cookies.
|
||||
*
|
||||
* @since 5.4.2
|
||||
*
|
||||
* @param string $comment_text Text of the current comment.
|
||||
* @param WP_Comment|null $comment The comment object. Null if not found.
|
||||
* @return string Filtered text of the current comment.
|
||||
*/
|
||||
public function filter_comment_text( $comment_text, $comment ) {
|
||||
$commenter = wp_get_current_commenter();
|
||||
$show_pending_links = ! empty( $commenter['comment_author'] );
|
||||
|
||||
if ( $comment && '0' == $comment->comment_approved && ! $show_pending_links ) {
|
||||
$comment_text = wp_kses( $comment_text, array() );
|
||||
}
|
||||
|
||||
return $comment_text;
|
||||
}
|
||||
|
||||
/**
|
||||
* Outputs a single comment.
|
||||
*
|
||||
@@ -295,14 +264,13 @@ class Walker_Comment extends Walker {
|
||||
$add_below = 'div-comment';
|
||||
}
|
||||
|
||||
$commenter = wp_get_current_commenter();
|
||||
$show_pending_links = isset( $commenter['comment_author'] ) && $commenter['comment_author'];
|
||||
|
||||
$commenter = wp_get_current_commenter();
|
||||
if ( $commenter['comment_author_email'] ) {
|
||||
$moderation_note = __( 'Your comment is awaiting moderation.' );
|
||||
} else {
|
||||
$moderation_note = __( 'Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.' );
|
||||
}
|
||||
|
||||
?>
|
||||
<<?php echo $tag; ?> <?php comment_class( $this->has_children ? 'parent' : '', $comment ); ?> id="comment-<?php comment_ID(); ?>">
|
||||
<?php if ( 'div' != $args['style'] ) : ?>
|
||||
@@ -311,21 +279,14 @@ class Walker_Comment extends Walker {
|
||||
<div class="comment-author vcard">
|
||||
<?php
|
||||
if ( 0 != $args['avatar_size'] ) {
|
||||
echo get_avatar( $comment, $args['avatar_size'] );
|
||||
}
|
||||
echo get_avatar( $comment, $args['avatar_size'] );}
|
||||
?>
|
||||
<?php
|
||||
$comment_author = get_comment_author_link( $comment );
|
||||
|
||||
if ( '0' == $comment->comment_approved && ! $show_pending_links ) {
|
||||
$comment_author = get_comment_author( $comment );
|
||||
}
|
||||
|
||||
printf(
|
||||
/* translators: %s: Comment author link. */
|
||||
__( '%s <span class="says">says:</span>' ),
|
||||
sprintf( '<cite class="fn">%s</cite>', $comment_author )
|
||||
);
|
||||
printf(
|
||||
/* translators: %s: Comment author link. */
|
||||
__( '%s <span class="says">says:</span>' ),
|
||||
sprintf( '<cite class="fn">%s</cite>', get_comment_author_link( $comment ) )
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
<?php if ( '0' == $comment->comment_approved ) : ?>
|
||||
@@ -393,14 +354,13 @@ class Walker_Comment extends Walker {
|
||||
protected function html5_comment( $comment, $depth, $args ) {
|
||||
$tag = ( 'div' === $args['style'] ) ? 'div' : 'li';
|
||||
|
||||
$commenter = wp_get_current_commenter();
|
||||
$show_pending_links = ! empty( $commenter['comment_author'] );
|
||||
|
||||
$commenter = wp_get_current_commenter();
|
||||
if ( $commenter['comment_author_email'] ) {
|
||||
$moderation_note = __( 'Your comment is awaiting moderation.' );
|
||||
} else {
|
||||
$moderation_note = __( 'Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.' );
|
||||
}
|
||||
|
||||
?>
|
||||
<<?php echo $tag; ?> id="comment-<?php comment_ID(); ?>" <?php comment_class( $this->has_children ? 'parent' : '', $comment ); ?>>
|
||||
<article id="div-comment-<?php comment_ID(); ?>" class="comment-body">
|
||||
@@ -412,17 +372,11 @@ class Walker_Comment extends Walker {
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
$comment_author = get_comment_author_link( $comment );
|
||||
|
||||
if ( '0' == $comment->comment_approved && ! $show_pending_links ) {
|
||||
$comment_author = get_comment_author( $comment );
|
||||
}
|
||||
|
||||
printf(
|
||||
/* translators: %s: Comment author link. */
|
||||
__( '%s <span class="says">says:</span>' ),
|
||||
sprintf( '<b class="fn">%s</b>', $comment_author )
|
||||
);
|
||||
printf(
|
||||
/* translators: %s: Comment author link. */
|
||||
__( '%s <span class="says">says:</span>' ),
|
||||
sprintf( '<b class="fn">%s</b>', get_comment_author_link( $comment ) )
|
||||
);
|
||||
?>
|
||||
</div><!-- .comment-author -->
|
||||
|
||||
@@ -448,20 +402,18 @@ class Walker_Comment extends Walker {
|
||||
</div><!-- .comment-content -->
|
||||
|
||||
<?php
|
||||
if ( '1' == $comment->comment_approved || $show_pending_links ) {
|
||||
comment_reply_link(
|
||||
array_merge(
|
||||
$args,
|
||||
array(
|
||||
'add_below' => 'div-comment',
|
||||
'depth' => $depth,
|
||||
'max_depth' => $args['max_depth'],
|
||||
'before' => '<div class="reply">',
|
||||
'after' => '</div>',
|
||||
)
|
||||
comment_reply_link(
|
||||
array_merge(
|
||||
$args,
|
||||
array(
|
||||
'add_below' => 'div-comment',
|
||||
'depth' => $depth,
|
||||
'max_depth' => $args['max_depth'],
|
||||
'before' => '<div class="reply">',
|
||||
'after' => '</div>',
|
||||
)
|
||||
);
|
||||
}
|
||||
)
|
||||
);
|
||||
?>
|
||||
</article><!-- .comment-body -->
|
||||
<?php
|
||||
|
||||
@@ -553,15 +553,10 @@ class WP_Comment_Query {
|
||||
// Numeric values are assumed to be user ids.
|
||||
if ( is_numeric( $unapproved_identifier ) ) {
|
||||
$approved_clauses[] = $wpdb->prepare( "( user_id = %d AND comment_approved = '0' )", $unapproved_identifier );
|
||||
} else {
|
||||
|
||||
// Otherwise we match against email addresses.
|
||||
if ( ! empty( $_GET['unapproved'] ) && ! empty( $_GET['moderation-hash'] ) ) {
|
||||
// Only include requested comment.
|
||||
$approved_clauses[] = $wpdb->prepare( "( comment_author_email = %s AND comment_approved = '0' AND comment_ID = %d )", $unapproved_identifier, (int) $_GET['unapproved'] );
|
||||
} else {
|
||||
// Include all of the author's unapproved comments.
|
||||
$approved_clauses[] = $wpdb->prepare( "( comment_author_email = %s AND comment_approved = '0' )", $unapproved_identifier );
|
||||
}
|
||||
} else {
|
||||
$approved_clauses[] = $wpdb->prepare( "( comment_author_email = %s AND comment_approved = '0' )", $unapproved_identifier );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3873,21 +3873,6 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
return new IXR_Error( 403, __( 'Comment is required.' ) );
|
||||
}
|
||||
|
||||
if (
|
||||
'publish' === get_post_status( $post_id ) &&
|
||||
! current_user_can( 'edit_post', $post_id ) &&
|
||||
post_password_required( $post_id )
|
||||
) {
|
||||
return new IXR_Error( 403, __( 'Sorry, you are not allowed to comment on this post.' ) );
|
||||
}
|
||||
|
||||
if (
|
||||
'private' === get_post_status( $post_id ) &&
|
||||
! current_user_can( 'read_post', $post_id )
|
||||
) {
|
||||
return new IXR_Error( 403, __( 'Sorry, you are not allowed to comment on this post.' ) );
|
||||
}
|
||||
|
||||
$comment = array(
|
||||
'comment_post_ID' => $post_id,
|
||||
'comment_content' => $content_struct['content'],
|
||||
@@ -4301,7 +4286,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
do_action( 'xmlrpc_call', 'wp.getMediaItem' );
|
||||
|
||||
$attachment = get_post( $attachment_id );
|
||||
if ( ! $attachment || 'attachment' !== $attachment->post_type ) {
|
||||
if ( ! $attachment ) {
|
||||
return new IXR_Error( 404, __( 'Invalid attachment ID.' ) );
|
||||
}
|
||||
|
||||
|
||||
@@ -403,10 +403,6 @@ class WP {
|
||||
|
||||
if ( is_user_logged_in() ) {
|
||||
$headers = array_merge( $headers, wp_get_nocache_headers() );
|
||||
} elseif ( ! empty( $_GET['unapproved'] ) && ! empty( $_GET['moderation-hash'] ) ) {
|
||||
// Unmoderated comments are only visible for one minute via the moderation hash.
|
||||
$headers['Expires'] = gmdate( 'D, d M Y H:i:s', time() + MINUTE_IN_SECONDS );
|
||||
$headers['Cache-Control'] = 'max-age=60, must-revalidate';
|
||||
}
|
||||
if ( ! empty( $this->query_vars['error'] ) ) {
|
||||
$status = (int) $this->query_vars['error'];
|
||||
|
||||
@@ -593,13 +593,8 @@ function comment_date( $d = '', $comment_ID = 0 ) {
|
||||
* @return string The possibly truncated comment excerpt.
|
||||
*/
|
||||
function get_comment_excerpt( $comment_ID = 0 ) {
|
||||
$comment = get_comment( $comment_ID );
|
||||
|
||||
if ( ! post_password_required( $comment->comment_post_ID ) ) {
|
||||
$comment_text = strip_tags( str_replace( array( "\n", "\r" ), ' ', $comment->comment_content ) );
|
||||
} else {
|
||||
$comment_text = __( 'Password protected' );
|
||||
}
|
||||
$comment = get_comment( $comment_ID );
|
||||
$comment_text = strip_tags( str_replace( array( "\n", "\r" ), ' ', $comment->comment_content ) );
|
||||
|
||||
/* translators: Maximum number of words used in a comment excerpt. */
|
||||
$comment_excerpt_length = intval( _x( '20', 'comment_excerpt_length' ) );
|
||||
@@ -1002,7 +997,7 @@ function comment_text( $comment_ID = 0, $args = array() ) {
|
||||
* @see Walker_Comment::comment()
|
||||
*
|
||||
* @param string $comment_text Text of the current comment.
|
||||
* @param WP_Comment|null $comment The comment object. Null if not found.
|
||||
* @param WP_Comment|null $comment The comment object.
|
||||
* @param array $args An array of arguments.
|
||||
*/
|
||||
echo apply_filters( 'comment_text', $comment_text, $comment, $args );
|
||||
|
||||
@@ -1831,12 +1831,7 @@ function wp_get_unapproved_comment_author_email() {
|
||||
$comment = get_comment( $comment_id );
|
||||
|
||||
if ( $comment && hash_equals( $_GET['moderation-hash'], wp_hash( $comment->comment_date_gmt ) ) ) {
|
||||
// The comment will only be viewable by the comment author for 1 minute.
|
||||
$comment_preview_expires = strtotime( $comment->comment_date_gmt . '+1 minute' );
|
||||
|
||||
if ( time() < $comment_preview_expires ) {
|
||||
$commenter_email = $comment->comment_author_email;
|
||||
}
|
||||
$commenter_email = $comment->comment_author_email;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -180,7 +180,7 @@ div[data-type="core/button"] div[data-block] {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1 1 auto; }
|
||||
@supports (position: sticky) {
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"],
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit,
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit > div[data-block],
|
||||
@@ -600,6 +600,7 @@ div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce::af
|
||||
display: none;
|
||||
width: auto;
|
||||
margin: 0 -14px;
|
||||
position: -webkit-sticky;
|
||||
position: sticky;
|
||||
z-index: 10;
|
||||
top: 14px;
|
||||
@@ -697,7 +698,7 @@ body.admin-color-light .blocks-gallery-item figure.is-selected {
|
||||
max-height: 100%;
|
||||
overflow-y: auto; }
|
||||
|
||||
@supports (position: sticky) {
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
.blocks-gallery-item .is-selected .block-editor-rich-text {
|
||||
left: 0;
|
||||
right: 0;
|
||||
@@ -1134,6 +1135,7 @@ figure.block-library-media-text__media-container {
|
||||
.wp-block-navigation-menu {
|
||||
display: -ms-grid;
|
||||
display: grid;
|
||||
grid-auto-columns: -webkit-min-content;
|
||||
grid-auto-columns: min-content;
|
||||
grid-auto-flow: column;
|
||||
align-items: center;
|
||||
@@ -1146,6 +1148,7 @@ figure.block-library-media-text__media-container {
|
||||
.wp-block-navigation-menu-item__edit-container {
|
||||
display: -ms-grid;
|
||||
display: grid;
|
||||
grid-auto-columns: -webkit-min-content;
|
||||
grid-auto-columns: min-content;
|
||||
grid-auto-flow: column;
|
||||
align-items: center;
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -181,7 +181,7 @@ div[data-type="core/button"] div[data-block] {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1 1 auto; }
|
||||
@supports (position: sticky) {
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"],
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit,
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit > div[data-block],
|
||||
@@ -605,6 +605,7 @@ div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce::af
|
||||
display: none;
|
||||
width: auto;
|
||||
margin: 0 -14px;
|
||||
position: -webkit-sticky;
|
||||
position: sticky;
|
||||
z-index: 10;
|
||||
top: 14px;
|
||||
@@ -702,7 +703,7 @@ body.admin-color-light .blocks-gallery-item figure.is-selected {
|
||||
max-height: 100%;
|
||||
overflow-y: auto; }
|
||||
|
||||
@supports (position: sticky) {
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
.blocks-gallery-item .is-selected .block-editor-rich-text {
|
||||
right: 0;
|
||||
left: 0;
|
||||
@@ -1139,6 +1140,7 @@ figure.block-library-media-text__media-container {
|
||||
.wp-block-navigation-menu {
|
||||
display: -ms-grid;
|
||||
display: grid;
|
||||
grid-auto-columns: -webkit-min-content;
|
||||
grid-auto-columns: min-content;
|
||||
grid-auto-flow: column;
|
||||
align-items: center;
|
||||
@@ -1151,6 +1153,7 @@ figure.block-library-media-text__media-container {
|
||||
.wp-block-navigation-menu-item__edit-container {
|
||||
display: -ms-grid;
|
||||
display: grid;
|
||||
grid-auto-columns: -webkit-min-content;
|
||||
grid-auto-columns: min-content;
|
||||
grid-auto-flow: column;
|
||||
align-items: center;
|
||||
|
||||
File diff suppressed because one or more lines are too long
24
wp-includes/css/dist/block-library/style-rtl.css
vendored
24
wp-includes/css/dist/block-library/style-rtl.css
vendored
@@ -238,7 +238,7 @@
|
||||
content: "";
|
||||
font-size: 0;
|
||||
min-height: inherit; }
|
||||
@supports (position: sticky) {
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
.wp-block-cover-image::after,
|
||||
.wp-block-cover::after {
|
||||
content: none; } }
|
||||
@@ -442,7 +442,7 @@ section.wp-block-cover-image > h2,
|
||||
.blocks-gallery-grid .blocks-gallery-item figure {
|
||||
margin: 0;
|
||||
height: 100%; }
|
||||
@supports (position: sticky) {
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
.wp-block-gallery .blocks-gallery-image figure,
|
||||
.wp-block-gallery .blocks-gallery-item figure,
|
||||
.blocks-gallery-grid .blocks-gallery-image figure,
|
||||
@@ -462,7 +462,7 @@ section.wp-block-cover-image > h2,
|
||||
.blocks-gallery-grid .blocks-gallery-image img,
|
||||
.blocks-gallery-grid .blocks-gallery-item img {
|
||||
width: 100%; }
|
||||
@supports (position: sticky) {
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
.wp-block-gallery .blocks-gallery-image img,
|
||||
.wp-block-gallery .blocks-gallery-item img,
|
||||
.blocks-gallery-grid .blocks-gallery-image img,
|
||||
@@ -496,7 +496,7 @@ section.wp-block-cover-image > h2,
|
||||
.blocks-gallery-grid.is-cropped .blocks-gallery-item a,
|
||||
.blocks-gallery-grid.is-cropped .blocks-gallery-item img {
|
||||
width: 100%; }
|
||||
@supports (position: sticky) {
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
.wp-block-gallery.is-cropped .blocks-gallery-image a,
|
||||
.wp-block-gallery.is-cropped .blocks-gallery-image img,
|
||||
.wp-block-gallery.is-cropped .blocks-gallery-item a,
|
||||
@@ -688,15 +688,19 @@ section.wp-block-cover-image > h2,
|
||||
|
||||
.is-style-circle-mask img {
|
||||
border-radius: 9999px; }
|
||||
@supports (mask-image: none) or (-webkit-mask-image: none) {
|
||||
@supports ((-webkit-mask-image: none) or (mask-image: none)) or (-webkit-mask-image: none) {
|
||||
.is-style-circle-mask img {
|
||||
/* stylelint-disable */
|
||||
mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');
|
||||
-webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');
|
||||
mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');
|
||||
/* stylelint-enable */
|
||||
mask-mode: alpha;
|
||||
mask-repeat: no-repeat;
|
||||
mask-size: contain;
|
||||
mask-position: center;
|
||||
-webkit-mask-repeat: no-repeat;
|
||||
mask-repeat: no-repeat;
|
||||
-webkit-mask-size: contain;
|
||||
mask-size: contain;
|
||||
-webkit-mask-position: center;
|
||||
mask-position: center;
|
||||
border-radius: none; } }
|
||||
|
||||
.wp-block-latest-comments__comment {
|
||||
@@ -1411,7 +1415,7 @@ pre.wp-block-verse {
|
||||
margin-left: 0; }
|
||||
.wp-block-video video {
|
||||
max-width: 100%; }
|
||||
@supports (position: sticky) {
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
.wp-block-video [poster] {
|
||||
-o-object-fit: cover;
|
||||
object-fit: cover; } }
|
||||
|
||||
File diff suppressed because one or more lines are too long
24
wp-includes/css/dist/block-library/style.css
vendored
24
wp-includes/css/dist/block-library/style.css
vendored
@@ -241,7 +241,7 @@
|
||||
content: "";
|
||||
font-size: 0;
|
||||
min-height: inherit; }
|
||||
@supports (position: sticky) {
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
.wp-block-cover-image::after,
|
||||
.wp-block-cover::after {
|
||||
content: none; } }
|
||||
@@ -446,7 +446,7 @@ section.wp-block-cover-image > h2,
|
||||
.blocks-gallery-grid .blocks-gallery-item figure {
|
||||
margin: 0;
|
||||
height: 100%; }
|
||||
@supports (position: sticky) {
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
.wp-block-gallery .blocks-gallery-image figure,
|
||||
.wp-block-gallery .blocks-gallery-item figure,
|
||||
.blocks-gallery-grid .blocks-gallery-image figure,
|
||||
@@ -466,7 +466,7 @@ section.wp-block-cover-image > h2,
|
||||
.blocks-gallery-grid .blocks-gallery-image img,
|
||||
.blocks-gallery-grid .blocks-gallery-item img {
|
||||
width: 100%; }
|
||||
@supports (position: sticky) {
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
.wp-block-gallery .blocks-gallery-image img,
|
||||
.wp-block-gallery .blocks-gallery-item img,
|
||||
.blocks-gallery-grid .blocks-gallery-image img,
|
||||
@@ -500,7 +500,7 @@ section.wp-block-cover-image > h2,
|
||||
.blocks-gallery-grid.is-cropped .blocks-gallery-item a,
|
||||
.blocks-gallery-grid.is-cropped .blocks-gallery-item img {
|
||||
width: 100%; }
|
||||
@supports (position: sticky) {
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
.wp-block-gallery.is-cropped .blocks-gallery-image a,
|
||||
.wp-block-gallery.is-cropped .blocks-gallery-image img,
|
||||
.wp-block-gallery.is-cropped .blocks-gallery-item a,
|
||||
@@ -696,15 +696,19 @@ section.wp-block-cover-image > h2,
|
||||
|
||||
.is-style-circle-mask img {
|
||||
border-radius: 9999px; }
|
||||
@supports (mask-image: none) or (-webkit-mask-image: none) {
|
||||
@supports ((-webkit-mask-image: none) or (mask-image: none)) or (-webkit-mask-image: none) {
|
||||
.is-style-circle-mask img {
|
||||
/* stylelint-disable */
|
||||
mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');
|
||||
-webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');
|
||||
mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');
|
||||
/* stylelint-enable */
|
||||
mask-mode: alpha;
|
||||
mask-repeat: no-repeat;
|
||||
mask-size: contain;
|
||||
mask-position: center;
|
||||
-webkit-mask-repeat: no-repeat;
|
||||
mask-repeat: no-repeat;
|
||||
-webkit-mask-size: contain;
|
||||
mask-size: contain;
|
||||
-webkit-mask-position: center;
|
||||
mask-position: center;
|
||||
border-radius: none; } }
|
||||
|
||||
.wp-block-latest-comments__comment {
|
||||
@@ -1423,7 +1427,7 @@ pre.wp-block-verse {
|
||||
margin-right: 0; }
|
||||
.wp-block-video video {
|
||||
max-width: 100%; }
|
||||
@supports (position: sticky) {
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
.wp-block-video [poster] {
|
||||
-o-object-fit: cover;
|
||||
object-fit: cover; } }
|
||||
|
||||
File diff suppressed because one or more lines are too long
9
wp-includes/css/dist/edit-post/style-rtl.css
vendored
9
wp-includes/css/dist/edit-post/style-rtl.css
vendored
@@ -82,6 +82,7 @@
|
||||
.edit-post-header {
|
||||
height: 56px;
|
||||
top: 0;
|
||||
position: -webkit-sticky;
|
||||
position: sticky;
|
||||
flex-wrap: nowrap; } }
|
||||
@media (min-width: 600px) {
|
||||
@@ -96,7 +97,7 @@
|
||||
top: 0; } }
|
||||
.edit-post-header > .edit-post-header__settings {
|
||||
order: 1; }
|
||||
@supports (position: sticky) {
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
.edit-post-header > .edit-post-header__settings {
|
||||
order: initial; } }
|
||||
|
||||
@@ -438,7 +439,7 @@ body.is-fullscreen-mode .edit-post-layout__content .components-editor-notices__s
|
||||
overscroll-behavior-y: none; } }
|
||||
.edit-post-layout__content .edit-post-visual-editor {
|
||||
flex: 1 1 auto; }
|
||||
@supports (position: sticky) {
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
.edit-post-layout__content .edit-post-visual-editor {
|
||||
flex-basis: 100%; } }
|
||||
.edit-post-layout__content .edit-post-layout__metaboxes {
|
||||
@@ -577,6 +578,7 @@ body.is-fullscreen-mode .edit-post-layout__content .components-editor-notices__s
|
||||
margin: 0 0 2rem 0; }
|
||||
|
||||
.edit-post-manage-blocks-modal__category-title {
|
||||
position: -webkit-sticky;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
padding: 16px 0;
|
||||
@@ -869,7 +871,7 @@ body.is-fullscreen-mode .edit-post-layout__content .components-editor-notices__s
|
||||
.editor-post-author__select {
|
||||
margin: -5px 0;
|
||||
width: 100%; }
|
||||
@supports (position: sticky) {
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
.editor-post-author__select {
|
||||
width: auto; } }
|
||||
|
||||
@@ -938,6 +940,7 @@ body.is-fullscreen-mode .edit-post-layout__content .components-editor-notices__s
|
||||
padding-right: 0;
|
||||
padding-left: 4px;
|
||||
border-top: 0;
|
||||
position: -webkit-sticky;
|
||||
position: sticky;
|
||||
z-index: -1;
|
||||
top: 0; }
|
||||
|
||||
File diff suppressed because one or more lines are too long
9
wp-includes/css/dist/edit-post/style.css
vendored
9
wp-includes/css/dist/edit-post/style.css
vendored
@@ -82,6 +82,7 @@
|
||||
.edit-post-header {
|
||||
height: 56px;
|
||||
top: 0;
|
||||
position: -webkit-sticky;
|
||||
position: sticky;
|
||||
flex-wrap: nowrap; } }
|
||||
@media (min-width: 600px) {
|
||||
@@ -96,7 +97,7 @@
|
||||
top: 0; } }
|
||||
.edit-post-header > .edit-post-header__settings {
|
||||
order: 1; }
|
||||
@supports (position: sticky) {
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
.edit-post-header > .edit-post-header__settings {
|
||||
order: initial; } }
|
||||
|
||||
@@ -438,7 +439,7 @@ body.is-fullscreen-mode .edit-post-layout__content .components-editor-notices__s
|
||||
overscroll-behavior-y: none; } }
|
||||
.edit-post-layout__content .edit-post-visual-editor {
|
||||
flex: 1 1 auto; }
|
||||
@supports (position: sticky) {
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
.edit-post-layout__content .edit-post-visual-editor {
|
||||
flex-basis: 100%; } }
|
||||
.edit-post-layout__content .edit-post-layout__metaboxes {
|
||||
@@ -577,6 +578,7 @@ body.is-fullscreen-mode .edit-post-layout__content .components-editor-notices__s
|
||||
margin: 0 0 2rem 0; }
|
||||
|
||||
.edit-post-manage-blocks-modal__category-title {
|
||||
position: -webkit-sticky;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
padding: 16px 0;
|
||||
@@ -869,7 +871,7 @@ body.is-fullscreen-mode .edit-post-layout__content .components-editor-notices__s
|
||||
.editor-post-author__select {
|
||||
margin: -5px 0;
|
||||
width: 100%; }
|
||||
@supports (position: sticky) {
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
.editor-post-author__select {
|
||||
width: auto; } }
|
||||
|
||||
@@ -942,6 +944,7 @@ body.is-fullscreen-mode .edit-post-layout__content .components-editor-notices__s
|
||||
padding-left: 0;
|
||||
padding-right: 4px;
|
||||
border-top: 0;
|
||||
position: -webkit-sticky;
|
||||
position: sticky;
|
||||
z-index: -1;
|
||||
top: 0; }
|
||||
|
||||
2
wp-includes/css/dist/edit-post/style.min.css
vendored
2
wp-includes/css/dist/edit-post/style.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -574,8 +574,8 @@ add_filter( 'the_excerpt_embed', 'wpautop' );
|
||||
add_filter( 'the_excerpt_embed', 'shortcode_unautop' );
|
||||
add_filter( 'the_excerpt_embed', 'wp_embed_excerpt_attachment' );
|
||||
|
||||
add_filter( 'oembed_dataparse', 'wp_filter_oembed_iframe_title_attribute', 5, 3 );
|
||||
add_filter( 'oembed_dataparse', 'wp_filter_oembed_result', 10, 3 );
|
||||
add_filter( 'oembed_dataparse', 'wp_filter_oembed_iframe_title_attribute', 20, 3 );
|
||||
add_filter( 'oembed_response_data', 'get_oembed_response_data_rich', 10, 4 );
|
||||
add_filter( 'pre_oembed_result', 'wp_filter_pre_oembed_result', 10, 3 );
|
||||
|
||||
|
||||
@@ -604,12 +604,7 @@ function get_oembed_response_data_for_url( $url, $args ) {
|
||||
$sites = get_sites( $qv );
|
||||
$site = reset( $sites );
|
||||
|
||||
// Do not allow embeds for deleted/archived/spam sites.
|
||||
if ( ! empty( $site->deleted ) || ! empty( $site->spam ) || ! empty( $site->archived ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( $site && get_current_blog_id() !== (int) $site->blog_id ) {
|
||||
if ( $site && (int) $site->blog_id !== get_current_blog_id() ) {
|
||||
switch_to_blog( $site->blog_id );
|
||||
$switched_blog = true;
|
||||
}
|
||||
@@ -802,24 +797,11 @@ function wp_filter_oembed_iframe_title_attribute( $result, $data, $url ) {
|
||||
|
||||
$title = ! empty( $data->title ) ? $data->title : '';
|
||||
|
||||
$pattern = '`<iframe([^>]*)>`i';
|
||||
if ( preg_match( $pattern, $result, $matches ) ) {
|
||||
$attrs = wp_kses_hair( $matches[1], wp_allowed_protocols() );
|
||||
$pattern = '`<iframe[^>]*?title=(\\\\\'|\\\\"|[\'"])([^>]*?)\1`i';
|
||||
$has_title_attr = preg_match( $pattern, $result, $matches );
|
||||
|
||||
foreach ( $attrs as $attr => $item ) {
|
||||
$lower_attr = strtolower( $attr );
|
||||
if ( $lower_attr === $attr ) {
|
||||
continue;
|
||||
}
|
||||
if ( ! isset( $attrs[ $lower_attr ] ) ) {
|
||||
$attrs[ $lower_attr ] = $item;
|
||||
unset( $attrs[ $attr ] );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! empty( $attrs['title']['value'] ) ) {
|
||||
$title = $attrs['title']['value'];
|
||||
if ( $has_title_attr && ! empty( $matches[2] ) ) {
|
||||
$title = $matches[2];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -838,11 +820,11 @@ function wp_filter_oembed_iframe_title_attribute( $result, $data, $url ) {
|
||||
return $result;
|
||||
}
|
||||
|
||||
if ( isset( $attrs['title'] ) ) {
|
||||
unset( $attrs['title'] );
|
||||
$attr_string = join( ' ', wp_list_pluck( $attrs, 'whole' ) );
|
||||
$result = str_replace( $matches[0], '<iframe ' . trim( $attr_string ) . '>', $result );
|
||||
if ( $has_title_attr ) {
|
||||
// Remove the old title, $matches[1]: quote, $matches[2]: title attribute value.
|
||||
$result = str_replace( ' title=' . $matches[1] . $matches[2] . $matches[1], '', $result );
|
||||
}
|
||||
|
||||
return str_ireplace( '<iframe ', sprintf( '<iframe title="%s" ', esc_attr( $title ) ), $result );
|
||||
}
|
||||
|
||||
|
||||
@@ -1706,11 +1706,7 @@ function is_blog_installed() {
|
||||
continue;
|
||||
}
|
||||
|
||||
$described_table = $wpdb->get_results( "DESCRIBE $table;" );
|
||||
if (
|
||||
( ! $described_table && empty( $wpdb->last_error ) ) ||
|
||||
( is_array( $described_table ) && 0 === count( $described_table ) )
|
||||
) {
|
||||
if ( ! $wpdb->get_results( "DESCRIBE $table;" ) ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
4
wp-includes/js/dist/a11y.js
vendored
4
wp-includes/js/dist/a11y.js
vendored
@@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["a11y"] =
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 364);
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 365);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
@@ -94,7 +94,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["a11y"] =
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 364:
|
||||
/***/ 365:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
2
wp-includes/js/dist/a11y.min.js
vendored
2
wp-includes/js/dist/a11y.min.js
vendored
@@ -1 +1 @@
|
||||
this.wp=this.wp||{},this.wp.a11y=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=364)}({217:function(e,t){!function(){e.exports=this.wp.domReady}()},364:function(e,t,n){"use strict";n.r(t);var r=n(217),o=n.n(r),i=function(e){e=e||"polite";var t=document.createElement("div");return t.id="a11y-speak-"+e,t.className="a11y-speak-region",t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true"),document.querySelector("body").appendChild(t),t},a=function(){for(var e=document.querySelectorAll(".a11y-speak-region"),t=0;t<e.length;t++)e[t].textContent=""},u="",l=function(e){return e=e.replace(/<[^<>]+>/g," "),u===e&&(e+=" "),u=e,e};n.d(t,"setup",(function(){return p})),n.d(t,"speak",(function(){return c}));var p=function(){var e=document.getElementById("a11y-speak-polite"),t=document.getElementById("a11y-speak-assertive");null===e&&(e=i("polite")),null===t&&(t=i("assertive"))};o()(p);var c=function(e,t){a(),e=l(e);var n=document.getElementById("a11y-speak-polite"),r=document.getElementById("a11y-speak-assertive");r&&"assertive"===t?r.textContent=e:n&&(n.textContent=e)}}});
|
||||
this.wp=this.wp||{},this.wp.a11y=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=365)}({217:function(e,t){!function(){e.exports=this.wp.domReady}()},365:function(e,t,n){"use strict";n.r(t);var r=n(217),o=n.n(r),i=function(e){e=e||"polite";var t=document.createElement("div");return t.id="a11y-speak-"+e,t.className="a11y-speak-region",t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true"),document.querySelector("body").appendChild(t),t},a=function(){for(var e=document.querySelectorAll(".a11y-speak-region"),t=0;t<e.length;t++)e[t].textContent=""},u="",l=function(e){return e=e.replace(/<[^<>]+>/g," "),u===e&&(e+=" "),u=e,e};n.d(t,"setup",(function(){return p})),n.d(t,"speak",(function(){return c}));var p=function(){var e=document.getElementById("a11y-speak-polite"),t=document.getElementById("a11y-speak-assertive");null===e&&(e=i("polite")),null===t&&(t=i("assertive"))};o()(p);var c=function(e,t){a(),e=l(e);var n=document.getElementById("a11y-speak-polite"),r=document.getElementById("a11y-speak-assertive");r&&"assertive"===t?r.textContent=e:n&&(n.textContent=e)}}});
|
||||
4
wp-includes/js/dist/data-controls.js
vendored
4
wp-includes/js/dist/data-controls.js
vendored
@@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["dataControls"] =
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 318);
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 317);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
@@ -131,7 +131,7 @@ function _iterableToArray(iter) {
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 318:
|
||||
/***/ 317:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
2
wp-includes/js/dist/data-controls.min.js
vendored
2
wp-includes/js/dist/data-controls.min.js
vendored
@@ -1 +1 @@
|
||||
this.wp=this.wp||{},this.wp.dataControls=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=318)}({17:function(t,e,r){"use strict";var n=r(30);function o(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||Object(n.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}r.d(e,"a",(function(){return o}))},30:function(t,e,r){"use strict";function n(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}r.d(e,"a",(function(){return n}))},318:function(t,e,r){"use strict";r.r(e),r.d(e,"apiFetch",(function(){return c})),r.d(e,"select",(function(){return a})),r.d(e,"dispatch",(function(){return s})),r.d(e,"controls",(function(){return f}));var n=r(17),o=r(34),u=r.n(o),i=r(4),c=function(t){return{type:"API_FETCH",request:t}};function a(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return{type:"SELECT",storeKey:t,selectorName:e,args:n}}function s(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return{type:"DISPATCH",storeKey:t,actionName:e,args:n}}var f={API_FETCH:function(t){var e=t.request;return u()(e)},SELECT:Object(i.createRegistryControl)((function(t){return function(e){var r,o=e.storeKey,u=e.selectorName,i=e.args;return t.select(o)[u].hasResolver?function(t,e){var r=e.storeKey,n=e.selectorName,o=e.args;return new Promise((function(e){var u=function(){return t.select("core/data").hasFinishedResolution(r,n,o)},i=function(){return t.select(r)[n].apply(null,o)},c=i();if(u())return e(c);var a=t.subscribe((function(){u()&&(a(),e(i()))}))}))}(t,{storeKey:o,selectorName:u,args:i}):(r=t.select(o))[u].apply(r,Object(n.a)(i))}})),DISPATCH:Object(i.createRegistryControl)((function(t){return function(e){var r,o=e.storeKey,u=e.actionName,i=e.args;return(r=t.dispatch(o))[u].apply(r,Object(n.a)(i))}}))}},34:function(t,e){!function(){t.exports=this.wp.apiFetch}()},4:function(t,e){!function(){t.exports=this.wp.data}()}});
|
||||
this.wp=this.wp||{},this.wp.dataControls=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=317)}({17:function(t,e,r){"use strict";var n=r(30);function o(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||Object(n.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}r.d(e,"a",(function(){return o}))},30:function(t,e,r){"use strict";function n(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}r.d(e,"a",(function(){return n}))},317:function(t,e,r){"use strict";r.r(e),r.d(e,"apiFetch",(function(){return c})),r.d(e,"select",(function(){return a})),r.d(e,"dispatch",(function(){return s})),r.d(e,"controls",(function(){return f}));var n=r(17),o=r(34),u=r.n(o),i=r(4),c=function(t){return{type:"API_FETCH",request:t}};function a(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return{type:"SELECT",storeKey:t,selectorName:e,args:n}}function s(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return{type:"DISPATCH",storeKey:t,actionName:e,args:n}}var f={API_FETCH:function(t){var e=t.request;return u()(e)},SELECT:Object(i.createRegistryControl)((function(t){return function(e){var r,o=e.storeKey,u=e.selectorName,i=e.args;return t.select(o)[u].hasResolver?function(t,e){var r=e.storeKey,n=e.selectorName,o=e.args;return new Promise((function(e){var u=function(){return t.select("core/data").hasFinishedResolution(r,n,o)},i=function(){return t.select(r)[n].apply(null,o)},c=i();if(u())return e(c);var a=t.subscribe((function(){u()&&(a(),e(i()))}))}))}(t,{storeKey:o,selectorName:u,args:i}):(r=t.select(o))[u].apply(r,Object(n.a)(i))}})),DISPATCH:Object(i.createRegistryControl)((function(t){return function(e){var r,o=e.storeKey,u=e.actionName,i=e.args;return(r=t.dispatch(o))[u].apply(r,Object(n.a)(i))}}))}},34:function(t,e){!function(){t.exports=this.wp.apiFetch}()},4:function(t,e){!function(){t.exports=this.wp.data}()}});
|
||||
4
wp-includes/js/dist/data.js
vendored
4
wp-includes/js/dist/data.js
vendored
@@ -198,7 +198,7 @@ if (typeof self !== 'undefined') {
|
||||
var result = Object(_ponyfill_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(root);
|
||||
/* harmony default export */ __webpack_exports__["a"] = (result);
|
||||
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(65), __webpack_require__(317)(module)))
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(65), __webpack_require__(318)(module)))
|
||||
|
||||
/***/ }),
|
||||
|
||||
@@ -374,7 +374,7 @@ function _iterableToArray(iter) {
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 317:
|
||||
/***/ 318:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = function(originalModule) {
|
||||
|
||||
2
wp-includes/js/dist/data.min.js
vendored
2
wp-includes/js/dist/data.min.js
vendored
File diff suppressed because one or more lines are too long
4
wp-includes/js/dist/dom.js
vendored
4
wp-includes/js/dist/dom.js
vendored
@@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["dom"] =
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 365);
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 364);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
@@ -138,7 +138,7 @@ function _iterableToArray(iter) {
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 365:
|
||||
/***/ 364:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
2
wp-includes/js/dist/dom.min.js
vendored
2
wp-includes/js/dist/dom.min.js
vendored
File diff suppressed because one or more lines are too long
4
wp-includes/js/dist/element.js
vendored
4
wp-includes/js/dist/element.js
vendored
@@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["element"] =
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 358);
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 359);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
@@ -190,7 +190,7 @@ function _typeof(obj) {
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 358:
|
||||
/***/ 359:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
2
wp-includes/js/dist/element.min.js
vendored
2
wp-includes/js/dist/element.min.js
vendored
File diff suppressed because one or more lines are too long
4
wp-includes/js/dist/i18n.js
vendored
4
wp-includes/js/dist/i18n.js
vendored
@@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["i18n"] =
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 359);
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 360);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
@@ -348,7 +348,7 @@ var __WEBPACK_AMD_DEFINE_RESULT__;/* global window, exports, define */
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 359:
|
||||
/***/ 360:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
2
wp-includes/js/dist/i18n.min.js
vendored
2
wp-includes/js/dist/i18n.min.js
vendored
File diff suppressed because one or more lines are too long
4
wp-includes/js/dist/list-reusable-blocks.js
vendored
4
wp-includes/js/dist/list-reusable-blocks.js
vendored
@@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["listReusableBlocks"] =
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 360);
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 358);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
@@ -256,7 +256,7 @@ function _typeof(obj) {
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 360:
|
||||
/***/ 358:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1036,9 +1036,8 @@ function _get_meta_table( $type ) {
|
||||
* @param string|null $meta_type Optional. Type of object metadata is for (e.g., comment, post, term, or user).
|
||||
* @return bool Whether the meta key is considered protected.
|
||||
*/
|
||||
function is_protected_meta( $meta_key, $meta_type = '' ) {
|
||||
$sanitized_key = preg_replace( "/[^\x20-\x7E\p{L}]/", '', $meta_key );
|
||||
$protected = strlen( $sanitized_key ) > 0 && ( '_' === $sanitized_key[0] );
|
||||
function is_protected_meta( $meta_key, $meta_type = null ) {
|
||||
$protected = ( '_' == $meta_key[0] );
|
||||
|
||||
/**
|
||||
* Filters whether a meta key is considered protected.
|
||||
|
||||
@@ -1391,9 +1391,9 @@ if ( ! function_exists( 'wp_validate_redirect' ) ) :
|
||||
* @return string redirect-sanitized URL
|
||||
*/
|
||||
function wp_validate_redirect( $location, $default = '' ) {
|
||||
$location = wp_sanitize_redirect( trim( $location, " \t\n\r\0\x08\x0B" ) );
|
||||
// Browsers will assume 'http' is your protocol, and will obey a redirect to a URL starting with '//'.
|
||||
if ( '//' === substr( $location, 0, 2 ) ) {
|
||||
$location = trim( $location, " \t\n\r\0\x08\x0B" );
|
||||
// browsers will assume 'http' is your protocol, and will obey a redirect to a URL starting with '//'
|
||||
if ( substr( $location, 0, 2 ) == '//' ) {
|
||||
$location = 'http:' . $location;
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.3.6';
|
||||
$wp_version = '5.3.3';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user