MAW-894: product radio buttons, wp update 6.6.1
This commit is contained in:
@@ -41,6 +41,37 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
<a href="contribute.php" class="nav-tab"><?php _e( 'Get Involved' ); ?></a>
|
||||
</nav>
|
||||
|
||||
<div class="about__section changelog has-subtle-background-color">
|
||||
<div class="column">
|
||||
<h2><?php _e( 'Maintenance and Security Release' ); ?></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.',
|
||||
16
|
||||
),
|
||||
'6.6.1',
|
||||
'16'
|
||||
);
|
||||
?>
|
||||
<?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( '6.6.1' )
|
||||
)
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="about__section">
|
||||
<div class="column">
|
||||
<h2>
|
||||
|
||||
@@ -1272,23 +1272,13 @@ label.post-format-icon {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.categorydiv,
|
||||
.customlinkdiv,
|
||||
.posttypediv,
|
||||
.taxonomydiv {
|
||||
max-height: inherit;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.wp-tab-panel,
|
||||
.categorydiv div.tabs-panel,
|
||||
.customlinkdiv div.tabs-panel,
|
||||
.posttypediv div.tabs-panel,
|
||||
.taxonomydiv div.tabs-panel {
|
||||
min-height: 42px;
|
||||
/* Allow space for content after tab panels in nav menu editor. */
|
||||
max-height: calc( 100% - 75px );
|
||||
height: 100%;
|
||||
max-height: 200px;
|
||||
overflow: auto;
|
||||
padding: 0 0.9em;
|
||||
border: solid 1px #dcdcde;
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -1271,23 +1271,13 @@ label.post-format-icon {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.categorydiv,
|
||||
.customlinkdiv,
|
||||
.posttypediv,
|
||||
.taxonomydiv {
|
||||
max-height: inherit;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.wp-tab-panel,
|
||||
.categorydiv div.tabs-panel,
|
||||
.customlinkdiv div.tabs-panel,
|
||||
.posttypediv div.tabs-panel,
|
||||
.taxonomydiv div.tabs-panel {
|
||||
min-height: 42px;
|
||||
/* Allow space for content after tab panels in nav menu editor. */
|
||||
max-height: calc( 100% - 75px );
|
||||
height: 100%;
|
||||
max-height: 200px;
|
||||
overflow: auto;
|
||||
padding: 0 0.9em;
|
||||
border: solid 1px #dcdcde;
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -54,6 +54,24 @@ ul.add-menu-item-tabs li {
|
||||
max-height: inherit;
|
||||
}
|
||||
|
||||
#menu-settings-column .categorydiv,
|
||||
#menu-settings-column .customlinkdiv,
|
||||
#menu-settings-column .posttypediv,
|
||||
#menu-settings-column .taxonomydiv {
|
||||
max-height: inherit;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#menu-settings-column .wp-tab-panel,
|
||||
#menu-settings-column .categorydiv div.tabs-panel,
|
||||
#menu-settings-column .customlinkdiv div.tabs-panel,
|
||||
#menu-settings-column .posttypediv div.tabs-panel,
|
||||
#menu-settings-column .taxonomydiv div.tabs-panel {
|
||||
/* Allow space for content after tab panels in nav menu editor. */
|
||||
max-height: calc( 100% - 75px );
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.metabox-holder-disabled .postbox,
|
||||
.metabox-holder-disabled .accordion-section-content,
|
||||
.metabox-holder-disabled .accordion-section-title {
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -53,6 +53,24 @@ ul.add-menu-item-tabs li {
|
||||
max-height: inherit;
|
||||
}
|
||||
|
||||
#menu-settings-column .categorydiv,
|
||||
#menu-settings-column .customlinkdiv,
|
||||
#menu-settings-column .posttypediv,
|
||||
#menu-settings-column .taxonomydiv {
|
||||
max-height: inherit;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#menu-settings-column .wp-tab-panel,
|
||||
#menu-settings-column .categorydiv div.tabs-panel,
|
||||
#menu-settings-column .customlinkdiv div.tabs-panel,
|
||||
#menu-settings-column .posttypediv div.tabs-panel,
|
||||
#menu-settings-column .taxonomydiv div.tabs-panel {
|
||||
/* Allow space for content after tab panels in nav menu editor. */
|
||||
max-height: calc( 100% - 75px );
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.metabox-holder-disabled .postbox,
|
||||
.metabox-holder-disabled .accordion-section-content,
|
||||
.metabox-holder-disabled .accordion-section-title {
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -765,6 +765,11 @@ $_old_files = array(
|
||||
'wp-admin/images/about-header-freedoms.svg',
|
||||
'wp-admin/images/about-header-contribute.svg',
|
||||
'wp-admin/images/about-header-background.svg',
|
||||
// 6.6
|
||||
'wp-includes/blocks/block/editor.css',
|
||||
'wp-includes/blocks/block/editor.min.css',
|
||||
'wp-includes/blocks/block/editor-rtl.css',
|
||||
'wp-includes/blocks/block/editor-rtl.min.css',
|
||||
);
|
||||
|
||||
/**
|
||||
|
||||
@@ -57,7 +57,7 @@ $productsWithConnectionType = []; // non autoalert
|
||||
$HomeSafeProducts = []; // same as above, but autoalert only
|
||||
foreach ($allProducts as $lifelineProduct) {
|
||||
// hydrate all autoAlert products
|
||||
if (strpos($lifelineProduct["title"], "HomeSafe") !== false) {
|
||||
if (strpos($lifelineProduct["title"], "Home") !== false) {
|
||||
// die(var_dump($lifelineProduct));
|
||||
$autoAlertProducts[] = $lifelineProduct;
|
||||
}
|
||||
@@ -82,14 +82,13 @@ foreach ($allProducts as $lifelineProduct) {
|
||||
$productsWithConnectionType[] = $lifelineProduct;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// next, determine if the current product is HomeSafe
|
||||
if (strpos($currentProduct["title"], "HomeSafe") !== false) {
|
||||
if (strpos($currentProduct["title"], "Home") !== false) {
|
||||
$currentProductIsHomeSafe = true;
|
||||
//var_dump($currentProductIsHomeSafe);
|
||||
}
|
||||
|
||||
//var_dump($currentProduct["title"]);
|
||||
//var_dump($lifelineProduct);
|
||||
// next, determine which two products we should be switching between with
|
||||
// the radio button like choices shown in the template
|
||||
if (is_array($lifelineProduct["_product_attributes"]) &&
|
||||
@@ -111,14 +110,11 @@ foreach ($allProducts as $lifelineProduct) {
|
||||
|
||||
$OntheGoProducts = [];
|
||||
foreach ($allProducts as $llProduct) {
|
||||
if (strpos($llProduct["title"], "On the Go") !== false) {
|
||||
if (strpos($llProduct["title"], "Mini Mobile System") !== false || strpos($llProduct["title"], "Mobile System") !== false) {
|
||||
$ontheGoProducts[] = $llProduct;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$test = strtolower($currentProduct["title"]) === "On the Go";
|
||||
|
||||
$flexOutput = "";
|
||||
if (is_array(get_field('flex_content'))) {
|
||||
foreach (get_field('flex_content') as $flex) {
|
||||
@@ -142,9 +138,9 @@ echo site()->render("single_product", [
|
||||
"product" => $currentProduct,
|
||||
"add-to-cart-url" => do_shortcode("[add_to_cart_url id='".$currentProduct->ID."']"),
|
||||
"flex-content" => $flexOutput,
|
||||
"showHomesafeOptions" => strtolower(substr($currentProduct["title"], 0, 8)) === "homesafe",
|
||||
"showHomesafeOptions" => strtolower(substr($currentProduct["title"], 0, 4)) === "home",
|
||||
"homeSafeProducts" => array_reverse($homeSafeProducts),
|
||||
"showOTGOptions" => strtolower($currentProduct["title"]) === "on the go" || strtolower($currentProduct["title"]) === "on the go mini",
|
||||
"showOTGOptions" => strtolower($currentProduct["title"]) === "mobile system" || strtolower($currentProduct["title"]) === "mini mobile system",
|
||||
"OTGProducts" => array_reverse($ontheGoProducts),
|
||||
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -322,14 +322,22 @@ function wp_get_layout_style( $selector, $layout, $has_block_gap_support = false
|
||||
* They're added separately because padding might only be set on one side.
|
||||
*/
|
||||
if ( isset( $block_spacing_values['declarations']['padding-right'] ) ) {
|
||||
$padding_right = $block_spacing_values['declarations']['padding-right'];
|
||||
$padding_right = $block_spacing_values['declarations']['padding-right'];
|
||||
// Add unit if 0.
|
||||
if ( '0' === $padding_right ) {
|
||||
$padding_right = '0px';
|
||||
}
|
||||
$layout_styles[] = array(
|
||||
'selector' => "$selector > .alignfull",
|
||||
'declarations' => array( 'margin-right' => "calc($padding_right * -1)" ),
|
||||
);
|
||||
}
|
||||
if ( isset( $block_spacing_values['declarations']['padding-left'] ) ) {
|
||||
$padding_left = $block_spacing_values['declarations']['padding-left'];
|
||||
$padding_left = $block_spacing_values['declarations']['padding-left'];
|
||||
// Add unit if 0.
|
||||
if ( '0' === $padding_left ) {
|
||||
$padding_left = '0px';
|
||||
}
|
||||
$layout_styles[] = array(
|
||||
'selector' => "$selector > .alignfull",
|
||||
'declarations' => array( 'margin-left' => "calc($padding_left * -1)" ),
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
.edit-post-visual-editor .block-library-block__reusable-block-container .is-root-container{
|
||||
padding-left:0;
|
||||
padding-right:0;
|
||||
}
|
||||
.edit-post-visual-editor .block-library-block__reusable-block-container .block-editor-writing-flow{
|
||||
display:block;
|
||||
}
|
||||
.edit-post-visual-editor .block-library-block__reusable-block-container .components-disabled .block-list-appender{
|
||||
display:none;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted,.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected{
|
||||
box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color);
|
||||
}
|
||||
.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after{
|
||||
box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color);
|
||||
}
|
||||
.is-dark-theme .edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after{
|
||||
box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff;
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
.edit-post-visual-editor .block-library-block__reusable-block-container .is-root-container{padding-left:0;padding-right:0}.edit-post-visual-editor .block-library-block__reusable-block-container .block-editor-writing-flow{display:block}.edit-post-visual-editor .block-library-block__reusable-block-container .components-disabled .block-list-appender{display:none}.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted,.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.is-dark-theme .edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff}
|
||||
@@ -1,20 +0,0 @@
|
||||
.edit-post-visual-editor .block-library-block__reusable-block-container .is-root-container{
|
||||
padding-left:0;
|
||||
padding-right:0;
|
||||
}
|
||||
.edit-post-visual-editor .block-library-block__reusable-block-container .block-editor-writing-flow{
|
||||
display:block;
|
||||
}
|
||||
.edit-post-visual-editor .block-library-block__reusable-block-container .components-disabled .block-list-appender{
|
||||
display:none;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted,.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected{
|
||||
box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color);
|
||||
}
|
||||
.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after{
|
||||
box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color);
|
||||
}
|
||||
.is-dark-theme .edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after{
|
||||
box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff;
|
||||
}
|
||||
-1
@@ -1 +0,0 @@
|
||||
.edit-post-visual-editor .block-library-block__reusable-block-container .is-root-container{padding-left:0;padding-right:0}.edit-post-visual-editor .block-library-block__reusable-block-container .block-editor-writing-flow{display:block}.edit-post-visual-editor .block-library-block__reusable-block-container .components-disabled .block-list-appender{display:none}.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted,.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.is-dark-theme .edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff}
|
||||
@@ -37,10 +37,7 @@
|
||||
.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:focus{
|
||||
text-decoration:line-through;
|
||||
}
|
||||
.wp-block-navigation:where(:not([class*=has-text-decoration])) a{
|
||||
text-decoration:none;
|
||||
}
|
||||
.wp-block-navigation:where(:not([class*=has-text-decoration])) a:active,.wp-block-navigation:where(:not([class*=has-text-decoration])) a:focus{
|
||||
.wp-block-navigation :where(a),.wp-block-navigation :where(a:active),.wp-block-navigation :where(a:focus){
|
||||
text-decoration:none;
|
||||
}
|
||||
.wp-block-navigation .wp-block-navigation__submenu-icon{
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -37,10 +37,7 @@
|
||||
.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:focus{
|
||||
text-decoration:line-through;
|
||||
}
|
||||
.wp-block-navigation:where(:not([class*=has-text-decoration])) a{
|
||||
text-decoration:none;
|
||||
}
|
||||
.wp-block-navigation:where(:not([class*=has-text-decoration])) a:active,.wp-block-navigation:where(:not([class*=has-text-decoration])) a:focus{
|
||||
.wp-block-navigation :where(a),.wp-block-navigation :where(a:active),.wp-block-navigation :where(a:focus){
|
||||
text-decoration:none;
|
||||
}
|
||||
.wp-block-navigation .wp-block-navigation__submenu-icon{
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -648,8 +648,8 @@ class WP_Admin_Bar {
|
||||
public function add_menus() {
|
||||
// User-related, aligned right.
|
||||
add_action( 'admin_bar_menu', 'wp_admin_bar_my_account_menu', 0 );
|
||||
add_action( 'admin_bar_menu', 'wp_admin_bar_my_account_item', 7 );
|
||||
add_action( 'admin_bar_menu', 'wp_admin_bar_recovery_mode_menu', 8 );
|
||||
add_action( 'admin_bar_menu', 'wp_admin_bar_my_account_item', 9991 );
|
||||
add_action( 'admin_bar_menu', 'wp_admin_bar_recovery_mode_menu', 9992 );
|
||||
add_action( 'admin_bar_menu', 'wp_admin_bar_search_menu', 9999 );
|
||||
|
||||
// Site-related.
|
||||
|
||||
@@ -2879,8 +2879,23 @@ class WP_Theme_JSON {
|
||||
$declarations = static::update_separator_declarations( $declarations );
|
||||
}
|
||||
|
||||
/*
|
||||
* Top-level element styles using element-only specificity selectors should
|
||||
* not get wrapped in `:root :where()` to maintain backwards compatibility.
|
||||
*
|
||||
* Pseudo classes, e.g. :hover, :focus etc., are a class-level selector so
|
||||
* still need to be wrapped in `:root :where` to cap specificity for nested
|
||||
* variations etc. Pseudo selectors won't match the ELEMENTS selector exactly.
|
||||
*/
|
||||
$element_only_selector = $current_element &&
|
||||
isset( static::ELEMENTS[ $current_element ] ) &&
|
||||
// buttons, captions etc. still need `:root :where()` as they are class based selectors.
|
||||
! isset( static::__EXPERIMENTAL_ELEMENT_CLASS_NAMES[ $current_element ] ) &&
|
||||
static::ELEMENTS[ $current_element ] === $selector;
|
||||
|
||||
// 2. Generate and append the rules that use the general selector.
|
||||
$block_rules .= static::to_ruleset( ":root :where($selector)", $declarations );
|
||||
$general_selector = $element_only_selector ? $selector : ":root :where($selector)";
|
||||
$block_rules .= static::to_ruleset( $general_selector, $declarations );
|
||||
|
||||
// 3. Generate and append the rules that use the duotone selector.
|
||||
if ( isset( $block_metadata['duotone'] ) && ! empty( $declarations_duotone ) ) {
|
||||
|
||||
@@ -24,7 +24,13 @@
|
||||
function get_comment_author( $comment_id = 0 ) {
|
||||
$comment = get_comment( $comment_id );
|
||||
|
||||
$comment_id = ! empty( $comment->comment_ID ) ? $comment->comment_ID : (string) $comment_id;
|
||||
if ( ! empty( $comment->comment_ID ) ) {
|
||||
$comment_id = $comment->comment_ID;
|
||||
} elseif ( is_scalar( $comment_id ) ) {
|
||||
$comment_id = (string) $comment_id;
|
||||
} else {
|
||||
$comment_id = '';
|
||||
}
|
||||
|
||||
if ( empty( $comment->comment_author ) ) {
|
||||
$user = ! empty( $comment->user_id ) ? get_userdata( $comment->user_id ) : false;
|
||||
|
||||
@@ -40,6 +40,43 @@ function _wp_can_use_pcre_u( $set = null ) {
|
||||
return $utf8_pcre;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates if a given slug for a character set represents the UTF-8 text encoding.
|
||||
*
|
||||
* A charset is considered to represent UTF-8 if it is a case-insensitive match
|
||||
* of "UTF-8" with or without the hyphen.
|
||||
*
|
||||
* Example:
|
||||
*
|
||||
* true === _is_utf8_charset( 'UTF-8' );
|
||||
* true === _is_utf8_charset( 'utf8' );
|
||||
* false === _is_utf8_charset( 'latin1' );
|
||||
* false === _is_utf8_charset( 'UTF 8' );
|
||||
*
|
||||
* // Only strings match.
|
||||
* false === _is_utf8_charset( [ 'charset' => 'utf-8' ] );
|
||||
*
|
||||
* `is_utf8_charset` should be used outside of this file.
|
||||
*
|
||||
* @ignore
|
||||
* @since 6.6.1
|
||||
*
|
||||
* @param string $charset_slug Slug representing a text character encoding, or "charset".
|
||||
* E.g. "UTF-8", "Windows-1252", "ISO-8859-1", "SJIS".
|
||||
*
|
||||
* @return bool Whether the slug represents the UTF-8 encoding.
|
||||
*/
|
||||
function _is_utf8_charset( $charset_slug ) {
|
||||
if ( ! is_string( $charset_slug ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return (
|
||||
0 === strcasecmp( 'UTF-8', $charset_slug ) ||
|
||||
0 === strcasecmp( 'UTF8', $charset_slug )
|
||||
);
|
||||
}
|
||||
|
||||
if ( ! function_exists( 'mb_substr' ) ) :
|
||||
/**
|
||||
* Compat function to mimic mb_substr().
|
||||
@@ -91,7 +128,7 @@ function _mb_substr( $str, $start, $length = null, $encoding = null ) {
|
||||
* The solution below works only for UTF-8, so in case of a different
|
||||
* charset just use built-in substr().
|
||||
*/
|
||||
if ( ! is_utf8_charset( $encoding ) ) {
|
||||
if ( ! _is_utf8_charset( $encoding ) ) {
|
||||
return is_null( $length ) ? substr( $str, $start ) : substr( $str, $start, $length );
|
||||
}
|
||||
|
||||
@@ -176,7 +213,7 @@ function _mb_strlen( $str, $encoding = null ) {
|
||||
* The solution below works only for UTF-8, so in case of a different charset
|
||||
* just use built-in strlen().
|
||||
*/
|
||||
if ( ! is_utf8_charset( $encoding ) ) {
|
||||
if ( ! _is_utf8_charset( $encoding ) ) {
|
||||
return strlen( $str );
|
||||
}
|
||||
|
||||
|
||||
@@ -68,6 +68,7 @@
|
||||
grid-template-columns:auto 1fr;
|
||||
height:auto;
|
||||
padding:12px;
|
||||
position:relative;
|
||||
text-align:right;
|
||||
width:100%;
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-directory-block-ratings>span{display:flex}.block-directory-block-ratings svg{fill:#1e1e1e;margin-right:-4px}.block-directory-block-ratings .block-directory-block-ratings__star-empty{fill:#ccc}.block-directory-compact-list{list-style:none;margin:0}.block-directory-compact-list__item{align-items:center;display:flex;flex-direction:row;margin-bottom:16px}.block-directory-compact-list__item:last-child{margin-bottom:0}.block-directory-compact-list__item-details{margin-right:8px}.block-directory-compact-list__item-title{font-weight:500}.block-directory-compact-list__item-author{color:#757575;font-size:11px}.block-directory-downloadable-block-icon{border:1px solid #ddd;height:54px;min-width:54px;vertical-align:middle;width:54px}.block-directory-downloadable-block-list-item{display:grid;grid-template-columns:auto 1fr;height:auto;padding:12px;text-align:right;width:100%}.block-directory-downloadable-block-list-item:hover{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.block-directory-downloadable-block-list-item.is-busy{background:#0000}.block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.block-directory-downloadable-block-list-item:disabled,.block-directory-downloadable-block-list-item[aria-disabled]{opacity:1}.block-directory-downloadable-block-list-item__icon{align-self:flex-start;margin-left:16px;position:relative}.block-directory-downloadable-block-list-item__icon .block-directory-downloadable-block-list-item__spinner{align-items:center;background:#ffffffbf;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.block-directory-block-ratings{display:block;margin-top:4px}.block-directory-downloadable-block-list-item__details{color:#1e1e1e}.block-directory-downloadable-block-list-item__title{display:block;font-weight:600}.block-directory-downloadable-block-list-item__author{display:block;font-weight:400;margin-top:4px}.block-directory-downloadable-block-list-item__desc{display:block;margin-top:8px}.block-directory-downloadable-block-notice{color:#cc1818;margin:8px 0 0}.block-directory-downloadable-block-notice__content{margin-bottom:8px;padding-left:12px}.block-directory-downloadable-blocks-panel{padding:16px}.block-directory-downloadable-blocks-panel.has-blocks-loading{color:#757575;font-style:normal;margin:112px 0;padding:0;text-align:center}.block-directory-downloadable-blocks-panel.has-blocks-loading .components-spinner{float:inherit}.block-directory-downloadable-blocks-panel__no-local{color:#757575;margin:48px 0;padding:0 64px;text-align:center}.block-directory-downloadable-blocks-panel__title{font-size:14px;margin:0 0 4px}.block-directory-downloadable-blocks-panel__description{margin-top:0}.block-directory-downloadable-blocks-panel button{margin-top:4px}.installed-blocks-pre-publish-panel__copy{margin-top:0}
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-directory-block-ratings>span{display:flex}.block-directory-block-ratings svg{fill:#1e1e1e;margin-right:-4px}.block-directory-block-ratings .block-directory-block-ratings__star-empty{fill:#ccc}.block-directory-compact-list{list-style:none;margin:0}.block-directory-compact-list__item{align-items:center;display:flex;flex-direction:row;margin-bottom:16px}.block-directory-compact-list__item:last-child{margin-bottom:0}.block-directory-compact-list__item-details{margin-right:8px}.block-directory-compact-list__item-title{font-weight:500}.block-directory-compact-list__item-author{color:#757575;font-size:11px}.block-directory-downloadable-block-icon{border:1px solid #ddd;height:54px;min-width:54px;vertical-align:middle;width:54px}.block-directory-downloadable-block-list-item{display:grid;grid-template-columns:auto 1fr;height:auto;padding:12px;position:relative;text-align:right;width:100%}.block-directory-downloadable-block-list-item:hover{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.block-directory-downloadable-block-list-item.is-busy{background:#0000}.block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.block-directory-downloadable-block-list-item:disabled,.block-directory-downloadable-block-list-item[aria-disabled]{opacity:1}.block-directory-downloadable-block-list-item__icon{align-self:flex-start;margin-left:16px;position:relative}.block-directory-downloadable-block-list-item__icon .block-directory-downloadable-block-list-item__spinner{align-items:center;background:#ffffffbf;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.block-directory-block-ratings{display:block;margin-top:4px}.block-directory-downloadable-block-list-item__details{color:#1e1e1e}.block-directory-downloadable-block-list-item__title{display:block;font-weight:600}.block-directory-downloadable-block-list-item__author{display:block;font-weight:400;margin-top:4px}.block-directory-downloadable-block-list-item__desc{display:block;margin-top:8px}.block-directory-downloadable-block-notice{color:#cc1818;margin:8px 0 0}.block-directory-downloadable-block-notice__content{margin-bottom:8px;padding-left:12px}.block-directory-downloadable-blocks-panel{padding:16px}.block-directory-downloadable-blocks-panel.has-blocks-loading{color:#757575;font-style:normal;margin:112px 0;padding:0;text-align:center}.block-directory-downloadable-blocks-panel.has-blocks-loading .components-spinner{float:inherit}.block-directory-downloadable-blocks-panel__no-local{color:#757575;margin:48px 0;padding:0 64px;text-align:center}.block-directory-downloadable-blocks-panel__title{font-size:14px;margin:0 0 4px}.block-directory-downloadable-blocks-panel__description{margin-top:0}.block-directory-downloadable-blocks-panel button{margin-top:4px}.installed-blocks-pre-publish-panel__copy{margin-top:0}
|
||||
@@ -68,6 +68,7 @@
|
||||
grid-template-columns:auto 1fr;
|
||||
height:auto;
|
||||
padding:12px;
|
||||
position:relative;
|
||||
text-align:left;
|
||||
width:100%;
|
||||
}
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-directory-block-ratings>span{display:flex}.block-directory-block-ratings svg{fill:#1e1e1e;margin-left:-4px}.block-directory-block-ratings .block-directory-block-ratings__star-empty{fill:#ccc}.block-directory-compact-list{list-style:none;margin:0}.block-directory-compact-list__item{align-items:center;display:flex;flex-direction:row;margin-bottom:16px}.block-directory-compact-list__item:last-child{margin-bottom:0}.block-directory-compact-list__item-details{margin-left:8px}.block-directory-compact-list__item-title{font-weight:500}.block-directory-compact-list__item-author{color:#757575;font-size:11px}.block-directory-downloadable-block-icon{border:1px solid #ddd;height:54px;min-width:54px;vertical-align:middle;width:54px}.block-directory-downloadable-block-list-item{display:grid;grid-template-columns:auto 1fr;height:auto;padding:12px;text-align:left;width:100%}.block-directory-downloadable-block-list-item:hover{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.block-directory-downloadable-block-list-item.is-busy{background:#0000}.block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.block-directory-downloadable-block-list-item:disabled,.block-directory-downloadable-block-list-item[aria-disabled]{opacity:1}.block-directory-downloadable-block-list-item__icon{align-self:flex-start;margin-right:16px;position:relative}.block-directory-downloadable-block-list-item__icon .block-directory-downloadable-block-list-item__spinner{align-items:center;background:#ffffffbf;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.block-directory-block-ratings{display:block;margin-top:4px}.block-directory-downloadable-block-list-item__details{color:#1e1e1e}.block-directory-downloadable-block-list-item__title{display:block;font-weight:600}.block-directory-downloadable-block-list-item__author{display:block;font-weight:400;margin-top:4px}.block-directory-downloadable-block-list-item__desc{display:block;margin-top:8px}.block-directory-downloadable-block-notice{color:#cc1818;margin:8px 0 0}.block-directory-downloadable-block-notice__content{margin-bottom:8px;padding-right:12px}.block-directory-downloadable-blocks-panel{padding:16px}.block-directory-downloadable-blocks-panel.has-blocks-loading{color:#757575;font-style:normal;margin:112px 0;padding:0;text-align:center}.block-directory-downloadable-blocks-panel.has-blocks-loading .components-spinner{float:inherit}.block-directory-downloadable-blocks-panel__no-local{color:#757575;margin:48px 0;padding:0 64px;text-align:center}.block-directory-downloadable-blocks-panel__title{font-size:14px;margin:0 0 4px}.block-directory-downloadable-blocks-panel__description{margin-top:0}.block-directory-downloadable-blocks-panel button{margin-top:4px}.installed-blocks-pre-publish-panel__copy{margin-top:0}
|
||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color)}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-directory-block-ratings>span{display:flex}.block-directory-block-ratings svg{fill:#1e1e1e;margin-left:-4px}.block-directory-block-ratings .block-directory-block-ratings__star-empty{fill:#ccc}.block-directory-compact-list{list-style:none;margin:0}.block-directory-compact-list__item{align-items:center;display:flex;flex-direction:row;margin-bottom:16px}.block-directory-compact-list__item:last-child{margin-bottom:0}.block-directory-compact-list__item-details{margin-left:8px}.block-directory-compact-list__item-title{font-weight:500}.block-directory-compact-list__item-author{color:#757575;font-size:11px}.block-directory-downloadable-block-icon{border:1px solid #ddd;height:54px;min-width:54px;vertical-align:middle;width:54px}.block-directory-downloadable-block-list-item{display:grid;grid-template-columns:auto 1fr;height:auto;padding:12px;position:relative;text-align:left;width:100%}.block-directory-downloadable-block-list-item:hover{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid #0000}.block-directory-downloadable-block-list-item.is-busy{background:#0000}.block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.block-directory-downloadable-block-list-item:disabled,.block-directory-downloadable-block-list-item[aria-disabled]{opacity:1}.block-directory-downloadable-block-list-item__icon{align-self:flex-start;margin-right:16px;position:relative}.block-directory-downloadable-block-list-item__icon .block-directory-downloadable-block-list-item__spinner{align-items:center;background:#ffffffbf;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.block-directory-block-ratings{display:block;margin-top:4px}.block-directory-downloadable-block-list-item__details{color:#1e1e1e}.block-directory-downloadable-block-list-item__title{display:block;font-weight:600}.block-directory-downloadable-block-list-item__author{display:block;font-weight:400;margin-top:4px}.block-directory-downloadable-block-list-item__desc{display:block;margin-top:8px}.block-directory-downloadable-block-notice{color:#cc1818;margin:8px 0 0}.block-directory-downloadable-block-notice__content{margin-bottom:8px;padding-right:12px}.block-directory-downloadable-blocks-panel{padding:16px}.block-directory-downloadable-blocks-panel.has-blocks-loading{color:#757575;font-style:normal;margin:112px 0;padding:0;text-align:center}.block-directory-downloadable-blocks-panel.has-blocks-loading .components-spinner{float:inherit}.block-directory-downloadable-blocks-panel__no-local{color:#757575;margin:48px 0;padding:0 64px;text-align:center}.block-directory-downloadable-blocks-panel__title{font-size:14px;margin:0 0 4px}.block-directory-downloadable-blocks-panel__description{margin-top:0}.block-directory-downloadable-blocks-panel button{margin-top:4px}.installed-blocks-pre-publish-panel__copy{margin-top:0}
|
||||
+1
-4
@@ -1659,10 +1659,7 @@ ol,ul{
|
||||
.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:focus{
|
||||
text-decoration:line-through;
|
||||
}
|
||||
.wp-block-navigation:where(:not([class*=has-text-decoration])) a{
|
||||
text-decoration:none;
|
||||
}
|
||||
.wp-block-navigation:where(:not([class*=has-text-decoration])) a:active,.wp-block-navigation:where(:not([class*=has-text-decoration])) a:focus{
|
||||
.wp-block-navigation :where(a),.wp-block-navigation :where(a:active),.wp-block-navigation :where(a:focus){
|
||||
text-decoration:none;
|
||||
}
|
||||
.wp-block-navigation .wp-block-navigation__submenu-icon{
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-4
@@ -1659,10 +1659,7 @@ ol,ul{
|
||||
.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:focus{
|
||||
text-decoration:line-through;
|
||||
}
|
||||
.wp-block-navigation:where(:not([class*=has-text-decoration])) a{
|
||||
text-decoration:none;
|
||||
}
|
||||
.wp-block-navigation:where(:not([class*=has-text-decoration])) a:active,.wp-block-navigation:where(:not([class*=has-text-decoration])) a:focus{
|
||||
.wp-block-navigation :where(a),.wp-block-navigation :where(a:active),.wp-block-navigation :where(a:focus){
|
||||
text-decoration:none;
|
||||
}
|
||||
.wp-block-navigation .wp-block-navigation__submenu-icon{
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+18
-5
@@ -2029,8 +2029,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
|
||||
.edit-site-layout__view-mode-toggle.components-button:active,.edit-site-layout__view-mode-toggle.components-button:hover{
|
||||
color:#fff;
|
||||
}
|
||||
.edit-site-layout__view-mode-toggle.components-button:focus{
|
||||
box-shadow:none;
|
||||
.edit-site-layout__view-mode-toggle.components-button:focus,.edit-site-layout__view-mode-toggle.components-button:focus-visible{
|
||||
box-shadow:0 0 0 3px #1e1e1e, 0 0 0 6px var(--wp-admin-theme-color);
|
||||
outline:4px solid #0000;
|
||||
outline-offset:4px;
|
||||
}
|
||||
.edit-site-layout__view-mode-toggle.components-button:before{
|
||||
border-radius:4px;
|
||||
@@ -2050,9 +2052,6 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
|
||||
transition-duration:0s;
|
||||
}
|
||||
}
|
||||
.edit-site-layout__view-mode-toggle.components-button:focus:before{
|
||||
box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #ffffff1a, inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
||||
}
|
||||
.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon{
|
||||
align-items:center;
|
||||
display:flex;
|
||||
@@ -2105,6 +2104,20 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
|
||||
position:fixed;
|
||||
}
|
||||
|
||||
.edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button:focus,.edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button:focus-visible{
|
||||
box-shadow:none;
|
||||
outline:none;
|
||||
outline-offset:0;
|
||||
}
|
||||
.edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button:focus .edit-site-site-icon svg,.edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button:focus-visible .edit-site-site-icon svg{
|
||||
border-radius:2px;
|
||||
box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color, #3858e9);
|
||||
height:40px;
|
||||
outline:3px solid #0000;
|
||||
padding:2px;
|
||||
width:40px;
|
||||
}
|
||||
|
||||
.edit-site-save-hub{
|
||||
border-top:1px solid #2f2f2f;
|
||||
color:#949494;
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+18
-5
@@ -2029,8 +2029,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
|
||||
.edit-site-layout__view-mode-toggle.components-button:active,.edit-site-layout__view-mode-toggle.components-button:hover{
|
||||
color:#fff;
|
||||
}
|
||||
.edit-site-layout__view-mode-toggle.components-button:focus{
|
||||
box-shadow:none;
|
||||
.edit-site-layout__view-mode-toggle.components-button:focus,.edit-site-layout__view-mode-toggle.components-button:focus-visible{
|
||||
box-shadow:0 0 0 3px #1e1e1e, 0 0 0 6px var(--wp-admin-theme-color);
|
||||
outline:4px solid #0000;
|
||||
outline-offset:4px;
|
||||
}
|
||||
.edit-site-layout__view-mode-toggle.components-button:before{
|
||||
border-radius:4px;
|
||||
@@ -2050,9 +2052,6 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
|
||||
transition-duration:0s;
|
||||
}
|
||||
}
|
||||
.edit-site-layout__view-mode-toggle.components-button:focus:before{
|
||||
box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #ffffff1a, inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
||||
}
|
||||
.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon{
|
||||
align-items:center;
|
||||
display:flex;
|
||||
@@ -2105,6 +2104,20 @@ html.canvas-mode-edit-transition::view-transition-group(toggle){
|
||||
right:0;
|
||||
}
|
||||
|
||||
.edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button:focus,.edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button:focus-visible{
|
||||
box-shadow:none;
|
||||
outline:none;
|
||||
outline-offset:0;
|
||||
}
|
||||
.edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button:focus .edit-site-site-icon svg,.edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button:focus-visible .edit-site-site-icon svg{
|
||||
border-radius:2px;
|
||||
box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color, #3858e9);
|
||||
height:40px;
|
||||
outline:3px solid #0000;
|
||||
padding:2px;
|
||||
width:40px;
|
||||
}
|
||||
|
||||
.edit-site-save-hub{
|
||||
border-top:1px solid #2f2f2f;
|
||||
color:#949494;
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -7496,26 +7496,17 @@ function get_tag_regex( $tag ) {
|
||||
* $is_utf8 = is_utf8_charset();
|
||||
*
|
||||
* @since 6.6.0
|
||||
* @since 6.6.1 A wrapper for _is_utf8_charset
|
||||
*
|
||||
* @param ?string $blog_charset Slug representing a text character encoding, or "charset".
|
||||
* E.g. "UTF-8", "Windows-1252", "ISO-8859-1", "SJIS".
|
||||
* @see _is_utf8_charset
|
||||
*
|
||||
* @param string|null $blog_charset Optional. Slug representing a text character encoding, or "charset".
|
||||
* E.g. "UTF-8", "Windows-1252", "ISO-8859-1", "SJIS".
|
||||
* Default value is to infer from "blog_charset" option.
|
||||
* @return bool Whether the slug represents the UTF-8 encoding.
|
||||
*/
|
||||
function is_utf8_charset( $blog_charset = null ) {
|
||||
$charset_to_examine = $blog_charset ?? get_option( 'blog_charset' );
|
||||
|
||||
/*
|
||||
* Only valid string values count: the absence of a charset
|
||||
* does not imply any charset, let alone UTF-8.
|
||||
*/
|
||||
if ( ! is_string( $charset_to_examine ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return (
|
||||
0 === strcasecmp( 'UTF-8', $charset_to_examine ) ||
|
||||
0 === strcasecmp( 'UTF8', $charset_to_examine )
|
||||
);
|
||||
return _is_utf8_charset( $blog_charset ?? get_option( 'blog_charset' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+43
-12
@@ -17018,9 +17018,13 @@ const EMPTY_CONFIG = {
|
||||
const VALID_SETTINGS = ['appearanceTools', 'useRootPaddingAwareAlignments', 'background.backgroundImage', 'background.backgroundRepeat', 'background.backgroundSize', 'background.backgroundPosition', 'border.color', 'border.radius', 'border.style', 'border.width', 'shadow.presets', 'shadow.defaultPresets', 'color.background', 'color.button', 'color.caption', 'color.custom', 'color.customDuotone', 'color.customGradient', 'color.defaultDuotone', 'color.defaultGradients', 'color.defaultPalette', 'color.duotone', 'color.gradients', 'color.heading', 'color.link', 'color.palette', 'color.text', 'custom', 'dimensions.aspectRatio', 'dimensions.minHeight', 'layout.contentSize', 'layout.definitions', 'layout.wideSize', 'lightbox.enabled', 'lightbox.allowEditing', 'position.fixed', 'position.sticky', 'spacing.customSpacingSize', 'spacing.defaultSpacingSizes', 'spacing.spacingSizes', 'spacing.spacingScale', 'spacing.blockGap', 'spacing.margin', 'spacing.padding', 'spacing.units', 'typography.fluid', 'typography.customFontSize', 'typography.defaultFontSizes', 'typography.dropCap', 'typography.fontFamilies', 'typography.fontSizes', 'typography.fontStyle', 'typography.fontWeight', 'typography.letterSpacing', 'typography.lineHeight', 'typography.textAlign', 'typography.textColumns', 'typography.textDecoration', 'typography.textTransform', 'typography.writingMode'];
|
||||
const useGlobalStylesReset = () => {
|
||||
const {
|
||||
user: config,
|
||||
user,
|
||||
setUserConfig
|
||||
} = (0,external_wp_element_namespaceObject.useContext)(GlobalStylesContext);
|
||||
const config = {
|
||||
settings: user.settings,
|
||||
styles: user.styles
|
||||
};
|
||||
const canReset = !!config && !es6_default()(config, EMPTY_CONFIG);
|
||||
return [canReset, (0,external_wp_element_namespaceObject.useCallback)(() => setUserConfig(EMPTY_CONFIG), [setUserConfig])];
|
||||
};
|
||||
@@ -19717,15 +19721,19 @@ const external_wp_styleEngine_namespaceObject = window["wp"]["styleEngine"];
|
||||
const paddingValues = (0,external_wp_styleEngine_namespaceObject.getCSSRules)(style);
|
||||
paddingValues.forEach(rule => {
|
||||
if (rule.key === 'paddingRight') {
|
||||
// Add unit if 0, to avoid calc(0 * -1) which is invalid.
|
||||
const paddingRightValue = rule.value === '0' ? '0px' : rule.value;
|
||||
output += `
|
||||
${appendSelectors(selector, '> .alignfull')} {
|
||||
margin-right: calc(${rule.value} * -1);
|
||||
margin-right: calc(${paddingRightValue} * -1);
|
||||
}
|
||||
`;
|
||||
} else if (rule.key === 'paddingLeft') {
|
||||
// Add unit if 0, to avoid calc(0 * -1) which is invalid.
|
||||
const paddingLeftValue = rule.value === '0' ? '0px' : rule.value;
|
||||
output += `
|
||||
${appendSelectors(selector, '> .alignfull')} {
|
||||
margin-left: calc(${rule.value} * -1);
|
||||
margin-left: calc(${paddingLeftValue} * -1);
|
||||
}
|
||||
`;
|
||||
}
|
||||
@@ -19872,11 +19880,18 @@ function useBlockRef(clientId) {
|
||||
* @return {Element|null} The block's wrapper element.
|
||||
*/
|
||||
function useBlockElement(clientId) {
|
||||
var _useObservableValue;
|
||||
const {
|
||||
refsMap
|
||||
} = (0,external_wp_element_namespaceObject.useContext)(BlockRefs);
|
||||
return (_useObservableValue = (0,external_wp_compose_namespaceObject.useObservableValue)(refsMap, clientId)) !== null && _useObservableValue !== void 0 ? _useObservableValue : null;
|
||||
const [blockElement, setBlockElement] = (0,external_wp_element_namespaceObject.useState)(null);
|
||||
// Delay setting the resulting `blockElement` until an effect. If the block element
|
||||
// changes (i.e., the block is unmounted and re-mounted), this allows enough time
|
||||
// for the ref callbacks to clean up the old element and set the new one.
|
||||
(0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
|
||||
setBlockElement(refsMap.get(clientId));
|
||||
return refsMap.subscribe(clientId, () => setBlockElement(refsMap.get(clientId)));
|
||||
}, [refsMap, clientId]);
|
||||
return blockElement;
|
||||
}
|
||||
|
||||
|
||||
@@ -33721,6 +33736,12 @@ function position_useBlockProps({
|
||||
|
||||
|
||||
|
||||
// Elements that rely on class names in their selectors.
|
||||
const ELEMENT_CLASS_NAMES = {
|
||||
button: 'wp-element-button',
|
||||
caption: 'wp-element-caption'
|
||||
};
|
||||
|
||||
// List of block support features that can have their related styles
|
||||
// generated under their own feature level selector rather than the block's.
|
||||
const BLOCK_SUPPORT_FEATURE_LEVEL_SELECTORS = {
|
||||
@@ -34149,7 +34170,10 @@ const getNodesWithStyles = (tree, blockSelectors) => {
|
||||
if (tree.styles?.elements?.[name]) {
|
||||
nodes.push({
|
||||
styles: tree.styles?.elements?.[name],
|
||||
selector
|
||||
selector,
|
||||
// Top level elements that don't use a class name should not receive the
|
||||
// `:root :where()` wrapper to maintain backwards compatibility.
|
||||
skipSelectorWrapper: !ELEMENT_CLASS_NAMES[name]
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -34363,7 +34387,8 @@ const toStyles = (tree, blockSelectors, hasBlockGapSupport, hasFallbackGapSuppor
|
||||
fallbackGapValue,
|
||||
hasLayoutSupport,
|
||||
featureSelectors,
|
||||
styleVariationSelectors
|
||||
styleVariationSelectors,
|
||||
skipSelectorWrapper
|
||||
}) => {
|
||||
// Process styles for block support features with custom feature level
|
||||
// CSS selectors set.
|
||||
@@ -34404,7 +34429,8 @@ const toStyles = (tree, blockSelectors, hasBlockGapSupport, hasFallbackGapSuppor
|
||||
// Process the remaining block styles (they use either normal block class or __experimentalSelector).
|
||||
const styleDeclarations = getStylesDeclarations(styles, selector, useRootPaddingAlign, tree, disableRootPadding);
|
||||
if (styleDeclarations?.length) {
|
||||
ruleset += `:root :where(${selector}){${styleDeclarations.join(';')};}`;
|
||||
const generalSelector = skipSelectorWrapper ? selector : `:root :where(${selector})`;
|
||||
ruleset += `${generalSelector}{${styleDeclarations.join(';')};}`;
|
||||
}
|
||||
if (styles?.css) {
|
||||
ruleset += processCSSNesting(styles.css, `:root :where(${selector})`);
|
||||
@@ -34454,7 +34480,12 @@ const toStyles = (tree, blockSelectors, hasBlockGapSupport, hasFallbackGapSuppor
|
||||
// Split and append pseudo selector to create
|
||||
// the proper rules to target the elements.
|
||||
const _selector = selector.split(',').map(sel => sel + pseudoKey).join(',');
|
||||
const pseudoRule = `${_selector}{${pseudoDeclarations.join(';')};}`;
|
||||
|
||||
// As pseudo classes such as :hover, :focus etc. have class-level
|
||||
// specificity, they must use the `:root :where()` wrapper. This.
|
||||
// caps the specificity at `0-1-0` to allow proper nesting of variations
|
||||
// and block type element styles.
|
||||
const pseudoRule = `:root :where(${_selector}){${pseudoDeclarations.join(';')};}`;
|
||||
ruleset += pseudoRule;
|
||||
});
|
||||
}
|
||||
@@ -54750,7 +54781,7 @@ function Shuffle({
|
||||
);
|
||||
});
|
||||
}, [categories, patterns]);
|
||||
if (sameCategoryPatternsWithSingleWrapper.length === 0) {
|
||||
if (sameCategoryPatternsWithSingleWrapper.length < 2) {
|
||||
return null;
|
||||
}
|
||||
function getNextPattern() {
|
||||
@@ -67869,12 +67900,12 @@ function ReusableBlocksRenameHint() {
|
||||
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/elements/index.js
|
||||
const ELEMENT_CLASS_NAMES = {
|
||||
const elements_ELEMENT_CLASS_NAMES = {
|
||||
button: 'wp-element-button',
|
||||
caption: 'wp-element-caption'
|
||||
};
|
||||
const __experimentalGetElementClassName = element => {
|
||||
return ELEMENT_CLASS_NAMES[element] ? ELEMENT_CLASS_NAMES[element] : '';
|
||||
return elements_ELEMENT_CLASS_NAMES[element] ? elements_ELEMENT_CLASS_NAMES[element] : '';
|
||||
};
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/get-px-from-css-unit.js
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-2
@@ -1541,8 +1541,7 @@ function ResetOverridesControl(props) {
|
||||
[CONTENT]: newOverrides
|
||||
});
|
||||
}
|
||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, {
|
||||
group: "other",
|
||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__unstableBlockToolbarLastItem, {
|
||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, {
|
||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
|
||||
onClick: onClick,
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.6';
|
||||
$wp_version = '6.6.1';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user