diff --git a/package-lock.json b/package-lock.json
index 215ad7ced7..474f16698e 100644
|
a
|
b
|
|
| 280 | 280 | } |
| 281 | 281 | }, |
| 282 | 282 | "@wordpress/block-library": { |
| 283 | | "version": "2.2.7", |
| 284 | | "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-2.2.7.tgz", |
| 285 | | "integrity": "sha512-QehEhRkNWGi8JUowwm4/EW6Yd1Hay8q3adEPJND/1nWHZBVPe7dgIRgOkrC8Y/61a7+YfKmi34nO+Z7TpRYW5Q==", |
| | 283 | "version": "2.2.8", |
| | 284 | "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-2.2.8.tgz", |
| | 285 | "integrity": "sha512-86DiBPFQwGDWf/s4OwmTp2q+VoeNhmW1OQXu/on+c5MHgJh7W2uFasO4bhmz31+U9KwAFHQr3pCcxaasdP17vQ==", |
| 286 | 286 | "requires": { |
| 287 | 287 | "@babel/runtime": "^7.0.0", |
| 288 | 288 | "@wordpress/autop": "^2.0.2", |
| 289 | 289 | "@wordpress/blob": "^2.1.0", |
| 290 | 290 | "@wordpress/blocks": "^6.0.2", |
| 291 | | "@wordpress/components": "^7.0.2", |
| | 291 | "@wordpress/components": "^7.0.3", |
| 292 | 292 | "@wordpress/compose": "^3.0.0", |
| 293 | 293 | "@wordpress/core-data": "^2.0.14", |
| 294 | 294 | "@wordpress/data": "^4.0.1", |
| 295 | 295 | "@wordpress/deprecated": "^2.0.3", |
| 296 | | "@wordpress/editor": "^9.0.2", |
| | 296 | "@wordpress/editor": "^9.0.3", |
| 297 | 297 | "@wordpress/element": "^2.1.8", |
| 298 | 298 | "@wordpress/html-entities": "^2.0.3", |
| 299 | 299 | "@wordpress/i18n": "^3.1.0", |
| … |
… |
|
| 349 | 349 | } |
| 350 | 350 | }, |
| 351 | 351 | "@wordpress/components": { |
| 352 | | "version": "7.0.2", |
| 353 | | "resolved": "https://registry.npmjs.org/@wordpress/components/-/components-7.0.2.tgz", |
| 354 | | "integrity": "sha512-uML/DB4ISmgGotijx5PfgRlRsUzNPnWjBrbrHNiFCy1O87jLObipRi3bETMO6GY13PgTu4SeLIEh6E2V85jNyQ==", |
| | 352 | "version": "7.0.3", |
| | 353 | "resolved": "https://registry.npmjs.org/@wordpress/components/-/components-7.0.3.tgz", |
| | 354 | "integrity": "sha512-7TgmhXz8+KRknFNYe+AYHpq3EreB40OZWEYzXF5tSJdjC6wElrDMKqRCGgWdTlpgZ/09g2cDo7a+GJ8iQTm9ig==", |
| 355 | 355 | "requires": { |
| 356 | 356 | "@babel/runtime": "^7.0.0", |
| 357 | 357 | "@wordpress/a11y": "^2.0.2", |
| … |
… |
|
| 470 | 470 | } |
| 471 | 471 | }, |
| 472 | 472 | "@wordpress/edit-post": { |
| 473 | | "version": "3.1.2", |
| 474 | | "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-3.1.2.tgz", |
| 475 | | "integrity": "sha512-uVl4VddTQSHEEdriMTGFJYBzEqI7tavnLSfRFva9jwhofgr+tw5arj6a82rZ9KBkWSC/zEVQCjEzsHbiaf7y5g==", |
| | 473 | "version": "3.1.3", |
| | 474 | "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-3.1.3.tgz", |
| | 475 | "integrity": "sha512-bA9OIkzInCLvf2YB4b6H0Ubghmv+AjOrCpZcp/5sdWLAg7hE6ZzZZ5Pz/2o5bBd+mTkalALJFMxgy7DKvH3WgQ==", |
| 476 | 476 | "requires": { |
| 477 | 477 | "@babel/runtime": "^7.0.0", |
| 478 | 478 | "@wordpress/a11y": "^2.0.2", |
| 479 | 479 | "@wordpress/api-fetch": "^2.2.5", |
| 480 | | "@wordpress/block-library": "^2.2.7", |
| | 480 | "@wordpress/block-library": "^2.2.8", |
| 481 | 481 | "@wordpress/blocks": "^6.0.2", |
| 482 | | "@wordpress/components": "^7.0.2", |
| | 482 | "@wordpress/components": "^7.0.3", |
| 483 | 483 | "@wordpress/compose": "^3.0.0", |
| 484 | 484 | "@wordpress/core-data": "^2.0.14", |
| 485 | 485 | "@wordpress/data": "^4.0.1", |
| 486 | | "@wordpress/editor": "^9.0.2", |
| | 486 | "@wordpress/editor": "^9.0.3", |
| 487 | 487 | "@wordpress/element": "^2.1.8", |
| 488 | | "@wordpress/format-library": "^1.2.5", |
| | 488 | "@wordpress/format-library": "^1.2.6", |
| 489 | 489 | "@wordpress/hooks": "^2.0.3", |
| 490 | 490 | "@wordpress/i18n": "^3.1.0", |
| 491 | 491 | "@wordpress/keycodes": "^2.0.5", |
| 492 | | "@wordpress/nux": "^3.0.3", |
| | 492 | "@wordpress/nux": "^3.0.4", |
| 493 | 493 | "@wordpress/plugins": "^2.0.9", |
| 494 | 494 | "@wordpress/url": "^2.3.1", |
| 495 | 495 | "@wordpress/viewport": "^2.0.12", |
| … |
… |
|
| 499 | 499 | } |
| 500 | 500 | }, |
| 501 | 501 | "@wordpress/editor": { |
| 502 | | "version": "9.0.2", |
| 503 | | "resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-9.0.2.tgz", |
| 504 | | "integrity": "sha512-uejLtZW6TXqaMxluDGsHAfWm07FhswAU6DTArEC1bLvGK72i4LRXN/kTb4jD8hoiYcMu9jgM6BuzA5+G2XKaPQ==", |
| | 502 | "version": "9.0.3", |
| | 503 | "resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-9.0.3.tgz", |
| | 504 | "integrity": "sha512-Iz2B2JccsluiV0CdIkeH7sdl+3JcM7u9OqQSRC+0G2gfq8c09c98BE9myRUN16EVvL6zf025DzRU3hSx9r3AbQ==", |
| 505 | 505 | "requires": { |
| 506 | 506 | "@babel/runtime": "^7.0.0", |
| 507 | 507 | "@wordpress/a11y": "^2.0.2", |
| 508 | 508 | "@wordpress/api-fetch": "^2.2.5", |
| 509 | 509 | "@wordpress/blob": "^2.1.0", |
| 510 | 510 | "@wordpress/blocks": "^6.0.2", |
| 511 | | "@wordpress/components": "^7.0.2", |
| | 511 | "@wordpress/components": "^7.0.3", |
| 512 | 512 | "@wordpress/compose": "^3.0.0", |
| 513 | 513 | "@wordpress/core-data": "^2.0.14", |
| 514 | 514 | "@wordpress/data": "^4.0.1", |
| … |
… |
|
| 522 | 522 | "@wordpress/is-shallow-equal": "^1.1.4", |
| 523 | 523 | "@wordpress/keycodes": "^2.0.5", |
| 524 | 524 | "@wordpress/notices": "^1.1.0", |
| 525 | | "@wordpress/nux": "^3.0.3", |
| | 525 | "@wordpress/nux": "^3.0.4", |
| 526 | 526 | "@wordpress/token-list": "^1.1.0", |
| 527 | 527 | "@wordpress/url": "^2.3.1", |
| 528 | 528 | "@wordpress/viewport": "^2.0.12", |
| … |
… |
|
| 597 | 597 | } |
| 598 | 598 | }, |
| 599 | 599 | "@wordpress/format-library": { |
| 600 | | "version": "1.2.5", |
| 601 | | "resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-1.2.5.tgz", |
| 602 | | "integrity": "sha512-tij5m2brX0n+dmchqqvM6Fk2a26Q5+aI+DPbYw5BSGKFrN4fna7mLvPBhMo3knxuZv3y/GBSl+AmZobaQI9ngg==", |
| | 600 | "version": "1.2.6", |
| | 601 | "resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-1.2.6.tgz", |
| | 602 | "integrity": "sha512-8GkrMRSZ287qotsYzJh0kzDRjDAYJLicwbSRSv4AR2+4dSW6ZX1CK2jt/ihxg5cbqxMitPPTqRA0PmUk+AtdDA==", |
| 603 | 603 | "requires": { |
| 604 | 604 | "@babel/runtime": "^7.0.0", |
| 605 | | "@wordpress/components": "^7.0.2", |
| | 605 | "@wordpress/components": "^7.0.3", |
| 606 | 606 | "@wordpress/dom": "^2.0.7", |
| 607 | | "@wordpress/editor": "^9.0.2", |
| | 607 | "@wordpress/editor": "^9.0.3", |
| 608 | 608 | "@wordpress/element": "^2.1.8", |
| 609 | 609 | "@wordpress/i18n": "^3.1.0", |
| 610 | 610 | "@wordpress/keycodes": "^2.0.5", |
| … |
… |
|
| 678 | 678 | } |
| 679 | 679 | }, |
| 680 | 680 | "@wordpress/list-reusable-blocks": { |
| 681 | | "version": "1.1.15", |
| 682 | | "resolved": "https://registry.npmjs.org/@wordpress/list-reusable-blocks/-/list-reusable-blocks-1.1.15.tgz", |
| 683 | | "integrity": "sha512-uHOC7HKlnXJfGzHM9XV+24XJ9U5pgTqn1IH+IiHxop1P2BV2sPr38VyfzlLAeo/Fu9gfaRYPG8OT6OtP8E9Snw==", |
| | 681 | "version": "1.1.16", |
| | 682 | "resolved": "https://registry.npmjs.org/@wordpress/list-reusable-blocks/-/list-reusable-blocks-1.1.16.tgz", |
| | 683 | "integrity": "sha512-kkamXKC6lp7ZddFt+VPOaiTftXfldU6qiRNab9JU9BXBD0XmyWl1Ee24RjQtO9ILA8UK9OpYsYCAMP/LSA1Cgg==", |
| 684 | 684 | "requires": { |
| 685 | 685 | "@babel/runtime": "^7.0.0", |
| 686 | 686 | "@wordpress/api-fetch": "^2.2.5", |
| 687 | | "@wordpress/components": "^7.0.2", |
| | 687 | "@wordpress/components": "^7.0.3", |
| 688 | 688 | "@wordpress/compose": "^3.0.0", |
| 689 | 689 | "@wordpress/element": "^2.1.8", |
| 690 | 690 | "@wordpress/i18n": "^3.1.0", |
| … |
… |
|
| 703 | 703 | } |
| 704 | 704 | }, |
| 705 | 705 | "@wordpress/nux": { |
| 706 | | "version": "3.0.3", |
| 707 | | "resolved": "https://registry.npmjs.org/@wordpress/nux/-/nux-3.0.3.tgz", |
| 708 | | "integrity": "sha512-cpG1ZRBeva6W3l9QWFIj66WtdDs5WIK0psyJf7567U1zp7gxdK4RwrM9o3WL8Ep/lPv5bvuyLhtO6WdSWUAfhg==", |
| | 706 | "version": "3.0.4", |
| | 707 | "resolved": "https://registry.npmjs.org/@wordpress/nux/-/nux-3.0.4.tgz", |
| | 708 | "integrity": "sha512-0GjMmEI8GM/lbRLAxPel6fMjf5rbEB9wGRzVr1dDD7Ak6CfgVfasK/B9UMgngcO0sbCCXkHopjd8QQhUobffPg==", |
| 709 | 709 | "requires": { |
| 710 | 710 | "@babel/runtime": "^7.0.0", |
| 711 | | "@wordpress/components": "^7.0.2", |
| | 711 | "@wordpress/components": "^7.0.3", |
| 712 | 712 | "@wordpress/compose": "^3.0.0", |
| 713 | 713 | "@wordpress/data": "^4.0.1", |
| 714 | 714 | "@wordpress/element": "^2.1.8", |
| … |
… |
|
| 1476 | 1476 | }, |
| 1477 | 1477 | "util": { |
| 1478 | 1478 | "version": "0.10.3", |
| 1479 | | "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", |
| | 1479 | "resolved": "http://registry.npmjs.org/util/-/util-0.10.3.tgz", |
| 1480 | 1480 | "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=", |
| 1481 | 1481 | "dev": true, |
| 1482 | 1482 | "requires": { |
| … |
… |
|
| 2452 | 2452 | }, |
| 2453 | 2453 | "browserify-rsa": { |
| 2454 | 2454 | "version": "4.0.1", |
| 2455 | | "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz", |
| | 2455 | "resolved": "http://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz", |
| 2456 | 2456 | "integrity": "sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ=", |
| 2457 | 2457 | "dev": true, |
| 2458 | 2458 | "requires": { |
| … |
… |
|
| 2749 | 2749 | }, |
| 2750 | 2750 | "chalk": { |
| 2751 | 2751 | "version": "1.1.3", |
| 2752 | | "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", |
| | 2752 | "resolved": "http://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", |
| 2753 | 2753 | "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", |
| 2754 | 2754 | "requires": { |
| 2755 | 2755 | "ansi-styles": "^2.2.1", |
| … |
… |
|
| 4544 | 4544 | }, |
| 4545 | 4545 | "events": { |
| 4546 | 4546 | "version": "1.1.1", |
| 4547 | | "resolved": "https://registry.npmjs.org/events/-/events-1.1.1.tgz", |
| | 4547 | "resolved": "http://registry.npmjs.org/events/-/events-1.1.1.tgz", |
| 4548 | 4548 | "integrity": "sha1-nr23Y1rQmccNzEwqH1AEKI6L2SQ=", |
| 4549 | 4549 | "dev": true |
| 4550 | 4550 | }, |
| … |
… |
|
| 10194 | 10194 | }, |
| 10195 | 10195 | "onetime": { |
| 10196 | 10196 | "version": "1.1.0", |
| 10197 | | "resolved": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz", |
| | 10197 | "resolved": "http://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz", |
| 10198 | 10198 | "integrity": "sha1-ofeDj4MUxRbwXs78vEzP4EtO14k=", |
| 10199 | 10199 | "dev": true |
| 10200 | 10200 | }, |
| … |
… |
|
| 10616 | 10616 | "dependencies": { |
| 10617 | 10617 | "async": { |
| 10618 | 10618 | "version": "1.5.2", |
| 10619 | | "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", |
| | 10619 | "resolved": "http://registry.npmjs.org/async/-/async-1.5.2.tgz", |
| 10620 | 10620 | "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", |
| 10621 | 10621 | "dev": true |
| 10622 | 10622 | } |
| … |
… |
|
| 11415 | 11415 | } |
| 11416 | 11416 | }, |
| 11417 | 11417 | "react-portal": { |
| 11418 | | "version": "4.1.5", |
| 11419 | | "resolved": "https://registry.npmjs.org/react-portal/-/react-portal-4.1.5.tgz", |
| 11420 | | "integrity": "sha512-jJMy9DoVr4HRWPdO8IP/mDHP1Q972/aKkulVQeIrttOIyRNmCkR2IH7gK3HVjhzxy6M+k9TopSWN5q41wO/o6A==", |
| | 11418 | "version": "4.2.0", |
| | 11419 | "resolved": "https://registry.npmjs.org/react-portal/-/react-portal-4.2.0.tgz", |
| | 11420 | "integrity": "sha512-Zf+vGQ/VEAb5XAy+muKEn48yhdCNYPZaB1BWg1xc8sAZWD8pXTgPtQT4ihBdmWzsfCq8p8/kqf0GWydSBqc+Eg==", |
| 11421 | 11421 | "requires": { |
| 11422 | 11422 | "prop-types": "^15.5.8" |
| 11423 | 11423 | } |
| … |
… |
|
| 11961 | 11961 | }, |
| 11962 | 11962 | "regjsgen": { |
| 11963 | 11963 | "version": "0.2.0", |
| 11964 | | "resolved": "http://registry.npmjs.org/regjsgen/-/regjsgen-0.2.0.tgz", |
| | 11964 | "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.2.0.tgz", |
| 11965 | 11965 | "integrity": "sha1-bAFq3qxVT3WCP+N6wFuS1aTtsfc=" |
| 11966 | 11966 | }, |
| 11967 | 11967 | "regjsparser": { |
| … |
… |
|
| 13691 | 13691 | "integrity": "sha1-9PrTM0R7wLB9TcjpIJ2POaisd+g=" |
| 13692 | 13692 | }, |
| 13693 | 13693 | "tinymce": { |
| 13694 | | "version": "4.8.5", |
| 13695 | | "resolved": "https://registry.npmjs.org/tinymce/-/tinymce-4.8.5.tgz", |
| 13696 | | "integrity": "sha512-1V6+PxP5Kp8H/Kuf+EOe6vyrtj1Dlj98q33DgiKGoGPTmbcQaVZWiT+lhqj8ICXKVLV3YxAieOJyJXai4SLHQg==" |
| | 13694 | "version": "4.9.0", |
| | 13695 | "resolved": "https://registry.npmjs.org/tinymce/-/tinymce-4.9.0.tgz", |
| | 13696 | "integrity": "sha512-hrPeCLXY/sVCo3i64CTW8P5xbDiEI8Uii/vWpcmQWAMhex6GWWd2U+L8WIMj5tKKGdfcIQAJfpfQthc/92bcKw==" |
| 13697 | 13697 | }, |
| 13698 | 13698 | "tmp": { |
| 13699 | 13699 | "version": "0.0.33", |
diff --git a/package.json b/package.json
index 92fb4675c6..faec2134b9 100644
|
a
|
b
|
|
| 55 | 55 | "@wordpress/api-fetch": "^2.2.5", |
| 56 | 56 | "@wordpress/autop": "^2.0.2", |
| 57 | 57 | "@wordpress/blob": "^2.1.0", |
| 58 | | "@wordpress/block-library": "^2.2.7", |
| | 58 | "@wordpress/block-library": "^2.2.8", |
| 59 | 59 | "@wordpress/block-serialization-default-parser": "^2.0.0", |
| 60 | 60 | "@wordpress/blocks": "^6.0.2", |
| 61 | | "@wordpress/components": "^7.0.2", |
| | 61 | "@wordpress/components": "^7.0.3", |
| 62 | 62 | "@wordpress/compose": "^3.0.0", |
| 63 | 63 | "@wordpress/core-data": "^2.0.14", |
| 64 | 64 | "@wordpress/data": "^4.0.1", |
| … |
… |
|
| 66 | 66 | "@wordpress/deprecated": "^2.0.3", |
| 67 | 67 | "@wordpress/dom": "^2.0.7", |
| 68 | 68 | "@wordpress/dom-ready": "^2.0.2", |
| 69 | | "@wordpress/edit-post": "^3.1.2", |
| 70 | | "@wordpress/editor": "^9.0.2", |
| | 69 | "@wordpress/edit-post": "^3.1.3", |
| | 70 | "@wordpress/editor": "^9.0.3", |
| 71 | 71 | "@wordpress/element": "^2.1.8", |
| 72 | 72 | "@wordpress/escape-html": "^1.0.1", |
| 73 | | "@wordpress/format-library": "^1.2.5", |
| | 73 | "@wordpress/format-library": "^1.2.6", |
| 74 | 74 | "@wordpress/hooks": "^2.0.3", |
| 75 | 75 | "@wordpress/html-entities": "^2.0.3", |
| 76 | 76 | "@wordpress/i18n": "^3.1.0", |
| 77 | 77 | "@wordpress/is-shallow-equal": "^1.1.4", |
| 78 | 78 | "@wordpress/keycodes": "^2.0.5", |
| 79 | | "@wordpress/list-reusable-blocks": "^1.1.15", |
| | 79 | "@wordpress/list-reusable-blocks": "^1.1.16", |
| 80 | 80 | "@wordpress/notices": "^1.1.0", |
| 81 | | "@wordpress/nux": "^3.0.3", |
| | 81 | "@wordpress/nux": "^3.0.4", |
| 82 | 82 | "@wordpress/plugins": "^2.0.9", |
| 83 | 83 | "@wordpress/redux-routine": "^3.0.3", |
| 84 | 84 | "@wordpress/rich-text": "^3.0.2", |
diff --git a/src/wp-admin/edit-form-blocks.php b/src/wp-admin/edit-form-blocks.php
index c81f40e5fd..ac45596914 100644
|
a
|
b
|
$styles = array( |
| 178 | 178 | ), |
| 179 | 179 | ); |
| 180 | 180 | |
| 181 | | /* |
| 182 | | * Set a locale specific default font. |
| 183 | | * Translators: Use this to specify the CSS font family for the default font |
| 184 | | */ |
| | 181 | /* Translators: Use this to specify the CSS font family for the default font */ |
| 185 | 182 | $locale_font_family = esc_html_x( 'Noto Serif', 'CSS Font Family for Editor Font' ); |
| 186 | 183 | $styles[] = array( |
| 187 | 184 | 'css' => "body { font-family: '$locale_font_family' }", |
diff --git a/src/wp-includes/blocks/archives.php b/src/wp-includes/blocks/archives.php
index c94a4645d9..3d7b5b42f4 100644
|
a
|
b
|
|
| 2 | 2 | /** |
| 3 | 3 | * Server-side rendering of the `core/archives` block. |
| 4 | 4 | * |
| 5 | | * @package gutenberg |
| | 5 | * @package WordPress |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | /** |
diff --git a/src/wp-includes/blocks/block.php b/src/wp-includes/blocks/block.php
index bc33929ac5..77a281802c 100644
|
a
|
b
|
|
| 2 | 2 | /** |
| 3 | 3 | * Server-side rendering of the `core/block` block. |
| 4 | 4 | * |
| 5 | | * @package gutenberg |
| | 5 | * @package WordPress |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | /** |
diff --git a/src/wp-includes/blocks/categories.php b/src/wp-includes/blocks/categories.php
index 38de4bd517..f302d9ba74 100644
|
a
|
b
|
|
| 2 | 2 | /** |
| 3 | 3 | * Server-side rendering of the `core/categories` block. |
| 4 | 4 | * |
| 5 | | * @package gutenberg |
| | 5 | * @package WordPress |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | /** |
diff --git a/src/wp-includes/blocks/latest-comments.php b/src/wp-includes/blocks/latest-comments.php
index 05797c029e..557e3dce13 100644
|
a
|
b
|
|
| 2 | 2 | /** |
| 3 | 3 | * Server-side rendering of the `core/latest-comments` block. |
| 4 | 4 | * |
| 5 | | * @package gutenberg |
| | 5 | * @package WordPress |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | | if ( ! function_exists( 'gutenberg_draft_or_post_title' ) ) { |
| | 8 | if ( ! function_exists( 'wp_latest_comments_draft_or_post_title' ) ) { |
| 9 | 9 | /** |
| 10 | 10 | * Get the post title. |
| 11 | 11 | * |
| … |
… |
if ( ! function_exists( 'gutenberg_draft_or_post_title' ) ) { |
| 26 | 26 | * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post. |
| 27 | 27 | * @return string The post title if set; "(no title)" if no title is set. |
| 28 | 28 | */ |
| 29 | | function gutenberg_draft_or_post_title( $post = 0 ) { |
| | 29 | function wp_latest_comments_draft_or_post_title( $post = 0 ) { |
| 30 | 30 | $title = get_the_title( $post ); |
| 31 | 31 | if ( empty( $title ) ) { |
| 32 | 32 | $title = __( '(no title)' ); |
| … |
… |
if ( ! function_exists( 'gutenberg_draft_or_post_title' ) ) { |
| 42 | 42 | * |
| 43 | 43 | * @return string Returns the post content with latest comments added. |
| 44 | 44 | */ |
| 45 | | function gutenberg_render_block_core_latest_comments( $attributes = array() ) { |
| | 45 | function render_block_core_latest_comments( $attributes = array() ) { |
| 46 | 46 | // This filter is documented in wp-includes/widgets/class-wp-widget-recent-comments.php. |
| 47 | 47 | $comments = get_comments( |
| 48 | 48 | apply_filters( |
| … |
… |
function gutenberg_render_block_core_latest_comments( $attributes = array() ) { |
| 94 | 94 | |
| 95 | 95 | // `_draft_or_post_title` calls `esc_html()` so we don't need to wrap that call in |
| 96 | 96 | // `esc_html`. |
| 97 | | $post_title = '<a class="wp-block-latest-comments__comment-link" href="' . esc_url( get_comment_link( $comment ) ) . '">' . gutenberg_draft_or_post_title( $comment->comment_post_ID ) . '</a>'; |
| | 97 | $post_title = '<a class="wp-block-latest-comments__comment-link" href="' . esc_url( get_comment_link( $comment ) ) . '">' . wp_latest_comments_draft_or_post_title( $comment->comment_post_ID ) . '</a>'; |
| 98 | 98 | |
| 99 | 99 | $list_items_markup .= sprintf( |
| 100 | 100 | /* translators: 1: author name (inside <a> or <span> tag, based on if they have a URL), 2: post title related to this comment */ |
| … |
… |
register_block_type( |
| 179 | 179 | 'enum' => array( 'center', 'left', 'right', 'wide', 'full', '' ), |
| 180 | 180 | ), |
| 181 | 181 | ), |
| 182 | | 'render_callback' => 'gutenberg_render_block_core_latest_comments', |
| | 182 | 'render_callback' => 'render_block_core_latest_comments', |
| 183 | 183 | ) |
| 184 | 184 | ); |
diff --git a/src/wp-includes/blocks/latest-posts.php b/src/wp-includes/blocks/latest-posts.php
index 72b395a06c..18a43e5182 100644
|
a
|
b
|
|
| 2 | 2 | /** |
| 3 | 3 | * Server-side rendering of the `core/latest-posts` block. |
| 4 | 4 | * |
| 5 | | * @package gutenberg |
| | 5 | * @package WordPress |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | /** |
| … |
… |
function render_block_core_latest_posts( $attributes ) { |
| 21 | 21 | ); |
| 22 | 22 | |
| 23 | 23 | if ( isset( $attributes['categories'] ) ) { |
| 24 | | $args['categories'] = $attributes['categories']; |
| | 24 | $args['category'] = $attributes['categories']; |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | $recent_posts = wp_get_recent_posts( $args ); |
diff --git a/src/wp-includes/blocks/shortcode.php b/src/wp-includes/blocks/shortcode.php
index d18dd4f582..1c0761250d 100644
|
a
|
b
|
|
| 2 | 2 | /** |
| 3 | 3 | * Server-side rendering of the `core/shortcode` block. |
| 4 | 4 | * |
| 5 | | * @package gutenberg |
| | 5 | * @package WordPress |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | /** |
diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php
index d8b5e677dc..acfa7c8683 100644
|
a
|
b
|
function wp_default_packages_scripts( &$scripts ) { |
| 212 | 212 | 'annotations' => '1.0.3', |
| 213 | 213 | 'autop' => '2.0.2', |
| 214 | 214 | 'blob' => '2.1.0', |
| 215 | | 'block-library' => '2.2.7', |
| | 215 | 'block-library' => '2.2.8', |
| 216 | 216 | 'block-serialization-default-parser' => '2.0.0', |
| 217 | 217 | 'blocks' => '6.0.2', |
| 218 | | 'components' => '7.0.2', |
| | 218 | 'components' => '7.0.3', |
| 219 | 219 | 'compose' => '3.0.0', |
| 220 | 220 | 'core-data' => '2.0.14', |
| 221 | 221 | 'data' => '4.0.1', |
| … |
… |
function wp_default_packages_scripts( &$scripts ) { |
| 223 | 223 | 'deprecated' => '2.0.3', |
| 224 | 224 | 'dom' => '2.0.7', |
| 225 | 225 | 'dom-ready' => '2.0.2', |
| 226 | | 'edit-post' => '3.1.2', |
| 227 | | 'editor' => '9.0.2', |
| | 226 | 'edit-post' => '3.1.3', |
| | 227 | 'editor' => '9.0.3', |
| 228 | 228 | 'element' => '2.1.8', |
| 229 | 229 | 'escape-html' => '1.0.1', |
| 230 | | 'format-library' => '1.2.5', |
| | 230 | 'format-library' => '1.2.6', |
| 231 | 231 | 'hooks' => '2.0.3', |
| 232 | 232 | 'html-entities' => '2.0.3', |
| 233 | 233 | 'i18n' => '3.1.0', |
| 234 | 234 | 'is-shallow-equal' => '1.1.4', |
| 235 | 235 | 'keycodes' => '2.0.5', |
| 236 | | 'list-reusable-blocks' => '1.1.15', |
| | 236 | 'list-reusable-blocks' => '1.1.16', |
| 237 | 237 | 'notices' => '1.1.0', |
| 238 | | 'nux' => '3.0.3', |
| | 238 | 'nux' => '3.0.4', |
| 239 | 239 | 'plugins' => '2.0.9', |
| 240 | 240 | 'redux-routine' => '3.0.3', |
| 241 | 241 | 'rich-text' => '3.0.2', |
| … |
… |
function wp_default_packages_scripts( &$scripts ) { |
| 276 | 276 | 'block-library' => array( |
| 277 | 277 | 'editor', |
| 278 | 278 | 'lodash', |
| 279 | | 'moment', |
| 280 | 279 | 'wp-api-fetch', |
| 281 | 280 | 'wp-autop', |
| 282 | 281 | 'wp-blob', |