@automattic/newspack-blocks 3.0.6-alpha.1 → 3.0.6
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/CHANGELOG.md +2 -2
- package/composer.lock +62 -68
- package/includes/class-newspack-blocks.php +4 -2
- package/newspack-blocks.php +2 -2
- package/package.json +3 -3
- package/src/blocks/homepage-articles/view.php +1 -1
- package/vendor/autoload.php +1 -1
- package/vendor/composer/autoload_real.php +4 -4
- package/vendor/composer/autoload_static.php +2 -2
- package/vendor/composer/installed.php +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
## [3.0.6
|
|
1
|
+
## [3.0.6](https://github.com/Automattic/newspack-blocks/compare/v3.0.5...v3.0.6) (2024-03-28)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* translate formatted date for hpp block ([#1697](https://github.com/Automattic/newspack-blocks/issues/1697)) ([5cbb2fd](https://github.com/Automattic/newspack-blocks/commit/5cbb2fd75866818e11f42966341156b48d347d09))
|
|
7
7
|
|
|
8
8
|
## [3.0.5](https://github.com/Automattic/newspack-blocks/compare/v3.0.4...v3.0.5) (2024-03-25)
|
|
9
9
|
|
package/composer.lock
CHANGED
|
@@ -488,16 +488,16 @@
|
|
|
488
488
|
},
|
|
489
489
|
{
|
|
490
490
|
"name": "nikic/php-parser",
|
|
491
|
-
"version": "v5.0.
|
|
491
|
+
"version": "v5.0.1",
|
|
492
492
|
"source": {
|
|
493
493
|
"type": "git",
|
|
494
494
|
"url": "https://github.com/nikic/PHP-Parser.git",
|
|
495
|
-
"reference": "
|
|
495
|
+
"reference": "2218c2252c874a4624ab2f613d86ac32d227bc69"
|
|
496
496
|
},
|
|
497
497
|
"dist": {
|
|
498
498
|
"type": "zip",
|
|
499
|
-
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/
|
|
500
|
-
"reference": "
|
|
499
|
+
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/2218c2252c874a4624ab2f613d86ac32d227bc69",
|
|
500
|
+
"reference": "2218c2252c874a4624ab2f613d86ac32d227bc69",
|
|
501
501
|
"shasum": ""
|
|
502
502
|
},
|
|
503
503
|
"require": {
|
|
@@ -540,27 +540,26 @@
|
|
|
540
540
|
],
|
|
541
541
|
"support": {
|
|
542
542
|
"issues": "https://github.com/nikic/PHP-Parser/issues",
|
|
543
|
-
"source": "https://github.com/nikic/PHP-Parser/tree/v5.0.
|
|
543
|
+
"source": "https://github.com/nikic/PHP-Parser/tree/v5.0.1"
|
|
544
544
|
},
|
|
545
|
-
"time": "2024-
|
|
545
|
+
"time": "2024-02-21T19:24:10+00:00"
|
|
546
546
|
},
|
|
547
547
|
{
|
|
548
548
|
"name": "phar-io/manifest",
|
|
549
|
-
"version": "2.0.
|
|
549
|
+
"version": "2.0.3",
|
|
550
550
|
"source": {
|
|
551
551
|
"type": "git",
|
|
552
552
|
"url": "https://github.com/phar-io/manifest.git",
|
|
553
|
-
"reference": "
|
|
553
|
+
"reference": "97803eca37d319dfa7826cc2437fc020857acb53"
|
|
554
554
|
},
|
|
555
555
|
"dist": {
|
|
556
556
|
"type": "zip",
|
|
557
|
-
"url": "https://api.github.com/repos/phar-io/manifest/zipball/
|
|
558
|
-
"reference": "
|
|
557
|
+
"url": "https://api.github.com/repos/phar-io/manifest/zipball/97803eca37d319dfa7826cc2437fc020857acb53",
|
|
558
|
+
"reference": "97803eca37d319dfa7826cc2437fc020857acb53",
|
|
559
559
|
"shasum": ""
|
|
560
560
|
},
|
|
561
561
|
"require": {
|
|
562
562
|
"ext-dom": "*",
|
|
563
|
-
"ext-libxml": "*",
|
|
564
563
|
"ext-phar": "*",
|
|
565
564
|
"ext-xmlwriter": "*",
|
|
566
565
|
"phar-io/version": "^3.0.1",
|
|
@@ -601,15 +600,9 @@
|
|
|
601
600
|
"description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)",
|
|
602
601
|
"support": {
|
|
603
602
|
"issues": "https://github.com/phar-io/manifest/issues",
|
|
604
|
-
"source": "https://github.com/phar-io/manifest/tree/2.0.
|
|
603
|
+
"source": "https://github.com/phar-io/manifest/tree/2.0.3"
|
|
605
604
|
},
|
|
606
|
-
"
|
|
607
|
-
{
|
|
608
|
-
"url": "https://github.com/theseer",
|
|
609
|
-
"type": "github"
|
|
610
|
-
}
|
|
611
|
-
],
|
|
612
|
-
"time": "2024-03-03T12:33:53+00:00"
|
|
605
|
+
"time": "2021-07-20T11:28:43+00:00"
|
|
613
606
|
},
|
|
614
607
|
{
|
|
615
608
|
"name": "phar-io/version",
|
|
@@ -974,16 +967,16 @@
|
|
|
974
967
|
},
|
|
975
968
|
{
|
|
976
969
|
"name": "phpunit/php-code-coverage",
|
|
977
|
-
"version": "9.2.
|
|
970
|
+
"version": "9.2.30",
|
|
978
971
|
"source": {
|
|
979
972
|
"type": "git",
|
|
980
973
|
"url": "https://github.com/sebastianbergmann/php-code-coverage.git",
|
|
981
|
-
"reference": "
|
|
974
|
+
"reference": "ca2bd87d2f9215904682a9cb9bb37dda98e76089"
|
|
982
975
|
},
|
|
983
976
|
"dist": {
|
|
984
977
|
"type": "zip",
|
|
985
|
-
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/
|
|
986
|
-
"reference": "
|
|
978
|
+
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/ca2bd87d2f9215904682a9cb9bb37dda98e76089",
|
|
979
|
+
"reference": "ca2bd87d2f9215904682a9cb9bb37dda98e76089",
|
|
987
980
|
"shasum": ""
|
|
988
981
|
},
|
|
989
982
|
"require": {
|
|
@@ -1040,7 +1033,7 @@
|
|
|
1040
1033
|
"support": {
|
|
1041
1034
|
"issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
|
|
1042
1035
|
"security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy",
|
|
1043
|
-
"source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.
|
|
1036
|
+
"source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.30"
|
|
1044
1037
|
},
|
|
1045
1038
|
"funding": [
|
|
1046
1039
|
{
|
|
@@ -1048,7 +1041,7 @@
|
|
|
1048
1041
|
"type": "github"
|
|
1049
1042
|
}
|
|
1050
1043
|
],
|
|
1051
|
-
"time": "
|
|
1044
|
+
"time": "2023-12-22T06:47:57+00:00"
|
|
1052
1045
|
},
|
|
1053
1046
|
{
|
|
1054
1047
|
"name": "phpunit/php-file-iterator",
|
|
@@ -1293,16 +1286,16 @@
|
|
|
1293
1286
|
},
|
|
1294
1287
|
{
|
|
1295
1288
|
"name": "phpunit/phpunit",
|
|
1296
|
-
"version": "9.6.
|
|
1289
|
+
"version": "9.6.17",
|
|
1297
1290
|
"source": {
|
|
1298
1291
|
"type": "git",
|
|
1299
1292
|
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
|
1300
|
-
"reference": "
|
|
1293
|
+
"reference": "1a156980d78a6666721b7e8e8502fe210b587fcd"
|
|
1301
1294
|
},
|
|
1302
1295
|
"dist": {
|
|
1303
1296
|
"type": "zip",
|
|
1304
|
-
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/
|
|
1305
|
-
"reference": "
|
|
1297
|
+
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/1a156980d78a6666721b7e8e8502fe210b587fcd",
|
|
1298
|
+
"reference": "1a156980d78a6666721b7e8e8502fe210b587fcd",
|
|
1306
1299
|
"shasum": ""
|
|
1307
1300
|
},
|
|
1308
1301
|
"require": {
|
|
@@ -1376,7 +1369,7 @@
|
|
|
1376
1369
|
"support": {
|
|
1377
1370
|
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
|
|
1378
1371
|
"security": "https://github.com/sebastianbergmann/phpunit/security/policy",
|
|
1379
|
-
"source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.
|
|
1372
|
+
"source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.17"
|
|
1380
1373
|
},
|
|
1381
1374
|
"funding": [
|
|
1382
1375
|
{
|
|
@@ -1392,7 +1385,7 @@
|
|
|
1392
1385
|
"type": "tidelift"
|
|
1393
1386
|
}
|
|
1394
1387
|
],
|
|
1395
|
-
"time": "2024-
|
|
1388
|
+
"time": "2024-02-23T13:14:51+00:00"
|
|
1396
1389
|
},
|
|
1397
1390
|
{
|
|
1398
1391
|
"name": "psr/container",
|
|
@@ -1444,16 +1437,16 @@
|
|
|
1444
1437
|
},
|
|
1445
1438
|
{
|
|
1446
1439
|
"name": "sebastian/cli-parser",
|
|
1447
|
-
"version": "1.0.
|
|
1440
|
+
"version": "1.0.1",
|
|
1448
1441
|
"source": {
|
|
1449
1442
|
"type": "git",
|
|
1450
1443
|
"url": "https://github.com/sebastianbergmann/cli-parser.git",
|
|
1451
|
-
"reference": "
|
|
1444
|
+
"reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2"
|
|
1452
1445
|
},
|
|
1453
1446
|
"dist": {
|
|
1454
1447
|
"type": "zip",
|
|
1455
|
-
"url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/
|
|
1456
|
-
"reference": "
|
|
1448
|
+
"url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/442e7c7e687e42adc03470c7b668bc4b2402c0b2",
|
|
1449
|
+
"reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2",
|
|
1457
1450
|
"shasum": ""
|
|
1458
1451
|
},
|
|
1459
1452
|
"require": {
|
|
@@ -1488,7 +1481,7 @@
|
|
|
1488
1481
|
"homepage": "https://github.com/sebastianbergmann/cli-parser",
|
|
1489
1482
|
"support": {
|
|
1490
1483
|
"issues": "https://github.com/sebastianbergmann/cli-parser/issues",
|
|
1491
|
-
"source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.
|
|
1484
|
+
"source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.1"
|
|
1492
1485
|
},
|
|
1493
1486
|
"funding": [
|
|
1494
1487
|
{
|
|
@@ -1496,7 +1489,7 @@
|
|
|
1496
1489
|
"type": "github"
|
|
1497
1490
|
}
|
|
1498
1491
|
],
|
|
1499
|
-
"time": "
|
|
1492
|
+
"time": "2020-09-28T06:08:49+00:00"
|
|
1500
1493
|
},
|
|
1501
1494
|
{
|
|
1502
1495
|
"name": "sebastian/code-unit",
|
|
@@ -1742,16 +1735,16 @@
|
|
|
1742
1735
|
},
|
|
1743
1736
|
{
|
|
1744
1737
|
"name": "sebastian/diff",
|
|
1745
|
-
"version": "4.0.
|
|
1738
|
+
"version": "4.0.5",
|
|
1746
1739
|
"source": {
|
|
1747
1740
|
"type": "git",
|
|
1748
1741
|
"url": "https://github.com/sebastianbergmann/diff.git",
|
|
1749
|
-
"reference": "
|
|
1742
|
+
"reference": "74be17022044ebaaecfdf0c5cd504fc9cd5a7131"
|
|
1750
1743
|
},
|
|
1751
1744
|
"dist": {
|
|
1752
1745
|
"type": "zip",
|
|
1753
|
-
"url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/
|
|
1754
|
-
"reference": "
|
|
1746
|
+
"url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/74be17022044ebaaecfdf0c5cd504fc9cd5a7131",
|
|
1747
|
+
"reference": "74be17022044ebaaecfdf0c5cd504fc9cd5a7131",
|
|
1755
1748
|
"shasum": ""
|
|
1756
1749
|
},
|
|
1757
1750
|
"require": {
|
|
@@ -1796,7 +1789,7 @@
|
|
|
1796
1789
|
],
|
|
1797
1790
|
"support": {
|
|
1798
1791
|
"issues": "https://github.com/sebastianbergmann/diff/issues",
|
|
1799
|
-
"source": "https://github.com/sebastianbergmann/diff/tree/4.0.
|
|
1792
|
+
"source": "https://github.com/sebastianbergmann/diff/tree/4.0.5"
|
|
1800
1793
|
},
|
|
1801
1794
|
"funding": [
|
|
1802
1795
|
{
|
|
@@ -1804,7 +1797,7 @@
|
|
|
1804
1797
|
"type": "github"
|
|
1805
1798
|
}
|
|
1806
1799
|
],
|
|
1807
|
-
"time": "
|
|
1800
|
+
"time": "2023-05-07T05:35:17+00:00"
|
|
1808
1801
|
},
|
|
1809
1802
|
{
|
|
1810
1803
|
"name": "sebastian/environment",
|
|
@@ -1871,16 +1864,16 @@
|
|
|
1871
1864
|
},
|
|
1872
1865
|
{
|
|
1873
1866
|
"name": "sebastian/exporter",
|
|
1874
|
-
"version": "4.0.
|
|
1867
|
+
"version": "4.0.5",
|
|
1875
1868
|
"source": {
|
|
1876
1869
|
"type": "git",
|
|
1877
1870
|
"url": "https://github.com/sebastianbergmann/exporter.git",
|
|
1878
|
-
"reference": "
|
|
1871
|
+
"reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d"
|
|
1879
1872
|
},
|
|
1880
1873
|
"dist": {
|
|
1881
1874
|
"type": "zip",
|
|
1882
|
-
"url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/
|
|
1883
|
-
"reference": "
|
|
1875
|
+
"url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d",
|
|
1876
|
+
"reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d",
|
|
1884
1877
|
"shasum": ""
|
|
1885
1878
|
},
|
|
1886
1879
|
"require": {
|
|
@@ -1936,7 +1929,7 @@
|
|
|
1936
1929
|
],
|
|
1937
1930
|
"support": {
|
|
1938
1931
|
"issues": "https://github.com/sebastianbergmann/exporter/issues",
|
|
1939
|
-
"source": "https://github.com/sebastianbergmann/exporter/tree/4.0.
|
|
1932
|
+
"source": "https://github.com/sebastianbergmann/exporter/tree/4.0.5"
|
|
1940
1933
|
},
|
|
1941
1934
|
"funding": [
|
|
1942
1935
|
{
|
|
@@ -1944,20 +1937,20 @@
|
|
|
1944
1937
|
"type": "github"
|
|
1945
1938
|
}
|
|
1946
1939
|
],
|
|
1947
|
-
"time": "
|
|
1940
|
+
"time": "2022-09-14T06:03:37+00:00"
|
|
1948
1941
|
},
|
|
1949
1942
|
{
|
|
1950
1943
|
"name": "sebastian/global-state",
|
|
1951
|
-
"version": "5.0.
|
|
1944
|
+
"version": "5.0.6",
|
|
1952
1945
|
"source": {
|
|
1953
1946
|
"type": "git",
|
|
1954
1947
|
"url": "https://github.com/sebastianbergmann/global-state.git",
|
|
1955
|
-
"reference": "
|
|
1948
|
+
"reference": "bde739e7565280bda77be70044ac1047bc007e34"
|
|
1956
1949
|
},
|
|
1957
1950
|
"dist": {
|
|
1958
1951
|
"type": "zip",
|
|
1959
|
-
"url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/
|
|
1960
|
-
"reference": "
|
|
1952
|
+
"url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bde739e7565280bda77be70044ac1047bc007e34",
|
|
1953
|
+
"reference": "bde739e7565280bda77be70044ac1047bc007e34",
|
|
1961
1954
|
"shasum": ""
|
|
1962
1955
|
},
|
|
1963
1956
|
"require": {
|
|
@@ -2000,7 +1993,7 @@
|
|
|
2000
1993
|
],
|
|
2001
1994
|
"support": {
|
|
2002
1995
|
"issues": "https://github.com/sebastianbergmann/global-state/issues",
|
|
2003
|
-
"source": "https://github.com/sebastianbergmann/global-state/tree/5.0.
|
|
1996
|
+
"source": "https://github.com/sebastianbergmann/global-state/tree/5.0.6"
|
|
2004
1997
|
},
|
|
2005
1998
|
"funding": [
|
|
2006
1999
|
{
|
|
@@ -2008,7 +2001,7 @@
|
|
|
2008
2001
|
"type": "github"
|
|
2009
2002
|
}
|
|
2010
2003
|
],
|
|
2011
|
-
"time": "
|
|
2004
|
+
"time": "2023-08-02T09:26:13+00:00"
|
|
2012
2005
|
},
|
|
2013
2006
|
{
|
|
2014
2007
|
"name": "sebastian/lines-of-code",
|
|
@@ -2244,16 +2237,16 @@
|
|
|
2244
2237
|
},
|
|
2245
2238
|
{
|
|
2246
2239
|
"name": "sebastian/resource-operations",
|
|
2247
|
-
"version": "3.0.
|
|
2240
|
+
"version": "3.0.3",
|
|
2248
2241
|
"source": {
|
|
2249
2242
|
"type": "git",
|
|
2250
2243
|
"url": "https://github.com/sebastianbergmann/resource-operations.git",
|
|
2251
|
-
"reference": "
|
|
2244
|
+
"reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8"
|
|
2252
2245
|
},
|
|
2253
2246
|
"dist": {
|
|
2254
2247
|
"type": "zip",
|
|
2255
|
-
"url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/
|
|
2256
|
-
"reference": "
|
|
2248
|
+
"url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8",
|
|
2249
|
+
"reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8",
|
|
2257
2250
|
"shasum": ""
|
|
2258
2251
|
},
|
|
2259
2252
|
"require": {
|
|
@@ -2265,7 +2258,7 @@
|
|
|
2265
2258
|
"type": "library",
|
|
2266
2259
|
"extra": {
|
|
2267
2260
|
"branch-alias": {
|
|
2268
|
-
"dev-
|
|
2261
|
+
"dev-master": "3.0-dev"
|
|
2269
2262
|
}
|
|
2270
2263
|
},
|
|
2271
2264
|
"autoload": {
|
|
@@ -2286,7 +2279,8 @@
|
|
|
2286
2279
|
"description": "Provides a list of PHP built-in functions that operate on resources",
|
|
2287
2280
|
"homepage": "https://www.github.com/sebastianbergmann/resource-operations",
|
|
2288
2281
|
"support": {
|
|
2289
|
-
"
|
|
2282
|
+
"issues": "https://github.com/sebastianbergmann/resource-operations/issues",
|
|
2283
|
+
"source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.3"
|
|
2290
2284
|
},
|
|
2291
2285
|
"funding": [
|
|
2292
2286
|
{
|
|
@@ -2294,7 +2288,7 @@
|
|
|
2294
2288
|
"type": "github"
|
|
2295
2289
|
}
|
|
2296
2290
|
],
|
|
2297
|
-
"time": "
|
|
2291
|
+
"time": "2020-09-28T06:45:17+00:00"
|
|
2298
2292
|
},
|
|
2299
2293
|
{
|
|
2300
2294
|
"name": "sebastian/type",
|
|
@@ -3349,16 +3343,16 @@
|
|
|
3349
3343
|
},
|
|
3350
3344
|
{
|
|
3351
3345
|
"name": "theseer/tokenizer",
|
|
3352
|
-
"version": "1.2.
|
|
3346
|
+
"version": "1.2.2",
|
|
3353
3347
|
"source": {
|
|
3354
3348
|
"type": "git",
|
|
3355
3349
|
"url": "https://github.com/theseer/tokenizer.git",
|
|
3356
|
-
"reference": "
|
|
3350
|
+
"reference": "b2ad5003ca10d4ee50a12da31de12a5774ba6b96"
|
|
3357
3351
|
},
|
|
3358
3352
|
"dist": {
|
|
3359
3353
|
"type": "zip",
|
|
3360
|
-
"url": "https://api.github.com/repos/theseer/tokenizer/zipball/
|
|
3361
|
-
"reference": "
|
|
3354
|
+
"url": "https://api.github.com/repos/theseer/tokenizer/zipball/b2ad5003ca10d4ee50a12da31de12a5774ba6b96",
|
|
3355
|
+
"reference": "b2ad5003ca10d4ee50a12da31de12a5774ba6b96",
|
|
3362
3356
|
"shasum": ""
|
|
3363
3357
|
},
|
|
3364
3358
|
"require": {
|
|
@@ -3387,7 +3381,7 @@
|
|
|
3387
3381
|
"description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
|
|
3388
3382
|
"support": {
|
|
3389
3383
|
"issues": "https://github.com/theseer/tokenizer/issues",
|
|
3390
|
-
"source": "https://github.com/theseer/tokenizer/tree/1.2.
|
|
3384
|
+
"source": "https://github.com/theseer/tokenizer/tree/1.2.2"
|
|
3391
3385
|
},
|
|
3392
3386
|
"funding": [
|
|
3393
3387
|
{
|
|
@@ -3395,7 +3389,7 @@
|
|
|
3395
3389
|
"type": "github"
|
|
3396
3390
|
}
|
|
3397
3391
|
],
|
|
3398
|
-
"time": "
|
|
3392
|
+
"time": "2023-11-20T00:12:19+00:00"
|
|
3399
3393
|
},
|
|
3400
3394
|
{
|
|
3401
3395
|
"name": "wp-coding-standards/wpcs",
|
|
@@ -1567,8 +1567,10 @@ class Newspack_Blocks {
|
|
|
1567
1567
|
if ( $post === null ) {
|
|
1568
1568
|
$post = get_post();
|
|
1569
1569
|
}
|
|
1570
|
-
$date
|
|
1571
|
-
$
|
|
1570
|
+
$date = self::get_displayed_post_date( $post );
|
|
1571
|
+
$date = new DateTime( $date );
|
|
1572
|
+
$date_format = get_option( 'date_format' );
|
|
1573
|
+
$date_formatted = date_i18n( $date_format, $date->getTimestamp() );
|
|
1572
1574
|
return apply_filters( 'newspack_blocks_formatted_displayed_post_date', $date_formatted, $post );
|
|
1573
1575
|
}
|
|
1574
1576
|
|
package/newspack-blocks.php
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Author URI: https://newspack.com/
|
|
8
8
|
* Text Domain: newspack-blocks
|
|
9
9
|
* Domain Path: /languages
|
|
10
|
-
* Version: 3.0.6
|
|
10
|
+
* Version: 3.0.6
|
|
11
11
|
*
|
|
12
12
|
* @package Newspack_Blocks
|
|
13
13
|
*/
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
define( 'NEWSPACK_BLOCKS__PLUGIN_FILE', __FILE__ );
|
|
16
16
|
define( 'NEWSPACK_BLOCKS__BLOCKS_DIRECTORY', 'dist/' );
|
|
17
17
|
define( 'NEWSPACK_BLOCKS__PLUGIN_DIR', plugin_dir_path( NEWSPACK_BLOCKS__PLUGIN_FILE ) );
|
|
18
|
-
define( 'NEWSPACK_BLOCKS__VERSION', '3.0.6
|
|
18
|
+
define( 'NEWSPACK_BLOCKS__VERSION', '3.0.6' );
|
|
19
19
|
|
|
20
20
|
require_once NEWSPACK_BLOCKS__PLUGIN_DIR . 'includes/class-newspack-blocks.php';
|
|
21
21
|
require_once NEWSPACK_BLOCKS__PLUGIN_DIR . 'includes/class-newspack-blocks-api.php';
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/newspack-blocks",
|
|
3
|
-
"version": "3.0.6
|
|
3
|
+
"version": "3.0.6",
|
|
4
4
|
"author": "Automattic",
|
|
5
5
|
"devDependencies": {
|
|
6
|
-
"@rushstack/eslint-patch": "^1.
|
|
6
|
+
"@rushstack/eslint-patch": "^1.7.2",
|
|
7
7
|
"@testing-library/dom": "^9.3.4",
|
|
8
8
|
"@testing-library/user-event": "^14.5.2",
|
|
9
|
-
"@types/lodash": "^4.
|
|
9
|
+
"@types/lodash": "^4.14.202",
|
|
10
10
|
"@types/lodash.debounce": "^4.0.9",
|
|
11
11
|
"eslint": "^7.32.0",
|
|
12
12
|
"fetch-mock-jest": "^1.5.1",
|
|
@@ -326,7 +326,7 @@ function newspack_blocks_render_block_homepage_articles( $attributes ) {
|
|
|
326
326
|
map_deep(
|
|
327
327
|
$attributes,
|
|
328
328
|
function( $attribute ) {
|
|
329
|
-
return false === $attribute ? '0' :
|
|
329
|
+
return false === $attribute ? '0' : $attribute;
|
|
330
330
|
}
|
|
331
331
|
),
|
|
332
332
|
[
|
package/vendor/autoload.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// autoload_real.php @generated by Composer
|
|
4
4
|
|
|
5
|
-
class
|
|
5
|
+
class ComposerAutoloaderInitbd0cf0fdf0d288d635681d631d0286b4
|
|
6
6
|
{
|
|
7
7
|
private static $loader;
|
|
8
8
|
|
|
@@ -22,12 +22,12 @@ class ComposerAutoloaderInit7e09c9ece2b0c8b7c148676d76ca2681
|
|
|
22
22
|
return self::$loader;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
spl_autoload_register(array('
|
|
25
|
+
spl_autoload_register(array('ComposerAutoloaderInitbd0cf0fdf0d288d635681d631d0286b4', 'loadClassLoader'), true, true);
|
|
26
26
|
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
|
27
|
-
spl_autoload_unregister(array('
|
|
27
|
+
spl_autoload_unregister(array('ComposerAutoloaderInitbd0cf0fdf0d288d635681d631d0286b4', 'loadClassLoader'));
|
|
28
28
|
|
|
29
29
|
require __DIR__ . '/autoload_static.php';
|
|
30
|
-
call_user_func(\Composer\Autoload\
|
|
30
|
+
call_user_func(\Composer\Autoload\ComposerStaticInitbd0cf0fdf0d288d635681d631d0286b4::getInitializer($loader));
|
|
31
31
|
|
|
32
32
|
$loader->register(true);
|
|
33
33
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
namespace Composer\Autoload;
|
|
6
6
|
|
|
7
|
-
class
|
|
7
|
+
class ComposerStaticInitbd0cf0fdf0d288d635681d631d0286b4
|
|
8
8
|
{
|
|
9
9
|
public static $classMap = array (
|
|
10
10
|
'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
|
|
@@ -13,7 +13,7 @@ class ComposerStaticInit7e09c9ece2b0c8b7c148676d76ca2681
|
|
|
13
13
|
public static function getInitializer(ClassLoader $loader)
|
|
14
14
|
{
|
|
15
15
|
return \Closure::bind(function () use ($loader) {
|
|
16
|
-
$loader->classMap =
|
|
16
|
+
$loader->classMap = ComposerStaticInitbd0cf0fdf0d288d635681d631d0286b4::$classMap;
|
|
17
17
|
|
|
18
18
|
}, null, ClassLoader::class);
|
|
19
19
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
'name' => 'automattic/newspack-blocks',
|
|
4
4
|
'pretty_version' => 'dev-trunk',
|
|
5
5
|
'version' => 'dev-trunk',
|
|
6
|
-
'reference' => '
|
|
6
|
+
'reference' => '5cbb2fd75866818e11f42966341156b48d347d09',
|
|
7
7
|
'type' => 'wordpress-plugin',
|
|
8
8
|
'install_path' => __DIR__ . '/../../',
|
|
9
9
|
'aliases' => array(),
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
'automattic/newspack-blocks' => array(
|
|
14
14
|
'pretty_version' => 'dev-trunk',
|
|
15
15
|
'version' => 'dev-trunk',
|
|
16
|
-
'reference' => '
|
|
16
|
+
'reference' => '5cbb2fd75866818e11f42966341156b48d347d09',
|
|
17
17
|
'type' => 'wordpress-plugin',
|
|
18
18
|
'install_path' => __DIR__ . '/../../',
|
|
19
19
|
'aliases' => array(),
|