Ticket #45145: 45145.7.diff
File 45145.7.diff, 45.0 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.2", 241 "resolved": "https://registry.npmjs.org/@wordpress/annotations/-/annotations-1.0.2.tgz", 242 "integrity": "sha512-PHdezirBAsaNxvnjKWatre2F1LVD9EjUWtWj2jmBC+ueupLhclUWG5c5QM5Td1fS4DiDzmrRTCize+rSn7XtAQ==", 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.1", 249 249 "lodash": "^4.17.10", 250 250 "rememo": "^3.0.0", 251 251 "uuid": "^3.3.2" … … 252 252 } 253 253 }, 254 254 "@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==", 258 258 "requires": { 259 259 "@babel/runtime": "^7.0.0", 260 260 "@wordpress/hooks": "^2.0.3", 261 261 "@wordpress/i18n": "^3.1.0", 262 "@wordpress/url": "^2.3. 0"262 "@wordpress/url": "^2.3.1" 263 263 } 264 264 }, 265 265 "@wordpress/autop": { … … 279 279 } 280 280 }, 281 281 "@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==", 285 285 "requires": { 286 286 "@babel/runtime": "^7.0.0", 287 287 "@wordpress/autop": "^2.0.2", 288 288 "@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", 291 291 "@wordpress/compose": "^3.0.0", 292 "@wordpress/core-data": "^2.0.1 3",293 "@wordpress/data": "^4.0. 0",292 "@wordpress/core-data": "^2.0.14", 293 "@wordpress/data": "^4.0.1", 294 294 "@wordpress/deprecated": "^2.0.3", 295 "@wordpress/editor": "^ 8.0.0",295 "@wordpress/editor": "^9.0.0", 296 296 "@wordpress/element": "^2.1.8", 297 297 "@wordpress/html-entities": "^2.0.2", 298 298 "@wordpress/i18n": "^3.1.0", 299 "@wordpress/keycodes": "^2.0. 3",300 "@wordpress/viewport": "^2.0.1 1",299 "@wordpress/keycodes": "^2.0.4", 300 "@wordpress/viewport": "^2.0.12", 301 301 "classnames": "^2.2.5", 302 302 "lodash": "^4.17.10", 303 303 "memize": "^1.0.5", … … 321 321 "integrity": "sha512-l5N0o2Tkc4IcDhhMfX2W3KuEV/4F7TeitJEDtBpLYf7eRMIn3Uh6l5rPDmmuTDv7UFlMWTiA8z/oCpl13ZyBOw==" 322 322 }, 323 323 "@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==", 327 327 "requires": { 328 328 "@babel/runtime": "^7.0.0", 329 329 "@wordpress/autop": "^2.0.2", … … 330 330 "@wordpress/blob": "^2.1.0", 331 331 "@wordpress/block-serialization-default-parser": "^2.0.0", 332 332 "@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", 335 335 "@wordpress/element": "^2.1.8", 336 336 "@wordpress/hooks": "^2.0.3", 337 337 "@wordpress/html-entities": "^2.0.2", … … 348 348 } 349 349 }, 350 350 "@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==", 354 354 "requires": { 355 355 "@babel/runtime": "^7.0.0", 356 356 "@wordpress/a11y": "^2.0.2", 357 "@wordpress/api-fetch": "^2.2. 4",357 "@wordpress/api-fetch": "^2.2.5", 358 358 "@wordpress/compose": "^3.0.0", 359 "@wordpress/deprecated": "^2.0.3", 360 "@wordpress/dom": "^2.0.6", 359 "@wordpress/dom": "^2.0.7", 361 360 "@wordpress/element": "^2.1.8", 362 361 "@wordpress/hooks": "^2.0.3", 363 362 "@wordpress/i18n": "^3.1.0", 364 363 "@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", 368 367 "classnames": "^2.2.5", 369 368 "clipboard": "^2.0.1", 370 369 "diff": "^3.5.0", … … 393 392 } 394 393 }, 395 394 "@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==",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==", 399 398 "requires": { 400 399 "@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", 404 403 "equivalent-key-map": "^0.2.2", 405 404 "lodash": "^4.17.10", 406 405 "rememo": "^3.0.0" … … 417 416 } 418 417 }, 419 418 "@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==", 423 422 "requires": { 424 423 "@babel/runtime": "^7.0.0", 425 424 "@wordpress/compose": "^3.0.0", … … 453 452 } 454 453 }, 455 454 "@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==", 459 458 "requires": { 460 459 "@babel/runtime": "^7.0.0", 461 460 "lodash": "^4.17.10" … … 470 469 } 471 470 }, 472 471 "@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==", 476 475 "requires": { 477 476 "@babel/runtime": "^7.0.0", 478 477 "@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", 483 482 "@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",483 "@wordpress/core-data": "^2.0.14", 484 "@wordpress/data": "^4.0.1", 485 "@wordpress/editor": "^9.0.0", 487 486 "@wordpress/element": "^2.1.8", 488 "@wordpress/format-library": "^1.2. 2",487 "@wordpress/format-library": "^1.2.3", 489 488 "@wordpress/hooks": "^2.0.3", 490 489 "@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", 493 492 "@wordpress/plugins": "^2.0.9", 494 "@wordpress/url": "^2.3. 0",495 "@wordpress/viewport": "^2.0.1 1",493 "@wordpress/url": "^2.3.1", 494 "@wordpress/viewport": "^2.0.12", 496 495 "classnames": "^2.2.5", 497 496 "lodash": "^4.17.10", 498 497 "refx": "^3.0.0" … … 499 498 } 500 499 }, 501 500 "@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==", 505 504 "requires": { 506 505 "@babel/runtime": "^7.0.0", 507 506 "@wordpress/a11y": "^2.0.2", 508 "@wordpress/api-fetch": "^2.2. 4",507 "@wordpress/api-fetch": "^2.2.5", 509 508 "@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", 512 511 "@wordpress/compose": "^3.0.0", 513 "@wordpress/core-data": "^2.0.1 3",514 "@wordpress/data": "^4.0. 0",512 "@wordpress/core-data": "^2.0.14", 513 "@wordpress/data": "^4.0.1", 515 514 "@wordpress/date": "^3.0.0", 516 515 "@wordpress/deprecated": "^2.0.3", 517 "@wordpress/dom": "^2.0. 6",516 "@wordpress/dom": "^2.0.7", 518 517 "@wordpress/element": "^2.1.8", 519 518 "@wordpress/hooks": "^2.0.3", 520 519 "@wordpress/html-entities": "^2.0.2", 521 520 "@wordpress/i18n": "^3.1.0", 522 521 "@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",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", 529 528 "@wordpress/wordcount": "^2.0.3", 530 529 "classnames": "^2.2.5", 531 530 "dom-scroll-into-view": "^1.2.1", … … 597 596 } 598 597 }, 599 598 "@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==", 603 602 "requires": { 604 603 "@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", 608 607 "@wordpress/element": "^2.1.8", 609 608 "@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" 613 612 } 614 613 }, 615 614 "@wordpress/hooks": { … … 657 656 } 658 657 }, 659 658 "@wordpress/keycodes": { 660 "version": "2.0. 3",661 "resolved": "https://registry.npmjs.org/@wordpress/keycodes/-/keycodes-2.0. 3.tgz",662 "integrity": "sha512-c g4IHxz9BjRHBIhs/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==", 663 662 "requires": { 664 663 "@babel/runtime": "^7.0.0", 665 664 "lodash": "^4.17.10" … … 677 676 } 678 677 }, 679 678 "@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==",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==", 683 682 "requires": { 684 683 "@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", 687 686 "@wordpress/compose": "^3.0.0", 688 687 "@wordpress/element": "^2.1.8", 689 688 "@wordpress/i18n": "^3.1.0", … … 691 690 } 692 691 }, 693 692 "@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==", 697 696 "requires": { 698 697 "@babel/runtime": "^7.0.0", 699 698 "@wordpress/a11y": "^2.0.2", 700 "@wordpress/data": "^4.0. 0",699 "@wordpress/data": "^4.0.1", 701 700 "lodash": "^4.17.10" 702 701 } 703 702 }, 704 703 "@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==", 708 707 "requires": { 709 708 "@babel/runtime": "^7.0.0", 710 "@wordpress/components": "^ 6.0.2",709 "@wordpress/components": "^7.0.0", 711 710 "@wordpress/compose": "^3.0.0", 712 "@wordpress/data": "^4.0. 0",711 "@wordpress/data": "^4.0.1", 713 712 "@wordpress/element": "^2.1.8", 714 713 "@wordpress/i18n": "^3.1.0", 715 714 "lodash": "^4.17.10", … … 739 738 } 740 739 }, 741 740 "@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==", 745 744 "requires": { 746 745 "@babel/runtime": "^7.0.0", 747 "@wordpress/data": "^4.0.0", 746 "@wordpress/compose": "^3.0.0", 747 "@wordpress/data": "^4.0.1", 748 748 "@wordpress/escape-html": "^1.0.1", 749 749 "lodash": "^4.17.10", 750 750 "rememo": "^3.0.0" … … 761 761 } 762 762 }, 763 763 "@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==", 767 767 "requires": { 768 768 "@babel/runtime": "^7.0.0", 769 769 "lodash": "^4.17.10" … … 770 770 } 771 771 }, 772 772 "@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==", 776 776 "requires": { 777 777 "@babel/runtime": "^7.0.0", 778 778 "qs": "^6.5.2" … … 779 779 } 780 780 }, 781 781 "@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==",782 "version": "2.0.12", 783 "resolved": "https://registry.npmjs.org/@wordpress/viewport/-/viewport-2.0.12.tgz", 784 "integrity": "sha512-W2M+RIbAlfIn7B8nQtR10SD5lLpLNu2bMXk18h5ToS8BhBwEK9dagjSh1i4nJplzNzZUB/JsaVXDRRCFymuT3A==", 785 785 "requires": { 786 786 "@babel/runtime": "^7.0.0", 787 787 "@wordpress/compose": "^3.0.0", 788 "@wordpress/data": "^4.0. 0",788 "@wordpress/data": "^4.0.1", 789 789 "@wordpress/element": "^2.1.8", 790 790 "lodash": "^4.17.10" 791 791 } … … 1474 1474 }, 1475 1475 "util": { 1476 1476 "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", 1478 1478 "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=", 1479 1479 "dev": true, 1480 1480 "requires": { … … 2450 2450 }, 2451 2451 "browserify-rsa": { 2452 2452 "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", 2454 2454 "integrity": "sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ=", 2455 2455 "dev": true, 2456 2456 "requires": { … … 2747 2747 }, 2748 2748 "chalk": { 2749 2749 "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", 2751 2751 "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", 2752 2752 "requires": { 2753 2753 "ansi-styles": "^2.2.1", … … 4542 4542 }, 4543 4543 "events": { 4544 4544 "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", 4546 4546 "integrity": "sha1-nr23Y1rQmccNzEwqH1AEKI6L2SQ=", 4547 4547 "dev": true 4548 4548 }, … … 5815 5815 }, 5816 5816 "gettext-parser": { 5817 5817 "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", 5819 5819 "integrity": "sha512-sedZYLHlHeBop/gZ1jdg59hlUEcpcZJofLq2JFwJT1zTqAU3l2wFv6IsuwFHGqbiT9DWzMUW4/em2+hspnmMMA==", 5820 5820 "requires": { 5821 5821 "encoding": "^0.1.12", … … 10192 10192 }, 10193 10193 "onetime": { 10194 10194 "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", 10196 10196 "integrity": "sha1-ofeDj4MUxRbwXs78vEzP4EtO14k=", 10197 10197 "dev": true 10198 10198 }, … … 10614 10614 "dependencies": { 10615 10615 "async": { 10616 10616 "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", 10618 10618 "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", 10619 10619 "dev": true 10620 10620 } … … 11320 11320 } 11321 11321 }, 11322 11322 "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==" 11326 11326 }, 11327 11327 "react": { 11328 11328 "version": "16.6.3", … … 11959 11959 }, 11960 11960 "regjsgen": { 11961 11961 "version": "0.2.0", 11962 "resolved": "http s://registry.npmjs.org/regjsgen/-/regjsgen-0.2.0.tgz",11962 "resolved": "http://registry.npmjs.org/regjsgen/-/regjsgen-0.2.0.tgz", 11963 11963 "integrity": "sha1-bAFq3qxVT3WCP+N6wFuS1aTtsfc=" 11964 11964 }, 11965 11965 "regjsparser": { -
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.2", 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.5", 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.1", 61 "@wordpress/components": "^7.0.0", 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.0", 70 "@wordpress/editor": "^9.0.0", 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.3", 74 74 "@wordpress/hooks": "^2.0.3", 75 75 "@wordpress/html-entities": "^2.0.2", 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.4", 79 "@wordpress/list-reusable-blocks": "^1.1.13", 80 "@wordpress/notices": "^1.1.0", 81 "@wordpress/nux": "^3.0.1", 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.1", 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 ); … … 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
30 30 31 31 $title = get_the_title( $post_id ); 32 32 if ( ! $title ) { 33 $title = __( '(Untitled)', ' gutenberg' );33 $title = __( '(Untitled)', 'default' ); 34 34 } 35 35 $list_items_markup .= sprintf( 36 36 '<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', … … 533 563 'wp_more', 534 564 'spellchecker', 535 565 'wp_add_media', 536 'wp_adv', 566 'wp_adv', // FIXME found as 'kitchensink' in Gutenberg 537 567 ); 538 568 539 569 /* This filter is documented in wp-includes/class-wp-editor.php */ … … 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 $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' ) ); 1675 1710 } 1676 1711 $styles->add( 'wp-editor-font', $fonts_url ); 1677 1712 -
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 ) {