Ticket #45145: updated-package-updates.patch
File updated-package-updates.patch, 44.5 KB (added by , 6 years ago) |
---|
-
package-lock.json
237 237 } 238 238 }, 239 239 "@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.3", 241 "resolved": "https://registry.npmjs.org/@wordpress/annotations/-/annotations-1.0.3.tgz", 242 "integrity": "sha512-/3KGSkugdKfFOsTqha0G3/ig5ZBrRp00ByUMDF8jy6LiMwYXmxFNxwuNJi/jgYh0s+IZtLDtUUUlzpEXlwRKhw==", 243 243 "requires": { 244 244 "@babel/runtime": "^7.0.0", 245 "@wordpress/data": "^4.0. 0",245 "@wordpress/data": "^4.0.1", 246 246 "@wordpress/hooks": "^2.0.3", 247 247 "@wordpress/i18n": "^3.1.0", 248 "@wordpress/rich-text": "^3.0. 0",248 "@wordpress/rich-text": "^3.0.2", 249 249 "lodash": "^4.17.10", 250 "memize": "^1.0.5", 250 251 "rememo": "^3.0.0", 251 252 "uuid": "^3.3.2" 252 253 } 253 254 }, 254 255 "@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==",256 "version": "2.2.5", 257 "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-2.2.5.tgz", 258 "integrity": "sha512-/59udJQAG5ynrA7j/E6mBhl0gv1MXpBDiuMhY7TBOdgNYIdltrcBbI2PF0r42EGPRtm+rOzBKrEM7WDkWTCkvA==", 258 259 "requires": { 259 260 "@babel/runtime": "^7.0.0", 260 261 "@wordpress/hooks": "^2.0.3", 261 262 "@wordpress/i18n": "^3.1.0", 262 "@wordpress/url": "^2.3. 0"263 "@wordpress/url": "^2.3.1" 263 264 } 264 265 }, 265 266 "@wordpress/autop": { … … 279 280 } 280 281 }, 281 282 "@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==",283 "version": "2.2.6", 284 "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-2.2.6.tgz", 285 "integrity": "sha512-HCRqGzGqeU36tUp26ml+2o8SXCB/gkvzJyeIKX4IGHKjONjxZim/0ht7KoyCEjup/cxNNP8NZ6BQaI3oi6P6JA==", 285 286 "requires": { 286 287 "@babel/runtime": "^7.0.0", 287 288 "@wordpress/autop": "^2.0.2", 288 289 "@wordpress/blob": "^2.1.0", 289 "@wordpress/blocks": "^6.0. 0",290 "@wordpress/components": "^ 6.0.2",290 "@wordpress/blocks": "^6.0.2", 291 "@wordpress/components": "^7.0.1", 291 292 "@wordpress/compose": "^3.0.0", 292 "@wordpress/core-data": "^2.0.1 3",293 "@wordpress/data": "^4.0. 0",293 "@wordpress/core-data": "^2.0.14", 294 "@wordpress/data": "^4.0.1", 294 295 "@wordpress/deprecated": "^2.0.3", 295 "@wordpress/editor": "^ 8.0.0",296 "@wordpress/editor": "^9.0.1", 296 297 "@wordpress/element": "^2.1.8", 297 "@wordpress/html-entities": "^2.0. 2",298 "@wordpress/html-entities": "^2.0.3", 298 299 "@wordpress/i18n": "^3.1.0", 299 "@wordpress/keycodes": "^2.0. 3",300 "@wordpress/viewport": "^2.0.1 1",300 "@wordpress/keycodes": "^2.0.5", 301 "@wordpress/viewport": "^2.0.12", 301 302 "classnames": "^2.2.5", 302 303 "lodash": "^4.17.10", 303 304 "memize": "^1.0.5", … … 321 322 "integrity": "sha512-l5N0o2Tkc4IcDhhMfX2W3KuEV/4F7TeitJEDtBpLYf7eRMIn3Uh6l5rPDmmuTDv7UFlMWTiA8z/oCpl13ZyBOw==" 322 323 }, 323 324 "@wordpress/blocks": { 324 "version": "6.0. 0",325 "resolved": "https://registry.npmjs.org/@wordpress/blocks/-/blocks-6.0. 0.tgz",326 "integrity": "sha512- mVRY8VptqIRuGWJRhm7B5BjBJRUKvmIViljUG0mAD3mAcFR9PKNADabbEGSSoH3clUOkUBqLRLzDceQuWOsaYw==",325 "version": "6.0.2", 326 "resolved": "https://registry.npmjs.org/@wordpress/blocks/-/blocks-6.0.2.tgz", 327 "integrity": "sha512-Y9cIbxXnATT6NPBbT969awm/5iLL/fRYoQ2a0xoqqHdcI8kxPbMv2TdAE8RaM8eeYL17t6CmWdfP+jkAIVGMGg==", 327 328 "requires": { 328 329 "@babel/runtime": "^7.0.0", 329 330 "@wordpress/autop": "^2.0.2", … … 330 331 "@wordpress/blob": "^2.1.0", 331 332 "@wordpress/block-serialization-default-parser": "^2.0.0", 332 333 "@wordpress/block-serialization-spec-parser": "^2.0.0", 333 "@wordpress/data": "^4.0. 0",334 "@wordpress/dom": "^2.0. 6",334 "@wordpress/data": "^4.0.1", 335 "@wordpress/dom": "^2.0.7", 335 336 "@wordpress/element": "^2.1.8", 336 337 "@wordpress/hooks": "^2.0.3", 337 "@wordpress/html-entities": "^2.0. 2",338 "@wordpress/html-entities": "^2.0.3", 338 339 "@wordpress/i18n": "^3.1.0", 339 340 "@wordpress/is-shallow-equal": "^1.1.4", 340 341 "@wordpress/shortcode": "^2.0.2", … … 348 349 } 349 350 }, 350 351 "@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==",352 "version": "7.0.1", 353 "resolved": "https://registry.npmjs.org/@wordpress/components/-/components-7.0.1.tgz", 354 "integrity": "sha512-6Efciw+CwFa0b51bLZUNWv0C2p5j8VIVb6vAHB/ghwD0BkNHZ0N4JBafOIB+6toAtmLzC+SONfHNmFNJHibZ+Q==", 354 355 "requires": { 355 356 "@babel/runtime": "^7.0.0", 356 357 "@wordpress/a11y": "^2.0.2", 357 "@wordpress/api-fetch": "^2.2. 4",358 "@wordpress/api-fetch": "^2.2.5", 358 359 "@wordpress/compose": "^3.0.0", 359 "@wordpress/deprecated": "^2.0.3", 360 "@wordpress/dom": "^2.0.6", 360 "@wordpress/dom": "^2.0.7", 361 361 "@wordpress/element": "^2.1.8", 362 362 "@wordpress/hooks": "^2.0.3", 363 363 "@wordpress/i18n": "^3.1.0", 364 364 "@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",365 "@wordpress/keycodes": "^2.0.5", 366 "@wordpress/rich-text": "^3.0.2", 367 "@wordpress/url": "^2.3.1", 368 368 "classnames": "^2.2.5", 369 369 "clipboard": "^2.0.1", 370 370 "diff": "^3.5.0", … … 393 393 } 394 394 }, 395 395 "@wordpress/core-data": { 396 "version": "2.0.1 3",397 "resolved": "https://registry.npmjs.org/@wordpress/core-data/-/core-data-2.0.1 3.tgz",398 "integrity": "sha512- vRVcBJXQ9QqC4PZOGzyC29ygvAxPr2BmzH+bPTd+EHjYypmLf3nXj8JhC6jjTCjlHt9mmYLVy/lI97kC3Jdfdg==",396 "version": "2.0.14", 397 "resolved": "https://registry.npmjs.org/@wordpress/core-data/-/core-data-2.0.14.tgz", 398 "integrity": "sha512-Hbd9tOfxv41jO1VwN9KzKCVgWuUzvZwIhXj848SFi0CzV0E57fiIVAkB/7bQj1EUOGT1qzIRLHhsBAEpxrVaeA==", 399 399 "requires": { 400 400 "@babel/runtime": "^7.0.0", 401 "@wordpress/api-fetch": "^2.2. 4",402 "@wordpress/data": "^4.0. 0",403 "@wordpress/url": "^2.3. 0",401 "@wordpress/api-fetch": "^2.2.5", 402 "@wordpress/data": "^4.0.1", 403 "@wordpress/url": "^2.3.1", 404 404 "equivalent-key-map": "^0.2.2", 405 405 "lodash": "^4.17.10", 406 406 "rememo": "^3.0.0" … … 417 417 } 418 418 }, 419 419 "@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==",420 "version": "4.0.1", 421 "resolved": "https://registry.npmjs.org/@wordpress/data/-/data-4.0.1.tgz", 422 "integrity": "sha512-UfuSPjyA4xssOVcgg1wRlngBNGVbMmZGtwoGpAWej/XRpGI26P6Xi+8skPQfLTP2yl+/nMoFd9PTwpE0MwDQ7Q==", 423 423 "requires": { 424 424 "@babel/runtime": "^7.0.0", 425 425 "@wordpress/compose": "^3.0.0", … … 453 453 } 454 454 }, 455 455 "@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==",456 "version": "2.0.7", 457 "resolved": "https://registry.npmjs.org/@wordpress/dom/-/dom-2.0.7.tgz", 458 "integrity": "sha512-vjOdGSpW3WdHH5oOoamfzdoyF4BbUJOWNNT7bBb2y15GII8rN1cGyGxqVDiiajMDe51p3lyWWCpUeY4ppxj/UA==", 459 459 "requires": { 460 460 "@babel/runtime": "^7.0.0", 461 461 "lodash": "^4.17.10" … … 470 470 } 471 471 }, 472 472 "@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==",473 "version": "3.1.1", 474 "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-3.1.1.tgz", 475 "integrity": "sha512-sjGNSTBh6xKZUtpskkc1Hx0y+iqcfOyX+i09I+zrRyoelHvw/0nZ9iHvN34lTszAgPOx9vjy8nHc8obH0gr8AA==", 476 476 "requires": { 477 477 "@babel/runtime": "^7.0.0", 478 478 "@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",479 "@wordpress/api-fetch": "^2.2.5", 480 "@wordpress/block-library": "^2.2.6", 481 "@wordpress/blocks": "^6.0.2", 482 "@wordpress/components": "^7.0.1", 483 483 "@wordpress/compose": "^3.0.0", 484 "@wordpress/core-data": "^2.0.1 3",485 "@wordpress/data": "^4.0. 0",486 "@wordpress/editor": "^ 8.0.0",484 "@wordpress/core-data": "^2.0.14", 485 "@wordpress/data": "^4.0.1", 486 "@wordpress/editor": "^9.0.1", 487 487 "@wordpress/element": "^2.1.8", 488 "@wordpress/format-library": "^1.2. 2",488 "@wordpress/format-library": "^1.2.4", 489 489 "@wordpress/hooks": "^2.0.3", 490 490 "@wordpress/i18n": "^3.1.0", 491 "@wordpress/keycodes": "^2.0. 3",492 "@wordpress/nux": "^3.0. 0",491 "@wordpress/keycodes": "^2.0.5", 492 "@wordpress/nux": "^3.0.2", 493 493 "@wordpress/plugins": "^2.0.9", 494 "@wordpress/url": "^2.3. 0",495 "@wordpress/viewport": "^2.0.1 1",494 "@wordpress/url": "^2.3.1", 495 "@wordpress/viewport": "^2.0.12", 496 496 "classnames": "^2.2.5", 497 497 "lodash": "^4.17.10", 498 498 "refx": "^3.0.0" … … 499 499 } 500 500 }, 501 501 "@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==",502 "version": "9.0.1", 503 "resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-9.0.1.tgz", 504 "integrity": "sha512-ZhihGx9huZkJfKRM5dlzesmjoC0Tcl7LwdMC4UXjQSey7blriRGrEMUdhLikbqdLuK1/tVNA2HHIlHUaRBAMMA==", 505 505 "requires": { 506 506 "@babel/runtime": "^7.0.0", 507 507 "@wordpress/a11y": "^2.0.2", 508 "@wordpress/api-fetch": "^2.2. 4",508 "@wordpress/api-fetch": "^2.2.5", 509 509 "@wordpress/blob": "^2.1.0", 510 "@wordpress/blocks": "^6.0. 0",511 "@wordpress/components": "^ 6.0.2",510 "@wordpress/blocks": "^6.0.2", 511 "@wordpress/components": "^7.0.1", 512 512 "@wordpress/compose": "^3.0.0", 513 "@wordpress/core-data": "^2.0.1 3",514 "@wordpress/data": "^4.0. 0",513 "@wordpress/core-data": "^2.0.14", 514 "@wordpress/data": "^4.0.1", 515 515 "@wordpress/date": "^3.0.0", 516 516 "@wordpress/deprecated": "^2.0.3", 517 "@wordpress/dom": "^2.0. 6",517 "@wordpress/dom": "^2.0.7", 518 518 "@wordpress/element": "^2.1.8", 519 519 "@wordpress/hooks": "^2.0.3", 520 "@wordpress/html-entities": "^2.0. 2",520 "@wordpress/html-entities": "^2.0.3", 521 521 "@wordpress/i18n": "^3.1.0", 522 522 "@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.1 1",523 "@wordpress/keycodes": "^2.0.5", 524 "@wordpress/notices": "^1.1.0", 525 "@wordpress/nux": "^3.0.2", 526 "@wordpress/token-list": "^1.1.0", 527 "@wordpress/url": "^2.3.1", 528 "@wordpress/viewport": "^2.0.12", 529 529 "@wordpress/wordcount": "^2.0.3", 530 530 "classnames": "^2.2.5", 531 531 "dom-scroll-into-view": "^1.2.1", … … 597 597 } 598 598 }, 599 599 "@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==",600 "version": "1.2.4", 601 "resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-1.2.4.tgz", 602 "integrity": "sha512-zHkYSu01Qpzc0UNAYTe/X39tzCv3ANPeQpdEGKyPOjhNoUi7qYh26Yheas4gWrx2pOs4tG3DfGDbFMIvgPiwZw==", 603 603 "requires": { 604 604 "@babel/runtime": "^7.0.0", 605 "@wordpress/components": "^ 6.0.2",606 "@wordpress/dom": "^2.0. 6",607 "@wordpress/editor": "^ 8.0.0",605 "@wordpress/components": "^7.0.1", 606 "@wordpress/dom": "^2.0.7", 607 "@wordpress/editor": "^9.0.1", 608 608 "@wordpress/element": "^2.1.8", 609 609 "@wordpress/i18n": "^3.1.0", 610 "@wordpress/keycodes": "^2.0. 3",611 "@wordpress/rich-text": "^3.0. 0",612 "@wordpress/url": "^2.3. 0"610 "@wordpress/keycodes": "^2.0.5", 611 "@wordpress/rich-text": "^3.0.2", 612 "@wordpress/url": "^2.3.1" 613 613 } 614 614 }, 615 615 "@wordpress/hooks": { … … 621 621 } 622 622 }, 623 623 "@wordpress/html-entities": { 624 "version": "2.0. 2",625 "resolved": "https://registry.npmjs.org/@wordpress/html-entities/-/html-entities-2.0. 2.tgz",626 "integrity": "sha512- cxG7YjH9EMfZyeLJAd/Vc1nFJxitMSzybv71iMPP3Dqqgz3jixX6oSe4ukTqfoOKBaF7pY7LzS6eTKu7KAmyZw==",624 "version": "2.0.3", 625 "resolved": "https://registry.npmjs.org/@wordpress/html-entities/-/html-entities-2.0.3.tgz", 626 "integrity": "sha512-qkZL538U0TyC+sp0u5U9t/SulQjOO3pmmGDmJikSn5IHU/EZwYiyFxF2EDPDHR5PHILgAmdJV8Qefmrb3ml3vg==", 627 627 "requires": { 628 628 "@babel/runtime": "^7.0.0" 629 629 } … … 657 657 } 658 658 }, 659 659 "@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==",660 "version": "2.0.5", 661 "resolved": "https://registry.npmjs.org/@wordpress/keycodes/-/keycodes-2.0.5.tgz", 662 "integrity": "sha512-uEnLRbEe+6FkXKTdQordwR9fBExIngnsa6FmAJ2ODzEI872g271jM5W61m33WzsBHfbFHQKqUi+ZaFAzu7XUcg==", 663 663 "requires": { 664 664 "@babel/runtime": "^7.0.0", 665 "@wordpress/i18n": "^3.1.0", 665 666 "lodash": "^4.17.10" 666 667 } 667 668 }, … … 677 678 } 678 679 }, 679 680 "@wordpress/list-reusable-blocks": { 680 "version": "1.1.1 2",681 "resolved": "https://registry.npmjs.org/@wordpress/list-reusable-blocks/-/list-reusable-blocks-1.1.1 2.tgz",682 "integrity": "sha512- 12z10twim7R6nxgEfNOZ4MkfobyeORKzTaz3IF5aN0Fz7gq83Y+ppJehMfrZEZ2KvlBp7FEqv3E81h/XKtTGNA==",681 "version": "1.1.14", 682 "resolved": "https://registry.npmjs.org/@wordpress/list-reusable-blocks/-/list-reusable-blocks-1.1.14.tgz", 683 "integrity": "sha512-dRoxJHTClp6tQ5w4RjrLaJTdTkI0tU9do4gz3MNcTi6C/UAE/s/kc5pr6bEmm2hNHsLLhRQPExrNPwh98S7KaA==", 683 684 "requires": { 684 685 "@babel/runtime": "^7.0.0", 685 "@wordpress/api-fetch": "^2.2. 4",686 "@wordpress/components": "^ 6.0.2",686 "@wordpress/api-fetch": "^2.2.5", 687 "@wordpress/components": "^7.0.1", 687 688 "@wordpress/compose": "^3.0.0", 688 689 "@wordpress/element": "^2.1.8", 689 690 "@wordpress/i18n": "^3.1.0", … … 691 692 } 692 693 }, 693 694 "@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==",695 "version": "1.1.0", 696 "resolved": "https://registry.npmjs.org/@wordpress/notices/-/notices-1.1.0.tgz", 697 "integrity": "sha512-dVbHKUq1xo4ecGy1j/cxbnRY1L/by+O4Xu+QBdrX5MPCOEU0TLak8k9PUS+nm13zFAJg4kzZip301Udb/OgoZg==", 697 698 "requires": { 698 699 "@babel/runtime": "^7.0.0", 699 700 "@wordpress/a11y": "^2.0.2", 700 "@wordpress/data": "^4.0. 0",701 "@wordpress/data": "^4.0.1", 701 702 "lodash": "^4.17.10" 702 703 } 703 704 }, 704 705 "@wordpress/nux": { 705 "version": "3.0. 0",706 "resolved": "https://registry.npmjs.org/@wordpress/nux/-/nux-3.0. 0.tgz",707 "integrity": "sha512- O2Xn6arvgja4ciNhmE2Vgv5FtrtTXLqc4kU0LCm9okbILyvoEO53mIsU1sDjMklbzdoOimtAXJVIuow7BLLlvA==",706 "version": "3.0.2", 707 "resolved": "https://registry.npmjs.org/@wordpress/nux/-/nux-3.0.2.tgz", 708 "integrity": "sha512-La82tFww/UzWjywaFODvZ8YODvDK4GeX8ckkaP1zFk0UelkS8gRZdaWDfkEsBzbKHyhZj3JJGT1WrM1/JJYKFw==", 708 709 "requires": { 709 710 "@babel/runtime": "^7.0.0", 710 "@wordpress/components": "^ 6.0.2",711 "@wordpress/components": "^7.0.1", 711 712 "@wordpress/compose": "^3.0.0", 712 "@wordpress/data": "^4.0. 0",713 "@wordpress/data": "^4.0.1", 713 714 "@wordpress/element": "^2.1.8", 714 715 "@wordpress/i18n": "^3.1.0", 715 716 "lodash": "^4.17.10", … … 739 740 } 740 741 }, 741 742 "@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==",743 "version": "3.0.2", 744 "resolved": "https://registry.npmjs.org/@wordpress/rich-text/-/rich-text-3.0.2.tgz", 745 "integrity": "sha512-qLhQz142vpEr/j69SLir3Sz8CYMoosyP8xjGAyH22S/gH8jTydnWtDx//xdkzvikXRbV1niXuPMDyLV2QOlong==", 745 746 "requires": { 746 747 "@babel/runtime": "^7.0.0", 747 "@wordpress/data": "^4.0.0", 748 "@wordpress/compose": "^3.0.0", 749 "@wordpress/data": "^4.0.1", 748 750 "@wordpress/escape-html": "^1.0.1", 749 751 "lodash": "^4.17.10", 750 752 "rememo": "^3.0.0" … … 761 763 } 762 764 }, 763 765 "@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==",766 "version": "1.1.0", 767 "resolved": "https://registry.npmjs.org/@wordpress/token-list/-/token-list-1.1.0.tgz", 768 "integrity": "sha512-1InK0ic0syqUEyY3XkiDiZW9rJB/C/KZEzaOZjyzl/mwDR0npMiAouY3fTQ6qZSsMHjszhSl90yXz1I9M/DapA==", 767 769 "requires": { 768 770 "@babel/runtime": "^7.0.0", 769 771 "lodash": "^4.17.10" … … 770 772 } 771 773 }, 772 774 "@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==",775 "version": "2.3.1", 776 "resolved": "https://registry.npmjs.org/@wordpress/url/-/url-2.3.1.tgz", 777 "integrity": "sha512-Z4tCYMsW3DHOLnBXM7MK2kcuX26Pszpxjst8x5hzWmYa6zJRn8MA8Bd5RF++R1NwpWJZGk4m47rj6Q36zkr86g==", 776 778 "requires": { 777 779 "@babel/runtime": "^7.0.0", 778 780 "qs": "^6.5.2" … … 779 781 } 780 782 }, 781 783 "@wordpress/viewport": { 782 "version": "2.0.1 1",783 "resolved": "https://registry.npmjs.org/@wordpress/viewport/-/viewport-2.0.1 1.tgz",784 "integrity": "sha512- PG6/RM3YhMl/0ZNclZnGUZtfuO1z4sXkaFyfGtzbSmwqBNl0w+cs7DvJkIO4B5qCTufx+2Svvm+X88Vnjn1zSg==",784 "version": "2.0.12", 785 "resolved": "https://registry.npmjs.org/@wordpress/viewport/-/viewport-2.0.12.tgz", 786 "integrity": "sha512-W2M+RIbAlfIn7B8nQtR10SD5lLpLNu2bMXk18h5ToS8BhBwEK9dagjSh1i4nJplzNzZUB/JsaVXDRRCFymuT3A==", 785 787 "requires": { 786 788 "@babel/runtime": "^7.0.0", 787 789 "@wordpress/compose": "^3.0.0", 788 "@wordpress/data": "^4.0. 0",790 "@wordpress/data": "^4.0.1", 789 791 "@wordpress/element": "^2.1.8", 790 792 "lodash": "^4.17.10" 791 793 } … … 5815 5817 }, 5816 5818 "gettext-parser": { 5817 5819 "version": "1.4.0", 5818 "resolved": "http ://registry.npmjs.org/gettext-parser/-/gettext-parser-1.4.0.tgz",5820 "resolved": "https://registry.npmjs.org/gettext-parser/-/gettext-parser-1.4.0.tgz", 5819 5821 "integrity": "sha512-sedZYLHlHeBop/gZ1jdg59hlUEcpcZJofLq2JFwJT1zTqAU3l2wFv6IsuwFHGqbiT9DWzMUW4/em2+hspnmMMA==", 5820 5822 "requires": { 5821 5823 "encoding": "^0.1.12", … … 11320 11322 } 11321 11323 }, 11322 11324 "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=="11325 "version": "4.10.0", 11326 "resolved": "https://registry.npmjs.org/re-resizable/-/re-resizable-4.10.0.tgz", 11327 "integrity": "sha512-g5Q5IswKX7LM+MtYFnuzaQrTEGr/kpserqGV8V6HYkjwbV60XnJv00VlKugLHEwlQ5pgrV08spm0TjyyYVbWmQ==" 11326 11328 }, 11327 11329 "react": { 11328 11330 "version": "16.6.3", -
package.json
51 51 "dependencies": { 52 52 "@babel/polyfill": "^7.0.0", 53 53 "@wordpress/a11y": "^2.0.2", 54 "@wordpress/annotations": "^1.0. 1",55 "@wordpress/api-fetch": "^2.2. 4",54 "@wordpress/annotations": "^1.0.3", 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. 4",58 "@wordpress/block-library": "^2.2.6", 59 59 "@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.2", 61 "@wordpress/components": "^7.0.1", 62 62 "@wordpress/compose": "^3.0.0", 63 "@wordpress/core-data": "^2.0.1 3",64 "@wordpress/data": "^4.0. 0",63 "@wordpress/core-data": "^2.0.14", 64 "@wordpress/data": "^4.0.1", 65 65 "@wordpress/date": "^3.0.0", 66 66 "@wordpress/deprecated": "^2.0.3", 67 "@wordpress/dom": "^2.0. 6",67 "@wordpress/dom": "^2.0.7", 68 68 "@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.1", 70 "@wordpress/editor": "^9.0.1", 71 71 "@wordpress/element": "^2.1.8", 72 72 "@wordpress/escape-html": "^1.0.1", 73 "@wordpress/format-library": "^1.2. 2",73 "@wordpress/format-library": "^1.2.4", 74 74 "@wordpress/hooks": "^2.0.3", 75 "@wordpress/html-entities": "^2.0. 2",75 "@wordpress/html-entities": "^2.0.3", 76 76 "@wordpress/i18n": "^3.1.0", 77 77 "@wordpress/is-shallow-equal": "^1.1.4", 78 "@wordpress/keycodes": "^2.0. 3",79 "@wordpress/list-reusable-blocks": "^1.1.1 2",80 "@wordpress/notices": "^1. 0.5",81 "@wordpress/nux": "^3.0. 0",78 "@wordpress/keycodes": "^2.0.5", 79 "@wordpress/list-reusable-blocks": "^1.1.14", 80 "@wordpress/notices": "^1.1.0", 81 "@wordpress/nux": "^3.0.2", 82 82 "@wordpress/plugins": "^2.0.9", 83 83 "@wordpress/redux-routine": "^3.0.3", 84 "@wordpress/rich-text": "^3.0. 0",84 "@wordpress/rich-text": "^3.0.2", 85 85 "@wordpress/shortcode": "^2.0.2", 86 "@wordpress/token-list": "^1. 0.2",87 "@wordpress/url": "^2.3. 0",88 "@wordpress/viewport": "^2.0.1 1",86 "@wordpress/token-list": "^1.1.0", 87 "@wordpress/url": "^2.3.1", 88 "@wordpress/viewport": "^2.0.12", 89 89 "@wordpress/wordcount": "^2.0.3", 90 90 "element-closest": "^2.0.2", 91 91 "formdata-polyfill": "^3.0.12", -
src/wp-admin/edit-form-blocks.php
177 177 ), 178 178 ), 179 179 ); 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 180 190 if ( $editor_styles && current_theme_supports( 'editor-styles' ) ) { 181 191 foreach ( $editor_styles as $style ) { 182 192 if ( preg_match( '~^(https?:)?//~', $style ) ) { -
src/wp-includes/blocks/archives.php
32 32 $class .= ' wp-block-archives-dropdown'; 33 33 34 34 $dropdown_id = esc_attr( uniqid( 'wp-block-archives-' ) ); 35 $title = __( 'Archives', ' gutenberg' );35 $title = __( 'Archives', 'default' ); 36 36 37 37 /** This filter is documented in wp-includes/widgets/class-wp-widget-archives.php */ 38 38 $dropdown_args = apply_filters( … … 50 50 51 51 switch ( $dropdown_args['type'] ) { 52 52 case 'yearly': 53 $label = __( 'Select Year', ' gutenberg' );53 $label = __( 'Select Year', 'default' ); 54 54 break; 55 55 case 'monthly': 56 $label = __( 'Select Month', ' gutenberg' );56 $label = __( 'Select Month', 'default' ); 57 57 break; 58 58 case 'daily': 59 $label = __( 'Select Day', ' gutenberg' );59 $label = __( 'Select Day', 'default' ); 60 60 break; 61 61 case 'weekly': 62 $label = __( 'Select Week', ' gutenberg' );62 $label = __( 'Select Week', 'default' ); 63 63 break; 64 64 default: 65 $label = __( 'Select Post', ' gutenberg' );65 $label = __( 'Select Post', 'default' ); 66 66 break; 67 67 } 68 68 … … 101 101 $block_content = sprintf( 102 102 '<div class="%1$s">%2$s</div>', 103 103 $classnames, 104 __( 'No archives to show.', ' gutenberg' )104 __( 'No archives to show.', 'default' ) 105 105 ); 106 106 } else { 107 107 -
src/wp-includes/blocks/categories.php
27 27 if ( ! empty( $attributes['displayAsDropdown'] ) ) { 28 28 $id = 'wp-block-categories-' . $block_id; 29 29 $args['id'] = $id; 30 $args['show_option_none'] = __( 'Select Category', ' gutenberg' );30 $args['show_option_none'] = __( 'Select Category', 'default' ); 31 31 $wrapper_markup = '<div class="%1$s">%2$s</div>'; 32 32 $items_markup = wp_dropdown_categories( $args ); 33 33 $type = 'dropdown'; -
src/wp-includes/blocks/latest-comments.php
29 29 function gutenberg_draft_or_post_title( $post = 0 ) { 30 30 $title = get_the_title( $post ); 31 31 if ( empty( $title ) ) { 32 $title = __( '(no title)', ' gutenberg' );32 $title = __( '(no title)', 'default' ); 33 33 } 34 34 return esc_html( $title ); 35 35 } … … 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 */ 101 __( '%1$s on %2$s', ' gutenberg' ),101 __( '%1$s on %2$s', 'default' ), 102 102 $author_markup, 103 103 $post_title 104 104 ); … … 119 119 } 120 120 121 121 $class = 'wp-block-latest-comments'; 122 if ( $attributes['align']) {122 if ( isset( $attributes['align'] ) ) { 123 123 $class .= " align{$attributes['align']}"; 124 124 } 125 125 if ( $attributes['displayAvatar'] ) { … … 143 143 ) : sprintf( 144 144 '<div class="%1$s">%2$s</div>', 145 145 $classnames, 146 __( 'No comments to show.', ' gutenberg' )146 __( 'No comments to show.', 'default' ) 147 147 ); 148 148 149 149 return $block_content; -
src/wp-includes/blocks/latest-posts.php
13 13 * @return string Returns the post content with latest posts added. 14 14 */ 15 15 function render_block_core_latest_posts( $attributes ) { 16 $recent_posts = wp_get_recent_posts( 17 array( 18 'numberposts' => $attributes['postsToShow'], 19 'post_status' => 'publish', 20 'order' => $attributes['order'], 21 'orderby' => $attributes['orderBy'], 22 'category' => $attributes['categories'], 23 ) 16 $args = array( 17 'numberposts' => $attributes['postsToShow'], 18 'post_status' => 'publish', 19 'order' => $attributes['order'], 20 'orderby' => $attributes['orderBy'], 24 21 ); 25 22 23 if ( isset( $attributes['categories'] ) ) { 24 $args['categories'] = $attributes['categories']; 25 } 26 27 $recent_posts = wp_get_recent_posts( $args ); 28 26 29 $list_items_markup = ''; 27 30 28 31 foreach ( $recent_posts as $post ) { … … 30 33 31 34 $title = get_the_title( $post_id ); 32 35 if ( ! $title ) { 33 $title = __( '(Untitled)', ' gutenberg' );36 $title = __( '(Untitled)', 'default' ); 34 37 } 35 38 $list_items_markup .= sprintf( 36 39 '<li><a href="%1$s">%2$s</a>', -
src/wp-includes/class-wp-block-type.php
123 123 124 124 /** 125 125 * Validates attributes against the current block schema, populating 126 * defaulted and missing values , and omitting unknown attributes.126 * defaulted and missing values. 127 127 * 128 128 * @since 5.0.0 129 129 * … … 131 131 * @return array Prepared block attributes. 132 132 */ 133 133 public function prepare_attributes_for_render( $attributes ) { 134 // If there are no attribute definitions for the block type, skip 135 // processing and return vebatim. 134 136 if ( ! isset( $this->attributes ) ) { 135 137 return $attributes; 136 138 } 137 139 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 } 139 146 140 foreach ( $this->attributes as $attribute_name => $schema ) { 141 $value = null; 147 $schema = $this->attributes[ $attribute_name ]; 142 148 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 ] ); 148 156 } 157 } 149 158 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']; 152 165 } 153 154 $prepared_attributes[ $attribute_name ] = $value;155 166 } 156 167 157 return $ prepared_attributes;168 return $attributes; 158 169 } 159 170 160 171 /** -
src/wp-includes/rest-api/endpoints/class-wp-rest-block-renderer-controller.php
61 61 'type' => 'object', 62 62 'additionalProperties' => false, 63 63 'properties' => $block_type->get_attributes(), 64 'default' => array(), 64 65 ), 65 66 'post_id' => array( 66 67 'description' => __( 'ID of the post context.' ), -
src/wp-includes/rest-api/endpoints/class-wp-rest-blocks-controller.php
36 36 37 37 return parent::check_read_permission( $post ); 38 38 } 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 39 92 } -
src/wp-includes/script-loader.php
74 74 * @param WP_Scripts $scripts WP_Scripts object. 75 75 */ 76 76 function wp_default_packages_vendor( &$scripts ) { 77 global $wp_locale; 78 77 79 $dev_suffix = wp_scripts_get_suffix( 'dev' ); 78 80 79 81 $vendor_scripts = array( … … 100 102 } 101 103 102 104 $scripts->add( 'wp-polyfill', null, array( 'wp-polyfill' ) ); 103 did_action( 'init' ) && $scripts->add_ data(105 did_action( 'init' ) && $scripts->add_inline_script( 104 106 'wp-polyfill', 105 'data',106 107 wp_get_script_polyfill( 107 108 $scripts, 108 109 array( … … 110 111 'document.contains' => 'wp-polyfill-node-contains', 111 112 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', 112 113 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest', 113 ) 114 ), 115 'after' 114 116 ) 115 117 ); 116 118 117 119 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 ); 118 148 } 119 149 120 150 /** … … 221 251 'wp-a11y', 222 252 'wp-api-fetch', 223 253 'wp-compose', 224 'wp-deprecated',225 254 'wp-dom', 226 255 'wp-element', 227 256 'wp-hooks', … … 272 301 'wp-embed', 273 302 'wp-i18n', 274 303 'wp-keycodes', 304 'wp-notices', 275 305 'wp-nux', 276 306 'wp-plugins', 277 307 'wp-polyfill', … … 344 374 ), 345 375 'nux' => array( 346 376 'wp-element', 377 'lodash', 347 378 'wp-components', 348 379 'wp-compose', 349 380 'wp-data', … … 355 386 'redux-routine' => array( 'wp-polyfill' ), 356 387 'rich-text' => array( 357 388 'lodash', 358 'wp-blocks',359 389 'wp-data', 360 390 'wp-escape-html', 361 391 'wp-polyfill', … … 1667 1697 $fonts_url = ''; 1668 1698 1669 1699 /* 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. 1672 1703 */ 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 $fonts_url = 'https://fonts.googleapis.com/css?family=' . urlencode( $font_family ); 1675 1707 } 1676 1708 $styles->add( 'wp-editor-font', $fonts_url ); 1677 1709 -
tests/phpunit/tests/blocks/block-type.php
168 168 'wrongType' => 5, 169 169 'wrongTypeDefaulted' => 5, 170 170 /* missingDefaulted */ 171 'undefined' => 'omit', 171 'undefined' => 'include', 172 'intendedNull' => null, 172 173 ); 173 174 174 175 $block_type = new WP_Block_Type( … … 189 190 'type' => 'string', 190 191 'default' => 'define', 191 192 ), 193 'intendedNull' => array( 194 'type' => array( 'string', 'null' ), 195 'default' => 'wrong', 196 ), 192 197 ), 193 198 ) 194 199 ); … … 198 203 $this->assertEquals( 199 204 array( 200 205 'correct' => 'include', 201 'wrongType' => null,206 /* wrongType */ 202 207 'wrongTypeDefaulted' => 'defaulted', 203 208 'missingDefaulted' => 'define', 209 'undefined' => 'include', 210 'intendedNull' => null, 204 211 ), 205 212 $prepared_attributes 206 213 ); … … 207 214 } 208 215 209 216 /** 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 /** 210 230 * @ticket 45097 211 231 */ 212 232 public function test_has_block_with_mixed_content() { -
tests/phpunit/tests/rest-api/rest-block-renderer-controller.php
319 319 $block_type = WP_Block_Type_Registry::get_instance()->get_registered( self::$block_name ); 320 320 $defaults = array(); 321 321 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 } 323 325 } 324 326 325 327 $request = new WP_REST_Request( 'GET', self::$rest_api_route . self::$block_name ); -
tests/phpunit/tests/rest-api/rest-blocks-controller.php
29 29 protected static $post_id; 30 30 31 31 /** 32 * Our fake user 's ID.32 * Our fake user IDs, keyed by their role. 33 33 * 34 34 * @since 5.0.0 35 35 * 36 * @var int36 * @var array 37 37 */ 38 protected static $user_id ;38 protected static $user_ids; 39 39 40 40 /** 41 41 * Create fake data before our tests run. … … 50 50 'post_type' => 'wp_block', 51 51 'post_status' => 'publish', 52 52 '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 -->', 54 54 ) 55 55 ); 56 56 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' ) ), 61 61 ); 62 62 } 63 63 … … 69 69 public static function wpTearDownAfterClass() { 70 70 wp_delete_post( self::$post_id ); 71 71 72 self::delete_user( self::$user_id ); 72 foreach ( self::$user_ids as $user_id ) { 73 self::delete_user( $user_id ); 74 } 73 75 } 74 76 75 77 /** … … 114 116 */ 115 117 public function test_capabilities( $action, $role, $expected_status ) { 116 118 if ( $role ) { 117 $user_id = $this->factory->user->create( array( 'role' => $role ) );119 $user_id = self::$user_ids[ $role ]; 118 120 wp_set_current_user( $user_id ); 119 121 } else { 120 122 wp_set_current_user( 0 ); … … 126 128 $request->set_body_params( 127 129 array( 128 130 'title' => 'Test', 129 'content' => '<!-- wp: core/paragraph --><p>Test</p><!-- /wp:core/paragraph -->',131 'content' => '<!-- wp:paragraph --><p>Test</p><!-- /wp:paragraph -->', 130 132 ) 131 133 ); 132 134 … … 149 151 'post_type' => 'wp_block', 150 152 'post_status' => 'publish', 151 153 '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 -->', 153 155 'post_author' => $user_id, 154 156 ) 155 157 ); … … 158 160 $request->set_body_params( 159 161 array( 160 162 'title' => 'Test', 161 'content' => '<!-- wp: core/paragraph --><p>Test</p><!-- /wp:core/paragraph -->',163 'content' => '<!-- wp:paragraph --><p>Test</p><!-- /wp:paragraph -->', 162 164 ) 163 165 ); 164 166 … … 179 181 $request->set_body_params( 180 182 array( 181 183 'title' => 'Test', 182 'content' => '<!-- wp: core/paragraph --><p>Test</p><!-- /wp:core/paragraph -->',184 'content' => '<!-- wp:paragraph --><p>Test</p><!-- /wp:paragraph -->', 183 185 ) 184 186 ); 185 187 … … 196 198 default: 197 199 $this->fail( "'$action' is not a valid action." ); 198 200 } 201 } 199 202 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 ); 203 228 } 204 229 } -
tests/qunit/fixtures/wp-api-generated.js
4314 4314 }, 4315 4315 "attributes": { 4316 4316 "required": false, 4317 "default": [], 4317 4318 "description": "Attributes for core/block block", 4318 4319 "type": "object" 4319 4320 }, … … 4353 4354 }, 4354 4355 "attributes": { 4355 4356 "required": false, 4357 "default": [], 4356 4358 "description": "Attributes for core/latest-comments block", 4357 4359 "type": "object" 4358 4360 }, … … 4392 4394 }, 4393 4395 "attributes": { 4394 4396 "required": false, 4397 "default": [], 4395 4398 "description": "Attributes for core/archives block", 4396 4399 "type": "object" 4397 4400 }, … … 4431 4434 }, 4432 4435 "attributes": { 4433 4436 "required": false, 4437 "default": [], 4434 4438 "description": "Attributes for core/categories block", 4435 4439 "type": "object" 4436 4440 }, … … 4470 4474 }, 4471 4475 "attributes": { 4472 4476 "required": false, 4477 "default": [], 4473 4478 "description": "Attributes for core/latest-posts block", 4474 4479 "type": "object" 4475 4480 }, … … 4509 4514 }, 4510 4515 "attributes": { 4511 4516 "required": false, 4517 "default": [], 4512 4518 "description": "Attributes for core/shortcode block", 4513 4519 "type": "object" 4514 4520 }, -
tools/webpack/packages.js
225 225 'deprecated', 226 226 'dom-ready', 227 227 'redux-routine', 228 'token-list', 228 229 ].map( camelCaseDash ) ), 229 230 new CustomTemplatedPathPlugin( { 230 231 basename( path, data ) {