@wordpress/block-library 7.14.11 → 7.14.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build-style/common-rtl.css +3 -1
- package/build-style/common.css +3 -1
- package/build-style/cover/style-rtl.css +2 -1
- package/build-style/cover/style.css +2 -1
- package/build-style/gallery/style-rtl.css +4 -2
- package/build-style/gallery/style.css +4 -2
- package/build-style/style-rtl.css +11 -5
- package/build-style/style.css +11 -5
- package/build-style/video/style-rtl.css +2 -1
- package/build-style/video/style.css +2 -1
- package/package.json +2 -2
- package/src/post-featured-image/index.php +6 -0
|
@@ -195,6 +195,7 @@
|
|
|
195
195
|
.screen-reader-text {
|
|
196
196
|
border: 0;
|
|
197
197
|
clip: rect(1px, 1px, 1px, 1px);
|
|
198
|
+
-webkit-clip-path: inset(50%);
|
|
198
199
|
clip-path: inset(50%);
|
|
199
200
|
height: 1px;
|
|
200
201
|
margin: -1px;
|
|
@@ -208,7 +209,8 @@
|
|
|
208
209
|
.screen-reader-text:focus {
|
|
209
210
|
background-color: #ddd;
|
|
210
211
|
clip: auto !important;
|
|
211
|
-
clip-path: none;
|
|
212
|
+
-webkit-clip-path: none;
|
|
213
|
+
clip-path: none;
|
|
212
214
|
color: #444;
|
|
213
215
|
display: block;
|
|
214
216
|
font-size: 1em;
|
package/build-style/common.css
CHANGED
|
@@ -197,6 +197,7 @@
|
|
|
197
197
|
.screen-reader-text {
|
|
198
198
|
border: 0;
|
|
199
199
|
clip: rect(1px, 1px, 1px, 1px);
|
|
200
|
+
-webkit-clip-path: inset(50%);
|
|
200
201
|
clip-path: inset(50%);
|
|
201
202
|
height: 1px;
|
|
202
203
|
margin: -1px;
|
|
@@ -210,7 +211,8 @@
|
|
|
210
211
|
.screen-reader-text:focus {
|
|
211
212
|
background-color: #ddd;
|
|
212
213
|
clip: auto !important;
|
|
213
|
-
clip-path: none;
|
|
214
|
+
-webkit-clip-path: none;
|
|
215
|
+
clip-path: none;
|
|
214
216
|
color: #444;
|
|
215
217
|
display: block;
|
|
216
218
|
font-size: 1em;
|
|
@@ -157,7 +157,8 @@
|
|
|
157
157
|
width: 100%;
|
|
158
158
|
height: 100%;
|
|
159
159
|
flex: 1;
|
|
160
|
-
object-fit: cover;
|
|
160
|
+
-o-object-fit: cover;
|
|
161
|
+
object-fit: cover;
|
|
161
162
|
}
|
|
162
163
|
.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item,
|
|
163
164
|
.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image,
|
|
@@ -351,7 +352,8 @@ figure.wp-block-gallery.has-nested-images {
|
|
|
351
352
|
width: 100%;
|
|
352
353
|
flex: 1 0 0%;
|
|
353
354
|
height: 100%;
|
|
354
|
-
object-fit: cover;
|
|
355
|
+
-o-object-fit: cover;
|
|
356
|
+
object-fit: cover;
|
|
355
357
|
}
|
|
356
358
|
.wp-block-gallery.has-nested-images.columns-1 figure.wp-block-image:not(#individual-image) {
|
|
357
359
|
width: 100%;
|
|
@@ -157,7 +157,8 @@
|
|
|
157
157
|
width: 100%;
|
|
158
158
|
height: 100%;
|
|
159
159
|
flex: 1;
|
|
160
|
-
object-fit: cover;
|
|
160
|
+
-o-object-fit: cover;
|
|
161
|
+
object-fit: cover;
|
|
161
162
|
}
|
|
162
163
|
.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item,
|
|
163
164
|
.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image,
|
|
@@ -351,7 +352,8 @@ figure.wp-block-gallery.has-nested-images {
|
|
|
351
352
|
width: 100%;
|
|
352
353
|
flex: 1 0 0%;
|
|
353
354
|
height: 100%;
|
|
354
|
-
object-fit: cover;
|
|
355
|
+
-o-object-fit: cover;
|
|
356
|
+
object-fit: cover;
|
|
355
357
|
}
|
|
356
358
|
.wp-block-gallery.has-nested-images.columns-1 figure.wp-block-image:not(#individual-image) {
|
|
357
359
|
width: 100%;
|
|
@@ -844,7 +844,8 @@
|
|
|
844
844
|
height: 100%;
|
|
845
845
|
max-width: none;
|
|
846
846
|
max-height: none;
|
|
847
|
-
object-fit: cover;
|
|
847
|
+
-o-object-fit: cover;
|
|
848
|
+
object-fit: cover;
|
|
848
849
|
outline: none;
|
|
849
850
|
border: none;
|
|
850
851
|
box-shadow: none;
|
|
@@ -1128,7 +1129,8 @@ section.wp-block-cover-image > h2,
|
|
|
1128
1129
|
width: 100%;
|
|
1129
1130
|
height: 100%;
|
|
1130
1131
|
flex: 1;
|
|
1131
|
-
object-fit: cover;
|
|
1132
|
+
-o-object-fit: cover;
|
|
1133
|
+
object-fit: cover;
|
|
1132
1134
|
}
|
|
1133
1135
|
.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item,
|
|
1134
1136
|
.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image,
|
|
@@ -1322,7 +1324,8 @@ figure.wp-block-gallery.has-nested-images {
|
|
|
1322
1324
|
width: 100%;
|
|
1323
1325
|
flex: 1 0 0%;
|
|
1324
1326
|
height: 100%;
|
|
1325
|
-
object-fit: cover;
|
|
1327
|
+
-o-object-fit: cover;
|
|
1328
|
+
object-fit: cover;
|
|
1326
1329
|
}
|
|
1327
1330
|
.wp-block-gallery.has-nested-images.columns-1 figure.wp-block-image:not(#individual-image) {
|
|
1328
1331
|
width: 100%;
|
|
@@ -3364,7 +3367,8 @@ pre.wp-block-verse {
|
|
|
3364
3367
|
}
|
|
3365
3368
|
@supports (position: sticky) {
|
|
3366
3369
|
.wp-block-video [poster] {
|
|
3367
|
-
object-fit: cover;
|
|
3370
|
+
-o-object-fit: cover;
|
|
3371
|
+
object-fit: cover;
|
|
3368
3372
|
}
|
|
3369
3373
|
}
|
|
3370
3374
|
.wp-block-video.aligncenter {
|
|
@@ -3481,6 +3485,7 @@ pre.wp-block-verse {
|
|
|
3481
3485
|
.screen-reader-text {
|
|
3482
3486
|
border: 0;
|
|
3483
3487
|
clip: rect(1px, 1px, 1px, 1px);
|
|
3488
|
+
-webkit-clip-path: inset(50%);
|
|
3484
3489
|
clip-path: inset(50%);
|
|
3485
3490
|
height: 1px;
|
|
3486
3491
|
margin: -1px;
|
|
@@ -3494,7 +3499,8 @@ pre.wp-block-verse {
|
|
|
3494
3499
|
.screen-reader-text:focus {
|
|
3495
3500
|
background-color: #ddd;
|
|
3496
3501
|
clip: auto !important;
|
|
3497
|
-
clip-path: none;
|
|
3502
|
+
-webkit-clip-path: none;
|
|
3503
|
+
clip-path: none;
|
|
3498
3504
|
color: #444;
|
|
3499
3505
|
display: block;
|
|
3500
3506
|
font-size: 1em;
|
package/build-style/style.css
CHANGED
|
@@ -851,7 +851,8 @@
|
|
|
851
851
|
height: 100%;
|
|
852
852
|
max-width: none;
|
|
853
853
|
max-height: none;
|
|
854
|
-
object-fit: cover;
|
|
854
|
+
-o-object-fit: cover;
|
|
855
|
+
object-fit: cover;
|
|
855
856
|
outline: none;
|
|
856
857
|
border: none;
|
|
857
858
|
box-shadow: none;
|
|
@@ -1136,7 +1137,8 @@ section.wp-block-cover-image > h2,
|
|
|
1136
1137
|
width: 100%;
|
|
1137
1138
|
height: 100%;
|
|
1138
1139
|
flex: 1;
|
|
1139
|
-
object-fit: cover;
|
|
1140
|
+
-o-object-fit: cover;
|
|
1141
|
+
object-fit: cover;
|
|
1140
1142
|
}
|
|
1141
1143
|
.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item,
|
|
1142
1144
|
.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image,
|
|
@@ -1330,7 +1332,8 @@ figure.wp-block-gallery.has-nested-images {
|
|
|
1330
1332
|
width: 100%;
|
|
1331
1333
|
flex: 1 0 0%;
|
|
1332
1334
|
height: 100%;
|
|
1333
|
-
object-fit: cover;
|
|
1335
|
+
-o-object-fit: cover;
|
|
1336
|
+
object-fit: cover;
|
|
1334
1337
|
}
|
|
1335
1338
|
.wp-block-gallery.has-nested-images.columns-1 figure.wp-block-image:not(#individual-image) {
|
|
1336
1339
|
width: 100%;
|
|
@@ -3397,7 +3400,8 @@ pre.wp-block-verse {
|
|
|
3397
3400
|
}
|
|
3398
3401
|
@supports (position: sticky) {
|
|
3399
3402
|
.wp-block-video [poster] {
|
|
3400
|
-
object-fit: cover;
|
|
3403
|
+
-o-object-fit: cover;
|
|
3404
|
+
object-fit: cover;
|
|
3401
3405
|
}
|
|
3402
3406
|
}
|
|
3403
3407
|
.wp-block-video.aligncenter {
|
|
@@ -3516,6 +3520,7 @@ pre.wp-block-verse {
|
|
|
3516
3520
|
.screen-reader-text {
|
|
3517
3521
|
border: 0;
|
|
3518
3522
|
clip: rect(1px, 1px, 1px, 1px);
|
|
3523
|
+
-webkit-clip-path: inset(50%);
|
|
3519
3524
|
clip-path: inset(50%);
|
|
3520
3525
|
height: 1px;
|
|
3521
3526
|
margin: -1px;
|
|
@@ -3529,7 +3534,8 @@ pre.wp-block-verse {
|
|
|
3529
3534
|
.screen-reader-text:focus {
|
|
3530
3535
|
background-color: #ddd;
|
|
3531
3536
|
clip: auto !important;
|
|
3532
|
-
clip-path: none;
|
|
3537
|
+
-webkit-clip-path: none;
|
|
3538
|
+
clip-path: none;
|
|
3533
3539
|
color: #444;
|
|
3534
3540
|
display: block;
|
|
3535
3541
|
font-size: 1em;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-library",
|
|
3
|
-
"version": "7.14.
|
|
3
|
+
"version": "7.14.12",
|
|
4
4
|
"description": "Block library for the WordPress editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "ef24619c1f6949dbdcaa7e5538dd83715a461c3a"
|
|
77
77
|
}
|
|
@@ -19,6 +19,12 @@ function render_block_core_post_featured_image( $attributes, $content, $block )
|
|
|
19
19
|
}
|
|
20
20
|
$post_ID = $block->context['postId'];
|
|
21
21
|
|
|
22
|
+
// Check is needed for backward compatibility with third-party plugins
|
|
23
|
+
// that might rely on the `in_the_loop` check; calling `the_post` sets it to true.
|
|
24
|
+
if ( ! in_the_loop() && have_posts() ) {
|
|
25
|
+
the_post();
|
|
26
|
+
}
|
|
27
|
+
|
|
22
28
|
$is_link = isset( $attributes['isLink'] ) && $attributes['isLink'];
|
|
23
29
|
$size_slug = isset( $attributes['sizeSlug'] ) ? $attributes['sizeSlug'] : 'post-thumbnail';
|
|
24
30
|
$post_title = trim( strip_tags( get_the_title( $post_ID ) ) );
|