Make WordPress Core

Ticket #45145: 45145.7.diff

File 45145.7.diff, 45.0 KB (added by noisysocks, 6 years ago)
  • package-lock.json

     
    237237                        }
    238238                },
    239239                "@wordpress/annotations": {
    240                         "version": "1.0.1",
    241                         "resolved": "https://registry.npmjs.org/@wordpress/annotations/-/annotations-1.0.1.tgz",
    242                         "integrity": "sha512-p3x69/bECmnVCGbcacp/+W+oXG41ilAgMqO5AegFKOUdGajIs5gXsCWl3wD3e/07cI9DDuFwtx476jadxfZBhA==",
     240                        "version": "1.0.2",
     241                        "resolved": "https://registry.npmjs.org/@wordpress/annotations/-/annotations-1.0.2.tgz",
     242                        "integrity": "sha512-PHdezirBAsaNxvnjKWatre2F1LVD9EjUWtWj2jmBC+ueupLhclUWG5c5QM5Td1fS4DiDzmrRTCize+rSn7XtAQ==",
    243243                        "requires": {
    244244                                "@babel/runtime": "^7.0.0",
    245                                 "@wordpress/data": "^4.0.0",
     245                                "@wordpress/data": "^4.0.1",
    246246                                "@wordpress/hooks": "^2.0.3",
    247247                                "@wordpress/i18n": "^3.1.0",
    248                                 "@wordpress/rich-text": "^3.0.0",
     248                                "@wordpress/rich-text": "^3.0.1",
    249249                                "lodash": "^4.17.10",
    250250                                "rememo": "^3.0.0",
    251251                                "uuid": "^3.3.2"
     
    252252                        }
    253253                },
    254254                "@wordpress/api-fetch": {
    255                         "version": "2.2.4",
    256                         "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-2.2.4.tgz",
    257                         "integrity": "sha512-4F/soEicQTTAgZujeJ0oMAh/YPX56dUIzlB4ndswp3dvTJP/FNg2Nng9LnicCfQQHDhIrDFkwRNM4MfAVWk7WA==",
     255                        "version": "2.2.5",
     256                        "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-2.2.5.tgz",
     257                        "integrity": "sha512-/59udJQAG5ynrA7j/E6mBhl0gv1MXpBDiuMhY7TBOdgNYIdltrcBbI2PF0r42EGPRtm+rOzBKrEM7WDkWTCkvA==",
    258258                        "requires": {
    259259                                "@babel/runtime": "^7.0.0",
    260260                                "@wordpress/hooks": "^2.0.3",
    261261                                "@wordpress/i18n": "^3.1.0",
    262                                 "@wordpress/url": "^2.3.0"
     262                                "@wordpress/url": "^2.3.1"
    263263                        }
    264264                },
    265265                "@wordpress/autop": {
     
    279279                        }
    280280                },
    281281                "@wordpress/block-library": {
    282                         "version": "2.2.4",
    283                         "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-2.2.4.tgz",
    284                         "integrity": "sha512-Z/EmYdzB3GQpw8Rva/Y7xG9IS7W/cy1KWR7DrT3/bb7sGwQ4f37KPttY4s7qkRZlkKRakzEfqAIVtci6w2pqmg==",
     282                        "version": "2.2.5",
     283                        "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-2.2.5.tgz",
     284                        "integrity": "sha512-k9ym0oZQdubTdFbPpBz0obz+2Q40lxBgbeAngrstukOLcK7KzbneUPfOzQRaZaCRYoplQvGH6PO1WU/Ws1rzvw==",
    285285                        "requires": {
    286286                                "@babel/runtime": "^7.0.0",
    287287                                "@wordpress/autop": "^2.0.2",
    288288                                "@wordpress/blob": "^2.1.0",
    289                                 "@wordpress/blocks": "^6.0.0",
    290                                 "@wordpress/components": "^6.0.2",
     289                                "@wordpress/blocks": "^6.0.1",
     290                                "@wordpress/components": "^7.0.0",
    291291                                "@wordpress/compose": "^3.0.0",
    292                                 "@wordpress/core-data": "^2.0.13",
    293                                 "@wordpress/data": "^4.0.0",
     292                                "@wordpress/core-data": "^2.0.14",
     293                                "@wordpress/data": "^4.0.1",
    294294                                "@wordpress/deprecated": "^2.0.3",
    295                                 "@wordpress/editor": "^8.0.0",
     295                                "@wordpress/editor": "^9.0.0",
    296296                                "@wordpress/element": "^2.1.8",
    297297                                "@wordpress/html-entities": "^2.0.2",
    298298                                "@wordpress/i18n": "^3.1.0",
    299                                 "@wordpress/keycodes": "^2.0.3",
    300                                 "@wordpress/viewport": "^2.0.11",
     299                                "@wordpress/keycodes": "^2.0.4",
     300                                "@wordpress/viewport": "^2.0.12",
    301301                                "classnames": "^2.2.5",
    302302                                "lodash": "^4.17.10",
    303303                                "memize": "^1.0.5",
     
    321321                        "integrity": "sha512-l5N0o2Tkc4IcDhhMfX2W3KuEV/4F7TeitJEDtBpLYf7eRMIn3Uh6l5rPDmmuTDv7UFlMWTiA8z/oCpl13ZyBOw=="
    322322                },
    323323                "@wordpress/blocks": {
    324                         "version": "6.0.0",
    325                         "resolved": "https://registry.npmjs.org/@wordpress/blocks/-/blocks-6.0.0.tgz",
    326                         "integrity": "sha512-mVRY8VptqIRuGWJRhm7B5BjBJRUKvmIViljUG0mAD3mAcFR9PKNADabbEGSSoH3clUOkUBqLRLzDceQuWOsaYw==",
     324                        "version": "6.0.1",
     325                        "resolved": "https://registry.npmjs.org/@wordpress/blocks/-/blocks-6.0.1.tgz",
     326                        "integrity": "sha512-2lzVMiA8E/y9AVa3zVyL4jc4/de+o+kxLKjEpcelZXk6j2YA5KneHDQ/qfrW4XGEui5J6Q0Kqpw49mE77fQ2rw==",
    327327                        "requires": {
    328328                                "@babel/runtime": "^7.0.0",
    329329                                "@wordpress/autop": "^2.0.2",
     
    330330                                "@wordpress/blob": "^2.1.0",
    331331                                "@wordpress/block-serialization-default-parser": "^2.0.0",
    332332                                "@wordpress/block-serialization-spec-parser": "^2.0.0",
    333                                 "@wordpress/data": "^4.0.0",
    334                                 "@wordpress/dom": "^2.0.6",
     333                                "@wordpress/data": "^4.0.1",
     334                                "@wordpress/dom": "^2.0.7",
    335335                                "@wordpress/element": "^2.1.8",
    336336                                "@wordpress/hooks": "^2.0.3",
    337337                                "@wordpress/html-entities": "^2.0.2",
     
    348348                        }
    349349                },
    350350                "@wordpress/components": {
    351                         "version": "6.0.2",
    352                         "resolved": "https://registry.npmjs.org/@wordpress/components/-/components-6.0.2.tgz",
    353                         "integrity": "sha512-La9RsHC4IBqfsUbY2hOwQyIHnrd5zzcT+HbbKPV1GPlYOxgIpX41gh8/ktAsuNcZQWOmgze5MRFVl4+2OQEV9Q==",
     351                        "version": "7.0.0",
     352                        "resolved": "https://registry.npmjs.org/@wordpress/components/-/components-7.0.0.tgz",
     353                        "integrity": "sha512-hzAfP8TrqA9CIYgwIFdQG1XsrTG7FVBY+rnpMEgtqAN1DWfJsDIMNYPZHB6moFMN6bbLEfMY/NTr8J8+55NKsQ==",
    354354                        "requires": {
    355355                                "@babel/runtime": "^7.0.0",
    356356                                "@wordpress/a11y": "^2.0.2",
    357                                 "@wordpress/api-fetch": "^2.2.4",
     357                                "@wordpress/api-fetch": "^2.2.5",
    358358                                "@wordpress/compose": "^3.0.0",
    359                                 "@wordpress/deprecated": "^2.0.3",
    360                                 "@wordpress/dom": "^2.0.6",
     359                                "@wordpress/dom": "^2.0.7",
    361360                                "@wordpress/element": "^2.1.8",
    362361                                "@wordpress/hooks": "^2.0.3",
    363362                                "@wordpress/i18n": "^3.1.0",
    364363                                "@wordpress/is-shallow-equal": "^1.1.4",
    365                                 "@wordpress/keycodes": "^2.0.3",
    366                                 "@wordpress/rich-text": "^3.0.0",
    367                                 "@wordpress/url": "^2.3.0",
     364                                "@wordpress/keycodes": "^2.0.4",
     365                                "@wordpress/rich-text": "^3.0.1",
     366                                "@wordpress/url": "^2.3.1",
    368367                                "classnames": "^2.2.5",
    369368                                "clipboard": "^2.0.1",
    370369                                "diff": "^3.5.0",
     
    393392                        }
    394393                },
    395394                "@wordpress/core-data": {
    396                         "version": "2.0.13",
    397                         "resolved": "https://registry.npmjs.org/@wordpress/core-data/-/core-data-2.0.13.tgz",
    398                         "integrity": "sha512-vRVcBJXQ9QqC4PZOGzyC29ygvAxPr2BmzH+bPTd+EHjYypmLf3nXj8JhC6jjTCjlHt9mmYLVy/lI97kC3Jdfdg==",
     395                        "version": "2.0.14",
     396                        "resolved": "https://registry.npmjs.org/@wordpress/core-data/-/core-data-2.0.14.tgz",
     397                        "integrity": "sha512-Hbd9tOfxv41jO1VwN9KzKCVgWuUzvZwIhXj848SFi0CzV0E57fiIVAkB/7bQj1EUOGT1qzIRLHhsBAEpxrVaeA==",
    399398                        "requires": {
    400399                                "@babel/runtime": "^7.0.0",
    401                                 "@wordpress/api-fetch": "^2.2.4",
    402                                 "@wordpress/data": "^4.0.0",
    403                                 "@wordpress/url": "^2.3.0",
     400                                "@wordpress/api-fetch": "^2.2.5",
     401                                "@wordpress/data": "^4.0.1",
     402                                "@wordpress/url": "^2.3.1",
    404403                                "equivalent-key-map": "^0.2.2",
    405404                                "lodash": "^4.17.10",
    406405                                "rememo": "^3.0.0"
     
    417416                        }
    418417                },
    419418                "@wordpress/data": {
    420                         "version": "4.0.0",
    421                         "resolved": "https://registry.npmjs.org/@wordpress/data/-/data-4.0.0.tgz",
    422                         "integrity": "sha512-7DlfLBcSdZb8XzpO+1lUXX3DfCnUVoNN/kc/1iGYndWtEaW6EXOBHAUMqno+DeDzriZRdYbJfqRy9cTbQtwhBQ==",
     419                        "version": "4.0.1",
     420                        "resolved": "https://registry.npmjs.org/@wordpress/data/-/data-4.0.1.tgz",
     421                        "integrity": "sha512-UfuSPjyA4xssOVcgg1wRlngBNGVbMmZGtwoGpAWej/XRpGI26P6Xi+8skPQfLTP2yl+/nMoFd9PTwpE0MwDQ7Q==",
    423422                        "requires": {
    424423                                "@babel/runtime": "^7.0.0",
    425424                                "@wordpress/compose": "^3.0.0",
     
    453452                        }
    454453                },
    455454                "@wordpress/dom": {
    456                         "version": "2.0.6",
    457                         "resolved": "https://registry.npmjs.org/@wordpress/dom/-/dom-2.0.6.tgz",
    458                         "integrity": "sha512-z1xdNASrkJc+FTdYAEDKub7pqrizAo2WFlkBmqrurwBcY/HoOTTEqg6wzq2SwvEq/rff741BCWD/JmGU7tI3AQ==",
     455                        "version": "2.0.7",
     456                        "resolved": "https://registry.npmjs.org/@wordpress/dom/-/dom-2.0.7.tgz",
     457                        "integrity": "sha512-vjOdGSpW3WdHH5oOoamfzdoyF4BbUJOWNNT7bBb2y15GII8rN1cGyGxqVDiiajMDe51p3lyWWCpUeY4ppxj/UA==",
    459458                        "requires": {
    460459                                "@babel/runtime": "^7.0.0",
    461460                                "lodash": "^4.17.10"
     
    470469                        }
    471470                },
    472471                "@wordpress/edit-post": {
    473                         "version": "3.0.2",
    474                         "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-3.0.2.tgz",
    475                         "integrity": "sha512-bJRjyr+b4rGax/wOr+5u/ez+NbidRDKXDs35GWc8n2O0ElVFJLeNyrz2tbxLlp+uS5tZTw4P7bGtmMSgh87wcw==",
     472                        "version": "3.1.0",
     473                        "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-3.1.0.tgz",
     474                        "integrity": "sha512-C6jDrN1AbG2xwhsS4O9BFdikLWaV4c36QDHjZxlUBTl8rKtXePlBC2M2j/2zxr2N46nWM0tpQaeOm1Cn6JhwSw==",
    476475                        "requires": {
    477476                                "@babel/runtime": "^7.0.0",
    478477                                "@wordpress/a11y": "^2.0.2",
    479                                 "@wordpress/api-fetch": "^2.2.4",
    480                                 "@wordpress/block-library": "^2.2.4",
    481                                 "@wordpress/blocks": "^6.0.0",
    482                                 "@wordpress/components": "^6.0.2",
     478                                "@wordpress/api-fetch": "^2.2.5",
     479                                "@wordpress/block-library": "^2.2.5",
     480                                "@wordpress/blocks": "^6.0.1",
     481                                "@wordpress/components": "^7.0.0",
    483482                                "@wordpress/compose": "^3.0.0",
    484                                 "@wordpress/core-data": "^2.0.13",
    485                                 "@wordpress/data": "^4.0.0",
    486                                 "@wordpress/editor": "^8.0.0",
     483                                "@wordpress/core-data": "^2.0.14",
     484                                "@wordpress/data": "^4.0.1",
     485                                "@wordpress/editor": "^9.0.0",
    487486                                "@wordpress/element": "^2.1.8",
    488                                 "@wordpress/format-library": "^1.2.2",
     487                                "@wordpress/format-library": "^1.2.3",
    489488                                "@wordpress/hooks": "^2.0.3",
    490489                                "@wordpress/i18n": "^3.1.0",
    491                                 "@wordpress/keycodes": "^2.0.3",
    492                                 "@wordpress/nux": "^3.0.0",
     490                                "@wordpress/keycodes": "^2.0.4",
     491                                "@wordpress/nux": "^3.0.1",
    493492                                "@wordpress/plugins": "^2.0.9",
    494                                 "@wordpress/url": "^2.3.0",
    495                                 "@wordpress/viewport": "^2.0.11",
     493                                "@wordpress/url": "^2.3.1",
     494                                "@wordpress/viewport": "^2.0.12",
    496495                                "classnames": "^2.2.5",
    497496                                "lodash": "^4.17.10",
    498497                                "refx": "^3.0.0"
     
    499498                        }
    500499                },
    501500                "@wordpress/editor": {
    502                         "version": "8.0.0",
    503                         "resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-8.0.0.tgz",
    504                         "integrity": "sha512-948dOGeRyrtZyopzdPVqhmEzbAbCaGtRfuwoywOiMJb/HCXuILEbv2fg9FDjTC0bG2HX4OAdE404Win0TL9Xgg==",
     501                        "version": "9.0.0",
     502                        "resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-9.0.0.tgz",
     503                        "integrity": "sha512-JDUsau7lwPI1DjVitQqmgUORJEEszEMbhQuqXbUGVO6T6uWYj6RtIEGS02CJ4ruu2sb6dtjDsmXK6M+v6T715Q==",
    505504                        "requires": {
    506505                                "@babel/runtime": "^7.0.0",
    507506                                "@wordpress/a11y": "^2.0.2",
    508                                 "@wordpress/api-fetch": "^2.2.4",
     507                                "@wordpress/api-fetch": "^2.2.5",
    509508                                "@wordpress/blob": "^2.1.0",
    510                                 "@wordpress/blocks": "^6.0.0",
    511                                 "@wordpress/components": "^6.0.2",
     509                                "@wordpress/blocks": "^6.0.1",
     510                                "@wordpress/components": "^7.0.0",
    512511                                "@wordpress/compose": "^3.0.0",
    513                                 "@wordpress/core-data": "^2.0.13",
    514                                 "@wordpress/data": "^4.0.0",
     512                                "@wordpress/core-data": "^2.0.14",
     513                                "@wordpress/data": "^4.0.1",
    515514                                "@wordpress/date": "^3.0.0",
    516515                                "@wordpress/deprecated": "^2.0.3",
    517                                 "@wordpress/dom": "^2.0.6",
     516                                "@wordpress/dom": "^2.0.7",
    518517                                "@wordpress/element": "^2.1.8",
    519518                                "@wordpress/hooks": "^2.0.3",
    520519                                "@wordpress/html-entities": "^2.0.2",
    521520                                "@wordpress/i18n": "^3.1.0",
    522521                                "@wordpress/is-shallow-equal": "^1.1.4",
    523                                 "@wordpress/keycodes": "^2.0.3",
    524                                 "@wordpress/notices": "^1.0.5",
    525                                 "@wordpress/nux": "^3.0.0",
    526                                 "@wordpress/token-list": "^1.0.2",
    527                                 "@wordpress/url": "^2.3.0",
    528                                 "@wordpress/viewport": "^2.0.11",
     522                                "@wordpress/keycodes": "^2.0.4",
     523                                "@wordpress/notices": "^1.1.0",
     524                                "@wordpress/nux": "^3.0.1",
     525                                "@wordpress/token-list": "^1.1.0",
     526                                "@wordpress/url": "^2.3.1",
     527                                "@wordpress/viewport": "^2.0.12",
    529528                                "@wordpress/wordcount": "^2.0.3",
    530529                                "classnames": "^2.2.5",
    531530                                "dom-scroll-into-view": "^1.2.1",
     
    597596                        }
    598597                },
    599598                "@wordpress/format-library": {
    600                         "version": "1.2.2",
    601                         "resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-1.2.2.tgz",
    602                         "integrity": "sha512-AvCfqy+eXk9M+usLKdtPafjgDRGLCrke0Jsh1IDB+oTIC1Ung3iGbwXFr9LrcRzjqQ9C5vA4ofGI5fFpUOP7bA==",
     599                        "version": "1.2.3",
     600                        "resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-1.2.3.tgz",
     601                        "integrity": "sha512-CW+Cvrb9WtA8PfbYRFvlDVJ6y3uEjblJKlkM0+pFZ/JfpkSrTgNFDi8zuQtMvZhXfq/cYB/p5/BvpST3R4LTkw==",
    603602                        "requires": {
    604603                                "@babel/runtime": "^7.0.0",
    605                                 "@wordpress/components": "^6.0.2",
    606                                 "@wordpress/dom": "^2.0.6",
    607                                 "@wordpress/editor": "^8.0.0",
     604                                "@wordpress/components": "^7.0.0",
     605                                "@wordpress/dom": "^2.0.7",
     606                                "@wordpress/editor": "^9.0.0",
    608607                                "@wordpress/element": "^2.1.8",
    609608                                "@wordpress/i18n": "^3.1.0",
    610                                 "@wordpress/keycodes": "^2.0.3",
    611                                 "@wordpress/rich-text": "^3.0.0",
    612                                 "@wordpress/url": "^2.3.0"
     609                                "@wordpress/keycodes": "^2.0.4",
     610                                "@wordpress/rich-text": "^3.0.1",
     611                                "@wordpress/url": "^2.3.1"
    613612                        }
    614613                },
    615614                "@wordpress/hooks": {
     
    657656                        }
    658657                },
    659658                "@wordpress/keycodes": {
    660                         "version": "2.0.3",
    661                         "resolved": "https://registry.npmjs.org/@wordpress/keycodes/-/keycodes-2.0.3.tgz",
    662                         "integrity": "sha512-cg4IHxz9BjRHBIhs/e0NwO/snImNqMQLZfduPf6Y+GGlq28BbQuxnucDj0ktYw/4X9jxf6IHzWUq9bkX65QGiA==",
     659                        "version": "2.0.4",
     660                        "resolved": "https://registry.npmjs.org/@wordpress/keycodes/-/keycodes-2.0.4.tgz",
     661                        "integrity": "sha512-cRpHxUNzeI/L+A3mVUCITzRhsczkKTotD3hQfkuZTAFBHi97k4bI1gAq8/yX+pCnfKMBfw91eM97vd9+ZYbmEQ==",
    663662                        "requires": {
    664663                                "@babel/runtime": "^7.0.0",
    665664                                "lodash": "^4.17.10"
     
    677676                        }
    678677                },
    679678                "@wordpress/list-reusable-blocks": {
    680                         "version": "1.1.12",
    681                         "resolved": "https://registry.npmjs.org/@wordpress/list-reusable-blocks/-/list-reusable-blocks-1.1.12.tgz",
    682                         "integrity": "sha512-12z10twim7R6nxgEfNOZ4MkfobyeORKzTaz3IF5aN0Fz7gq83Y+ppJehMfrZEZ2KvlBp7FEqv3E81h/XKtTGNA==",
     679                        "version": "1.1.13",
     680                        "resolved": "https://registry.npmjs.org/@wordpress/list-reusable-blocks/-/list-reusable-blocks-1.1.13.tgz",
     681                        "integrity": "sha512-83gyxVcyPB0OwqZfgzr+kEdViDVz6nS4aYuNjGF9rh02G5Gnf992FBWFeFLNDJ7sdQHsTrLDSEDkU6B0vbQNWQ==",
    683682                        "requires": {
    684683                                "@babel/runtime": "^7.0.0",
    685                                 "@wordpress/api-fetch": "^2.2.4",
    686                                 "@wordpress/components": "^6.0.2",
     684                                "@wordpress/api-fetch": "^2.2.5",
     685                                "@wordpress/components": "^7.0.0",
    687686                                "@wordpress/compose": "^3.0.0",
    688687                                "@wordpress/element": "^2.1.8",
    689688                                "@wordpress/i18n": "^3.1.0",
     
    691690                        }
    692691                },
    693692                "@wordpress/notices": {
    694                         "version": "1.0.5",
    695                         "resolved": "https://registry.npmjs.org/@wordpress/notices/-/notices-1.0.5.tgz",
    696                         "integrity": "sha512-Cg7WIM3Sk2FiNEWGd2lp+dAn8pPWBjNFrh+Q5ouokEDVy4VTIy0NZYwTm/+VNmmJsHZyfKhp29LU8YrW6VsNuw==",
     693                        "version": "1.1.0",
     694                        "resolved": "https://registry.npmjs.org/@wordpress/notices/-/notices-1.1.0.tgz",
     695                        "integrity": "sha512-dVbHKUq1xo4ecGy1j/cxbnRY1L/by+O4Xu+QBdrX5MPCOEU0TLak8k9PUS+nm13zFAJg4kzZip301Udb/OgoZg==",
    697696                        "requires": {
    698697                                "@babel/runtime": "^7.0.0",
    699698                                "@wordpress/a11y": "^2.0.2",
    700                                 "@wordpress/data": "^4.0.0",
     699                                "@wordpress/data": "^4.0.1",
    701700                                "lodash": "^4.17.10"
    702701                        }
    703702                },
    704703                "@wordpress/nux": {
    705                         "version": "3.0.0",
    706                         "resolved": "https://registry.npmjs.org/@wordpress/nux/-/nux-3.0.0.tgz",
    707                         "integrity": "sha512-O2Xn6arvgja4ciNhmE2Vgv5FtrtTXLqc4kU0LCm9okbILyvoEO53mIsU1sDjMklbzdoOimtAXJVIuow7BLLlvA==",
     704                        "version": "3.0.1",
     705                        "resolved": "https://registry.npmjs.org/@wordpress/nux/-/nux-3.0.1.tgz",
     706                        "integrity": "sha512-z+CkcYzKQVLyqJK8oOoD3Sv6fGLZXOA+MT+ogdvmol3ENsguUSNPYIn/sx3Zayd4+kUGnPfhBXzgkg+mFoTibw==",
    708707                        "requires": {
    709708                                "@babel/runtime": "^7.0.0",
    710                                 "@wordpress/components": "^6.0.2",
     709                                "@wordpress/components": "^7.0.0",
    711710                                "@wordpress/compose": "^3.0.0",
    712                                 "@wordpress/data": "^4.0.0",
     711                                "@wordpress/data": "^4.0.1",
    713712                                "@wordpress/element": "^2.1.8",
    714713                                "@wordpress/i18n": "^3.1.0",
    715714                                "lodash": "^4.17.10",
     
    739738                        }
    740739                },
    741740                "@wordpress/rich-text": {
    742                         "version": "3.0.0",
    743                         "resolved": "https://registry.npmjs.org/@wordpress/rich-text/-/rich-text-3.0.0.tgz",
    744                         "integrity": "sha512-T+FMlYbItXoMWCVRaQ7lp9fRG7P1gvekze86aK1O+/w2nlTL4Jee4zCCq6BGUtbzOInTQWz0j1R1BHNBxnXi/Q==",
     741                        "version": "3.0.1",
     742                        "resolved": "https://registry.npmjs.org/@wordpress/rich-text/-/rich-text-3.0.1.tgz",
     743                        "integrity": "sha512-MqxoYvg3lMHJpSlPTIQRrZ/GliBf7hE4SdwgKHrxUjiaCPx7bVIEh6YBjiJc5H0IwPfC5ciJ3fYuIftArmwgVg==",
    745744                        "requires": {
    746745                                "@babel/runtime": "^7.0.0",
    747                                 "@wordpress/data": "^4.0.0",
     746                                "@wordpress/compose": "^3.0.0",
     747                                "@wordpress/data": "^4.0.1",
    748748                                "@wordpress/escape-html": "^1.0.1",
    749749                                "lodash": "^4.17.10",
    750750                                "rememo": "^3.0.0"
     
    761761                        }
    762762                },
    763763                "@wordpress/token-list": {
    764                         "version": "1.0.2",
    765                         "resolved": "https://registry.npmjs.org/@wordpress/token-list/-/token-list-1.0.2.tgz",
    766                         "integrity": "sha512-hyk3xsLB1OlS52kFlR9PcSzvD6fkB2uOG4Uchs1pd304M/G3WTdD6iPiRVZeMmpWbwMq9KFtu9f8hwUzQTrTow==",
     764                        "version": "1.1.0",
     765                        "resolved": "https://registry.npmjs.org/@wordpress/token-list/-/token-list-1.1.0.tgz",
     766                        "integrity": "sha512-1InK0ic0syqUEyY3XkiDiZW9rJB/C/KZEzaOZjyzl/mwDR0npMiAouY3fTQ6qZSsMHjszhSl90yXz1I9M/DapA==",
    767767                        "requires": {
    768768                                "@babel/runtime": "^7.0.0",
    769769                                "lodash": "^4.17.10"
     
    770770                        }
    771771                },
    772772                "@wordpress/url": {
    773                         "version": "2.3.0",
    774                         "resolved": "https://registry.npmjs.org/@wordpress/url/-/url-2.3.0.tgz",
    775                         "integrity": "sha512-Uzl6RZnPZZHM67Z6Rs4lHgGY7dJO6OHjWrcw5/Pnoy/WQGDAg1vl5lfTbRXSNKsubOsbvB9IF8qTwVoPEl/ezA==",
     773                        "version": "2.3.1",
     774                        "resolved": "https://registry.npmjs.org/@wordpress/url/-/url-2.3.1.tgz",
     775                        "integrity": "sha512-Z4tCYMsW3DHOLnBXM7MK2kcuX26Pszpxjst8x5hzWmYa6zJRn8MA8Bd5RF++R1NwpWJZGk4m47rj6Q36zkr86g==",
    776776                        "requires": {
    777777                                "@babel/runtime": "^7.0.0",
    778778                                "qs": "^6.5.2"
     
    779779                        }
    780780                },
    781781                "@wordpress/viewport": {
    782                         "version": "2.0.11",
    783                         "resolved": "https://registry.npmjs.org/@wordpress/viewport/-/viewport-2.0.11.tgz",
    784                         "integrity": "sha512-PG6/RM3YhMl/0ZNclZnGUZtfuO1z4sXkaFyfGtzbSmwqBNl0w+cs7DvJkIO4B5qCTufx+2Svvm+X88Vnjn1zSg==",
     782                        "version": "2.0.12",
     783                        "resolved": "https://registry.npmjs.org/@wordpress/viewport/-/viewport-2.0.12.tgz",
     784                        "integrity": "sha512-W2M+RIbAlfIn7B8nQtR10SD5lLpLNu2bMXk18h5ToS8BhBwEK9dagjSh1i4nJplzNzZUB/JsaVXDRRCFymuT3A==",
    785785                        "requires": {
    786786                                "@babel/runtime": "^7.0.0",
    787787                                "@wordpress/compose": "^3.0.0",
    788                                 "@wordpress/data": "^4.0.0",
     788                                "@wordpress/data": "^4.0.1",
    789789                                "@wordpress/element": "^2.1.8",
    790790                                "lodash": "^4.17.10"
    791791                        }
     
    14741474                                },
    14751475                                "util": {
    14761476                                        "version": "0.10.3",
    1477                                         "resolved": "http://registry.npmjs.org/util/-/util-0.10.3.tgz",
     1477                                        "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz",
    14781478                                        "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=",
    14791479                                        "dev": true,
    14801480                                        "requires": {
     
    24502450                },
    24512451                "browserify-rsa": {
    24522452                        "version": "4.0.1",
    2453                         "resolved": "http://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz",
     2453                        "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz",
    24542454                        "integrity": "sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ=",
    24552455                        "dev": true,
    24562456                        "requires": {
     
    27472747                },
    27482748                "chalk": {
    27492749                        "version": "1.1.3",
    2750                         "resolved": "http://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
     2750                        "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
    27512751                        "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
    27522752                        "requires": {
    27532753                                "ansi-styles": "^2.2.1",
     
    45424542                },
    45434543                "events": {
    45444544                        "version": "1.1.1",
    4545                         "resolved": "http://registry.npmjs.org/events/-/events-1.1.1.tgz",
     4545                        "resolved": "https://registry.npmjs.org/events/-/events-1.1.1.tgz",
    45464546                        "integrity": "sha1-nr23Y1rQmccNzEwqH1AEKI6L2SQ=",
    45474547                        "dev": true
    45484548                },
     
    58155815                },
    58165816                "gettext-parser": {
    58175817                        "version": "1.4.0",
    5818                         "resolved": "http://registry.npmjs.org/gettext-parser/-/gettext-parser-1.4.0.tgz",
     5818                        "resolved": "https://registry.npmjs.org/gettext-parser/-/gettext-parser-1.4.0.tgz",
    58195819                        "integrity": "sha512-sedZYLHlHeBop/gZ1jdg59hlUEcpcZJofLq2JFwJT1zTqAU3l2wFv6IsuwFHGqbiT9DWzMUW4/em2+hspnmMMA==",
    58205820                        "requires": {
    58215821                                "encoding": "^0.1.12",
     
    1019210192                },
    1019310193                "onetime": {
    1019410194                        "version": "1.1.0",
    10195                         "resolved": "http://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz",
     10195                        "resolved": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz",
    1019610196                        "integrity": "sha1-ofeDj4MUxRbwXs78vEzP4EtO14k=",
    1019710197                        "dev": true
    1019810198                },
     
    1061410614                        "dependencies": {
    1061510615                                "async": {
    1061610616                                        "version": "1.5.2",
    10617                                         "resolved": "http://registry.npmjs.org/async/-/async-1.5.2.tgz",
     10617                                        "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz",
    1061810618                                        "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=",
    1061910619                                        "dev": true
    1062010620                                }
     
    1132011320                        }
    1132111321                },
    1132211322                "re-resizable": {
    11323                         "version": "4.9.3",
    11324                         "resolved": "https://registry.npmjs.org/re-resizable/-/re-resizable-4.9.3.tgz",
    11325                         "integrity": "sha512-JKzmZdUAYWs85YErkmZNB7hjGR9qUOHFUZUtEplZlEZBFHRguiWck5J+HFTy/NjlMJtqQsYPQq57nQAO2BuRRg=="
     11323                        "version": "4.10.0",
     11324                        "resolved": "https://registry.npmjs.org/re-resizable/-/re-resizable-4.10.0.tgz",
     11325                        "integrity": "sha512-g5Q5IswKX7LM+MtYFnuzaQrTEGr/kpserqGV8V6HYkjwbV60XnJv00VlKugLHEwlQ5pgrV08spm0TjyyYVbWmQ=="
    1132611326                },
    1132711327                "react": {
    1132811328                        "version": "16.6.3",
     
    1195911959                },
    1196011960                "regjsgen": {
    1196111961                        "version": "0.2.0",
    11962                         "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.2.0.tgz",
     11962                        "resolved": "http://registry.npmjs.org/regjsgen/-/regjsgen-0.2.0.tgz",
    1196311963                        "integrity": "sha1-bAFq3qxVT3WCP+N6wFuS1aTtsfc="
    1196411964                },
    1196511965                "regjsparser": {
  • package.json

     
    5151        "dependencies": {
    5252                "@babel/polyfill": "^7.0.0",
    5353                "@wordpress/a11y": "^2.0.2",
    54                 "@wordpress/annotations": "^1.0.1",
    55                 "@wordpress/api-fetch": "^2.2.4",
     54                "@wordpress/annotations": "^1.0.2",
     55                "@wordpress/api-fetch": "^2.2.5",
    5656                "@wordpress/autop": "^2.0.2",
    5757                "@wordpress/blob": "^2.1.0",
    58                 "@wordpress/block-library": "^2.2.4",
     58                "@wordpress/block-library": "^2.2.5",
    5959                "@wordpress/block-serialization-default-parser": "^2.0.0",
    60                 "@wordpress/blocks": "^6.0.0",
    61                 "@wordpress/components": "^6.0.2",
     60                "@wordpress/blocks": "^6.0.1",
     61                "@wordpress/components": "^7.0.0",
    6262                "@wordpress/compose": "^3.0.0",
    63                 "@wordpress/core-data": "^2.0.13",
    64                 "@wordpress/data": "^4.0.0",
     63                "@wordpress/core-data": "^2.0.14",
     64                "@wordpress/data": "^4.0.1",
    6565                "@wordpress/date": "^3.0.0",
    6666                "@wordpress/deprecated": "^2.0.3",
    67                 "@wordpress/dom": "^2.0.6",
     67                "@wordpress/dom": "^2.0.7",
    6868                "@wordpress/dom-ready": "^2.0.2",
    69                 "@wordpress/edit-post": "^3.0.2",
    70                 "@wordpress/editor": "^8.0.0",
     69                "@wordpress/edit-post": "^3.1.0",
     70                "@wordpress/editor": "^9.0.0",
    7171                "@wordpress/element": "^2.1.8",
    7272                "@wordpress/escape-html": "^1.0.1",
    73                 "@wordpress/format-library": "^1.2.2",
     73                "@wordpress/format-library": "^1.2.3",
    7474                "@wordpress/hooks": "^2.0.3",
    7575                "@wordpress/html-entities": "^2.0.2",
    7676                "@wordpress/i18n": "^3.1.0",
    7777                "@wordpress/is-shallow-equal": "^1.1.4",
    78                 "@wordpress/keycodes": "^2.0.3",
    79                 "@wordpress/list-reusable-blocks": "^1.1.12",
    80                 "@wordpress/notices": "^1.0.5",
    81                 "@wordpress/nux": "^3.0.0",
     78                "@wordpress/keycodes": "^2.0.4",
     79                "@wordpress/list-reusable-blocks": "^1.1.13",
     80                "@wordpress/notices": "^1.1.0",
     81                "@wordpress/nux": "^3.0.1",
    8282                "@wordpress/plugins": "^2.0.9",
    8383                "@wordpress/redux-routine": "^3.0.3",
    84                 "@wordpress/rich-text": "^3.0.0",
     84                "@wordpress/rich-text": "^3.0.1",
    8585                "@wordpress/shortcode": "^2.0.2",
    86                 "@wordpress/token-list": "^1.0.2",
    87                 "@wordpress/url": "^2.3.0",
    88                 "@wordpress/viewport": "^2.0.11",
     86                "@wordpress/token-list": "^1.1.0",
     87                "@wordpress/url": "^2.3.1",
     88                "@wordpress/viewport": "^2.0.12",
    8989                "@wordpress/wordcount": "^2.0.3",
    9090                "element-closest": "^2.0.2",
    9191                "formdata-polyfill": "^3.0.12",
  • src/wp-admin/edit-form-blocks.php

     
    177177                ),
    178178        ),
    179179);
     180
     181/*
     182 * Set a locale specific default font.
     183 * Translators: Use this to specify the CSS font family for the default font
     184 */
     185$locale_font_family = esc_html_x( 'Noto Serif', 'CSS Font Family for Editor Font' );
     186$styles[]           = array(
     187        'css' => "body { font-family: '$locale_font_family' }",
     188);
     189
    180190if ( $editor_styles && current_theme_supports( 'editor-styles' ) ) {
    181191        foreach ( $editor_styles as $style ) {
    182192                if ( preg_match( '~^(https?:)?//~', $style ) ) {
  • src/wp-includes/blocks/archives.php

     
    3232                $class .= ' wp-block-archives-dropdown';
    3333
    3434                $dropdown_id = esc_attr( uniqid( 'wp-block-archives-' ) );
    35                 $title       = __( 'Archives', 'gutenberg' );
     35                $title       = __( 'Archives', 'default' );
    3636
    3737                /** This filter is documented in wp-includes/widgets/class-wp-widget-archives.php */
    3838                $dropdown_args = apply_filters(
     
    5050
    5151                switch ( $dropdown_args['type'] ) {
    5252                        case 'yearly':
    53                                 $label = __( 'Select Year', 'gutenberg' );
     53                                $label = __( 'Select Year', 'default' );
    5454                                break;
    5555                        case 'monthly':
    56                                 $label = __( 'Select Month', 'gutenberg' );
     56                                $label = __( 'Select Month', 'default' );
    5757                                break;
    5858                        case 'daily':
    59                                 $label = __( 'Select Day', 'gutenberg' );
     59                                $label = __( 'Select Day', 'default' );
    6060                                break;
    6161                        case 'weekly':
    62                                 $label = __( 'Select Week', 'gutenberg' );
     62                                $label = __( 'Select Week', 'default' );
    6363                                break;
    6464                        default:
    65                                 $label = __( 'Select Post', 'gutenberg' );
     65                                $label = __( 'Select Post', 'default' );
    6666                                break;
    6767                }
    6868
     
    101101                        $block_content = sprintf(
    102102                                '<div class="%1$s">%2$s</div>',
    103103                                $classnames,
    104                                 __( 'No archives to show.', 'gutenberg' )
     104                                __( 'No archives to show.', 'default' )
    105105                        );
    106106                } else {
    107107
  • src/wp-includes/blocks/categories.php

     
    2727        if ( ! empty( $attributes['displayAsDropdown'] ) ) {
    2828                $id                       = 'wp-block-categories-' . $block_id;
    2929                $args['id']               = $id;
    30                 $args['show_option_none'] = __( 'Select Category', 'gutenberg' );
     30                $args['show_option_none'] = __( 'Select Category', 'default' );
    3131                $wrapper_markup           = '<div class="%1$s">%2$s</div>';
    3232                $items_markup             = wp_dropdown_categories( $args );
    3333                $type                     = 'dropdown';
  • src/wp-includes/blocks/latest-comments.php

     
    2929        function gutenberg_draft_or_post_title( $post = 0 ) {
    3030                $title = get_the_title( $post );
    3131                if ( empty( $title ) ) {
    32                         $title = __( '(no title)', 'gutenberg' );
     32                        $title = __( '(no title)', 'default' );
    3333                }
    3434                return esc_html( $title );
    3535        }
     
    9898
    9999                        $list_items_markup .= sprintf(
    100100                                /* translators: 1: author name (inside <a> or <span> tag, based on if they have a URL), 2: post title related to this comment */
    101                                 __( '%1$s on %2$s', 'gutenberg' ),
     101                                __( '%1$s on %2$s', 'default' ),
    102102                                $author_markup,
    103103                                $post_title
    104104                        );
     
    143143        ) : sprintf(
    144144                '<div class="%1$s">%2$s</div>',
    145145                $classnames,
    146                 __( 'No comments to show.', 'gutenberg' )
     146                __( 'No comments to show.', 'default' )
    147147        );
    148148
    149149        return $block_content;
  • src/wp-includes/blocks/latest-posts.php

     
    3030
    3131                $title = get_the_title( $post_id );
    3232                if ( ! $title ) {
    33                         $title = __( '(Untitled)', 'gutenberg' );
     33                        $title = __( '(Untitled)', 'default' );
    3434                }
    3535                $list_items_markup .= sprintf(
    3636                        '<li><a href="%1$s">%2$s</a>',
  • src/wp-includes/class-wp-block-type.php

     
    123123
    124124        /**
    125125         * Validates attributes against the current block schema, populating
    126          * defaulted and missing values, and omitting unknown attributes.
     126         * defaulted and missing values.
    127127         *
    128128         * @since 5.0.0
    129129         *
     
    131131         * @return array             Prepared block attributes.
    132132         */
    133133        public function prepare_attributes_for_render( $attributes ) {
     134                // If there are no attribute definitions for the block type, skip
     135                // processing and return vebatim.
    134136                if ( ! isset( $this->attributes ) ) {
    135137                        return $attributes;
    136138                }
    137139
    138                 $prepared_attributes = array();
     140                foreach ( $attributes as $attribute_name => $value ) {
     141                        // If the attribute is not defined by the block type, it cannot be
     142                        // validated.
     143                        if ( ! isset( $this->attributes[ $attribute_name ] ) ) {
     144                                continue;
     145                        }
    139146
    140                 foreach ( $this->attributes as $attribute_name => $schema ) {
    141                         $value = null;
     147                        $schema = $this->attributes[ $attribute_name ];
    142148
    143                         if ( isset( $attributes[ $attribute_name ] ) ) {
    144                                 $is_valid = rest_validate_value_from_schema( $attributes[ $attribute_name ], $schema );
    145                                 if ( ! is_wp_error( $is_valid ) ) {
    146                                         $value = rest_sanitize_value_from_schema( $attributes[ $attribute_name ], $schema );
    147                                 }
     149                        // Validate value by JSON schema. An invalid value should revert to
     150                        // its default, if one exists. This occurs by virtue of the missing
     151                        // attributes loop immediately following. If there is not a default
     152                        // assigned, the attribute value should remain unset.
     153                        $is_valid = rest_validate_value_from_schema( $value, $schema );
     154                        if ( is_wp_error( $is_valid ) ) {
     155                                unset( $attributes[ $attribute_name ] );
    148156                        }
     157                }
    149158
    150                         if ( is_null( $value ) && isset( $schema['default'] ) ) {
    151                                 $value = $schema['default'];
     159                // Populate values of any missing attributes for which the block type
     160                // defines a default.
     161                $missing_schema_attributes = array_diff_key( $this->attributes, $attributes );
     162                foreach ( $missing_schema_attributes as $attribute_name => $schema ) {
     163                        if ( isset( $schema['default'] ) ) {
     164                                $attributes[ $attribute_name ] = $schema['default'];
    152165                        }
    153 
    154                         $prepared_attributes[ $attribute_name ] = $value;
    155166                }
    156167
    157                 return $prepared_attributes;
     168                return $attributes;
    158169        }
    159170
    160171        /**
  • src/wp-includes/rest-api/endpoints/class-wp-rest-block-renderer-controller.php

     
    6161                                                                'type'                 => 'object',
    6262                                                                'additionalProperties' => false,
    6363                                                                'properties'           => $block_type->get_attributes(),
     64                                                                'default'              => array(),
    6465                                                        ),
    6566                                                        'post_id'    => array(
    6667                                                                'description' => __( 'ID of the post context.' ),
  • src/wp-includes/rest-api/endpoints/class-wp-rest-blocks-controller.php

     
    3636
    3737                return parent::check_read_permission( $post );
    3838        }
     39
     40        /**
     41         * Filters a response based on the context defined in the schema.
     42         *
     43         * @since 5.0.0
     44         *
     45         * @param array  $data    Response data to fiter.
     46         * @param string $context Context defined in the schema.
     47         * @return array Filtered response.
     48         */
     49        public function filter_response_by_context( $data, $context ) {
     50                $data = parent::filter_response_by_context( $data, $context );
     51
     52                /*
     53                 * Remove `title.rendered` and `content.rendered` from the response. It
     54                 * doesn't make sense for a reusable block to have rendered content on its
     55                 * own, since rendering a block requires it to be inside a post or a page.
     56                 */
     57                unset( $data['title']['rendered'] );
     58                unset( $data['content']['rendered'] );
     59
     60                return $data;
     61        }
     62
     63        /**
     64         * Retrieves the block's schema, conforming to JSON Schema.
     65         *
     66         * @since 5.0.0
     67         *
     68         * @return array Item schema data.
     69         */
     70        public function get_item_schema() {
     71                $schema = parent::get_item_schema();
     72
     73                /*
     74                 * Allow all contexts to access `title.raw` and `content.raw`. Clients always
     75                 * need the raw markup of a reusable block to do anything useful, e.g. parse
     76                 * it or display it in an editor.
     77                 */
     78                $schema['properties']['title']['properties']['raw']['context']   = array( 'view', 'edit' );
     79                $schema['properties']['content']['properties']['raw']['context'] = array( 'view', 'edit' );
     80
     81                /*
     82                 * Remove `title.rendered` and `content.rendered` from the schema. It doesn’t
     83                 * make sense for a reusable block to have rendered content on its own, since
     84                 * rendering a block requires it to be inside a post or a page.
     85                 */
     86                unset( $schema['properties']['title']['properties']['rendered'] );
     87                unset( $schema['properties']['content']['properties']['rendered'] );
     88
     89                return $schema;
     90        }
     91
    3992}
  • src/wp-includes/script-loader.php

     
    7474 * @param WP_Scripts $scripts WP_Scripts object.
    7575 */
    7676function wp_default_packages_vendor( &$scripts ) {
     77        global $wp_locale;
     78
    7779        $dev_suffix = wp_scripts_get_suffix( 'dev' );
    7880
    7981        $vendor_scripts = array(
     
    100102        }
    101103
    102104        $scripts->add( 'wp-polyfill', null, array( 'wp-polyfill' ) );
    103         did_action( 'init' ) && $scripts->add_data(
     105        did_action( 'init' ) && $scripts->add_inline_script(
    104106                'wp-polyfill',
    105                 'data',
    106107                wp_get_script_polyfill(
    107108                        $scripts,
    108109                        array(
     
    110111                                'document.contains'   => 'wp-polyfill-node-contains',
    111112                                'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata',
    112113                                'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest',
    113                         )
     114                        ),
     115                        'after'
    114116                )
    115117        );
    116118
    117119        did_action( 'init' ) && $scripts->add_inline_script( 'lodash', 'window.lodash = _.noConflict();' );
     120
     121        did_action( 'init' ) && $scripts->add_inline_script(
     122                'moment',
     123                sprintf(
     124                        "moment.locale( '%s', %s );",
     125                        get_user_locale(),
     126                        wp_json_encode(
     127                                array(
     128                                        'months'         => array_values( $wp_locale->month ),
     129                                        'monthsShort'    => array_values( $wp_locale->month_abbrev ),
     130                                        'weekdays'       => array_values( $wp_locale->weekday ),
     131                                        'weekdaysShort'  => array_values( $wp_locale->weekday_abbrev ),
     132                                        'week'           => array(
     133                                                'dow' => (int) get_option( 'start_of_week', 0 ),
     134                                        ),
     135                                        'longDateFormat' => array(
     136                                                'LT'   => get_option( 'time_format', __( 'g:i a', 'default' ) ),
     137                                                'LTS'  => null,
     138                                                'L'    => null,
     139                                                'LL'   => get_option( 'date_format', __( 'F j, Y', 'default' ) ),
     140                                                'LLL'  => __( 'F j, Y g:i a', 'default' ),
     141                                                'LLLL' => null,
     142                                        ),
     143                                )
     144                        )
     145                ),
     146                'after'
     147        );
    118148}
    119149
    120150/**
     
    221251                        'wp-a11y',
    222252                        'wp-api-fetch',
    223253                        'wp-compose',
    224                         'wp-deprecated',
    225254                        'wp-dom',
    226255                        'wp-element',
    227256                        'wp-hooks',
     
    272301                        'wp-embed',
    273302                        'wp-i18n',
    274303                        'wp-keycodes',
     304                        'wp-notices',
    275305                        'wp-nux',
    276306                        'wp-plugins',
    277307                        'wp-polyfill',
     
    344374                ),
    345375                'nux' => array(
    346376                        'wp-element',
     377                        'lodash',
    347378                        'wp-components',
    348379                        'wp-compose',
    349380                        'wp-data',
     
    355386                'redux-routine' => array( 'wp-polyfill' ),
    356387                'rich-text' => array(
    357388                        'lodash',
    358                         'wp-blocks',
    359389                        'wp-data',
    360390                        'wp-escape-html',
    361391                        'wp-polyfill',
     
    533563                'wp_more',
    534564                'spellchecker',
    535565                'wp_add_media',
    536                 'wp_adv',
     566                'wp_adv', // FIXME found as 'kitchensink' in Gutenberg
    537567        );
    538568
    539569        /* This filter is documented in wp-includes/class-wp-editor.php */
     
    16671697        $fonts_url = '';
    16681698
    16691699        /*
    1670          * Translators: If there are characters in your language that are not supported
    1671          * by Noto Serif, translate this to 'off'. Do not translate into your own language.
     1700         * Translators: Use this to specify the proper Google Font name and variants
     1701         * to load that is supported by your language. Do not translate.
     1702         * Set to 'off' to disable loading.
    16721703         */
    1673         if ( 'off' !== _x( 'on', 'Noto Serif font: on or off' ) ) {
    1674                 $fonts_url = 'https://fonts.googleapis.com/css?family=Noto+Serif%3A400%2C400i%2C700%2C700i';
     1704        $font_family = _x( 'Noto Serif:400,400i,700,700i', 'Google Font Name and Variants' );
     1705        if ( 'off' !== $font_family ) {
     1706                $query_args = array(
     1707                        'family' => urlencode( $font_family ),
     1708                );
     1709                $fonts_url  = esc_url_raw( add_query_arg( $query_args, 'https://fonts.googleapis.com/css' ) );
    16751710        }
    16761711        $styles->add( 'wp-editor-font', $fonts_url );
    16771712
  • tests/phpunit/tests/blocks/block-type.php

     
    168168                        'wrongType'          => 5,
    169169                        'wrongTypeDefaulted' => 5,
    170170                        /* missingDefaulted */
    171                         'undefined'          => 'omit',
     171                        'undefined'          => 'include',
     172                        'intendedNull'       => null,
    172173                );
    173174
    174175                $block_type = new WP_Block_Type(
     
    189190                                                'type'    => 'string',
    190191                                                'default' => 'define',
    191192                                        ),
     193                                        'intendedNull'       => array(
     194                                                'type'    => array( 'string', 'null' ),
     195                                                'default' => 'wrong',
     196                                        ),
    192197                                ),
    193198                        )
    194199                );
     
    198203                $this->assertEquals(
    199204                        array(
    200205                                'correct'            => 'include',
    201                                 'wrongType'          => null,
     206                                /* wrongType */
    202207                                'wrongTypeDefaulted' => 'defaulted',
    203208                                'missingDefaulted'   => 'define',
     209                                'undefined'          => 'include',
     210                                'intendedNull'       => null,
    204211                        ),
    205212                        $prepared_attributes
    206213                );
     
    207214        }
    208215
    209216        /**
     217         * @ticket 45145
     218         */
     219        function test_prepare_attributes_none_defined() {
     220                $attributes = array( 'exists' => 'keep' );
     221
     222                $block_type = new WP_Block_Type( 'core/dummy', array() );
     223
     224                $prepared_attributes = $block_type->prepare_attributes_for_render( $attributes );
     225
     226                $this->assertEquals( $attributes, $prepared_attributes );
     227        }
     228
     229        /**
    210230         * @ticket 45097
    211231         */
    212232        public function test_has_block_with_mixed_content() {
  • tests/phpunit/tests/rest-api/rest-block-renderer-controller.php

     
    319319                $block_type = WP_Block_Type_Registry::get_instance()->get_registered( self::$block_name );
    320320                $defaults   = array();
    321321                foreach ( $block_type->attributes as $key => $attribute ) {
    322                         $defaults[ $key ] = isset( $attribute['default'] ) ? $attribute['default'] : null;
     322                        if ( isset( $attribute['default'] ) ) {
     323                                $defaults[ $key ] = $attribute['default'];
     324                        }
    323325                }
    324326
    325327                $request = new WP_REST_Request( 'GET', self::$rest_api_route . self::$block_name );
  • tests/phpunit/tests/rest-api/rest-blocks-controller.php

     
    2929        protected static $post_id;
    3030
    3131        /**
    32          * Our fake user's ID.
     32         * Our fake user IDs, keyed by their role.
    3333         *
    3434         * @since 5.0.0
    3535         *
    36          * @var int
     36         * @var array
    3737         */
    38         protected static $user_id;
     38        protected static $user_ids;
    3939
    4040        /**
    4141         * Create fake data before our tests run.
     
    5050                                'post_type'    => 'wp_block',
    5151                                'post_status'  => 'publish',
    5252                                'post_title'   => 'My cool block',
    53                                 'post_content' => '<!-- wp:core/paragraph --><p>Hello!</p><!-- /wp:core/paragraph -->',
     53                                'post_content' => '<!-- wp:paragraph --><p>Hello!</p><!-- /wp:paragraph -->',
    5454                        )
    5555                );
    5656
    57                 self::$user_id = $factory->user->create(
    58                         array(
    59                                 'role' => 'editor',
    60                         )
     57                self::$user_ids = array(
     58                        'editor'      => $factory->user->create( array( 'role' => 'editor' ) ),
     59                        'author'      => $factory->user->create( array( 'role' => 'author' ) ),
     60                        'contributor' => $factory->user->create( array( 'role' => 'contributor' ) ),
    6161                );
    6262        }
    6363
     
    6969        public static function wpTearDownAfterClass() {
    7070                wp_delete_post( self::$post_id );
    7171
    72                 self::delete_user( self::$user_id );
     72                foreach ( self::$user_ids as $user_id ) {
     73                        self::delete_user( $user_id );
     74                }
    7375        }
    7476
    7577        /**
     
    114116         */
    115117        public function test_capabilities( $action, $role, $expected_status ) {
    116118                if ( $role ) {
    117                         $user_id = $this->factory->user->create( array( 'role' => $role ) );
     119                        $user_id = self::$user_ids[ $role ];
    118120                        wp_set_current_user( $user_id );
    119121                } else {
    120122                        wp_set_current_user( 0 );
     
    126128                                $request->set_body_params(
    127129                                        array(
    128130                                                'title'   => 'Test',
    129                                                 'content' => '<!-- wp:core/paragraph --><p>Test</p><!-- /wp:core/paragraph -->',
     131                                                'content' => '<!-- wp:paragraph --><p>Test</p><!-- /wp:paragraph -->',
    130132                                        )
    131133                                );
    132134
     
    149151                                                'post_type'    => 'wp_block',
    150152                                                'post_status'  => 'publish',
    151153                                                'post_title'   => 'My cool block',
    152                                                 'post_content' => '<!-- wp:core/paragraph --><p>Hello!</p><!-- /wp:core/paragraph -->',
     154                                                'post_content' => '<!-- wp:paragraph --><p>Hello!</p><!-- /wp:paragraph -->',
    153155                                                'post_author'  => $user_id,
    154156                                        )
    155157                                );
     
    158160                                $request->set_body_params(
    159161                                        array(
    160162                                                'title'   => 'Test',
    161                                                 'content' => '<!-- wp:core/paragraph --><p>Test</p><!-- /wp:core/paragraph -->',
     163                                                'content' => '<!-- wp:paragraph --><p>Test</p><!-- /wp:paragraph -->',
    162164                                        )
    163165                                );
    164166
     
    179181                                $request->set_body_params(
    180182                                        array(
    181183                                                'title'   => 'Test',
    182                                                 'content' => '<!-- wp:core/paragraph --><p>Test</p><!-- /wp:core/paragraph -->',
     184                                                'content' => '<!-- wp:paragraph --><p>Test</p><!-- /wp:paragraph -->',
    183185                                        )
    184186                                );
    185187
     
    196198                        default:
    197199                                $this->fail( "'$action' is not a valid action." );
    198200                }
     201        }
    199202
    200                 if ( isset( $user_id ) ) {
    201                         self::delete_user( $user_id );
    202                 }
     203        /**
     204         * Check that the raw title and content of a block can be accessed when there
     205         * is no set schema, and that the rendered content of a block is not included
     206         * in the response.
     207         */
     208        public function test_content() {
     209                wp_set_current_user( self::$user_ids['author'] );
     210
     211                $request  = new WP_REST_Request( 'GET', '/wp/v2/blocks/' . self::$post_id );
     212                $response = rest_get_server()->dispatch( $request );
     213                $data     = $response->get_data();
     214
     215                $this->assertEquals(
     216                        array(
     217                                'raw' => 'My cool block',
     218                        ),
     219                        $data['title']
     220                );
     221                $this->assertEquals(
     222                        array(
     223                                'raw'       => '<!-- wp:paragraph --><p>Hello!</p><!-- /wp:paragraph -->',
     224                                'protected' => false,
     225                        ),
     226                        $data['content']
     227                );
    203228        }
    204229}
  • tests/qunit/fixtures/wp-api-generated.js

     
    43144314                        },
    43154315                        "attributes": {
    43164316                            "required": false,
     4317                            "default": [],
    43174318                            "description": "Attributes for core/block block",
    43184319                            "type": "object"
    43194320                        },
     
    43534354                        },
    43544355                        "attributes": {
    43554356                            "required": false,
     4357                            "default": [],
    43564358                            "description": "Attributes for core/latest-comments block",
    43574359                            "type": "object"
    43584360                        },
     
    43924394                        },
    43934395                        "attributes": {
    43944396                            "required": false,
     4397                            "default": [],
    43954398                            "description": "Attributes for core/archives block",
    43964399                            "type": "object"
    43974400                        },
     
    44314434                        },
    44324435                        "attributes": {
    44334436                            "required": false,
     4437                            "default": [],
    44344438                            "description": "Attributes for core/categories block",
    44354439                            "type": "object"
    44364440                        },
     
    44704474                        },
    44714475                        "attributes": {
    44724476                            "required": false,
     4477                            "default": [],
    44734478                            "description": "Attributes for core/latest-posts block",
    44744479                            "type": "object"
    44754480                        },
     
    45094514                        },
    45104515                        "attributes": {
    45114516                            "required": false,
     4517                            "default": [],
    45124518                            "description": "Attributes for core/shortcode block",
    45134519                            "type": "object"
    45144520                        },
  • tools/webpack/packages.js

     
    225225                                'deprecated',
    226226                                'dom-ready',
    227227                                'redux-routine',
     228                                'token-list',
    228229                        ].map( camelCaseDash ) ),
    229230                        new CustomTemplatedPathPlugin( {
    230231                                basename( path, data ) {