Compare commits
61 Commits
master
...
6.2-branch
Author | SHA1 | Date | |
---|---|---|---|
|
ca7e76a353 | ||
|
2ae9e78b77 | ||
|
dea20b847e | ||
|
819ab606e5 | ||
|
c13e236a4b | ||
|
08452a6ca0 | ||
|
51a67b2b56 | ||
|
ffed1a0071 | ||
|
3d0f7713c9 | ||
|
df12352495 | ||
|
607275a8f1 | ||
|
a941d591a8 | ||
|
0420b92621 | ||
|
1da3b10799 | ||
|
fc13f95a4d | ||
|
2edd1a7d5c | ||
|
0f3abcc27c | ||
|
e2086e1534 | ||
|
4262161926 | ||
|
e8eedf2c90 | ||
|
18bf5b98aa | ||
|
5db2b65b67 | ||
|
c7f1d4266b | ||
|
c3dff809b7 | ||
|
8df7e41b8a | ||
|
63f3e3a5a5 | ||
|
6e932eb677 | ||
|
34fdb7885c | ||
|
94533cdb92 | ||
|
229077cc3f | ||
|
7eb548f1e4 | ||
|
1e3d9b8007 | ||
|
484b3840bd | ||
|
b838393386 | ||
|
b48bb0fb4c | ||
|
e893025eed | ||
|
19e810a1cf | ||
|
fd28c6f767 | ||
|
24773a3c7c | ||
|
03f98fa1ca | ||
|
3492ba3269 | ||
|
028a4476da | ||
|
bc3794dae0 | ||
|
192afe3252 | ||
|
5579d5baa1 | ||
|
2bbcd5af2e | ||
|
50d75e5e07 | ||
|
5f6e47d559 | ||
|
2bb5196b7f | ||
|
efae30eb04 | ||
|
b4252fa186 | ||
|
7ad3ce1db6 | ||
|
1d7e890623 | ||
|
f5311ed8e0 | ||
|
c0b0ce8227 | ||
|
c9b9123105 | ||
|
759261325e | ||
|
b1140e5b29 | ||
|
dfe2c95948 | ||
|
eafcc51b43 | ||
|
d948d15e4d |
File diff suppressed because one or more lines are too long
|
@ -66,8 +66,8 @@ $menu-customizer-text: mix( $base-color, $text-color, 40% ) !default;
|
|||
// Dashboard Colors
|
||||
|
||||
$custom-welcome-panel: "true" !default;
|
||||
$dashboard-accent-1: $highlight-color !default;
|
||||
$dashboard-accent-2: rgba(255, 255, 255, 0.33) !default;
|
||||
$dashboard-accent-1: $menu-submenu-background !default;
|
||||
$dashboard-accent-2: $menu-background !default;
|
||||
$dashboard-icon-background: $dashboard-accent-2 !default;
|
||||
|
||||
$low-contrast-theme: "false" !default;
|
||||
|
|
|
@ -711,12 +711,12 @@ div#wp-responsive-toggle a:before {
|
|||
|
||||
/* Welcome Panel */
|
||||
.welcome-panel {
|
||||
background-color: #096484;
|
||||
background-color: #4796b3;
|
||||
}
|
||||
|
||||
.welcome-panel-header-image .curve,
|
||||
.welcome-panel-header-image .dot {
|
||||
fill: rgba(255, 255, 255, 0.33);
|
||||
fill: #52accc;
|
||||
}
|
||||
|
||||
[class*=welcome-panel-icon] {
|
||||
|
|
2
wp-admin/css/colors/blue/colors-rtl.min.css
vendored
2
wp-admin/css/colors/blue/colors-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -711,12 +711,12 @@ div#wp-responsive-toggle a:before {
|
|||
|
||||
/* Welcome Panel */
|
||||
.welcome-panel {
|
||||
background-color: #096484;
|
||||
background-color: #4796b3;
|
||||
}
|
||||
|
||||
.welcome-panel-header-image .curve,
|
||||
.welcome-panel-header-image .dot {
|
||||
fill: rgba(255, 255, 255, 0.33);
|
||||
fill: #52accc;
|
||||
}
|
||||
|
||||
[class*=welcome-panel-icon] {
|
||||
|
|
2
wp-admin/css/colors/blue/colors.min.css
vendored
2
wp-admin/css/colors/blue/colors.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -678,14 +678,14 @@ div#wp-responsive-toggle a:before {
|
|||
|
||||
/* Welcome Panel */
|
||||
.welcome-panel {
|
||||
background-color: #c7a589;
|
||||
background-color: #46403c;
|
||||
}
|
||||
|
||||
.welcome-panel-header-image .curve,
|
||||
.welcome-panel-header-image .dot {
|
||||
fill: rgba(255, 255, 255, 0.33);
|
||||
fill: #59524c;
|
||||
}
|
||||
|
||||
[class*=welcome-panel-icon] {
|
||||
background-color: rgba(255, 255, 255, 0.33);
|
||||
background-color: #59524c;
|
||||
}
|
File diff suppressed because one or more lines are too long
|
@ -678,14 +678,14 @@ div#wp-responsive-toggle a:before {
|
|||
|
||||
/* Welcome Panel */
|
||||
.welcome-panel {
|
||||
background-color: #c7a589;
|
||||
background-color: #46403c;
|
||||
}
|
||||
|
||||
.welcome-panel-header-image .curve,
|
||||
.welcome-panel-header-image .dot {
|
||||
fill: rgba(255, 255, 255, 0.33);
|
||||
fill: #59524c;
|
||||
}
|
||||
|
||||
[class*=welcome-panel-icon] {
|
||||
background-color: rgba(255, 255, 255, 0.33);
|
||||
background-color: #59524c;
|
||||
}
|
2
wp-admin/css/colors/coffee/colors.min.css
vendored
2
wp-admin/css/colors/coffee/colors.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -711,14 +711,14 @@ div#wp-responsive-toggle a:before {
|
|||
|
||||
/* Welcome Panel */
|
||||
.welcome-panel {
|
||||
background-color: #523f6d;
|
||||
background-color: #413256;
|
||||
}
|
||||
|
||||
.welcome-panel-header-image .curve,
|
||||
.welcome-panel-header-image .dot {
|
||||
fill: rgba(255, 255, 255, 0.33);
|
||||
fill: #523f6d;
|
||||
}
|
||||
|
||||
[class*=welcome-panel-icon] {
|
||||
background-color: rgba(255, 255, 255, 0.33);
|
||||
background-color: #523f6d;
|
||||
}
|
File diff suppressed because one or more lines are too long
|
@ -711,14 +711,14 @@ div#wp-responsive-toggle a:before {
|
|||
|
||||
/* Welcome Panel */
|
||||
.welcome-panel {
|
||||
background-color: #523f6d;
|
||||
background-color: #413256;
|
||||
}
|
||||
|
||||
.welcome-panel-header-image .curve,
|
||||
.welcome-panel-header-image .dot {
|
||||
fill: rgba(255, 255, 255, 0.33);
|
||||
fill: #523f6d;
|
||||
}
|
||||
|
||||
[class*=welcome-panel-icon] {
|
||||
background-color: rgba(255, 255, 255, 0.33);
|
||||
background-color: #523f6d;
|
||||
}
|
2
wp-admin/css/colors/ectoplasm/colors.min.css
vendored
2
wp-admin/css/colors/ectoplasm/colors.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -6,6 +6,4 @@ $notification-color: #d46f15;
|
|||
|
||||
$form-checked: $base-color;
|
||||
|
||||
$dashboard-accent-1: $base-color;
|
||||
|
||||
@import "../_admin.scss";
|
||||
|
|
|
@ -716,7 +716,7 @@ div#wp-responsive-toggle a:before {
|
|||
|
||||
.welcome-panel-header-image .curve,
|
||||
.welcome-panel-header-image .dot {
|
||||
fill: rgba(255, 255, 255, 0.33);
|
||||
fill: #17b5dd;
|
||||
}
|
||||
|
||||
[class*=welcome-panel-icon] {
|
||||
|
|
2
wp-admin/css/colors/light/colors-rtl.min.css
vendored
2
wp-admin/css/colors/light/colors-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -716,7 +716,7 @@ div#wp-responsive-toggle a:before {
|
|||
|
||||
.welcome-panel-header-image .curve,
|
||||
.welcome-panel-header-image .dot {
|
||||
fill: rgba(255, 255, 255, 0.33);
|
||||
fill: #17b5dd;
|
||||
}
|
||||
|
||||
[class*=welcome-panel-icon] {
|
||||
|
|
2
wp-admin/css/colors/light/colors.min.css
vendored
2
wp-admin/css/colors/light/colors.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -18,6 +18,8 @@ $menu-submenu-background: #fff;
|
|||
$menu-collapse-text: #777;
|
||||
$menu-collapse-focus-icon: #555;
|
||||
|
||||
$dashboard-accent-1: $highlight-color;
|
||||
$dashboard-accent-2: desaturate( lighten( $highlight-color, 7% ), 15% );
|
||||
$dashboard-icon-background: $text-color;
|
||||
|
||||
@import "../_admin.scss";
|
||||
|
|
|
@ -711,14 +711,14 @@ div#wp-responsive-toggle a:before {
|
|||
|
||||
/* Welcome Panel */
|
||||
.welcome-panel {
|
||||
background-color: #69a8bb;
|
||||
background-color: #26292c;
|
||||
}
|
||||
|
||||
.welcome-panel-header-image .curve,
|
||||
.welcome-panel-header-image .dot {
|
||||
fill: rgba(255, 255, 255, 0.33);
|
||||
fill: #3b464b;
|
||||
}
|
||||
|
||||
[class*=welcome-panel-icon] {
|
||||
background-color: #e14d43;
|
||||
background-color: #3b464b;
|
||||
}
|
File diff suppressed because one or more lines are too long
|
@ -711,14 +711,14 @@ div#wp-responsive-toggle a:before {
|
|||
|
||||
/* Welcome Panel */
|
||||
.welcome-panel {
|
||||
background-color: #69a8bb;
|
||||
background-color: #26292c;
|
||||
}
|
||||
|
||||
.welcome-panel-header-image .curve,
|
||||
.welcome-panel-header-image .dot {
|
||||
fill: rgba(255, 255, 255, 0.33);
|
||||
fill: #3b464b;
|
||||
}
|
||||
|
||||
[class*=welcome-panel-icon] {
|
||||
background-color: #e14d43;
|
||||
background-color: #3b464b;
|
||||
}
|
2
wp-admin/css/colors/midnight/colors.min.css
vendored
2
wp-admin/css/colors/midnight/colors.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -3,7 +3,6 @@ $base-color: #363b3f;
|
|||
$highlight-color: #e14d43;
|
||||
$notification-color: #69a8bb;
|
||||
|
||||
$dashboard-accent-1: $notification-color;
|
||||
$dashboard-icon-background: $highlight-color;
|
||||
$dashboard-accent-2: mix($base-color, $notification-color, 90%);
|
||||
|
||||
@import "../_admin.scss";
|
||||
|
|
|
@ -678,14 +678,14 @@ div#wp-responsive-toggle a:before {
|
|||
|
||||
/* Welcome Panel */
|
||||
.welcome-panel {
|
||||
background-color: #9ebaa0;
|
||||
background-color: #627c83;
|
||||
}
|
||||
|
||||
.welcome-panel-header-image .curve,
|
||||
.welcome-panel-header-image .dot {
|
||||
fill: rgba(255, 255, 255, 0.33);
|
||||
fill: #738e96;
|
||||
}
|
||||
|
||||
[class*=welcome-panel-icon] {
|
||||
background-color: rgba(255, 255, 255, 0.33);
|
||||
background-color: #738e96;
|
||||
}
|
2
wp-admin/css/colors/ocean/colors-rtl.min.css
vendored
2
wp-admin/css/colors/ocean/colors-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -678,14 +678,14 @@ div#wp-responsive-toggle a:before {
|
|||
|
||||
/* Welcome Panel */
|
||||
.welcome-panel {
|
||||
background-color: #9ebaa0;
|
||||
background-color: #627c83;
|
||||
}
|
||||
|
||||
.welcome-panel-header-image .curve,
|
||||
.welcome-panel-header-image .dot {
|
||||
fill: rgba(255, 255, 255, 0.33);
|
||||
fill: #738e96;
|
||||
}
|
||||
|
||||
[class*=welcome-panel-icon] {
|
||||
background-color: rgba(255, 255, 255, 0.33);
|
||||
background-color: #738e96;
|
||||
}
|
2
wp-admin/css/colors/ocean/colors.min.css
vendored
2
wp-admin/css/colors/ocean/colors.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -711,14 +711,14 @@ div#wp-responsive-toggle a:before {
|
|||
|
||||
/* Welcome Panel */
|
||||
.welcome-panel {
|
||||
background-color: #dd823b;
|
||||
background-color: #be3631;
|
||||
}
|
||||
|
||||
.welcome-panel-header-image .curve,
|
||||
.welcome-panel-header-image .dot {
|
||||
fill: rgba(255, 255, 255, 0.33);
|
||||
fill: #cf4944;
|
||||
}
|
||||
|
||||
[class*=welcome-panel-icon] {
|
||||
background-color: rgba(255, 255, 255, 0.33);
|
||||
background-color: #cf4944;
|
||||
}
|
File diff suppressed because one or more lines are too long
|
@ -711,14 +711,14 @@ div#wp-responsive-toggle a:before {
|
|||
|
||||
/* Welcome Panel */
|
||||
.welcome-panel {
|
||||
background-color: #dd823b;
|
||||
background-color: #be3631;
|
||||
}
|
||||
|
||||
.welcome-panel-header-image .curve,
|
||||
.welcome-panel-header-image .dot {
|
||||
fill: rgba(255, 255, 255, 0.33);
|
||||
fill: #cf4944;
|
||||
}
|
||||
|
||||
[class*=welcome-panel-icon] {
|
||||
background-color: rgba(255, 255, 255, 0.33);
|
||||
background-color: #cf4944;
|
||||
}
|
2
wp-admin/css/colors/sunrise/colors.min.css
vendored
2
wp-admin/css/colors/sunrise/colors.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -2,7 +2,7 @@
|
|||
<g clip-path="url(#a)">
|
||||
<path class="curve" d="M1430.91 497.569c63.48-63.482 112.65-137.548 146.13-220.1 32.34-79.71 48.73-163.936 48.73-250.299 0-86.362-16.39-170.588-48.73-250.298-33.48-82.573-82.65-156.618-146.13-220.1-63.48-63.482-137.55-112.651-220.1-146.135-79.71-32.336-163.94-48.725-250.301-48.725-86.363 0-170.589 16.389-250.299 48.725-82.573 33.484-156.618 82.653-220.1 146.135-63.481 63.482-112.65 137.547-146.135 220.1C311.64-143.418 295.25-59.192 295.25 27.19c0 86.383 16.39 170.589 48.725 250.299 33.485 82.573 82.654 156.618 146.135 220.1a683.438 683.438 0 0 0 14.475 14.031l85.576-85.577a560.502 560.502 0 0 1-14.535-13.99C472.814 309.24 416.206 172.56 416.206 27.17c0-145.389 56.608-282.069 159.42-384.882 102.813-102.813 239.494-159.42 384.883-159.42 145.391 0 282.071 56.607 384.881 159.42 102.81 102.813 159.42 239.493 159.42 384.882 0 145.39-56.61 282.07-159.42 384.883L861.587 895.857H747.545l540.815-540.815c87.57-87.572 135.81-204.013 135.81-327.851 0-123.84-48.22-240.28-135.81-327.852-87.57-87.572-204.01-135.814-327.851-135.814-123.839 0-240.28 48.222-327.852 135.814C545.085-213.069 496.844-96.648 496.844 27.19c0 123.839 48.221 240.28 135.813 327.852 4.758 4.758 9.636 9.374 14.575 13.93l85.637-85.637c-5.019-4.475-9.938-9.072-14.696-13.829-133.616-133.616-133.616-351.035 0-484.671 133.616-133.616 351.037-133.616 484.667 0 64.74 64.731 100.38 150.792 100.38 242.335 0 91.544-35.64 177.604-100.38 242.336L576.493 895.857H462.452l683.378-683.362c102.19-102.188 102.19-268.442 0-370.629-49.49-49.492-115.31-76.767-185.301-76.767-69.993 0-135.814 27.255-185.305 76.767-49.491 49.491-76.767 115.311-76.767 185.304 0 69.994 27.256 135.814 76.767 185.305a262.783 262.783 0 0 0 14.797 13.708l86.02-86.02a143.305 143.305 0 0 1-15.281-13.224c-26.65-26.651-41.326-62.09-41.326-99.789 0-37.698 14.676-73.138 41.326-99.789 26.651-26.65 62.091-41.326 99.789-41.326s73.141 14.676 99.791 41.326c55.01 55.015 55.01 144.543 0 199.578L295.29 891.986v124.804h1330.52V895.837h-593.13l398.27-398.268h-.04ZM-1234.11-301.729c-82.74 82.734-146.8 179.217-190.43 286.787-42.11 103.881-63.46 213.608-63.46 326.178s21.35 222.297 63.48 326.158c43.63 107.571 107.69 204.053 190.43 286.787 82.73 82.739 179.21 146.799 286.784 190.429 103.861 42.11 213.608 63.48 326.158 63.48 112.55 0 222.297-21.35 326.158-63.48 107.57-43.63 204.053-107.69 286.787-190.429 82.734-82.734 146.8-179.216 190.425-286.787 42.113-103.861 63.482-213.608 63.482-326.158 0-112.549-21.349-222.297-63.482-326.158C138.597-122.492 74.531-218.975-8.203-301.709c-53.382-53.382-112.711-99.063-177.08-136.519l-88.963 88.963c66.284 34.815 126.883 79.448 180.527 133.092C47.155-75.299 124.748 112.021 124.748 311.256c0 199.235-77.593 386.556-218.467 527.43-140.873 140.873-328.194 218.464-527.429 218.464-199.235 0-386.552-77.591-527.432-218.464-140.87-140.874-218.46-328.195-218.46-527.43 0-199.235 77.59-386.555 218.46-527.429L-484.77-880h-171.052l-578.288 578.271Z" fill="#213FD4"/>
|
||||
<path class="curve" d="M85.415-880H-85.637L-949.02-16.635c-87.569 87.572-135.809 204.012-135.809 327.851s48.22 240.28 135.809 327.852c87.572 87.572 204.012 135.813 327.851 135.813s240.3-48.241 327.852-135.813c87.572-87.572 135.813-204.013 135.813-327.852 0-123.839-48.221-240.28-135.813-327.872-55.701-55.68-123.073-95.434-196.574-117.025L-593.209-30.364c81 6.491 156.275 41.145 214.375 99.245 64.731 64.731 100.373 150.792 100.373 242.335 0 91.544-35.642 177.604-100.373 242.336-64.732 64.731-150.792 100.373-242.336 100.373-91.544 0-177.604-35.642-242.335-100.373-64.732-64.732-100.374-150.792-100.374-242.336 0-91.543 35.642-177.604 100.374-242.335L85.415-880Z" fill="#213FD4"/>
|
||||
<path class="dot" d="M961 40c16.569 0 30-13.431 30-30 0-16.569-13.431-30-30-30-16.569 0-30 13.431-30 30 0 16.569 13.431 30 30 30Z" fill="#33F078"/>
|
||||
<path class="dot" d="M961 40c16.569 0 30-13.431 30-30 0-16.569-13.431-30-30-30-16.569 0-30 13.431-30 30 0 16.569 13.431 30 30 30Z" fill="#213FD4"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="a">
|
||||
|
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
|
@ -2771,6 +2771,10 @@ function wp_ajax_set_attachment_thumbnail() {
|
|||
wp_send_json_error();
|
||||
}
|
||||
|
||||
if ( false === check_ajax_referer( 'set-attachment-thumbnail', '_ajax_nonce', false ) ) {
|
||||
wp_send_json_error();
|
||||
}
|
||||
|
||||
$post_ids = array();
|
||||
// For each URL, try to find its corresponding post ID.
|
||||
foreach ( $_POST['urls'] as $url ) {
|
||||
|
@ -3851,13 +3855,29 @@ function wp_ajax_parse_media_shortcode() {
|
|||
|
||||
$shortcode = wp_unslash( $_POST['shortcode'] );
|
||||
|
||||
// Only process previews for media related shortcodes:
|
||||
$found_shortcodes = get_shortcode_tags_in_content( $shortcode );
|
||||
$media_shortcodes = array(
|
||||
'audio',
|
||||
'embed',
|
||||
'playlist',
|
||||
'video',
|
||||
'gallery',
|
||||
);
|
||||
|
||||
$other_shortcodes = array_diff( $found_shortcodes, $media_shortcodes );
|
||||
|
||||
if ( ! empty( $other_shortcodes ) ) {
|
||||
wp_send_json_error();
|
||||
}
|
||||
|
||||
if ( ! empty( $_POST['post_ID'] ) ) {
|
||||
$post = get_post( (int) $_POST['post_ID'] );
|
||||
}
|
||||
|
||||
// The embed shortcode requires a post.
|
||||
if ( ! $post || ! current_user_can( 'edit_post', $post->ID ) ) {
|
||||
if ( 'embed' === $shortcode ) {
|
||||
if ( in_array( 'embed', $found_shortcodes, true ) ) {
|
||||
wp_send_json_error();
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -641,6 +641,19 @@ class WP_Comments_List_Table extends WP_List_Table {
|
|||
|
||||
$this->user_can = current_user_can( 'edit_comment', $comment->comment_ID );
|
||||
|
||||
$edit_post_cap = $post ? 'edit_post' : 'edit_posts';
|
||||
if (
|
||||
current_user_can( $edit_post_cap, $comment->comment_post_ID ) ||
|
||||
(
|
||||
empty( $post->post_password ) &&
|
||||
current_user_can( 'read_post', $comment->comment_post_ID )
|
||||
)
|
||||
) {
|
||||
// The user has access to the post
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
echo "<tr id='comment-$comment->comment_ID' class='$the_comment_class'>";
|
||||
$this->single_row_columns( $comment );
|
||||
echo "</tr>\n";
|
||||
|
|
|
@ -10,7 +10,7 @@ class WP_Importer {
|
|||
public function __construct() {}
|
||||
|
||||
/**
|
||||
* Returns array with imported permalinks from WordPress database
|
||||
* Returns array with imported permalinks from WordPress database.
|
||||
*
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
|
@ -47,7 +47,7 @@ class WP_Importer {
|
|||
}
|
||||
|
||||
/**
|
||||
* Return count of imported permalinks from WordPress database
|
||||
* Returns count of imported permalinks from WordPress database.
|
||||
*
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
|
@ -74,7 +74,7 @@ class WP_Importer {
|
|||
}
|
||||
|
||||
/**
|
||||
* Set array with imported comments from WordPress database
|
||||
* Sets array with imported comments from WordPress database.
|
||||
*
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
|
@ -176,7 +176,7 @@ class WP_Importer {
|
|||
}
|
||||
|
||||
/**
|
||||
* Sort by strlen, longest string first
|
||||
* Sorts by strlen, longest string first.
|
||||
*
|
||||
* @param string $a
|
||||
* @param string $b
|
||||
|
@ -214,7 +214,7 @@ class WP_Importer {
|
|||
}
|
||||
|
||||
/**
|
||||
* Bump up the request timeout for http requests
|
||||
* Bumps up the request timeout for http requests.
|
||||
*
|
||||
* @param int $val
|
||||
* @return int
|
||||
|
@ -224,7 +224,7 @@ class WP_Importer {
|
|||
}
|
||||
|
||||
/**
|
||||
* Check if user has exceeded disk quota
|
||||
* Checks if user has exceeded disk quota.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
|
@ -239,7 +239,7 @@ class WP_Importer {
|
|||
}
|
||||
|
||||
/**
|
||||
* Replace newlines, tabs, and multiple spaces with a single space.
|
||||
* Replaces newlines, tabs, and multiple spaces with a single space.
|
||||
*
|
||||
* @param string $text
|
||||
* @return string
|
||||
|
|
|
@ -818,6 +818,20 @@ class WP_List_Table {
|
|||
$pending_comments_number
|
||||
);
|
||||
|
||||
$post_object = get_post( $post_id );
|
||||
$edit_post_cap = $post_object ? 'edit_post' : 'edit_posts';
|
||||
if (
|
||||
current_user_can( $edit_post_cap, $post_id ) ||
|
||||
(
|
||||
empty( $post_object->post_password ) &&
|
||||
current_user_can( 'read_post', $post_id )
|
||||
)
|
||||
) {
|
||||
// The user has access to the post and thus can see comments
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( ! $approved_comments && ! $pending_comments ) {
|
||||
// No comments at all.
|
||||
printf(
|
||||
|
|
|
@ -1101,7 +1101,17 @@ function wp_dashboard_recent_comments( $total_items = 5 ) {
|
|||
|
||||
echo '<ul id="the-comment-list" data-wp-lists="list:comment">';
|
||||
foreach ( $comments as $comment ) {
|
||||
_wp_dashboard_recent_comments_row( $comment );
|
||||
|
||||
$comment_post = get_post( $comment->comment_post_ID );
|
||||
if (
|
||||
current_user_can( 'edit_post', $comment->comment_post_ID ) ||
|
||||
(
|
||||
empty( $comment_post->post_password ) &&
|
||||
current_user_can( 'read_post', $comment->comment_post_ID )
|
||||
)
|
||||
) {
|
||||
_wp_dashboard_recent_comments_row( $comment );
|
||||
}
|
||||
}
|
||||
echo '</ul>';
|
||||
|
||||
|
@ -2095,7 +2105,6 @@ function wp_welcome_panel() {
|
|||
<?php if ( $is_block_theme ) : ?>
|
||||
<h3><?php _e( 'Switch up your site’s look & feel with Styles' ); ?></h3>
|
||||
<p><?php _e( 'Tweak your site, or give it a whole new look! Get creative — how about a new color palette or font?' ); ?></p>
|
||||
<a href="<?php echo esc_url( admin_url( 'site-editor.php?styles=open' ) ); ?>"><?php _e( 'Edit styles' ); ?></a>
|
||||
<?php else : ?>
|
||||
<h3><?php _e( 'Discover a new way to build your site.' ); ?></h3>
|
||||
<p><?php _e( 'There is a new kind of WordPress theme, called a block theme, that lets you build the site you’ve always wanted — with blocks and styles.' ); ?></p>
|
||||
|
|
|
@ -613,6 +613,7 @@ Please click the following link to activate your user account:
|
|||
*
|
||||
* @since 5.6.0
|
||||
* @since 6.2.0 Allow insecure HTTP connections for the local environment.
|
||||
* @since 6.3.2 Validates the success and reject URLs to prevent javascript pseudo protocol being executed.
|
||||
*
|
||||
* @param array $request {
|
||||
* The array of request data. All arguments are optional and may be empty.
|
||||
|
@ -626,27 +627,24 @@ Please click the following link to activate your user account:
|
|||
* @return true|WP_Error True if the request is valid, a WP_Error object contains errors if not.
|
||||
*/
|
||||
function wp_is_authorize_application_password_request_valid( $request, $user ) {
|
||||
$error = new WP_Error();
|
||||
$is_local = 'local' === wp_get_environment_type();
|
||||
$error = new WP_Error();
|
||||
|
||||
if ( ! empty( $request['success_url'] ) ) {
|
||||
$scheme = wp_parse_url( $request['success_url'], PHP_URL_SCHEME );
|
||||
|
||||
if ( 'http' === $scheme && ! $is_local ) {
|
||||
if ( isset( $request['success_url'] ) ) {
|
||||
$validated_success_url = wp_is_authorize_application_redirect_url_valid( $request['success_url'] );
|
||||
if ( is_wp_error( $validated_success_url ) ) {
|
||||
$error->add(
|
||||
'invalid_redirect_scheme',
|
||||
__( 'The success URL must be served over a secure connection.' )
|
||||
$validated_success_url->get_error_code(),
|
||||
$validated_success_url->get_error_message()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! empty( $request['reject_url'] ) ) {
|
||||
$scheme = wp_parse_url( $request['reject_url'], PHP_URL_SCHEME );
|
||||
|
||||
if ( 'http' === $scheme && ! $is_local ) {
|
||||
if ( isset( $request['reject_url'] ) ) {
|
||||
$validated_reject_url = wp_is_authorize_application_redirect_url_valid( $request['reject_url'] );
|
||||
if ( is_wp_error( $validated_reject_url ) ) {
|
||||
$error->add(
|
||||
'invalid_redirect_scheme',
|
||||
__( 'The rejection URL must be served over a secure connection.' )
|
||||
$validated_reject_url->get_error_code(),
|
||||
$validated_reject_url->get_error_message()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -675,3 +673,59 @@ function wp_is_authorize_application_password_request_valid( $request, $user ) {
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validates the redirect URL protocol scheme. The protocol can be anything except http and javascript.
|
||||
*
|
||||
* @since 6.3.2
|
||||
*
|
||||
* @param string $url - The redirect URL to be validated.
|
||||
*
|
||||
* @return true|WP_Error True if the redirect URL is valid, a WP_Error object otherwise.
|
||||
*/
|
||||
function wp_is_authorize_application_redirect_url_valid( $url ) {
|
||||
$bad_protocols = array( 'javascript', 'data' );
|
||||
if ( empty( $url ) ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Based on https://www.rfc-editor.org/rfc/rfc2396#section-3.1
|
||||
$valid_scheme_regex = '/^[a-zA-Z][a-zA-Z0-9+.-]*:/';
|
||||
if ( ! preg_match( $valid_scheme_regex, $url ) ) {
|
||||
return new WP_Error(
|
||||
'invalid_redirect_url_format',
|
||||
__( 'Invalid URL format.' )
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Filters the list of invalid protocols used in applications redirect URLs.
|
||||
*
|
||||
* @since 6.3.2
|
||||
*
|
||||
* @param string[] $bad_protocols Array of invalid protocols.
|
||||
* @param string $url The redirect URL to be validated.
|
||||
*/
|
||||
$invalid_protocols = array_map( 'strtolower', apply_filters( 'wp_authorize_application_redirect_url_invalid_protocols', $bad_protocols, $url ) );
|
||||
|
||||
$scheme = wp_parse_url( $url, PHP_URL_SCHEME );
|
||||
$host = wp_parse_url( $url, PHP_URL_HOST );
|
||||
$is_local = 'local' === wp_get_environment_type();
|
||||
|
||||
// validates if the proper URI format is applied to the $url
|
||||
if ( empty( $host ) || empty( $scheme ) || in_array( strtolower( $scheme ), $invalid_protocols, true ) ) {
|
||||
return new WP_Error(
|
||||
'invalid_redirect_url_format',
|
||||
__( 'Invalid URL format.' )
|
||||
);
|
||||
}
|
||||
|
||||
if ( 'http' === $scheme && ! $is_local ) {
|
||||
return new WP_Error(
|
||||
'invalid_redirect_scheme',
|
||||
__( 'The URL must be served over a secure connection.' )
|
||||
);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -28,6 +28,9 @@ if ( ! current_user_can( 'edit_theme_options' ) ) {
|
|||
);
|
||||
}
|
||||
|
||||
// Used in the HTML title tag.
|
||||
$title = __( 'Menus' );
|
||||
|
||||
wp_enqueue_script( 'nav-menu' );
|
||||
|
||||
if ( wp_is_mobile() ) {
|
||||
|
|
|
@ -375,7 +375,7 @@ if ( isset( $_GET['enabled'] ) ) {
|
|||
/* translators: %s: Number of themes. */
|
||||
$message = _n( '%s theme enabled.', '%s themes enabled.', $enabled );
|
||||
}
|
||||
echo '<div id="message" class="notice notice-updated is-dismissible"><p>' . sprintf( $message, number_format_i18n( $enabled ) ) . '</p></div>';
|
||||
echo '<div id="message" class="notice notice-success is-dismissible"><p>' . sprintf( $message, number_format_i18n( $enabled ) ) . '</p></div>';
|
||||
} elseif ( isset( $_GET['disabled'] ) ) {
|
||||
$disabled = absint( $_GET['disabled'] );
|
||||
if ( 1 === $disabled ) {
|
||||
|
@ -384,7 +384,7 @@ if ( isset( $_GET['enabled'] ) ) {
|
|||
/* translators: %s: Number of themes. */
|
||||
$message = _n( '%s theme disabled.', '%s themes disabled.', $disabled );
|
||||
}
|
||||
echo '<div id="message" class="notice notice-updated is-dismissible"><p>' . sprintf( $message, number_format_i18n( $disabled ) ) . '</p></div>';
|
||||
echo '<div id="message" class="notice notice-success is-dismissible"><p>' . sprintf( $message, number_format_i18n( $disabled ) ) . '</p></div>';
|
||||
} elseif ( isset( $_GET['deleted'] ) ) {
|
||||
$deleted = absint( $_GET['deleted'] );
|
||||
if ( 1 === $deleted ) {
|
||||
|
|
|
@ -349,7 +349,7 @@ switch ( $action ) {
|
|||
</tr>
|
||||
|
||||
<?php
|
||||
$languages = get_available_languages();
|
||||
$languages = get_available_languages();
|
||||
$can_install_translations = current_user_can( 'install_languages' ) && wp_can_install_language_pack();
|
||||
?>
|
||||
<?php if ( $languages || $can_install_translations ) : ?>
|
||||
|
@ -370,12 +370,12 @@ switch ( $action ) {
|
|||
|
||||
wp_dropdown_languages(
|
||||
array(
|
||||
'name' => 'locale',
|
||||
'id' => 'locale',
|
||||
'selected' => $user_locale,
|
||||
'languages' => $languages,
|
||||
'name' => 'locale',
|
||||
'id' => 'locale',
|
||||
'selected' => $user_locale,
|
||||
'languages' => $languages,
|
||||
'show_available_translations' => $can_install_translations,
|
||||
'show_option_site_default' => true,
|
||||
'show_option_site_default' => true,
|
||||
)
|
||||
);
|
||||
?>
|
||||
|
|
|
@ -96,4 +96,8 @@ class Hooks implements HookManager {
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
public function __wakeup() {
|
||||
throw new \LogicException( __CLASS__ . ' should never be unserialized' );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -717,6 +717,20 @@ class Iri {
|
|||
return true;
|
||||
}
|
||||
|
||||
public function __wakeup() {
|
||||
$class_props = get_class_vars( __CLASS__ );
|
||||
$string_props = array( 'scheme', 'iuserinfo', 'ihost', 'port', 'ipath', 'iquery', 'ifragment' );
|
||||
$array_props = array( 'normalization' );
|
||||
foreach ( $class_props as $prop => $default_value ) {
|
||||
if ( in_array( $prop, $string_props, true ) && ! is_string( $this->$prop ) ) {
|
||||
throw new UnexpectedValueException();
|
||||
} elseif ( in_array( $prop, $array_props, true ) && ! is_array( $this->$prop ) ) {
|
||||
throw new UnexpectedValueException();
|
||||
}
|
||||
$this->$prop = null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the entire IRI. Returns true on success, false on failure (if there
|
||||
* are any invalid characters).
|
||||
|
|
|
@ -265,6 +265,10 @@ class Session {
|
|||
return Requests::request_multiple($requests, $options);
|
||||
}
|
||||
|
||||
public function __wakeup() {
|
||||
throw new \LogicException( __CLASS__ . ' should never be unserialized' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Merge a request's data with the default data
|
||||
*
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1338,9 +1338,9 @@ function get_template_hierarchy( $slug, $is_custom = false, $template_prefix = '
|
|||
if ( $slug !== $type ) {
|
||||
$template_hierarchy[] = $type;
|
||||
}
|
||||
} else if ( preg_match( '/^(author|category|archive|tag|page)-.+$/', $slug, $matches ) ) {
|
||||
} elseif ( preg_match( '/^(author|category|archive|tag|page)-.+$/', $slug, $matches ) ) {
|
||||
$template_hierarchy[] = $matches[1];
|
||||
} else if ( preg_match( '/^(taxonomy|single)-(.+)$/', $slug, $matches ) ) {
|
||||
} elseif ( preg_match( '/^(taxonomy|single)-(.+)$/', $slug, $matches ) ) {
|
||||
$type = $matches[1];
|
||||
$slug_remaining = $matches[2];
|
||||
|
||||
|
|
|
@ -237,12 +237,12 @@ function get_the_block_template_html() {
|
|||
|
||||
$content = $wp_embed->run_shortcode( $_wp_current_template_content );
|
||||
$content = $wp_embed->autoembed( $content );
|
||||
$content = shortcode_unautop( $content );
|
||||
$content = do_shortcode( $content );
|
||||
$content = do_blocks( $content );
|
||||
$content = wptexturize( $content );
|
||||
$content = convert_smilies( $content );
|
||||
$content = shortcode_unautop( $content );
|
||||
$content = wp_filter_content_tags( $content, 'template' );
|
||||
$content = do_shortcode( $content );
|
||||
$content = str_replace( ']]>', ']]>', $content );
|
||||
|
||||
// Wrap block template in .wp-site-blocks to allow for specific descendant styles
|
||||
|
|
|
@ -260,7 +260,11 @@ function register_block_style_handle( $metadata, $field_name, $index = 0 ) {
|
|||
if ( $has_style_file ) {
|
||||
wp_style_add_data( $style_handle, 'path', $style_path_norm );
|
||||
|
||||
$rtl_file = str_replace( "{$suffix}.css", "-rtl{$suffix}.css", $style_path_norm );
|
||||
if ( $is_core_block ) {
|
||||
$rtl_file = str_replace( "{$suffix}.css", "-rtl{$suffix}.css", $style_path_norm );
|
||||
} else {
|
||||
$rtl_file = str_replace( '.css', '-rtl.css', $style_path_norm );
|
||||
}
|
||||
|
||||
if ( is_rtl() && file_exists( $rtl_file ) ) {
|
||||
wp_style_add_data( $style_handle, 'rtl', 'replace' );
|
||||
|
@ -794,6 +798,10 @@ function serialize_blocks( $blocks ) {
|
|||
function filter_block_content( $text, $allowed_html = 'post', $allowed_protocols = array() ) {
|
||||
$result = '';
|
||||
|
||||
if ( false !== strpos( $text, '<!--' ) && false !== strpos( $text, '--->' ) ) {
|
||||
$text = preg_replace_callback( '%<!--(.*?)--->%', '_filter_block_content_callback', $text );
|
||||
}
|
||||
|
||||
$blocks = parse_blocks( $text );
|
||||
foreach ( $blocks as $block ) {
|
||||
$block = filter_block_kses( $block, $allowed_html, $allowed_protocols );
|
||||
|
@ -803,6 +811,19 @@ function filter_block_content( $text, $allowed_html = 'post', $allowed_protocols
|
|||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Callback used for regular expression replacement in filter_block_content().
|
||||
*
|
||||
* @private
|
||||
* @since 6.2.1
|
||||
*
|
||||
* @param array $matches Array of preg_replace_callback matches.
|
||||
* @return string Replacement string.
|
||||
*/
|
||||
function _filter_block_content_callback( $matches ) {
|
||||
return '<!--' . rtrim( $matches[1], '-' ) . '-->';
|
||||
}
|
||||
|
||||
/**
|
||||
* Filters and sanitizes a parsed block to remove non-allowable HTML
|
||||
* from block attribute values.
|
||||
|
|
|
@ -74,6 +74,6 @@
|
|||
}
|
||||
|
||||
.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background),.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background){
|
||||
background-color:initial;
|
||||
background-color:transparent;
|
||||
background-image:none;
|
||||
}
|
2
wp-includes/blocks/button/style-rtl.min.css
vendored
2
wp-includes/blocks/button/style-rtl.min.css
vendored
|
@ -1 +1 @@
|
|||
.wp-block-button__link{box-sizing:border-box;cursor:pointer;display:inline-block;text-align:center;word-break:break-word}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}:where(.wp-block-button__link){border-radius:9999px;box-shadow:none;padding:calc(.667em + 2px) calc(1.333em + 2px);text-decoration:none}.wp-block-button[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons>.wp-block-button.has-custom-width{max-width:none}.wp-block-buttons>.wp-block-button.has-custom-width .wp-block-button__link{width:100%}.wp-block-buttons>.wp-block-button.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-buttons>.wp-block-button.wp-block-button__width-25{width:calc(25% - var(--wp--style--block-gap, .5em)*.75)}.wp-block-buttons>.wp-block-button.wp-block-button__width-50{width:calc(50% - var(--wp--style--block-gap, .5em)*.5)}.wp-block-buttons>.wp-block-button.wp-block-button__width-75{width:calc(75% - var(--wp--style--block-gap, .5em)*.25)}.wp-block-buttons>.wp-block-button.wp-block-button__width-100{flex-basis:100%;width:100%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-25{width:25%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-50{width:50%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-75{width:75%}.wp-block-button.is-style-squared,.wp-block-button__link.wp-block-button.is-style-squared{border-radius:0}.wp-block-button.no-border-radius,.wp-block-button__link.no-border-radius{border-radius:0!important}.wp-block-button .wp-block-button__link.is-style-outline,.wp-block-button.is-style-outline>.wp-block-button__link{border:2px solid;padding:.667em 1.333em}.wp-block-button .wp-block-button__link.is-style-outline:not(.has-text-color),.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-text-color){color:currentColor}.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background),.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background){background-color:initial;background-image:none}
|
||||
.wp-block-button__link{box-sizing:border-box;cursor:pointer;display:inline-block;text-align:center;word-break:break-word}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}:where(.wp-block-button__link){border-radius:9999px;box-shadow:none;padding:calc(.667em + 2px) calc(1.333em + 2px);text-decoration:none}.wp-block-button[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons>.wp-block-button.has-custom-width{max-width:none}.wp-block-buttons>.wp-block-button.has-custom-width .wp-block-button__link{width:100%}.wp-block-buttons>.wp-block-button.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-buttons>.wp-block-button.wp-block-button__width-25{width:calc(25% - var(--wp--style--block-gap, .5em)*.75)}.wp-block-buttons>.wp-block-button.wp-block-button__width-50{width:calc(50% - var(--wp--style--block-gap, .5em)*.5)}.wp-block-buttons>.wp-block-button.wp-block-button__width-75{width:calc(75% - var(--wp--style--block-gap, .5em)*.25)}.wp-block-buttons>.wp-block-button.wp-block-button__width-100{flex-basis:100%;width:100%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-25{width:25%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-50{width:50%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-75{width:75%}.wp-block-button.is-style-squared,.wp-block-button__link.wp-block-button.is-style-squared{border-radius:0}.wp-block-button.no-border-radius,.wp-block-button__link.no-border-radius{border-radius:0!important}.wp-block-button .wp-block-button__link.is-style-outline,.wp-block-button.is-style-outline>.wp-block-button__link{border:2px solid;padding:.667em 1.333em}.wp-block-button .wp-block-button__link.is-style-outline:not(.has-text-color),.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-text-color){color:currentColor}.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background),.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background){background-color:transparent;background-image:none}
|
|
@ -74,6 +74,6 @@
|
|||
}
|
||||
|
||||
.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background),.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background){
|
||||
background-color:initial;
|
||||
background-color:transparent;
|
||||
background-image:none;
|
||||
}
|
2
wp-includes/blocks/button/style.min.css
vendored
2
wp-includes/blocks/button/style.min.css
vendored
|
@ -1 +1 @@
|
|||
.wp-block-button__link{box-sizing:border-box;cursor:pointer;display:inline-block;text-align:center;word-break:break-word}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}:where(.wp-block-button__link){border-radius:9999px;box-shadow:none;padding:calc(.667em + 2px) calc(1.333em + 2px);text-decoration:none}.wp-block-button[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons>.wp-block-button.has-custom-width{max-width:none}.wp-block-buttons>.wp-block-button.has-custom-width .wp-block-button__link{width:100%}.wp-block-buttons>.wp-block-button.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-buttons>.wp-block-button.wp-block-button__width-25{width:calc(25% - var(--wp--style--block-gap, .5em)*.75)}.wp-block-buttons>.wp-block-button.wp-block-button__width-50{width:calc(50% - var(--wp--style--block-gap, .5em)*.5)}.wp-block-buttons>.wp-block-button.wp-block-button__width-75{width:calc(75% - var(--wp--style--block-gap, .5em)*.25)}.wp-block-buttons>.wp-block-button.wp-block-button__width-100{flex-basis:100%;width:100%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-25{width:25%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-50{width:50%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-75{width:75%}.wp-block-button.is-style-squared,.wp-block-button__link.wp-block-button.is-style-squared{border-radius:0}.wp-block-button.no-border-radius,.wp-block-button__link.no-border-radius{border-radius:0!important}.wp-block-button .wp-block-button__link.is-style-outline,.wp-block-button.is-style-outline>.wp-block-button__link{border:2px solid;padding:.667em 1.333em}.wp-block-button .wp-block-button__link.is-style-outline:not(.has-text-color),.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-text-color){color:currentColor}.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background),.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background){background-color:initial;background-image:none}
|
||||
.wp-block-button__link{box-sizing:border-box;cursor:pointer;display:inline-block;text-align:center;word-break:break-word}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}:where(.wp-block-button__link){border-radius:9999px;box-shadow:none;padding:calc(.667em + 2px) calc(1.333em + 2px);text-decoration:none}.wp-block-button[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons>.wp-block-button.has-custom-width{max-width:none}.wp-block-buttons>.wp-block-button.has-custom-width .wp-block-button__link{width:100%}.wp-block-buttons>.wp-block-button.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-buttons>.wp-block-button.wp-block-button__width-25{width:calc(25% - var(--wp--style--block-gap, .5em)*.75)}.wp-block-buttons>.wp-block-button.wp-block-button__width-50{width:calc(50% - var(--wp--style--block-gap, .5em)*.5)}.wp-block-buttons>.wp-block-button.wp-block-button__width-75{width:calc(75% - var(--wp--style--block-gap, .5em)*.25)}.wp-block-buttons>.wp-block-button.wp-block-button__width-100{flex-basis:100%;width:100%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-25{width:25%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-50{width:50%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-75{width:75%}.wp-block-button.is-style-squared,.wp-block-button__link.wp-block-button.is-style-squared{border-radius:0}.wp-block-button.no-border-radius,.wp-block-button__link.no-border-radius{border-radius:0!important}.wp-block-button .wp-block-button__link.is-style-outline,.wp-block-button.is-style-outline>.wp-block-button__link{border:2px solid;padding:.667em 1.333em}.wp-block-button .wp-block-button__link.is-style-outline:not(.has-text-color),.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-text-color){color:currentColor}.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background),.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background){background-color:transparent;background-image:none}
|
|
@ -58,11 +58,10 @@ function block_core_comment_template_render_comments( $comments, $block ) {
|
|||
$block_content .= sprintf( '<ol>%1$s</ol>', $inner_content );
|
||||
--$comment_depth;
|
||||
} else {
|
||||
$inner_content = block_core_comment_template_render_comments(
|
||||
$block_content .= block_core_comment_template_render_comments(
|
||||
$children,
|
||||
$block
|
||||
);
|
||||
$block_content .= sprintf( $inner_content );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
background-color:#000;
|
||||
}
|
||||
.wp-block-cover .has-background-dim.has-background-gradient,.wp-block-cover-image .has-background-dim.has-background-gradient{
|
||||
background-color:initial;
|
||||
background-color:transparent;
|
||||
}
|
||||
.wp-block-cover-image.has-background-dim:before,.wp-block-cover.has-background-dim:before{
|
||||
background-color:inherit;
|
||||
|
|
2
wp-includes/blocks/cover/style-rtl.min.css
vendored
2
wp-includes/blocks/cover/style-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -12,7 +12,7 @@
|
|||
background-color:#000;
|
||||
}
|
||||
.wp-block-cover .has-background-dim.has-background-gradient,.wp-block-cover-image .has-background-dim.has-background-gradient{
|
||||
background-color:initial;
|
||||
background-color:transparent;
|
||||
}
|
||||
.wp-block-cover-image.has-background-dim:before,.wp-block-cover.has-background-dim:before{
|
||||
background-color:inherit;
|
||||
|
|
2
wp-includes/blocks/cover/style.min.css
vendored
2
wp-includes/blocks/cover/style.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -76,7 +76,7 @@
|
|||
width:96%;
|
||||
}
|
||||
.wp-block-freeform.block-library-rich-text__tinymce img::selection{
|
||||
background-color:initial;
|
||||
background-color:transparent;
|
||||
}
|
||||
.wp-block-freeform.block-library-rich-text__tinymce div.mceTemp{
|
||||
-ms-user-select:element;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -76,7 +76,7 @@
|
|||
width:96%;
|
||||
}
|
||||
.wp-block-freeform.block-library-rich-text__tinymce img::selection{
|
||||
background-color:initial;
|
||||
background-color:transparent;
|
||||
}
|
||||
.wp-block-freeform.block-library-rich-text__tinymce div.mceTemp{
|
||||
-ms-user-select:element;
|
||||
|
|
2
wp-includes/blocks/freeform/editor.min.css
vendored
2
wp-includes/blocks/freeform/editor.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -52,7 +52,7 @@
|
|||
-webkit-mask-position:center;
|
||||
mask-position:center;
|
||||
-webkit-mask-repeat:no-repeat;
|
||||
mask-repeat:initial;
|
||||
mask-repeat:no-repeat;
|
||||
-webkit-mask-size:contain;
|
||||
mask-size:contain;
|
||||
}
|
||||
|
|
2
wp-includes/blocks/image/style-rtl.min.css
vendored
2
wp-includes/blocks/image/style-rtl.min.css
vendored
|
@ -1 +1 @@
|
|||
.wp-block-image img{height:auto;max-width:100%;vertical-align:bottom}.wp-block-image img,.wp-block-image.has-custom-border img{box-sizing:border-box}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull img,.wp-block-image.alignwide img{height:auto;width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image.aligncenter,.wp-block-image.alignleft,.wp-block-image.alignright{display:table}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.aligncenter>figcaption,.wp-block-image.alignleft>figcaption,.wp-block-image.alignright>figcaption{caption-side:bottom;display:table-caption}.wp-block-image .alignleft{float:left;margin-bottom:.5em;margin-left:1em;margin-top:.5em}.wp-block-image .alignright{float:right;margin-bottom:.5em;margin-right:1em;margin-top:.5em}.wp-block-image .aligncenter{margin-left:auto;margin-right:auto}.wp-block-image figcaption{margin-bottom:1em;margin-top:.5em}.wp-block-image .is-style-rounded img,.wp-block-image.is-style-circle-mask img,.wp-block-image.is-style-rounded img{border-radius:9999px}@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.wp-block-image.is-style-circle-mask img{border-radius:0;-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>');mask-mode:alpha;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:initial;-webkit-mask-size:contain;mask-size:contain}}.wp-block-image :where(.has-border-color){border-style:solid}.wp-block-image :where([style*=border-top-color]){border-top-style:solid}.wp-block-image :where([style*=border-right-color]){border-left-style:solid}.wp-block-image :where([style*=border-bottom-color]){border-bottom-style:solid}.wp-block-image :where([style*=border-left-color]){border-right-style:solid}.wp-block-image :where([style*=border-width]){border-style:solid}.wp-block-image :where([style*=border-top-width]){border-top-style:solid}.wp-block-image :where([style*=border-right-width]){border-left-style:solid}.wp-block-image :where([style*=border-bottom-width]){border-bottom-style:solid}.wp-block-image :where([style*=border-left-width]){border-right-style:solid}.wp-block-image figure{margin:0}
|
||||
.wp-block-image img{height:auto;max-width:100%;vertical-align:bottom}.wp-block-image img,.wp-block-image.has-custom-border img{box-sizing:border-box}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull img,.wp-block-image.alignwide img{height:auto;width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image.aligncenter,.wp-block-image.alignleft,.wp-block-image.alignright{display:table}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.aligncenter>figcaption,.wp-block-image.alignleft>figcaption,.wp-block-image.alignright>figcaption{caption-side:bottom;display:table-caption}.wp-block-image .alignleft{float:left;margin-bottom:.5em;margin-left:1em;margin-top:.5em}.wp-block-image .alignright{float:right;margin-bottom:.5em;margin-right:1em;margin-top:.5em}.wp-block-image .aligncenter{margin-left:auto;margin-right:auto}.wp-block-image figcaption{margin-bottom:1em;margin-top:.5em}.wp-block-image .is-style-rounded img,.wp-block-image.is-style-circle-mask img,.wp-block-image.is-style-rounded img{border-radius:9999px}@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.wp-block-image.is-style-circle-mask img{border-radius:0;-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>');mask-mode:alpha;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}}.wp-block-image :where(.has-border-color){border-style:solid}.wp-block-image :where([style*=border-top-color]){border-top-style:solid}.wp-block-image :where([style*=border-right-color]){border-left-style:solid}.wp-block-image :where([style*=border-bottom-color]){border-bottom-style:solid}.wp-block-image :where([style*=border-left-color]){border-right-style:solid}.wp-block-image :where([style*=border-width]){border-style:solid}.wp-block-image :where([style*=border-top-width]){border-top-style:solid}.wp-block-image :where([style*=border-right-width]){border-left-style:solid}.wp-block-image :where([style*=border-bottom-width]){border-bottom-style:solid}.wp-block-image :where([style*=border-left-width]){border-right-style:solid}.wp-block-image figure{margin:0}
|
|
@ -48,7 +48,7 @@
|
|||
-webkit-mask-position:center;
|
||||
mask-position:center;
|
||||
-webkit-mask-repeat:no-repeat;
|
||||
mask-repeat:initial;
|
||||
mask-repeat:no-repeat;
|
||||
-webkit-mask-size:contain;
|
||||
mask-size:contain;
|
||||
}
|
||||
|
|
2
wp-includes/blocks/image/style.min.css
vendored
2
wp-includes/blocks/image/style.min.css
vendored
|
@ -1 +1 @@
|
|||
.wp-block-image img{height:auto;max-width:100%;vertical-align:bottom}.wp-block-image img,.wp-block-image.has-custom-border img{box-sizing:border-box}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull img,.wp-block-image.alignwide img{height:auto;width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image.aligncenter,.wp-block-image.alignleft,.wp-block-image.alignright{display:table}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.aligncenter>figcaption,.wp-block-image.alignleft>figcaption,.wp-block-image.alignright>figcaption{caption-side:bottom;display:table-caption}.wp-block-image .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-image .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-image .aligncenter{margin-left:auto;margin-right:auto}.wp-block-image figcaption{margin-bottom:1em;margin-top:.5em}.wp-block-image .is-style-rounded img,.wp-block-image.is-style-circle-mask img,.wp-block-image.is-style-rounded img{border-radius:9999px}@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.wp-block-image.is-style-circle-mask img{border-radius:0;-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>');mask-mode:alpha;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:initial;-webkit-mask-size:contain;mask-size:contain}}.wp-block-image :where(.has-border-color){border-style:solid}.wp-block-image :where([style*=border-top-color]){border-top-style:solid}.wp-block-image :where([style*=border-right-color]){border-right-style:solid}.wp-block-image :where([style*=border-bottom-color]){border-bottom-style:solid}.wp-block-image :where([style*=border-left-color]){border-left-style:solid}.wp-block-image :where([style*=border-width]){border-style:solid}.wp-block-image :where([style*=border-top-width]){border-top-style:solid}.wp-block-image :where([style*=border-right-width]){border-right-style:solid}.wp-block-image :where([style*=border-bottom-width]){border-bottom-style:solid}.wp-block-image :where([style*=border-left-width]){border-left-style:solid}.wp-block-image figure{margin:0}
|
||||
.wp-block-image img{height:auto;max-width:100%;vertical-align:bottom}.wp-block-image img,.wp-block-image.has-custom-border img{box-sizing:border-box}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull img,.wp-block-image.alignwide img{height:auto;width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image.aligncenter,.wp-block-image.alignleft,.wp-block-image.alignright{display:table}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.aligncenter>figcaption,.wp-block-image.alignleft>figcaption,.wp-block-image.alignright>figcaption{caption-side:bottom;display:table-caption}.wp-block-image .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-image .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-image .aligncenter{margin-left:auto;margin-right:auto}.wp-block-image figcaption{margin-bottom:1em;margin-top:.5em}.wp-block-image .is-style-rounded img,.wp-block-image.is-style-circle-mask img,.wp-block-image.is-style-rounded img{border-radius:9999px}@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.wp-block-image.is-style-circle-mask img{border-radius:0;-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>');mask-mode:alpha;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}}.wp-block-image :where(.has-border-color){border-style:solid}.wp-block-image :where([style*=border-top-color]){border-top-style:solid}.wp-block-image :where([style*=border-right-color]){border-right-style:solid}.wp-block-image :where([style*=border-bottom-color]){border-bottom-style:solid}.wp-block-image :where([style*=border-left-color]){border-left-style:solid}.wp-block-image :where([style*=border-width]){border-style:solid}.wp-block-image :where([style*=border-top-width]){border-top-style:solid}.wp-block-image :where([style*=border-right-width]){border-right-style:solid}.wp-block-image :where([style*=border-bottom-width]){border-bottom-style:solid}.wp-block-image :where([style*=border-left-width]){border-left-style:solid}.wp-block-image figure{margin:0}
|
|
@ -173,13 +173,11 @@ function render_block_core_navigation_link( $attributes, $content, $block ) {
|
|||
return '';
|
||||
}
|
||||
|
||||
$colors = block_core_navigation_link_build_css_colors( $block->context, $attributes );
|
||||
$font_sizes = block_core_navigation_link_build_css_font_sizes( $block->context );
|
||||
$classes = array_merge(
|
||||
$colors['css_classes'],
|
||||
$font_sizes['css_classes']
|
||||
);
|
||||
$style_attribute = ( $colors['inline_styles'] . $font_sizes['inline_styles'] );
|
||||
$style_attribute = $font_sizes['inline_styles'];
|
||||
|
||||
$css_classes = trim( implode( ' ', $classes ) );
|
||||
$has_submenu = count( $block->inner_blocks ) > 0;
|
||||
|
|
|
@ -125,7 +125,7 @@
|
|||
}
|
||||
|
||||
.wp-block-navigation .wp-block .wp-block .block-editor-button-block-appender{
|
||||
background-color:initial;
|
||||
background-color:transparent;
|
||||
color:#1e1e1e;
|
||||
}
|
||||
@keyframes loadingpulse{
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -125,7 +125,7 @@
|
|||
}
|
||||
|
||||
.wp-block-navigation .wp-block .wp-block .block-editor-button-block-appender{
|
||||
background-color:initial;
|
||||
background-color:transparent;
|
||||
color:#1e1e1e;
|
||||
}
|
||||
@keyframes loadingpulse{
|
||||
|
|
2
wp-includes/blocks/navigation/editor.min.css
vendored
2
wp-includes/blocks/navigation/editor.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -183,7 +183,7 @@
|
|||
}
|
||||
|
||||
button.wp-block-navigation-item__content{
|
||||
background-color:initial;
|
||||
background-color:transparent;
|
||||
border:none;
|
||||
color:currentColor;
|
||||
font-family:inherit;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -183,7 +183,7 @@
|
|||
}
|
||||
|
||||
button.wp-block-navigation-item__content{
|
||||
background-color:initial;
|
||||
background-color:transparent;
|
||||
border:none;
|
||||
color:currentColor;
|
||||
font-family:inherit;
|
||||
|
|
2
wp-includes/blocks/navigation/style.min.css
vendored
2
wp-includes/blocks/navigation/style.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -25,7 +25,7 @@
|
|||
}
|
||||
|
||||
.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-gradient{
|
||||
background-color:initial;
|
||||
background-color:transparent;
|
||||
}
|
||||
.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-0{
|
||||
opacity:0;
|
||||
|
|
|
@ -1 +1 @@
|
|||
.wp-block-post-featured-image{margin-left:0;margin-right:0}.wp-block-post-featured-image a{display:block}.wp-block-post-featured-image img{box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom;width:100%}.wp-block-post-featured-image.alignfull img,.wp-block-post-featured-image.alignwide img{width:100%}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim{background-color:#000;inset:0;position:absolute}.wp-block-post-featured-image{position:relative}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-gradient{background-color:initial}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-0{opacity:0}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-10{opacity:.1}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-20{opacity:.2}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-30{opacity:.3}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-40{opacity:.4}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-50{opacity:.5}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-60{opacity:.6}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-70{opacity:.7}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-80{opacity:.8}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-90{opacity:.9}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-100{opacity:1}
|
||||
.wp-block-post-featured-image{margin-left:0;margin-right:0}.wp-block-post-featured-image a{display:block}.wp-block-post-featured-image img{box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom;width:100%}.wp-block-post-featured-image.alignfull img,.wp-block-post-featured-image.alignwide img{width:100%}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim{background-color:#000;inset:0;position:absolute}.wp-block-post-featured-image{position:relative}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-gradient{background-color:transparent}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-0{opacity:0}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-10{opacity:.1}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-20{opacity:.2}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-30{opacity:.3}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-40{opacity:.4}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-50{opacity:.5}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-60{opacity:.6}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-70{opacity:.7}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-80{opacity:.8}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-90{opacity:.9}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-100{opacity:1}
|
|
@ -25,7 +25,7 @@
|
|||
}
|
||||
|
||||
.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-gradient{
|
||||
background-color:initial;
|
||||
background-color:transparent;
|
||||
}
|
||||
.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-0{
|
||||
opacity:0;
|
||||
|
|
|
@ -1 +1 @@
|
|||
.wp-block-post-featured-image{margin-left:0;margin-right:0}.wp-block-post-featured-image a{display:block}.wp-block-post-featured-image img{box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom;width:100%}.wp-block-post-featured-image.alignfull img,.wp-block-post-featured-image.alignwide img{width:100%}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim{background-color:#000;inset:0;position:absolute}.wp-block-post-featured-image{position:relative}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-gradient{background-color:initial}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-0{opacity:0}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-10{opacity:.1}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-20{opacity:.2}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-30{opacity:.3}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-40{opacity:.4}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-50{opacity:.5}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-60{opacity:.6}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-70{opacity:.7}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-80{opacity:.8}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-90{opacity:.9}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-100{opacity:1}
|
||||
.wp-block-post-featured-image{margin-left:0;margin-right:0}.wp-block-post-featured-image a{display:block}.wp-block-post-featured-image img{box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom;width:100%}.wp-block-post-featured-image.alignfull img,.wp-block-post-featured-image.alignwide img{width:100%}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim{background-color:#000;inset:0;position:absolute}.wp-block-post-featured-image{position:relative}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-gradient{background-color:transparent}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-0{opacity:0}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-10{opacity:.1}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-20{opacity:.2}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-30{opacity:.3}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-40{opacity:.4}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-50{opacity:.5}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-60{opacity:.6}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-70{opacity:.7}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-80{opacity:.8}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-90{opacity:.9}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-100{opacity:1}
|
|
@ -34,6 +34,7 @@ function render_block_core_post_navigation_link( $attributes, $content ) {
|
|||
$link = 'next' === $navigation_type ? _x( 'Next', 'label for next post link' ) : _x( 'Previous', 'label for previous post link' );
|
||||
$label = '';
|
||||
|
||||
// Only use hardcoded values here, otherwise we need to add escaping where these values are used.
|
||||
$arrow_map = array(
|
||||
'none' => '',
|
||||
'arrow' => array(
|
||||
|
@ -84,7 +85,7 @@ function render_block_core_post_navigation_link( $attributes, $content ) {
|
|||
}
|
||||
|
||||
// Display arrows.
|
||||
if ( isset( $attributes['arrow'] ) && ! empty( $attributes['arrow'] ) && 'none' !== $attributes['arrow'] ) {
|
||||
if ( isset( $attributes['arrow'] ) && 'none' !== $attributes['arrow'] && isset( $arrow_map[ $attributes['arrow'] ] ) ) {
|
||||
$arrow = $arrow_map[ $attributes['arrow'] ][ $navigation_type ];
|
||||
|
||||
if ( 'next' === $navigation_type ) {
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
background-color:#fcf0ef;
|
||||
}
|
||||
.wp-block-table.is-style-stripes{
|
||||
background-color:initial;
|
||||
background-color:transparent;
|
||||
border-bottom:1px solid #f0f0f0;
|
||||
border-collapse:inherit;
|
||||
border-spacing:0;
|
||||
|
@ -72,7 +72,7 @@
|
|||
border-top-color:inherit;
|
||||
}
|
||||
.wp-block-table table[style*=border-top-color] tr:not(:first-child){
|
||||
border-top-color:initial;
|
||||
border-top-color:currentColor;
|
||||
}
|
||||
.wp-block-table table[style*=border-right-color] td:last-child,.wp-block-table table[style*=border-right-color] th,.wp-block-table table[style*=border-right-color] tr,.wp-block-table table[style*=border-right-color]>*{
|
||||
border-left-color:inherit;
|
||||
|
@ -81,7 +81,7 @@
|
|||
border-bottom-color:inherit;
|
||||
}
|
||||
.wp-block-table table[style*=border-bottom-color] tr:not(:last-child){
|
||||
border-bottom-color:initial;
|
||||
border-bottom-color:currentColor;
|
||||
}
|
||||
.wp-block-table table[style*=border-left-color] td:first-child,.wp-block-table table[style*=border-left-color] th,.wp-block-table table[style*=border-left-color] tr,.wp-block-table table[style*=border-left-color]>*{
|
||||
border-right-color:inherit;
|
||||
|
|
2
wp-includes/blocks/table/style-rtl.min.css
vendored
2
wp-includes/blocks/table/style-rtl.min.css
vendored
|
@ -1 +1 @@
|
|||
.wp-block-table{overflow-x:auto}.wp-block-table table{border-collapse:collapse;width:100%}.wp-block-table thead{border-bottom:3px solid}.wp-block-table tfoot{border-top:3px solid}.wp-block-table td,.wp-block-table th{border:1px solid;padding:.5em}.wp-block-table .has-fixed-layout{table-layout:fixed;width:100%}.wp-block-table .has-fixed-layout td,.wp-block-table .has-fixed-layout th{word-break:break-word}.wp-block-table.aligncenter,.wp-block-table.alignleft,.wp-block-table.alignright{display:table;width:auto}.wp-block-table.aligncenter td,.wp-block-table.aligncenter th,.wp-block-table.alignleft td,.wp-block-table.alignleft th,.wp-block-table.alignright td,.wp-block-table.alignright th{word-break:break-word}.wp-block-table .has-subtle-light-gray-background-color{background-color:#f3f4f5}.wp-block-table .has-subtle-pale-green-background-color{background-color:#e9fbe5}.wp-block-table .has-subtle-pale-blue-background-color{background-color:#e7f5fe}.wp-block-table .has-subtle-pale-pink-background-color{background-color:#fcf0ef}.wp-block-table.is-style-stripes{background-color:initial;border-bottom:1px solid #f0f0f0;border-collapse:inherit;border-spacing:0}.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:#f0f0f0}.wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tbody tr:nth-child(odd){background-color:#f3f4f5}.wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd){background-color:#e9fbe5}.wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd){background-color:#e7f5fe}.wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd){background-color:#fcf0ef}.wp-block-table.is-style-stripes td,.wp-block-table.is-style-stripes th{border-color:transparent}.wp-block-table .has-border-color td,.wp-block-table .has-border-color th,.wp-block-table .has-border-color tr,.wp-block-table .has-border-color>*{border-color:inherit}.wp-block-table table[style*=border-top-color] tr:first-child,.wp-block-table table[style*=border-top-color] tr:first-child td,.wp-block-table table[style*=border-top-color] tr:first-child th,.wp-block-table table[style*=border-top-color]>*,.wp-block-table table[style*=border-top-color]>* td,.wp-block-table table[style*=border-top-color]>* th{border-top-color:inherit}.wp-block-table table[style*=border-top-color] tr:not(:first-child){border-top-color:initial}.wp-block-table table[style*=border-right-color] td:last-child,.wp-block-table table[style*=border-right-color] th,.wp-block-table table[style*=border-right-color] tr,.wp-block-table table[style*=border-right-color]>*{border-left-color:inherit}.wp-block-table table[style*=border-bottom-color] tr:last-child,.wp-block-table table[style*=border-bottom-color] tr:last-child td,.wp-block-table table[style*=border-bottom-color] tr:last-child th,.wp-block-table table[style*=border-bottom-color]>*,.wp-block-table table[style*=border-bottom-color]>* td,.wp-block-table table[style*=border-bottom-color]>* th{border-bottom-color:inherit}.wp-block-table table[style*=border-bottom-color] tr:not(:last-child){border-bottom-color:initial}.wp-block-table table[style*=border-left-color] td:first-child,.wp-block-table table[style*=border-left-color] th,.wp-block-table table[style*=border-left-color] tr,.wp-block-table table[style*=border-left-color]>*{border-right-color:inherit}.wp-block-table table[style*=border-style] td,.wp-block-table table[style*=border-style] th,.wp-block-table table[style*=border-style] tr,.wp-block-table table[style*=border-style]>*{border-style:inherit}.wp-block-table table[style*=border-width] td,.wp-block-table table[style*=border-width] th,.wp-block-table table[style*=border-width] tr,.wp-block-table table[style*=border-width]>*{border-style:inherit;border-width:inherit}
|
||||
.wp-block-table{overflow-x:auto}.wp-block-table table{border-collapse:collapse;width:100%}.wp-block-table thead{border-bottom:3px solid}.wp-block-table tfoot{border-top:3px solid}.wp-block-table td,.wp-block-table th{border:1px solid;padding:.5em}.wp-block-table .has-fixed-layout{table-layout:fixed;width:100%}.wp-block-table .has-fixed-layout td,.wp-block-table .has-fixed-layout th{word-break:break-word}.wp-block-table.aligncenter,.wp-block-table.alignleft,.wp-block-table.alignright{display:table;width:auto}.wp-block-table.aligncenter td,.wp-block-table.aligncenter th,.wp-block-table.alignleft td,.wp-block-table.alignleft th,.wp-block-table.alignright td,.wp-block-table.alignright th{word-break:break-word}.wp-block-table .has-subtle-light-gray-background-color{background-color:#f3f4f5}.wp-block-table .has-subtle-pale-green-background-color{background-color:#e9fbe5}.wp-block-table .has-subtle-pale-blue-background-color{background-color:#e7f5fe}.wp-block-table .has-subtle-pale-pink-background-color{background-color:#fcf0ef}.wp-block-table.is-style-stripes{background-color:transparent;border-bottom:1px solid #f0f0f0;border-collapse:inherit;border-spacing:0}.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:#f0f0f0}.wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tbody tr:nth-child(odd){background-color:#f3f4f5}.wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd){background-color:#e9fbe5}.wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd){background-color:#e7f5fe}.wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd){background-color:#fcf0ef}.wp-block-table.is-style-stripes td,.wp-block-table.is-style-stripes th{border-color:transparent}.wp-block-table .has-border-color td,.wp-block-table .has-border-color th,.wp-block-table .has-border-color tr,.wp-block-table .has-border-color>*{border-color:inherit}.wp-block-table table[style*=border-top-color] tr:first-child,.wp-block-table table[style*=border-top-color] tr:first-child td,.wp-block-table table[style*=border-top-color] tr:first-child th,.wp-block-table table[style*=border-top-color]>*,.wp-block-table table[style*=border-top-color]>* td,.wp-block-table table[style*=border-top-color]>* th{border-top-color:inherit}.wp-block-table table[style*=border-top-color] tr:not(:first-child){border-top-color:currentColor}.wp-block-table table[style*=border-right-color] td:last-child,.wp-block-table table[style*=border-right-color] th,.wp-block-table table[style*=border-right-color] tr,.wp-block-table table[style*=border-right-color]>*{border-left-color:inherit}.wp-block-table table[style*=border-bottom-color] tr:last-child,.wp-block-table table[style*=border-bottom-color] tr:last-child td,.wp-block-table table[style*=border-bottom-color] tr:last-child th,.wp-block-table table[style*=border-bottom-color]>*,.wp-block-table table[style*=border-bottom-color]>* td,.wp-block-table table[style*=border-bottom-color]>* th{border-bottom-color:inherit}.wp-block-table table[style*=border-bottom-color] tr:not(:last-child){border-bottom-color:currentColor}.wp-block-table table[style*=border-left-color] td:first-child,.wp-block-table table[style*=border-left-color] th,.wp-block-table table[style*=border-left-color] tr,.wp-block-table table[style*=border-left-color]>*{border-right-color:inherit}.wp-block-table table[style*=border-style] td,.wp-block-table table[style*=border-style] th,.wp-block-table table[style*=border-style] tr,.wp-block-table table[style*=border-style]>*{border-style:inherit}.wp-block-table table[style*=border-width] td,.wp-block-table table[style*=border-width] th,.wp-block-table table[style*=border-width] tr,.wp-block-table table[style*=border-width]>*{border-style:inherit;border-width:inherit}
|
|
@ -42,7 +42,7 @@
|
|||
background-color:#fcf0ef;
|
||||
}
|
||||
.wp-block-table.is-style-stripes{
|
||||
background-color:initial;
|
||||
background-color:transparent;
|
||||
border-bottom:1px solid #f0f0f0;
|
||||
border-collapse:inherit;
|
||||
border-spacing:0;
|
||||
|
@ -72,7 +72,7 @@
|
|||
border-top-color:inherit;
|
||||
}
|
||||
.wp-block-table table[style*=border-top-color] tr:not(:first-child){
|
||||
border-top-color:initial;
|
||||
border-top-color:currentColor;
|
||||
}
|
||||
.wp-block-table table[style*=border-right-color] td:last-child,.wp-block-table table[style*=border-right-color] th,.wp-block-table table[style*=border-right-color] tr,.wp-block-table table[style*=border-right-color]>*{
|
||||
border-right-color:inherit;
|
||||
|
@ -81,7 +81,7 @@
|
|||
border-bottom-color:inherit;
|
||||
}
|
||||
.wp-block-table table[style*=border-bottom-color] tr:not(:last-child){
|
||||
border-bottom-color:initial;
|
||||
border-bottom-color:currentColor;
|
||||
}
|
||||
.wp-block-table table[style*=border-left-color] td:first-child,.wp-block-table table[style*=border-left-color] th,.wp-block-table table[style*=border-left-color] tr,.wp-block-table table[style*=border-left-color]>*{
|
||||
border-left-color:inherit;
|
||||
|
|
2
wp-includes/blocks/table/style.min.css
vendored
2
wp-includes/blocks/table/style.min.css
vendored
|
@ -1 +1 @@
|
|||
.wp-block-table{overflow-x:auto}.wp-block-table table{border-collapse:collapse;width:100%}.wp-block-table thead{border-bottom:3px solid}.wp-block-table tfoot{border-top:3px solid}.wp-block-table td,.wp-block-table th{border:1px solid;padding:.5em}.wp-block-table .has-fixed-layout{table-layout:fixed;width:100%}.wp-block-table .has-fixed-layout td,.wp-block-table .has-fixed-layout th{word-break:break-word}.wp-block-table.aligncenter,.wp-block-table.alignleft,.wp-block-table.alignright{display:table;width:auto}.wp-block-table.aligncenter td,.wp-block-table.aligncenter th,.wp-block-table.alignleft td,.wp-block-table.alignleft th,.wp-block-table.alignright td,.wp-block-table.alignright th{word-break:break-word}.wp-block-table .has-subtle-light-gray-background-color{background-color:#f3f4f5}.wp-block-table .has-subtle-pale-green-background-color{background-color:#e9fbe5}.wp-block-table .has-subtle-pale-blue-background-color{background-color:#e7f5fe}.wp-block-table .has-subtle-pale-pink-background-color{background-color:#fcf0ef}.wp-block-table.is-style-stripes{background-color:initial;border-bottom:1px solid #f0f0f0;border-collapse:inherit;border-spacing:0}.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:#f0f0f0}.wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tbody tr:nth-child(odd){background-color:#f3f4f5}.wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd){background-color:#e9fbe5}.wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd){background-color:#e7f5fe}.wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd){background-color:#fcf0ef}.wp-block-table.is-style-stripes td,.wp-block-table.is-style-stripes th{border-color:transparent}.wp-block-table .has-border-color td,.wp-block-table .has-border-color th,.wp-block-table .has-border-color tr,.wp-block-table .has-border-color>*{border-color:inherit}.wp-block-table table[style*=border-top-color] tr:first-child,.wp-block-table table[style*=border-top-color] tr:first-child td,.wp-block-table table[style*=border-top-color] tr:first-child th,.wp-block-table table[style*=border-top-color]>*,.wp-block-table table[style*=border-top-color]>* td,.wp-block-table table[style*=border-top-color]>* th{border-top-color:inherit}.wp-block-table table[style*=border-top-color] tr:not(:first-child){border-top-color:initial}.wp-block-table table[style*=border-right-color] td:last-child,.wp-block-table table[style*=border-right-color] th,.wp-block-table table[style*=border-right-color] tr,.wp-block-table table[style*=border-right-color]>*{border-right-color:inherit}.wp-block-table table[style*=border-bottom-color] tr:last-child,.wp-block-table table[style*=border-bottom-color] tr:last-child td,.wp-block-table table[style*=border-bottom-color] tr:last-child th,.wp-block-table table[style*=border-bottom-color]>*,.wp-block-table table[style*=border-bottom-color]>* td,.wp-block-table table[style*=border-bottom-color]>* th{border-bottom-color:inherit}.wp-block-table table[style*=border-bottom-color] tr:not(:last-child){border-bottom-color:initial}.wp-block-table table[style*=border-left-color] td:first-child,.wp-block-table table[style*=border-left-color] th,.wp-block-table table[style*=border-left-color] tr,.wp-block-table table[style*=border-left-color]>*{border-left-color:inherit}.wp-block-table table[style*=border-style] td,.wp-block-table table[style*=border-style] th,.wp-block-table table[style*=border-style] tr,.wp-block-table table[style*=border-style]>*{border-style:inherit}.wp-block-table table[style*=border-width] td,.wp-block-table table[style*=border-width] th,.wp-block-table table[style*=border-width] tr,.wp-block-table table[style*=border-width]>*{border-style:inherit;border-width:inherit}
|
||||
.wp-block-table{overflow-x:auto}.wp-block-table table{border-collapse:collapse;width:100%}.wp-block-table thead{border-bottom:3px solid}.wp-block-table tfoot{border-top:3px solid}.wp-block-table td,.wp-block-table th{border:1px solid;padding:.5em}.wp-block-table .has-fixed-layout{table-layout:fixed;width:100%}.wp-block-table .has-fixed-layout td,.wp-block-table .has-fixed-layout th{word-break:break-word}.wp-block-table.aligncenter,.wp-block-table.alignleft,.wp-block-table.alignright{display:table;width:auto}.wp-block-table.aligncenter td,.wp-block-table.aligncenter th,.wp-block-table.alignleft td,.wp-block-table.alignleft th,.wp-block-table.alignright td,.wp-block-table.alignright th{word-break:break-word}.wp-block-table .has-subtle-light-gray-background-color{background-color:#f3f4f5}.wp-block-table .has-subtle-pale-green-background-color{background-color:#e9fbe5}.wp-block-table .has-subtle-pale-blue-background-color{background-color:#e7f5fe}.wp-block-table .has-subtle-pale-pink-background-color{background-color:#fcf0ef}.wp-block-table.is-style-stripes{background-color:transparent;border-bottom:1px solid #f0f0f0;border-collapse:inherit;border-spacing:0}.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:#f0f0f0}.wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tbody tr:nth-child(odd){background-color:#f3f4f5}.wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd){background-color:#e9fbe5}.wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd){background-color:#e7f5fe}.wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd){background-color:#fcf0ef}.wp-block-table.is-style-stripes td,.wp-block-table.is-style-stripes th{border-color:transparent}.wp-block-table .has-border-color td,.wp-block-table .has-border-color th,.wp-block-table .has-border-color tr,.wp-block-table .has-border-color>*{border-color:inherit}.wp-block-table table[style*=border-top-color] tr:first-child,.wp-block-table table[style*=border-top-color] tr:first-child td,.wp-block-table table[style*=border-top-color] tr:first-child th,.wp-block-table table[style*=border-top-color]>*,.wp-block-table table[style*=border-top-color]>* td,.wp-block-table table[style*=border-top-color]>* th{border-top-color:inherit}.wp-block-table table[style*=border-top-color] tr:not(:first-child){border-top-color:currentColor}.wp-block-table table[style*=border-right-color] td:last-child,.wp-block-table table[style*=border-right-color] th,.wp-block-table table[style*=border-right-color] tr,.wp-block-table table[style*=border-right-color]>*{border-right-color:inherit}.wp-block-table table[style*=border-bottom-color] tr:last-child,.wp-block-table table[style*=border-bottom-color] tr:last-child td,.wp-block-table table[style*=border-bottom-color] tr:last-child th,.wp-block-table table[style*=border-bottom-color]>*,.wp-block-table table[style*=border-bottom-color]>* td,.wp-block-table table[style*=border-bottom-color]>* th{border-bottom-color:inherit}.wp-block-table table[style*=border-bottom-color] tr:not(:last-child){border-bottom-color:currentColor}.wp-block-table table[style*=border-left-color] td:first-child,.wp-block-table table[style*=border-left-color] th,.wp-block-table table[style*=border-left-color] tr,.wp-block-table table[style*=border-left-color]>*{border-left-color:inherit}.wp-block-table table[style*=border-style] td,.wp-block-table table[style*=border-style] th,.wp-block-table table[style*=border-style] tr,.wp-block-table table[style*=border-style]>*{border-style:inherit}.wp-block-table table[style*=border-width] td,.wp-block-table table[style*=border-width] th,.wp-block-table table[style*=border-width] tr,.wp-block-table table[style*=border-width]>*{border-style:inherit;border-width:inherit}
|
|
@ -142,14 +142,14 @@ function render_block_core_template_part( $attributes ) {
|
|||
}
|
||||
|
||||
// Run through the actions that are typically taken on the_content.
|
||||
$content = shortcode_unautop( $content );
|
||||
$content = do_shortcode( $content );
|
||||
$seen_ids[ $template_part_id ] = true;
|
||||
$content = do_blocks( $content );
|
||||
unset( $seen_ids[ $template_part_id ] );
|
||||
$content = wptexturize( $content );
|
||||
$content = convert_smilies( $content );
|
||||
$content = shortcode_unautop( $content );
|
||||
$content = wp_filter_content_tags( $content, "template_part_{$area}" );
|
||||
$content = do_shortcode( $content );
|
||||
|
||||
// Handle embeds for block template parts.
|
||||
global $wp_embed;
|
||||
|
|
|
@ -197,6 +197,21 @@ final class WP_Block_Patterns_Registry {
|
|||
return isset( $this->registered_patterns[ $pattern_name ] );
|
||||
}
|
||||
|
||||
public function __wakeup() {
|
||||
if ( ! $this->registered_patterns ) {
|
||||
return;
|
||||
}
|
||||
if ( ! is_array( $this->registered_patterns ) ) {
|
||||
throw new UnexpectedValueException();
|
||||
}
|
||||
foreach ( $this->registered_patterns as $value ) {
|
||||
if ( ! is_array( $value ) ) {
|
||||
throw new UnexpectedValueException();
|
||||
}
|
||||
}
|
||||
$this->registered_patterns_outside_init = array();
|
||||
}
|
||||
|
||||
/**
|
||||
* Utility method to retrieve the main instance of the class.
|
||||
*
|
||||
|
|
|
@ -168,6 +168,20 @@ final class WP_Block_Type_Registry {
|
|||
return isset( $this->registered_block_types[ $name ] );
|
||||
}
|
||||
|
||||
public function __wakeup() {
|
||||
if ( ! $this->registered_block_types ) {
|
||||
return;
|
||||
}
|
||||
if ( ! is_array( $this->registered_block_types ) ) {
|
||||
throw new UnexpectedValueException();
|
||||
}
|
||||
foreach ( $this->registered_block_types as $value ) {
|
||||
if ( ! $value instanceof WP_Block_Type ) {
|
||||
throw new UnexpectedValueException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Utility method to retrieve the main instance of the class.
|
||||
*
|
||||
|
|
|
@ -752,7 +752,7 @@ class WP_Query {
|
|||
* return posts containing 'pillow' but not 'sofa'. The
|
||||
* character used for exclusion can be modified using the
|
||||
* the 'wp_query_search_exclusion_prefix' filter.
|
||||
* @type array $search_columns Array of column names to be searched. Accepts 'post_title',
|
||||
* @type string[] $search_columns Array of column names to be searched. Accepts 'post_title',
|
||||
* 'post_excerpt' and 'post_content'. Default empty array.
|
||||
* @type int $second Second of the minute. Default empty. Accepts numbers 0-59.
|
||||
* @type bool $sentence Whether to search by phrase. Default false.
|
||||
|
|
|
@ -66,15 +66,13 @@ class WP_Theme_JSON {
|
|||
*
|
||||
* They are a unkeyed array of values such as:
|
||||
*
|
||||
* ```php
|
||||
* array(
|
||||
* array(
|
||||
* 'slug' => 'unique-name-within-the-set',
|
||||
* 'name' => 'Name for the UI',
|
||||
* <value_key> => 'value'
|
||||
* ),
|
||||
* )
|
||||
* ```
|
||||
* array(
|
||||
* array(
|
||||
* 'slug' => 'unique-name-within-the-set',
|
||||
* 'name' => 'Name for the UI',
|
||||
* <value_key> => 'value'
|
||||
* ),
|
||||
* )
|
||||
*
|
||||
* This contains the necessary metadata to process them:
|
||||
*
|
||||
|
@ -2531,19 +2529,17 @@ class WP_Theme_JSON {
|
|||
/**
|
||||
* For metadata values that can either be booleans or paths to booleans, gets the value.
|
||||
*
|
||||
* ```php
|
||||
* $data = array(
|
||||
* 'color' => array(
|
||||
* 'defaultPalette' => true
|
||||
* )
|
||||
* );
|
||||
* $data = array(
|
||||
* 'color' => array(
|
||||
* 'defaultPalette' => true
|
||||
* )
|
||||
* );
|
||||
*
|
||||
* static::get_metadata_boolean( $data, false );
|
||||
* // => false
|
||||
* static::get_metadata_boolean( $data, false );
|
||||
* // => false
|
||||
*
|
||||
* static::get_metadata_boolean( $data, array( 'color', 'defaultPalette' ) );
|
||||
* // => true
|
||||
* ```
|
||||
* static::get_metadata_boolean( $data, array( 'color', 'defaultPalette' ) );
|
||||
* // => true
|
||||
*
|
||||
* @since 6.0.0
|
||||
*
|
||||
|
|
|
@ -739,6 +739,28 @@ final class WP_Theme implements ArrayAccess {
|
|||
return isset( $this->parent ) ? $this->parent : false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Perform reinitialization tasks.
|
||||
*
|
||||
* Prevents a callback from being injected during unserialization of an object.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __wakeup() {
|
||||
if ( $this->parent && ! $this->parent instanceof self ) {
|
||||
throw new UnexpectedValueException();
|
||||
}
|
||||
if ( $this->headers && ! is_array( $this->headers ) ) {
|
||||
throw new UnexpectedValueException();
|
||||
}
|
||||
foreach ( $this->headers as $value ) {
|
||||
if ( ! is_string( $value ) ) {
|
||||
throw new UnexpectedValueException();
|
||||
}
|
||||
}
|
||||
$this->headers_sanitized = array();
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds theme data to cache.
|
||||
*
|
||||
|
@ -1808,4 +1830,16 @@ final class WP_Theme implements ArrayAccess {
|
|||
private static function _name_sort_i18n( $a, $b ) {
|
||||
return strnatcasecmp( $a->name_translated, $b->name_translated );
|
||||
}
|
||||
|
||||
private static function _check_headers_property_has_correct_type( $headers ) {
|
||||
if ( ! is_array( $headers ) ) {
|
||||
return false;
|
||||
}
|
||||
foreach ( $headers as $key => $value ) {
|
||||
if ( ! is_string( $key ) || ! is_string( $value ) ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1109,7 +1109,7 @@ function get_comment_time( $format = '', $gmt = false, $translate = true, $comme
|
|||
* Default current comment.
|
||||
*/
|
||||
function comment_time( $format = '', $comment_id = 0 ) {
|
||||
echo get_comment_time( $format, $comment_id );
|
||||
echo get_comment_time( $format, false, true, $comment_id );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -51,7 +51,10 @@
|
|||
.block-editor-block-list__layout{
|
||||
position:relative;
|
||||
}
|
||||
.block-editor-block-list__layout::selection,.has-multi-selection .block-editor-block-list__layout::selection{
|
||||
.block-editor-block-list__layout::selection{
|
||||
background:transparent;
|
||||
}
|
||||
.has-multi-selection .block-editor-block-list__layout::selection{
|
||||
background:transparent;
|
||||
}
|
||||
.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected){
|
||||
|
@ -194,7 +197,7 @@
|
|||
top:0;
|
||||
}
|
||||
.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected:after{
|
||||
background-color:initial;
|
||||
background-color:transparent;
|
||||
}
|
||||
.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay:after{
|
||||
display:none;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -51,7 +51,10 @@
|
|||
.block-editor-block-list__layout{
|
||||
position:relative;
|
||||
}
|
||||
.block-editor-block-list__layout::selection,.has-multi-selection .block-editor-block-list__layout::selection{
|
||||
.block-editor-block-list__layout::selection{
|
||||
background:transparent;
|
||||
}
|
||||
.has-multi-selection .block-editor-block-list__layout::selection{
|
||||
background:transparent;
|
||||
}
|
||||
.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected){
|
||||
|
@ -194,7 +197,7 @@
|
|||
top:0;
|
||||
}
|
||||
.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected:after{
|
||||
background-color:initial;
|
||||
background-color:transparent;
|
||||
}
|
||||
.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay:after{
|
||||
display:none;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -75,6 +75,7 @@
|
|||
.block-editor-block-inspector .components-panel__body{
|
||||
border:none;
|
||||
border-top:1px solid #e0e0e0;
|
||||
margin-top:-1px;
|
||||
}
|
||||
.block-editor-block-inspector .block-editor-block-card{
|
||||
padding:16px;
|
||||
|
@ -1707,7 +1708,7 @@
|
|||
position:relative;
|
||||
}
|
||||
.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{
|
||||
background-color:initial;
|
||||
background-color:transparent;
|
||||
color:inherit;
|
||||
font-weight:700;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
3
wp-includes/css/dist/block-editor/style.css
vendored
3
wp-includes/css/dist/block-editor/style.css
vendored
|
@ -75,6 +75,7 @@
|
|||
.block-editor-block-inspector .components-panel__body{
|
||||
border:none;
|
||||
border-top:1px solid #e0e0e0;
|
||||
margin-top:-1px;
|
||||
}
|
||||
.block-editor-block-inspector .block-editor-block-card{
|
||||
padding:16px;
|
||||
|
@ -1707,7 +1708,7 @@
|
|||
position:relative;
|
||||
}
|
||||
.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{
|
||||
background-color:initial;
|
||||
background-color:transparent;
|
||||
color:inherit;
|
||||
font-weight:700;
|
||||
}
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user