Changeset 44390
- Timestamp:
- 01/04/2019 08:18:09 PM (6 years ago)
- Location:
- branches/5.0
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0
-
branches/5.0/package-lock.json
r44287 r44390 1 1 { 2 2 "name": "WordPress", 3 "version": "5.0. 2",3 "version": "5.0.3", 4 4 "lockfileVersion": 1, 5 5 "requires": true, … … 238 238 }, 239 239 "@wordpress/annotations": { 240 "version": "1.0. 4",241 "resolved": "https://registry.npmjs.org/@wordpress/annotations/-/annotations-1.0. 4.tgz",242 "integrity": "sha512- 4Pl6qfy74yg8O2mmepUMkT0l6/VjsTCTpfvwveezqprLklDAGLXfS0gm8ZKbVlwsoevmd2y4+1Uv6ajOpBFY0w==",240 "version": "1.0.5", 241 "resolved": "https://registry.npmjs.org/@wordpress/annotations/-/annotations-1.0.5.tgz", 242 "integrity": "sha512-u6SErOVRKV/AjwBhYI88n0RiBn/Ogqo5f0nBP+eJ45VGDsqyr9S9uRcF1Ncxj2gV/chDk5LGJ/OSCPGq69Sqmw==", 243 243 "requires": { 244 244 "@babel/runtime": "^7.0.0", 245 "@wordpress/data": "^4. 1.0",246 "@wordpress/hooks": "^2.0. 3",245 "@wordpress/data": "^4.2.0", 246 "@wordpress/hooks": "^2.0.4", 247 247 "@wordpress/i18n": "^3.1.0", 248 "@wordpress/rich-text": "^3.0. 3",248 "@wordpress/rich-text": "^3.0.4", 249 249 "lodash": "^4.17.10", 250 250 "memize": "^1.0.5", … … 254 254 }, 255 255 "@wordpress/api-fetch": { 256 "version": "2.2. 6",257 "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-2.2. 6.tgz",258 "integrity": "sha512- cZfJrkfv4+w8rWEMzuh6Q5QoaT1MxD+K3MuT+PHP/SZiSS0AuP733LsWlYJDo28EatNUHU2XPR3IpeKzbiHlvQ==",256 "version": "2.2.7", 257 "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-2.2.7.tgz", 258 "integrity": "sha512-7Bl4hfLLw5rWeQ7LIa3U/rananC2Tk6uZ55acetC+hag9gJpDpddbXOlW3Li8Zk1cJvvcpgfElVPwPFnS0e/qg==", 259 259 "requires": { 260 260 "@babel/runtime": "^7.0.0", 261 "@wordpress/hooks": "^2.0. 3",261 "@wordpress/hooks": "^2.0.4", 262 262 "@wordpress/i18n": "^3.1.0", 263 "@wordpress/url": "^2.3. 2"263 "@wordpress/url": "^2.3.3" 264 264 } 265 265 }, … … 281 281 }, 282 282 "@wordpress/block-library": { 283 "version": "2.2.1 1",284 "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-2.2.1 1.tgz",285 "integrity": "sha512- ygc/MSW2i9w8e3CONFgRMs8dvKqInFO9BitUA0WQEGxovLawvu/gqAdJn8LoqMTnxgkx9VHMgg6M7v2xekz06A==",283 "version": "2.2.12", 284 "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-2.2.12.tgz", 285 "integrity": "sha512-PFFWhTny1lN5TC7fDs5aH3hW5RgwEtbysoXk5zX9f6OS4N6Ye9CMFXC2tT+ZciG/bdE3TcNx+/Hadmnt10uE+w==", 286 286 "requires": { 287 287 "@babel/runtime": "^7.0.0", 288 288 "@wordpress/autop": "^2.0.2", 289 289 "@wordpress/blob": "^2.1.0", 290 "@wordpress/blocks": "^6.0. 4",291 "@wordpress/components": "^7.0. 4",290 "@wordpress/blocks": "^6.0.5", 291 "@wordpress/components": "^7.0.5", 292 292 "@wordpress/compose": "^3.0.0", 293 "@wordpress/core-data": "^2.0.1 5",294 "@wordpress/data": "^4. 1.0",295 "@wordpress/deprecated": "^2.0. 3",296 "@wordpress/editor": "^9.0. 6",293 "@wordpress/core-data": "^2.0.16", 294 "@wordpress/data": "^4.2.0", 295 "@wordpress/deprecated": "^2.0.4", 296 "@wordpress/editor": "^9.0.7", 297 297 "@wordpress/element": "^2.1.8", 298 298 "@wordpress/html-entities": "^2.0.4", 299 299 "@wordpress/i18n": "^3.1.0", 300 300 "@wordpress/keycodes": "^2.0.5", 301 "@wordpress/viewport": "^2. 0.13",301 "@wordpress/viewport": "^2.1.0", 302 302 "classnames": "^2.2.5", 303 303 "lodash": "^4.17.10", … … 307 307 }, 308 308 "@wordpress/block-serialization-default-parser": { 309 "version": "2.0. 2",310 "resolved": "https://registry.npmjs.org/@wordpress/block-serialization-default-parser/-/block-serialization-default-parser-2.0. 2.tgz",311 "integrity": "sha512- gk6RT2U0Fc6U+P0iT1Cu03qHbBLOj31w2W/8JvQuH9DzD3x1YaXDWRA5wl9QRqqFSM6gbH7zKy1v3UC35fuNiA==",309 "version": "2.0.3", 310 "resolved": "https://registry.npmjs.org/@wordpress/block-serialization-default-parser/-/block-serialization-default-parser-2.0.3.tgz", 311 "integrity": "sha512-VUP3QmTlCFc8Ay5ZrXdEibQeTLIk1XRX2UAZfFiXfw1IQzeVS6q64eZbG8rh0Gpj5iQrzB/qTo01sQ+dC4gBQQ==", 312 312 "requires": { 313 313 "@babel/runtime": "^7.0.0" … … 320 320 }, 321 321 "@wordpress/blocks": { 322 "version": "6.0. 4",323 "resolved": "https://registry.npmjs.org/@wordpress/blocks/-/blocks-6.0. 4.tgz",324 "integrity": "sha512- jGPXt4biR4EVVoWUDtYge4cBi2dEktCUrUsh2ulLkbIxSlenTwLjKEpPb7rkFM65vSXU7urTltXQQ8M8Xaih2g==",322 "version": "6.0.5", 323 "resolved": "https://registry.npmjs.org/@wordpress/blocks/-/blocks-6.0.5.tgz", 324 "integrity": "sha512-ucludD4lvHuq/wn1SSjvfNlXv91GusniV1XhN8BuZZEadHdBEiMmD0MQiZoZL7YhWwHa94gWuKi+6yru3M6V3A==", 325 325 "requires": { 326 326 "@babel/runtime": "^7.0.0", 327 327 "@wordpress/autop": "^2.0.2", 328 328 "@wordpress/blob": "^2.1.0", 329 "@wordpress/block-serialization-default-parser": "^2.0. 2",329 "@wordpress/block-serialization-default-parser": "^2.0.3", 330 330 "@wordpress/block-serialization-spec-parser": "^2.0.2", 331 "@wordpress/data": "^4. 1.0",332 "@wordpress/dom": "^2.0. 7",331 "@wordpress/data": "^4.2.0", 332 "@wordpress/dom": "^2.0.8", 333 333 "@wordpress/element": "^2.1.8", 334 "@wordpress/hooks": "^2.0. 3",334 "@wordpress/hooks": "^2.0.4", 335 335 "@wordpress/html-entities": "^2.0.4", 336 336 "@wordpress/i18n": "^3.1.0", … … 347 347 }, 348 348 "@wordpress/components": { 349 "version": "7.0. 4",350 "resolved": "https://registry.npmjs.org/@wordpress/components/-/components-7.0. 4.tgz",351 "integrity": "sha512- SVezuw6CPJ3+81CXXArfDx2rI6hlxEWqEiPSyOgku2guKTqYnWfAU4yW9c6m4IxtKcQCphQ64AmeJ6CYIh91jw==",349 "version": "7.0.5", 350 "resolved": "https://registry.npmjs.org/@wordpress/components/-/components-7.0.5.tgz", 351 "integrity": "sha512-Csu2z4r8g3PwwLWWRMDeA//vQhHh05J9hyogE15dMS/6jrSKyl8lonGWvbnO2PSrMzKIHPeoXYzutUeNBjY1pg==", 352 352 "requires": { 353 353 "@babel/runtime": "^7.0.0", 354 354 "@wordpress/a11y": "^2.0.2", 355 "@wordpress/api-fetch": "^2.2. 6",355 "@wordpress/api-fetch": "^2.2.7", 356 356 "@wordpress/compose": "^3.0.0", 357 "@wordpress/dom": "^2.0. 7",357 "@wordpress/dom": "^2.0.8", 358 358 "@wordpress/element": "^2.1.8", 359 "@wordpress/hooks": "^2.0. 3",359 "@wordpress/hooks": "^2.0.4", 360 360 "@wordpress/i18n": "^3.1.0", 361 361 "@wordpress/is-shallow-equal": "^1.1.4", 362 362 "@wordpress/keycodes": "^2.0.5", 363 "@wordpress/rich-text": "^3.0. 3",364 "@wordpress/url": "^2.3. 2",363 "@wordpress/rich-text": "^3.0.4", 364 "@wordpress/url": "^2.3.3", 365 365 "classnames": "^2.2.5", 366 366 "clipboard": "^2.0.1", … … 391 391 }, 392 392 "@wordpress/core-data": { 393 "version": "2.0.1 5",394 "resolved": "https://registry.npmjs.org/@wordpress/core-data/-/core-data-2.0.1 5.tgz",395 "integrity": "sha512- MHln34TnAGGrFkAJ9dbDq6Iu1avQ2PuJwnpLMQeW9oUPgDhxTEHjPoObv/fM4x+r1zCHGXPIyOjySonuXas/oA==",393 "version": "2.0.16", 394 "resolved": "https://registry.npmjs.org/@wordpress/core-data/-/core-data-2.0.16.tgz", 395 "integrity": "sha512-JU1p/geISRi1Mv5l8KdAfZbfYqQueacr2m0XND5V5/SKQ5xOc2+vbv/Rp0ZWrlKyGbAucCO5tK2ubW43M3dVug==", 396 396 "requires": { 397 397 "@babel/runtime": "^7.0.0", 398 "@wordpress/api-fetch": "^2.2. 6",399 "@wordpress/data": "^4. 1.0",400 "@wordpress/url": "^2.3. 2",398 "@wordpress/api-fetch": "^2.2.7", 399 "@wordpress/data": "^4.2.0", 400 "@wordpress/url": "^2.3.3", 401 401 "equivalent-key-map": "^0.2.2", 402 402 "lodash": "^4.17.10", … … 415 415 }, 416 416 "@wordpress/data": { 417 "version": "4. 1.0",418 "resolved": "https://registry.npmjs.org/@wordpress/data/-/data-4. 1.0.tgz",419 "integrity": "sha512- PVd1LVGV9cf6GpRmIvoP+Y56ir1VB0kwSnsJkj69IMFUKBZW4uKB8BOthnPJ7aQi7B57x/ghfgWy9A0FaV1/eg==",417 "version": "4.2.0", 418 "resolved": "https://registry.npmjs.org/@wordpress/data/-/data-4.2.0.tgz", 419 "integrity": "sha512-9cdm5xBWgLJJ45nQCbUQFF26vGoG2PzEJrinNXLr45XNAr3XSzN/JsrmNCaHwI/NzyFIwFmFjv6ONQKxxkErrg==", 420 420 "requires": { 421 421 "@babel/runtime": "^7.0.0", … … 442 442 }, 443 443 "@wordpress/deprecated": { 444 "version": "2.0. 3",445 "resolved": "https://registry.npmjs.org/@wordpress/deprecated/-/deprecated-2.0. 3.tgz",446 "integrity": "sha512- 5v8h6BJ9xQFTho7ucitshpIahD+rVnAhgc/4juYmPLb9/GJzwY1J91Ve5mcjcjgWhdtjBKO0TCq/S4PCfS812w==",444 "version": "2.0.4", 445 "resolved": "https://registry.npmjs.org/@wordpress/deprecated/-/deprecated-2.0.4.tgz", 446 "integrity": "sha512-KvvQ6+aWWLSznpfhpMn/FZNZIA3sjtax0PY0TTmbm74eFnlV3eZHL/kX6Mp9KJYkrzDDRk5kg7UgW6QJLHFXhg==", 447 447 "requires": { 448 448 "@babel/runtime": "^7.0.0", 449 "@wordpress/hooks": "^2.0. 3"449 "@wordpress/hooks": "^2.0.4" 450 450 } 451 451 }, 452 452 "@wordpress/dom": { 453 "version": "2.0. 7",454 "resolved": "https://registry.npmjs.org/@wordpress/dom/-/dom-2.0. 7.tgz",455 "integrity": "sha512- vjOdGSpW3WdHH5oOoamfzdoyF4BbUJOWNNT7bBb2y15GII8rN1cGyGxqVDiiajMDe51p3lyWWCpUeY4ppxj/UA==",453 "version": "2.0.8", 454 "resolved": "https://registry.npmjs.org/@wordpress/dom/-/dom-2.0.8.tgz", 455 "integrity": "sha512-Nz1k1tB/NXcfpAWUL+mTtEzxC6Dp6UAavIzJVQgAq8gsdayh7F9lgkyyL5MWLirAKkGuhztwMrSle9s5HzrTlw==", 456 456 "requires": { 457 457 "@babel/runtime": "^7.0.0", … … 468 468 }, 469 469 "@wordpress/edit-post": { 470 "version": "3.1. 6",471 "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-3.1. 6.tgz",472 "integrity": "sha512- l3C60fEdO4UfZc46KdmIGQ2cIAtd7JgLtWMEsHEj/y4WpWg5gIC9pDRwsL0WNbZGlwt0SNJOTZRnGwBJaacp+Q==",470 "version": "3.1.7", 471 "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-3.1.7.tgz", 472 "integrity": "sha512-720hfAP03KSPigxuJR/kDBd9xLhddiFL1JQHQvyOFz4DAaBROUnhuaYHS6KOuqJMJgpbjw3Ey0nzEV7KHGaYhg==", 473 473 "requires": { 474 474 "@babel/runtime": "^7.0.0", 475 475 "@wordpress/a11y": "^2.0.2", 476 "@wordpress/api-fetch": "^2.2. 6",477 "@wordpress/block-library": "^2.2.1 1",478 "@wordpress/blocks": "^6.0. 4",479 "@wordpress/components": "^7.0. 4",476 "@wordpress/api-fetch": "^2.2.7", 477 "@wordpress/block-library": "^2.2.12", 478 "@wordpress/blocks": "^6.0.5", 479 "@wordpress/components": "^7.0.5", 480 480 "@wordpress/compose": "^3.0.0", 481 "@wordpress/core-data": "^2.0.1 5",482 "@wordpress/data": "^4. 1.0",483 "@wordpress/editor": "^9.0. 6",481 "@wordpress/core-data": "^2.0.16", 482 "@wordpress/data": "^4.2.0", 483 "@wordpress/editor": "^9.0.7", 484 484 "@wordpress/element": "^2.1.8", 485 "@wordpress/format-library": "^1.2. 9",486 "@wordpress/hooks": "^2.0. 3",485 "@wordpress/format-library": "^1.2.10", 486 "@wordpress/hooks": "^2.0.4", 487 487 "@wordpress/i18n": "^3.1.0", 488 488 "@wordpress/keycodes": "^2.0.5", 489 "@wordpress/nux": "^3.0. 5",490 "@wordpress/plugins": "^2.0. 9",491 "@wordpress/url": "^2.3. 2",492 "@wordpress/viewport": "^2. 0.13",489 "@wordpress/nux": "^3.0.6", 490 "@wordpress/plugins": "^2.0.10", 491 "@wordpress/url": "^2.3.3", 492 "@wordpress/viewport": "^2.1.0", 493 493 "classnames": "^2.2.5", 494 494 "lodash": "^4.17.10", … … 497 497 }, 498 498 "@wordpress/editor": { 499 "version": "9.0. 6",500 "resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-9.0. 6.tgz",501 "integrity": "sha512- DhGA+LU1p5GU4uKFNqSWKGjYJX5qjTL1Lrh4MF6UmsVCTwnCTKuC87ERAQSV3LGz9jwHvyVqVp2kK4JnqlO+SA==",499 "version": "9.0.7", 500 "resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-9.0.7.tgz", 501 "integrity": "sha512-6WlkzTrW2x3GXysWjjerU12l5xdGJtuKIOtWsB8UnooIU+lOP0PuNxrbKSBKDwlSJPeb0t2hbqF6xuuHgx6uhA==", 502 502 "requires": { 503 503 "@babel/runtime": "^7.0.0", 504 504 "@wordpress/a11y": "^2.0.2", 505 "@wordpress/api-fetch": "^2.2. 6",505 "@wordpress/api-fetch": "^2.2.7", 506 506 "@wordpress/blob": "^2.1.0", 507 "@wordpress/blocks": "^6.0. 4",508 "@wordpress/components": "^7.0. 4",507 "@wordpress/blocks": "^6.0.5", 508 "@wordpress/components": "^7.0.5", 509 509 "@wordpress/compose": "^3.0.0", 510 "@wordpress/core-data": "^2.0.1 5",511 "@wordpress/data": "^4. 1.0",510 "@wordpress/core-data": "^2.0.16", 511 "@wordpress/data": "^4.2.0", 512 512 "@wordpress/date": "^3.0.1", 513 "@wordpress/deprecated": "^2.0. 3",514 "@wordpress/dom": "^2.0. 7",513 "@wordpress/deprecated": "^2.0.4", 514 "@wordpress/dom": "^2.0.8", 515 515 "@wordpress/element": "^2.1.8", 516 "@wordpress/hooks": "^2.0. 3",516 "@wordpress/hooks": "^2.0.4", 517 517 "@wordpress/html-entities": "^2.0.4", 518 518 "@wordpress/i18n": "^3.1.0", 519 519 "@wordpress/is-shallow-equal": "^1.1.4", 520 520 "@wordpress/keycodes": "^2.0.5", 521 "@wordpress/notices": "^1.1. 1",522 "@wordpress/nux": "^3.0. 5",521 "@wordpress/notices": "^1.1.2", 522 "@wordpress/nux": "^3.0.6", 523 523 "@wordpress/token-list": "^1.1.0", 524 "@wordpress/url": "^2.3. 2",525 "@wordpress/viewport": "^2. 0.13",524 "@wordpress/url": "^2.3.3", 525 "@wordpress/viewport": "^2.1.0", 526 526 "@wordpress/wordcount": "^2.0.3", 527 527 "classnames": "^2.2.5", … … 595 595 }, 596 596 "@wordpress/format-library": { 597 "version": "1.2. 9",598 "resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-1.2. 9.tgz",599 "integrity": "sha512- 7MRP29L96XVnyyQfnQESSL2HeW2+Iy7+AsQREJsXvXlNj/Z9v72iujR8uOAcgBaSebsyrSDmyQn8ipZ3siIcsg==",597 "version": "1.2.10", 598 "resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-1.2.10.tgz", 599 "integrity": "sha512-ksYU4GG1Pc+lNuz+V00yH0j8mgaBFVCzCemqVZqDbNqDrC8cdwWExv9cccn0miBGwNwLgcn6fj1IAjy91rtzeA==", 600 600 "requires": { 601 601 "@babel/runtime": "^7.0.0", 602 "@wordpress/components": "^7.0. 4",603 "@wordpress/dom": "^2.0. 7",604 "@wordpress/editor": "^9.0. 6",602 "@wordpress/components": "^7.0.5", 603 "@wordpress/dom": "^2.0.8", 604 "@wordpress/editor": "^9.0.7", 605 605 "@wordpress/element": "^2.1.8", 606 606 "@wordpress/i18n": "^3.1.0", 607 607 "@wordpress/keycodes": "^2.0.5", 608 "@wordpress/rich-text": "^3.0. 3",609 "@wordpress/url": "^2.3. 2"608 "@wordpress/rich-text": "^3.0.4", 609 "@wordpress/url": "^2.3.3" 610 610 } 611 611 }, 612 612 "@wordpress/hooks": { 613 "version": "2.0. 3",614 "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-2.0. 3.tgz",615 "integrity": "sha512- dMXM8VX1MfMN+vrstOdpCXioo4evtvjTESVnSc+AjKVOAWOCbuT/ci3aDLy8DreyDrWYgUR35Gfh7Y8JJix7vA==",613 "version": "2.0.4", 614 "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-2.0.4.tgz", 615 "integrity": "sha512-9Z+zymxRI1vNVPnAhGOYjp05Do/rNWdj/0lrx0oC8vluQFyaU9OWS7+il1eL8kfr+27nzcBnoU0e2WfvoXVhyg==", 616 616 "requires": { 617 617 "@babel/runtime": "^7.0.0" … … 676 676 }, 677 677 "@wordpress/list-reusable-blocks": { 678 "version": "1.1.1 7",679 "resolved": "https://registry.npmjs.org/@wordpress/list-reusable-blocks/-/list-reusable-blocks-1.1.1 7.tgz",680 "integrity": "sha512- 5xfjpEVQQN4RW3f1EiVZg9Cko7EcCrl9lDkkGkH7nkDg/BsmI65H8eVTo5eo91nQdxnnE+R/1Hu2ojqiIxNiFg==",678 "version": "1.1.18", 679 "resolved": "https://registry.npmjs.org/@wordpress/list-reusable-blocks/-/list-reusable-blocks-1.1.18.tgz", 680 "integrity": "sha512-ujeO6mffuWYSBrjBU/Klr8cqcrNTDMebDZI1BVWNPTa8qoM+qAqySf/++5okdXN4xaQkt7Y+2vzOcn7AsNPOiA==", 681 681 "requires": { 682 682 "@babel/runtime": "^7.0.0", 683 "@wordpress/api-fetch": "^2.2. 6",684 "@wordpress/components": "^7.0. 4",683 "@wordpress/api-fetch": "^2.2.7", 684 "@wordpress/components": "^7.0.5", 685 685 "@wordpress/compose": "^3.0.0", 686 686 "@wordpress/element": "^2.1.8", … … 690 690 }, 691 691 "@wordpress/notices": { 692 "version": "1.1. 1",693 "resolved": "https://registry.npmjs.org/@wordpress/notices/-/notices-1.1. 1.tgz",694 "integrity": "sha512- iFbO0GUx+TlmgPGyjTOKErc7w6YQa/jbMMrqCOjrueShBSdgvCplfuHuaU/SCzFbvN6HiZM4XZsfSQYJX+nIAA==",692 "version": "1.1.2", 693 "resolved": "https://registry.npmjs.org/@wordpress/notices/-/notices-1.1.2.tgz", 694 "integrity": "sha512-X4mYC1ANmKZK9m6TJirj1yZkbLEt7e+M/42+UO4EV4AdlusaUipp0IE1Mwn5rDX3B1EsCbqR/jnrvak6SRMebg==", 695 695 "requires": { 696 696 "@babel/runtime": "^7.0.0", 697 697 "@wordpress/a11y": "^2.0.2", 698 "@wordpress/data": "^4. 1.0",698 "@wordpress/data": "^4.2.0", 699 699 "lodash": "^4.17.10" 700 700 } 701 701 }, 702 702 "@wordpress/nux": { 703 "version": "3.0. 5",704 "resolved": "https://registry.npmjs.org/@wordpress/nux/-/nux-3.0. 5.tgz",705 "integrity": "sha512- E3HewiMzFEHPZBopHvU9O0tOe13JQj6zkb7poifO1xqLNv+BT3ZAFXAD+d6o9JhlA0yWhyxI1UqMVrBMp/Jq6Q==",703 "version": "3.0.6", 704 "resolved": "https://registry.npmjs.org/@wordpress/nux/-/nux-3.0.6.tgz", 705 "integrity": "sha512-HwEus1ErZmYDmFU2iD61/P+Tmq02S83ZK0p52Ih3Guz4QXjPpNrc0WG0yupmGxPYzBGVyG9aLTmenkC0mQ+ihA==", 706 706 "requires": { 707 707 "@babel/runtime": "^7.0.0", 708 "@wordpress/components": "^7.0. 4",708 "@wordpress/components": "^7.0.5", 709 709 "@wordpress/compose": "^3.0.0", 710 "@wordpress/data": "^4. 1.0",710 "@wordpress/data": "^4.2.0", 711 711 "@wordpress/element": "^2.1.8", 712 712 "@wordpress/i18n": "^3.1.0", … … 716 716 }, 717 717 "@wordpress/plugins": { 718 "version": "2.0. 9",719 "resolved": "https://registry.npmjs.org/@wordpress/plugins/-/plugins-2.0. 9.tgz",720 "integrity": "sha512- 9P+XWDaGlvdckvIPbQHPRUC0O3AqDrPngA0CxjhsYuKOd77uQfGlzMdeXNebDmky/u6aV6z7R/Phf6HQEs0aDA==",718 "version": "2.0.10", 719 "resolved": "https://registry.npmjs.org/@wordpress/plugins/-/plugins-2.0.10.tgz", 720 "integrity": "sha512-bg2Xo9PSz0zBM4z2hh7aTRxitRIbr4ue27vIjpOfAXEn33L0UAzpefIhHVhrRGcFjAFBxiLicktoxcTXhNuz+w==", 721 721 "requires": { 722 722 "@babel/runtime": "^7.0.0", 723 723 "@wordpress/compose": "^3.0.0", 724 724 "@wordpress/element": "^2.1.8", 725 "@wordpress/hooks": "^2.0. 3",725 "@wordpress/hooks": "^2.0.4", 726 726 "lodash": "^4.17.10" 727 727 } … … 738 738 }, 739 739 "@wordpress/rich-text": { 740 "version": "3.0. 3",741 "resolved": "https://registry.npmjs.org/@wordpress/rich-text/-/rich-text-3.0. 3.tgz",742 "integrity": "sha512- w/03H2CyhOPAV7fGHyz1Dph59PM0f3orw9PLZYUpFOBELczoVgKwAyl5aEf6fK+KNGXO/XA4YsJ3mIVCvVdhmQ==",740 "version": "3.0.4", 741 "resolved": "https://registry.npmjs.org/@wordpress/rich-text/-/rich-text-3.0.4.tgz", 742 "integrity": "sha512-dv14T0wk0YPZtDNdoJKuduf3McCdQpcUHczhMoYg3WssBkyOPY3Vak8RH6t/uEnEwZhgJIolkcwrTedIFXiC4Q==", 743 743 "requires": { 744 744 "@babel/runtime": "^7.0.0", 745 745 "@wordpress/compose": "^3.0.0", 746 "@wordpress/data": "^4. 1.0",746 "@wordpress/data": "^4.2.0", 747 747 "@wordpress/escape-html": "^1.0.1", 748 748 "lodash": "^4.17.10", … … 770 770 }, 771 771 "@wordpress/url": { 772 "version": "2.3. 2",773 "resolved": "https://registry.npmjs.org/@wordpress/url/-/url-2.3. 2.tgz",774 "integrity": "sha512- XI/LBkUNNzP2cckEjkh47I3nw4dis64Hy4i2qStYuGdk/JQnW0BOn2El4sB/8mzeqcYyIF4nna7iMe67t5BI7g==",772 "version": "2.3.3", 773 "resolved": "https://registry.npmjs.org/@wordpress/url/-/url-2.3.3.tgz", 774 "integrity": "sha512-WGqQjOyu02E7bJ77G8385GGjUYpvF8vDqZXXHW06/WRSb4nW6fmMIM65UWdBaYY5XecAkpglCqwd8DNbquLucQ==", 775 775 "requires": { 776 776 "@babel/runtime": "^7.0.0", … … 779 779 }, 780 780 "@wordpress/viewport": { 781 "version": "2. 0.13",782 "resolved": "https://registry.npmjs.org/@wordpress/viewport/-/viewport-2. 0.13.tgz",783 "integrity": "sha512- WqJbezqauYe8gT3AIAUt0Lcp/LoAW/NJ7/M64ZlYYhajDoXpDddc3qQF3nrIHp68WD+lGDd2LuoCuNvGJwiJNw==",781 "version": "2.1.0", 782 "resolved": "https://registry.npmjs.org/@wordpress/viewport/-/viewport-2.1.0.tgz", 783 "integrity": "sha512-CPa/ifeDCTY6mqF/1maS35kB3N2HT7nhBwEnzbWWVMVVr3joulQuPunzSoPO8TzBhyctdnaY9ltNoN+fo+u31w==", 784 784 "requires": { 785 785 "@babel/runtime": "^7.0.0", 786 786 "@wordpress/compose": "^3.0.0", 787 "@wordpress/data": "^4. 1.0",787 "@wordpress/data": "^4.2.0", 788 788 "@wordpress/element": "^2.1.8", 789 789 "lodash": "^4.17.10" … … 2450 2450 "browserify-rsa": { 2451 2451 "version": "4.0.1", 2452 "resolved": "http s://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz",2452 "resolved": "http://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz", 2453 2453 "integrity": "sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ=", 2454 2454 "dev": true, … … 2747 2747 "chalk": { 2748 2748 "version": "1.1.3", 2749 "resolved": "http s://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",2749 "resolved": "http://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", 2750 2750 "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", 2751 2751 "requires": { … … 4542 4542 "events": { 4543 4543 "version": "1.1.1", 4544 "resolved": "http s://registry.npmjs.org/events/-/events-1.1.1.tgz",4544 "resolved": "http://registry.npmjs.org/events/-/events-1.1.1.tgz", 4545 4545 "integrity": "sha1-nr23Y1rQmccNzEwqH1AEKI6L2SQ=", 4546 4546 "dev": true … … 4836 4836 "core-js": { 4837 4837 "version": "1.2.7", 4838 "resolved": "http ://registry.npmjs.org/core-js/-/core-js-1.2.7.tgz",4838 "resolved": "https://registry.npmjs.org/core-js/-/core-js-1.2.7.tgz", 4839 4839 "integrity": "sha1-ZSKUwUZR2yj6k70tX/KYOk8IxjY=" 4840 4840 } … … 5190 5190 "version": "1.0.0", 5191 5191 "bundled": true, 5192 "dev": true 5192 "dev": true, 5193 "optional": true 5193 5194 }, 5194 5195 "brace-expansion": { … … 5196 5197 "bundled": true, 5197 5198 "dev": true, 5199 "optional": true, 5198 5200 "requires": { 5199 5201 "balanced-match": "^1.0.0", … … 5210 5212 "version": "1.1.0", 5211 5213 "bundled": true, 5212 "dev": true 5214 "dev": true, 5215 "optional": true 5213 5216 }, 5214 5217 "concat-map": { 5215 5218 "version": "0.0.1", 5216 5219 "bundled": true, 5217 "dev": true 5220 "dev": true, 5221 "optional": true 5218 5222 }, 5219 5223 "console-control-strings": { 5220 5224 "version": "1.1.0", 5221 5225 "bundled": true, 5222 "dev": true 5226 "dev": true, 5227 "optional": true 5223 5228 }, 5224 5229 "core-util-is": { … … 5337 5342 "version": "2.0.3", 5338 5343 "bundled": true, 5339 "dev": true 5344 "dev": true, 5345 "optional": true 5340 5346 }, 5341 5347 "ini": { … … 5349 5355 "bundled": true, 5350 5356 "dev": true, 5357 "optional": true, 5351 5358 "requires": { 5352 5359 "number-is-nan": "^1.0.0" … … 5363 5370 "bundled": true, 5364 5371 "dev": true, 5372 "optional": true, 5365 5373 "requires": { 5366 5374 "brace-expansion": "^1.1.7" … … 5370 5378 "version": "0.0.8", 5371 5379 "bundled": true, 5372 "dev": true 5380 "dev": true, 5381 "optional": true 5373 5382 }, 5374 5383 "minipass": { … … 5376 5385 "bundled": true, 5377 5386 "dev": true, 5387 "optional": true, 5378 5388 "requires": { 5379 5389 "safe-buffer": "^5.1.1", … … 5394 5404 "bundled": true, 5395 5405 "dev": true, 5406 "optional": true, 5396 5407 "requires": { 5397 5408 "minimist": "0.0.8" … … 5474 5485 "version": "1.0.1", 5475 5486 "bundled": true, 5476 "dev": true 5487 "dev": true, 5488 "optional": true 5477 5489 }, 5478 5490 "object-assign": { … … 5486 5498 "bundled": true, 5487 5499 "dev": true, 5500 "optional": true, 5488 5501 "requires": { 5489 5502 "wrappy": "1" … … 5607 5620 "bundled": true, 5608 5621 "dev": true, 5622 "optional": true, 5609 5623 "requires": { 5610 5624 "code-point-at": "^1.0.0", … … 5815 5829 "gettext-parser": { 5816 5830 "version": "1.4.0", 5817 "resolved": "http ://registry.npmjs.org/gettext-parser/-/gettext-parser-1.4.0.tgz",5831 "resolved": "https://registry.npmjs.org/gettext-parser/-/gettext-parser-1.4.0.tgz", 5818 5832 "integrity": "sha512-sedZYLHlHeBop/gZ1jdg59hlUEcpcZJofLq2JFwJT1zTqAU3l2wFv6IsuwFHGqbiT9DWzMUW4/em2+hspnmMMA==", 5819 5833 "requires": { … … 10102 10116 }, 10103 10117 "object.entries": { 10104 "version": "1. 0.4",10105 "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1. 0.4.tgz",10106 "integrity": "sha 1-G/mk3SKI9bM/Opk9JXZh8F0WGl8=",10107 "requires": { 10108 "define-properties": "^1.1. 2",10109 "es-abstract": "^1. 6.1",10110 "function-bind": "^1.1. 0",10111 "has": "^1.0. 1"10118 "version": "1.1.0", 10119 "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.0.tgz", 10120 "integrity": "sha512-l+H6EQ8qzGRxbkHOd5I/aHRhHDKoQXQ8g0BYt4uSweQU1/J6dZUOyWh9a2Vky35YCKjzmgxOzta2hH6kf9HuXA==", 10121 "requires": { 10122 "define-properties": "^1.1.3", 10123 "es-abstract": "^1.12.0", 10124 "function-bind": "^1.1.1", 10125 "has": "^1.0.3" 10112 10126 } 10113 10127 }, … … 10192 10206 "onetime": { 10193 10207 "version": "1.1.0", 10194 "resolved": "http s://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz",10208 "resolved": "http://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz", 10195 10209 "integrity": "sha1-ofeDj4MUxRbwXs78vEzP4EtO14k=", 10196 10210 "dev": true … … 10614 10628 "async": { 10615 10629 "version": "1.5.2", 10616 "resolved": "http s://registry.npmjs.org/async/-/async-1.5.2.tgz",10630 "resolved": "http://registry.npmjs.org/async/-/async-1.5.2.tgz", 10617 10631 "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", 10618 10632 "dev": true … … 11315 11329 }, 11316 11330 "re-resizable": { 11317 "version": "4.1 0.0",11318 "resolved": "https://registry.npmjs.org/re-resizable/-/re-resizable-4.1 0.0.tgz",11319 "integrity": "sha512- g5Q5IswKX7LM+MtYFnuzaQrTEGr/kpserqGV8V6HYkjwbV60XnJv00VlKugLHEwlQ5pgrV08spm0TjyyYVbWmQ=="11331 "version": "4.11.0", 11332 "resolved": "https://registry.npmjs.org/re-resizable/-/re-resizable-4.11.0.tgz", 11333 "integrity": "sha512-dye+7rERqNf/6mDT1iwps+4Gf42420xuZgygF33uX178DxffqcyeuHbBuJ382FIcB5iP6mMZOhfW7kI0uXwb/Q==" 11320 11334 }, 11321 11335 "react": { -
branches/5.0/package.json
r44342 r44390 52 52 "@babel/polyfill": "^7.0.0", 53 53 "@wordpress/a11y": "^2.0.2", 54 "@wordpress/annotations": "^1.0. 4",55 "@wordpress/api-fetch": "^2.2. 6",54 "@wordpress/annotations": "^1.0.5", 55 "@wordpress/api-fetch": "^2.2.7", 56 56 "@wordpress/autop": "^2.0.2", 57 57 "@wordpress/blob": "^2.1.0", 58 "@wordpress/block-library": "^2.2.1 1",59 "@wordpress/block-serialization-default-parser": "^2.0. 2",60 "@wordpress/blocks": "^6.0. 4",61 "@wordpress/components": "^7.0. 4",58 "@wordpress/block-library": "^2.2.12", 59 "@wordpress/block-serialization-default-parser": "^2.0.3", 60 "@wordpress/blocks": "^6.0.5", 61 "@wordpress/components": "^7.0.5", 62 62 "@wordpress/compose": "^3.0.0", 63 "@wordpress/core-data": "^2.0.1 5",64 "@wordpress/data": "^4. 1.0",63 "@wordpress/core-data": "^2.0.16", 64 "@wordpress/data": "^4.2.0", 65 65 "@wordpress/date": "^3.0.1", 66 "@wordpress/deprecated": "^2.0. 3",67 "@wordpress/dom": "^2.0. 7",66 "@wordpress/deprecated": "^2.0.4", 67 "@wordpress/dom": "^2.0.8", 68 68 "@wordpress/dom-ready": "^2.0.2", 69 "@wordpress/edit-post": "^3.1. 6",70 "@wordpress/editor": "^9.0. 6",69 "@wordpress/edit-post": "^3.1.7", 70 "@wordpress/editor": "^9.0.7", 71 71 "@wordpress/element": "^2.1.8", 72 72 "@wordpress/escape-html": "^1.0.1", 73 "@wordpress/format-library": "^1.2. 9",74 "@wordpress/hooks": "^2.0. 3",73 "@wordpress/format-library": "^1.2.10", 74 "@wordpress/hooks": "^2.0.4", 75 75 "@wordpress/html-entities": "^2.0.4", 76 76 "@wordpress/i18n": "^3.1.0", 77 77 "@wordpress/is-shallow-equal": "^1.1.4", 78 78 "@wordpress/keycodes": "^2.0.5", 79 "@wordpress/list-reusable-blocks": "^1.1.1 7",80 "@wordpress/notices": "^1.1. 1",81 "@wordpress/nux": "^3.0. 5",82 "@wordpress/plugins": "^2.0. 9",79 "@wordpress/list-reusable-blocks": "^1.1.18", 80 "@wordpress/notices": "^1.1.2", 81 "@wordpress/nux": "^3.0.6", 82 "@wordpress/plugins": "^2.0.10", 83 83 "@wordpress/redux-routine": "^3.0.3", 84 "@wordpress/rich-text": "^3.0. 3",84 "@wordpress/rich-text": "^3.0.4", 85 85 "@wordpress/shortcode": "^2.0.2", 86 86 "@wordpress/token-list": "^1.1.0", 87 "@wordpress/url": "^2.3. 2",88 "@wordpress/viewport": "^2. 0.13",87 "@wordpress/url": "^2.3.3", 88 "@wordpress/viewport": "^2.1.0", 89 89 "@wordpress/wordcount": "^2.0.3", 90 90 "element-closest": "^2.0.2", -
branches/5.0/src/wp-includes/class-wp-block-parser.php
r43955 r44390 1 1 <?php 2 /** 3 * Block Serialization Parser 4 * 5 * @package WordPress 6 */ 2 7 3 8 /** … … 63 68 public $innerContent; 64 69 70 /** 71 * Constructor. 72 * 73 * Will populate object properties from the provided arguments. 74 * 75 * @since 3.8.0 76 * 77 * @param string $name Name of block. 78 * @param array $attrs Optional set of attributes from block comment delimiters. 79 * @param array $innerBlocks List of inner blocks (of this same class). 80 * @param string $innerHTML Resultant HTML from inside block comment delimiters after removing inner blocks. 81 * @param array $innerContent List of string fragments and null markers where inner blocks were found. 82 */ 65 83 function __construct( $name, $attrs, $innerBlocks, $innerHTML, $innerContent ) { 66 $this->blockName = $name;67 $this->attrs = $attrs;68 $this->innerBlocks = $innerBlocks;69 $this->innerHTML = $innerHTML;84 $this->blockName = $name; 85 $this->attrs = $attrs; 86 $this->innerBlocks = $innerBlocks; 87 $this->innerHTML = $innerHTML; 70 88 $this->innerContent = $innerContent; 71 89 } … … 122 140 public $leading_html_start; 123 141 142 /** 143 * Constructor 144 * 145 * Will populate object properties from the provided arguments. 146 * 147 * @since 3.8.0 148 * 149 * @param WP_Block_Parser_Block $block Full or partial block. 150 * @param int $token_start Byte offset into document for start of parse token. 151 * @param int $token_length Byte length of entire parse token string. 152 * @param int $prev_offset Byte offset into document for after parse token ends. 153 * @param int $leading_html_start Byte offset into document where leading HTML before token starts. 154 */ 124 155 function __construct( $block, $token_start, $token_length, $prev_offset = null, $leading_html_start = null ) { 125 156 $this->block = $block; … … 191 222 * @since 3.8.0 192 223 * 193 * @param string $document 224 * @param string $document Input document being parsed. 194 225 * @return WP_Block_Parser_Block[] 195 226 */ … … 202 233 203 234 do { 204 // twiddle our thumbs 235 // twiddle our thumbs. 205 236 } while ( $this->proceed() ); 206 237 … … 227 258 $stack_depth = count( $this->stack ); 228 259 229 // we may have some HTML soup before the next block 260 // we may have some HTML soup before the next block. 230 261 $leading_html_start = $start_offset > $this->offset ? $this->offset : null; 231 262 232 263 switch ( $token_type ) { 233 264 case 'no-more-tokens': 234 // if not in a block then flush output 265 // if not in a block then flush output. 235 266 if ( 0 === $stack_depth ) { 236 267 $this->add_freeform(); … … 247 278 */ 248 279 249 // for the easy case we'll assume an implicit closer 280 // for the easy case we'll assume an implicit closer. 250 281 if ( 1 === $stack_depth ) { 251 282 $this->add_block_from_stack(); … … 270 301 if ( 0 === $stack_depth ) { 271 302 if ( isset( $leading_html_start ) ) { 272 $this->output[] = (array) self::freeform( substr( 273 $this->document, 274 $leading_html_start, 275 $start_offset - $leading_html_start 276 ) ); 303 $this->output[] = (array) self::freeform( 304 substr( 305 $this->document, 306 $leading_html_start, 307 $start_offset - $leading_html_start 308 ) 309 ); 277 310 } 278 311 279 312 $this->output[] = (array) new WP_Block_Parser_Block( $block_name, $attrs, array(), '', array() ); 280 $this->offset = $start_offset + $token_length;313 $this->offset = $start_offset + $token_length; 281 314 return true; 282 315 } 283 316 284 // otherwise we found an inner block 317 // otherwise we found an inner block. 285 318 $this->add_inner_block( 286 319 new WP_Block_Parser_Block( $block_name, $attrs, array(), '', array() ), … … 292 325 293 326 case 'block-opener': 294 // track all newly-opened blocks on the stack 295 array_push( $this->stack, new WP_Block_Parser_Frame( 296 new WP_Block_Parser_Block( $block_name, $attrs, array(), '', array() ), 297 $start_offset, 298 $token_length, 299 $start_offset + $token_length, 300 $leading_html_start 301 ) ); 327 // track all newly-opened blocks on the stack. 328 array_push( 329 $this->stack, 330 new WP_Block_Parser_Frame( 331 new WP_Block_Parser_Block( $block_name, $attrs, array(), '', array() ), 332 $start_offset, 333 $token_length, 334 $start_offset + $token_length, 335 $leading_html_start 336 ) 337 ); 302 338 $this->offset = $start_offset + $token_length; 303 339 return true; … … 319 355 } 320 356 321 // if we're not nesting then this is easy - close the block 357 // if we're not nesting then this is easy - close the block. 322 358 if ( 1 === $stack_depth ) { 323 359 $this->add_block_from_stack( $start_offset ); … … 330 366 * block and add it as a new innerBlock to the parent 331 367 */ 332 $stack_top = array_pop( $this->stack );333 $html = substr( $this->document, $stack_top->prev_offset, $start_offset - $stack_top->prev_offset );334 $stack_top->block->innerHTML .= $html;368 $stack_top = array_pop( $this->stack ); 369 $html = substr( $this->document, $stack_top->prev_offset, $start_offset - $stack_top->prev_offset ); 370 $stack_top->block->innerHTML .= $html; 335 371 $stack_top->block->innerContent[] = $html; 336 $stack_top->prev_offset = $start_offset + $token_length;372 $stack_top->prev_offset = $start_offset + $token_length; 337 373 338 374 $this->add_inner_block( … … 346 382 347 383 default: 348 // This is an error 384 // This is an error. 349 385 $this->add_freeform(); 350 386 return false; … … 382 418 ); 383 419 384 // if we get here we probably have catastrophic backtracking or out-of-memory in the PCRE 420 // if we get here we probably have catastrophic backtracking or out-of-memory in the PCRE. 385 421 if ( false === $has_match ) { 386 422 return array( 'no-more-tokens', null, null, null, null ); 387 423 } 388 424 389 // we have no more tokens 425 // we have no more tokens. 390 426 if ( 0 === $has_match ) { 391 427 return array( 'no-more-tokens', null, null, null, null ); 392 428 } 393 429 394 list( $match, $started_at ) = $matches[ 0];430 list( $match, $started_at ) = $matches[0]; 395 431 396 432 $length = strlen( $match ); 397 $is_closer = isset( $matches[ 'closer' ] ) && -1 !== $matches[ 'closer' ][ 1];398 $is_void = isset( $matches[ 'void' ] ) && -1 !== $matches[ 'void' ][ 1];399 $namespace = $matches[ 'namespace'];400 $namespace = ( isset( $namespace ) && -1 !== $namespace[ 1 ] ) ? $namespace[ 0] : 'core/';401 $name = $namespace . $matches[ 'name' ][ 0];402 $has_attrs = isset( $matches[ 'attrs' ] ) && -1 !== $matches[ 'attrs' ][ 1];433 $is_closer = isset( $matches['closer'] ) && -1 !== $matches['closer'][1]; 434 $is_void = isset( $matches['void'] ) && -1 !== $matches['void'][1]; 435 $namespace = $matches['namespace']; 436 $namespace = ( isset( $namespace ) && -1 !== $namespace[1] ) ? $namespace[0] : 'core/'; 437 $name = $namespace . $matches['name'][0]; 438 $has_attrs = isset( $matches['attrs'] ) && -1 !== $matches['attrs'][1]; 403 439 404 440 /* … … 407 443 */ 408 444 $attrs = $has_attrs 409 ? json_decode( $matches[ 'attrs' ][ 0], /* as-associative */ true )445 ? json_decode( $matches['attrs'][0], /* as-associative */ true ) 410 446 : $this->empty_attrs; 411 447 … … 415 451 */ 416 452 if ( $is_closer && ( $is_void || $has_attrs ) ) { 417 // we can ignore them since they don't hurt anything 453 // we can ignore them since they don't hurt anything. 418 454 } 419 455 … … 435 471 * @since 3.9.0 436 472 * 437 * @param string $innerHTML HTML content of block 438 * @return WP_Block_Parser_Block freeform block object 473 * @param string $innerHTML HTML content of block. 474 * @return WP_Block_Parser_Block freeform block object. 439 475 */ 440 476 function freeform( $innerHTML ) { … … 444 480 /** 445 481 * Pushes a length of text from the input document 446 * to the output list as a freeform block 482 * to the output list as a freeform block. 447 483 * 448 484 * @internal 449 485 * @since 3.8.0 450 * @param null $length how many bytes of document text to output 486 * @param null $length how many bytes of document text to output. 451 487 */ 452 488 function add_freeform( $length = null ) { … … 462 498 /** 463 499 * Given a block structure from memory pushes 464 * a new block to the output list 500 * a new block to the output list. 465 501 * 466 502 * @internal 467 503 * @since 3.8.0 468 * @param WP_Block_Parser_Block $block the block to add to the output469 * @param int $token_start byte offset into the document where the first token for the block starts470 * @param int $token_length byte length of entire block from start of opening token to end of closing token471 * @param int|null $last_offset last byte offset into document if continuing form earlier output504 * @param WP_Block_Parser_Block $block The block to add to the output. 505 * @param int $token_start Byte offset into the document where the first token for the block starts. 506 * @param int $token_length Byte length of entire block from start of opening token to end of closing token. 507 * @param int|null $last_offset Last byte offset into document if continuing form earlier output. 472 508 */ 473 509 function add_inner_block( WP_Block_Parser_Block $block, $token_start, $token_length, $last_offset = null ) { 474 $parent = $this->stack[ count( $this->stack ) - 1 ];510 $parent = $this->stack[ count( $this->stack ) - 1 ]; 475 511 $parent->block->innerBlocks[] = (array) $block; 476 $html = substr( $this->document, $parent->prev_offset, $token_start - $parent->prev_offset );512 $html = substr( $this->document, $parent->prev_offset, $token_start - $parent->prev_offset ); 477 513 478 514 if ( ! empty( $html ) ) { 479 $parent->block->innerHTML .= $html;515 $parent->block->innerHTML .= $html; 480 516 $parent->block->innerContent[] = $html; 481 517 } 482 518 483 519 $parent->block->innerContent[] = null; 484 $parent->prev_offset = $last_offset ? $last_offset : $token_start + $token_length;485 } 486 487 /** 488 * Pushes the top block from the parsing stack to the output list 520 $parent->prev_offset = $last_offset ? $last_offset : $token_start + $token_length; 521 } 522 523 /** 524 * Pushes the top block from the parsing stack to the output list. 489 525 * 490 526 * @internal 491 527 * @since 3.8.0 492 * @param int|null $end_offset byte offset into document for where we should stop sending text output as HTML 528 * @param int|null $end_offset byte offset into document for where we should stop sending text output as HTML. 493 529 */ 494 530 function add_block_from_stack( $end_offset = null ) { … … 501 537 502 538 if ( ! empty( $html ) ) { 503 $stack_top->block->innerHTML .= $html;539 $stack_top->block->innerHTML .= $html; 504 540 $stack_top->block->innerContent[] = $html; 505 541 } 506 542 507 543 if ( isset( $stack_top->leading_html_start ) ) { 508 $this->output[] = (array) self::freeform( substr( 509 $this->document, 510 $stack_top->leading_html_start, 511 $stack_top->token_start - $stack_top->leading_html_start 512 ) ); 544 $this->output[] = (array) self::freeform( 545 substr( 546 $this->document, 547 $stack_top->leading_html_start, 548 $stack_top->token_start - $stack_top->leading_html_start 549 ) 550 ); 513 551 } 514 552 -
branches/5.0/src/wp-includes/script-loader.php
r44287 r44390 225 225 226 226 $packages_versions = array( 227 'api-fetch' => '2.2. 6',227 'api-fetch' => '2.2.7', 228 228 'a11y' => '2.0.2', 229 'annotations' => '1.0. 4',229 'annotations' => '1.0.5', 230 230 'autop' => '2.0.2', 231 231 'blob' => '2.1.0', 232 'block-library' => '2.2.1 1',233 'block-serialization-default-parser' => '2.0. 2',234 'blocks' => '6.0. 4',235 'components' => '7.0. 4',232 'block-library' => '2.2.12', 233 'block-serialization-default-parser' => '2.0.3', 234 'blocks' => '6.0.5', 235 'components' => '7.0.5', 236 236 'compose' => '3.0.0', 237 'core-data' => '2.0.1 5',238 'data' => '4. 1.0',237 'core-data' => '2.0.16', 238 'data' => '4.2.0', 239 239 'date' => '3.0.1', 240 'deprecated' => '2.0. 3',241 'dom' => '2.0. 7',240 'deprecated' => '2.0.4', 241 'dom' => '2.0.8', 242 242 'dom-ready' => '2.0.2', 243 'edit-post' => '3.1. 6',244 'editor' => '9.0. 6',243 'edit-post' => '3.1.7', 244 'editor' => '9.0.7', 245 245 'element' => '2.1.8', 246 246 'escape-html' => '1.0.1', 247 'format-library' => '1.2. 9',248 'hooks' => '2.0. 3',247 'format-library' => '1.2.10', 248 'hooks' => '2.0.4', 249 249 'html-entities' => '2.0.4', 250 250 'i18n' => '3.1.0', 251 251 'is-shallow-equal' => '1.1.4', 252 252 'keycodes' => '2.0.5', 253 'list-reusable-blocks' => '1.1.1 7',254 'notices' => '1.1. 1',255 'nux' => '3.0. 5',256 'plugins' => '2.0. 9',253 'list-reusable-blocks' => '1.1.18', 254 'notices' => '1.1.2', 255 'nux' => '3.0.6', 256 'plugins' => '2.0.10', 257 257 'redux-routine' => '3.0.3', 258 'rich-text' => '3.0. 3',258 'rich-text' => '3.0.4', 259 259 'shortcode' => '2.0.2', 260 260 'token-list' => '1.1.0', 261 'url' => '2.3. 2',262 'viewport' => '2. 0.13',261 'url' => '2.3.3', 262 'viewport' => '2.1.0', 263 263 'wordcount' => '2.0.3', 264 264 );
Note: See TracChangeset
for help on using the changeset viewer.