Changeset 43884
- Timestamp:
- 11/12/2018 02:26:18 AM (6 years ago)
- Location:
- branches/5.0
- Files:
-
- 45 added
- 75 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/package-lock.json
r43861 r43884 210 210 } 211 211 }, 212 "@wordpress/annotations": { 213 "version": "1.0.0", 214 "resolved": "https://registry.npmjs.org/@wordpress/annotations/-/annotations-1.0.0.tgz", 215 "integrity": "sha512-S1geWYg1OFRy9Lw8IE377DMEcnbFWD0457N7wHEvnjWU4ngI9rbFJ9FLEs/FNNlYR4zVy+niAl6I5pY1Qac9lw==", 216 "requires": { 217 "@babel/runtime": "^7.0.0", 218 "@wordpress/data": "^3.1.2", 219 "@wordpress/hooks": "^2.0.3", 220 "@wordpress/i18n": "^3.0.1", 221 "@wordpress/rich-text": "^2.0.4", 222 "lodash": "^4.17.10", 223 "rememo": "^3.0.0", 224 "uuid": "^3.3.2" 225 } 226 }, 212 227 "@wordpress/api-fetch": { 213 "version": "2.2. 2",214 "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-2.2. 2.tgz",215 "integrity": "sha512- yqJjHR+EjbMZ9BO3DWJqydvlRZoS9M1NvdwXouzkmxCCdVF4JfmWdydfakeXreYH8+T01V/JjP2rZYcQDn36/Q==",228 "version": "2.2.3", 229 "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-2.2.3.tgz", 230 "integrity": "sha512-kYQ8Au3tkNYDkJQfXfe5KS5DGN7YlCM4Ltk1vMCNy7C9JdNNJQ5v44ccZr6hT0usxyj+4UyIh0AnY55asT+b/A==", 216 231 "requires": { 217 232 "@babel/runtime": "^7.0.0", 218 233 "@wordpress/hooks": "^2.0.3", 219 234 "@wordpress/i18n": "^3.0.1", 220 "@wordpress/url": "^2. 2.0"235 "@wordpress/url": "^2.3.0" 221 236 } 222 237 }, … … 238 253 }, 239 254 "@wordpress/block-library": { 240 "version": "2. 1.8",241 "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-2. 1.8.tgz",242 "integrity": "sha512- U8SmRZYsmbmPFV6mh6fyDkif+jvAUCeQgkDJjIMLBucq/7KWQutUj9Led8cFvgZ9mM/ZJ8h4YoFsuh7WhB7Liw==",255 "version": "2.2.2", 256 "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-2.2.2.tgz", 257 "integrity": "sha512-Q0hkYxq1eXRAAhGoCHZ1mT0GV1AtSpyB/N9ZwMrF3nP116tx7hbcMsyJW9j/tgvKLFOUforSitGQyfojxlWysQ==", 243 258 "requires": { 244 259 "@babel/runtime": "^7.0.0", 245 260 "@wordpress/autop": "^2.0.2", 246 261 "@wordpress/blob": "^2.1.0", 247 "@wordpress/blocks": "^5. 1.2",248 "@wordpress/components": "^ 5.0.2",249 "@wordpress/compose": "^2.1. 0",250 "@wordpress/core-data": "^2.0. 9",251 "@wordpress/data": "^3.1. 0",262 "@wordpress/blocks": "^5.3.1", 263 "@wordpress/components": "^6.0.0", 264 "@wordpress/compose": "^2.1.2", 265 "@wordpress/core-data": "^2.0.12", 266 "@wordpress/data": "^3.1.2", 252 267 "@wordpress/deprecated": "^2.0.3", 253 "@wordpress/editor": "^ 6.1.1",254 "@wordpress/element": "^2.1. 5",268 "@wordpress/editor": "^7.0.0", 269 "@wordpress/element": "^2.1.7", 255 270 "@wordpress/html-entities": "^2.0.2", 256 271 "@wordpress/i18n": "^3.0.1", 257 272 "@wordpress/keycodes": "^2.0.3", 258 "@wordpress/viewport": "^2.0. 8",273 "@wordpress/viewport": "^2.0.10", 259 274 "classnames": "^2.2.5", 260 275 "lodash": "^4.17.10", … … 264 279 "querystringify": "^1.0.0", 265 280 "url": "^0.11.0" 281 }, 282 "dependencies": { 283 "@wordpress/compose": { 284 "version": "2.1.2", 285 "resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-2.1.2.tgz", 286 "integrity": "sha512-jr1bWRYx8vt4bCWB4hqR9Ve9rk/TCJ5mFRvkwEd+xTDyXG6ZMmps3HszGA6aCH7E+TCHH+bWw2qZo9sAeHVK/w==", 287 "requires": { 288 "@babel/runtime": "^7.0.0", 289 "@wordpress/deprecated": "^2.0.3", 290 "@wordpress/element": "^2.1.7", 291 "@wordpress/is-shallow-equal": "^1.1.4", 292 "lodash": "^4.17.10" 293 } 294 }, 295 "@wordpress/data": { 296 "version": "3.1.2", 297 "resolved": "https://registry.npmjs.org/@wordpress/data/-/data-3.1.2.tgz", 298 "integrity": "sha512-aAYgRIljpLboplTaCA7t5r+qVjE53VGMS7rLjSHFsoFxj9GYPiCCX1f/B01eKz9pf04rVdM2N4cEowyxjkhKFA==", 299 "requires": { 300 "@babel/runtime": "^7.0.0", 301 "@wordpress/compose": "^2.1.2", 302 "@wordpress/deprecated": "^2.0.3", 303 "@wordpress/element": "^2.1.7", 304 "@wordpress/is-shallow-equal": "^1.1.4", 305 "@wordpress/redux-routine": "^3.0.3", 306 "equivalent-key-map": "^0.2.2", 307 "is-promise": "^2.1.0", 308 "lodash": "^4.17.10", 309 "redux": "^4.0.0", 310 "turbo-combine-reducers": "^1.0.2" 311 } 312 }, 313 "@wordpress/element": { 314 "version": "2.1.7", 315 "resolved": "https://registry.npmjs.org/@wordpress/element/-/element-2.1.7.tgz", 316 "integrity": "sha512-+2Nbs0R3eP2gNrH0z1H5ZXTr0Lja7ZGFrtlKXa3+ZblHDBAheSB24ZEbQqZJTK1zdGw+GOU/vXPyY4ThHHJiPg==", 317 "requires": { 318 "@babel/runtime": "^7.0.0", 319 "@wordpress/escape-html": "^1.0.1", 320 "lodash": "^4.17.10", 321 "react": "^16.4.1", 322 "react-dom": "^16.4.1" 323 } 324 }, 325 "@wordpress/viewport": { 326 "version": "2.0.10", 327 "resolved": "https://registry.npmjs.org/@wordpress/viewport/-/viewport-2.0.10.tgz", 328 "integrity": "sha512-G+7VgUQkRu9JwrsiBvTs/CS87vs6wcxCknr2lWU14rk55FWpxg4fhduRHUcBYEk7E+bvOHV1TgnAspBncu1aYg==", 329 "requires": { 330 "@babel/runtime": "^7.0.0", 331 "@wordpress/compose": "^2.1.2", 332 "@wordpress/data": "^3.1.2", 333 "@wordpress/element": "^2.1.7", 334 "lodash": "^4.17.10" 335 } 336 } 266 337 } 267 338 }, 268 339 "@wordpress/block-serialization-default-parser": { 269 "version": " 1.0.2",270 "resolved": "https://registry.npmjs.org/@wordpress/block-serialization-default-parser/-/block-serialization-default-parser- 1.0.2.tgz",271 "integrity": "sha512- rPsZz5b2E3o9DVsbTmAL64B5CQro65L1QAqyrqr89qUAROvLZepZKIuGo2fd8dsnWIO5v8oaMmc0amSdEmVAiw==",340 "version": "2.0.0", 341 "resolved": "https://registry.npmjs.org/@wordpress/block-serialization-default-parser/-/block-serialization-default-parser-2.0.0.tgz", 342 "integrity": "sha512-WPQuQ2IsUOG9wMTst8CYW8c5NMM3iatTW2FinfZrHtH9R1g9qdQPt5Wv56U7eMeDACVOj35jG2oJtZCRaDyL7A==", 272 343 "requires": { 273 344 "@babel/runtime": "^7.0.0" … … 275 346 }, 276 347 "@wordpress/block-serialization-spec-parser": { 277 "version": " 1.0.4",278 "resolved": "https://registry.npmjs.org/@wordpress/block-serialization-spec-parser/-/block-serialization-spec-parser- 1.0.4.tgz",279 "integrity": "sha512- Z+XfCWG3/wW9IIuxEuS7tHV81tx4rp0ZcAxF9+ESDbhaP5GFSFLVL4+/ubL713vev5TFaPJZN9pRYSljg+bOqA=="348 "version": "2.0.0", 349 "resolved": "https://registry.npmjs.org/@wordpress/block-serialization-spec-parser/-/block-serialization-spec-parser-2.0.0.tgz", 350 "integrity": "sha512-l5N0o2Tkc4IcDhhMfX2W3KuEV/4F7TeitJEDtBpLYf7eRMIn3Uh6l5rPDmmuTDv7UFlMWTiA8z/oCpl13ZyBOw==" 280 351 }, 281 352 "@wordpress/blocks": { 282 "version": "5. 1.2",283 "resolved": "https://registry.npmjs.org/@wordpress/blocks/-/blocks-5. 1.2.tgz",284 "integrity": "sha512- azOaGvpKyV+Jh8yQKjZ/1FzT63LyTmv/OddzSaln8glETF5yh8xsTDbh1XE9zGICi53fl7lgbpkW9OfZrbQTWQ==",353 "version": "5.3.1", 354 "resolved": "https://registry.npmjs.org/@wordpress/blocks/-/blocks-5.3.1.tgz", 355 "integrity": "sha512-bC7yqqfwFRpcOwtcJ5KtIesVH8344wy7HAnYt7g58nGyoFXfO9Ja75f02XS2jqS7Jo1j+gacJqGZoLnHfN8dYw==", 285 356 "requires": { 286 357 "@babel/runtime": "^7.0.0", 287 358 "@wordpress/autop": "^2.0.2", 288 359 "@wordpress/blob": "^2.1.0", 289 "@wordpress/block-serialization-default-parser": "^ 1.0.2",290 "@wordpress/block-serialization-spec-parser": "^ 1.0.4",291 "@wordpress/data": "^3.1. 0",292 "@wordpress/dom": "^2.0. 4",293 "@wordpress/element": "^2.1. 5",360 "@wordpress/block-serialization-default-parser": "^2.0.0", 361 "@wordpress/block-serialization-spec-parser": "^2.0.0", 362 "@wordpress/data": "^3.1.2", 363 "@wordpress/dom": "^2.0.6", 364 "@wordpress/element": "^2.1.7", 294 365 "@wordpress/hooks": "^2.0.3", 295 366 "@wordpress/i18n": "^3.0.1", … … 302 373 "simple-html-tokenizer": "^0.4.1", 303 374 "tinycolor2": "^1.4.1", 304 "uuid": "^3.1.0" 375 "uuid": "^3.3.2" 376 }, 377 "dependencies": { 378 "@wordpress/compose": { 379 "version": "2.1.2", 380 "resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-2.1.2.tgz", 381 "integrity": "sha512-jr1bWRYx8vt4bCWB4hqR9Ve9rk/TCJ5mFRvkwEd+xTDyXG6ZMmps3HszGA6aCH7E+TCHH+bWw2qZo9sAeHVK/w==", 382 "requires": { 383 "@babel/runtime": "^7.0.0", 384 "@wordpress/deprecated": "^2.0.3", 385 "@wordpress/element": "^2.1.7", 386 "@wordpress/is-shallow-equal": "^1.1.4", 387 "lodash": "^4.17.10" 388 } 389 }, 390 "@wordpress/data": { 391 "version": "3.1.2", 392 "resolved": "https://registry.npmjs.org/@wordpress/data/-/data-3.1.2.tgz", 393 "integrity": "sha512-aAYgRIljpLboplTaCA7t5r+qVjE53VGMS7rLjSHFsoFxj9GYPiCCX1f/B01eKz9pf04rVdM2N4cEowyxjkhKFA==", 394 "requires": { 395 "@babel/runtime": "^7.0.0", 396 "@wordpress/compose": "^2.1.2", 397 "@wordpress/deprecated": "^2.0.3", 398 "@wordpress/element": "^2.1.7", 399 "@wordpress/is-shallow-equal": "^1.1.4", 400 "@wordpress/redux-routine": "^3.0.3", 401 "equivalent-key-map": "^0.2.2", 402 "is-promise": "^2.1.0", 403 "lodash": "^4.17.10", 404 "redux": "^4.0.0", 405 "turbo-combine-reducers": "^1.0.2" 406 } 407 }, 408 "@wordpress/dom": { 409 "version": "2.0.6", 410 "resolved": "https://registry.npmjs.org/@wordpress/dom/-/dom-2.0.6.tgz", 411 "integrity": "sha512-z1xdNASrkJc+FTdYAEDKub7pqrizAo2WFlkBmqrurwBcY/HoOTTEqg6wzq2SwvEq/rff741BCWD/JmGU7tI3AQ==", 412 "requires": { 413 "@babel/runtime": "^7.0.0", 414 "lodash": "^4.17.10" 415 } 416 }, 417 "@wordpress/element": { 418 "version": "2.1.7", 419 "resolved": "https://registry.npmjs.org/@wordpress/element/-/element-2.1.7.tgz", 420 "integrity": "sha512-+2Nbs0R3eP2gNrH0z1H5ZXTr0Lja7ZGFrtlKXa3+ZblHDBAheSB24ZEbQqZJTK1zdGw+GOU/vXPyY4ThHHJiPg==", 421 "requires": { 422 "@babel/runtime": "^7.0.0", 423 "@wordpress/escape-html": "^1.0.1", 424 "lodash": "^4.17.10", 425 "react": "^16.4.1", 426 "react-dom": "^16.4.1" 427 } 428 } 305 429 } 306 430 }, 307 431 "@wordpress/components": { 308 "version": " 5.0.2",309 "resolved": "https://registry.npmjs.org/@wordpress/components/-/components- 5.0.2.tgz",310 "integrity": "sha512- i/gnog8ilbZb+8EuIKfJnPQkx1IEh6U/mmWDaesWrYVuIzs7Z4NGWUpLKnmQZHGN6G0YZkd3FJSu5gspwT5bDg==",432 "version": "6.0.0", 433 "resolved": "https://registry.npmjs.org/@wordpress/components/-/components-6.0.0.tgz", 434 "integrity": "sha512-0TeXSfUYHeismfdrTKeFnxg30Nz2F9ZgvqTz2KAiQcCzwgZ/cY8ijf9Ef6Xl11RCEsKoN82tYmc5WNTRrClObA==", 311 435 "requires": { 312 436 "@babel/runtime": "^7.0.0", 313 437 "@wordpress/a11y": "^2.0.2", 314 "@wordpress/api-fetch": "^2.2. 2",315 "@wordpress/compose": "^2.1. 0",438 "@wordpress/api-fetch": "^2.2.3", 439 "@wordpress/compose": "^2.1.2", 316 440 "@wordpress/deprecated": "^2.0.3", 317 "@wordpress/dom": "^2.0. 4",318 "@wordpress/element": "^2.1. 5",441 "@wordpress/dom": "^2.0.6", 442 "@wordpress/element": "^2.1.7", 319 443 "@wordpress/hooks": "^2.0.3", 320 444 "@wordpress/i18n": "^3.0.1", 321 445 "@wordpress/is-shallow-equal": "^1.1.4", 322 446 "@wordpress/keycodes": "^2.0.3", 323 "@wordpress/url": "^2. 2.0",447 "@wordpress/url": "^2.3.0", 324 448 "classnames": "^2.2.5", 325 449 "clipboard": "^2.0.1", … … 335 459 "rememo": "^3.0.0", 336 460 "tinycolor2": "^1.4.1", 337 "uuid": "^3.1.0" 461 "uuid": "^3.3.2" 462 }, 463 "dependencies": { 464 "@wordpress/compose": { 465 "version": "2.1.2", 466 "resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-2.1.2.tgz", 467 "integrity": "sha512-jr1bWRYx8vt4bCWB4hqR9Ve9rk/TCJ5mFRvkwEd+xTDyXG6ZMmps3HszGA6aCH7E+TCHH+bWw2qZo9sAeHVK/w==", 468 "requires": { 469 "@babel/runtime": "^7.0.0", 470 "@wordpress/deprecated": "^2.0.3", 471 "@wordpress/element": "^2.1.7", 472 "@wordpress/is-shallow-equal": "^1.1.4", 473 "lodash": "^4.17.10" 474 } 475 }, 476 "@wordpress/dom": { 477 "version": "2.0.6", 478 "resolved": "https://registry.npmjs.org/@wordpress/dom/-/dom-2.0.6.tgz", 479 "integrity": "sha512-z1xdNASrkJc+FTdYAEDKub7pqrizAo2WFlkBmqrurwBcY/HoOTTEqg6wzq2SwvEq/rff741BCWD/JmGU7tI3AQ==", 480 "requires": { 481 "@babel/runtime": "^7.0.0", 482 "lodash": "^4.17.10" 483 } 484 }, 485 "@wordpress/element": { 486 "version": "2.1.7", 487 "resolved": "https://registry.npmjs.org/@wordpress/element/-/element-2.1.7.tgz", 488 "integrity": "sha512-+2Nbs0R3eP2gNrH0z1H5ZXTr0Lja7ZGFrtlKXa3+ZblHDBAheSB24ZEbQqZJTK1zdGw+GOU/vXPyY4ThHHJiPg==", 489 "requires": { 490 "@babel/runtime": "^7.0.0", 491 "@wordpress/escape-html": "^1.0.1", 492 "lodash": "^4.17.10", 493 "react": "^16.4.1", 494 "react-dom": "^16.4.1" 495 } 496 } 338 497 } 339 498 }, 340 499 "@wordpress/compose": { 341 "version": "2.1. 0",342 "resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-2.1. 0.tgz",343 "integrity": "sha512- QtjesFxEdLAUoBxFQ7rkpUG5aA4ccRxZI71fz0RkMiBVKoUHIqy+R6VGViL/wkdYigmfD9KU89Rg3Ksk40hVIA==",500 "version": "2.1.2", 501 "resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-2.1.2.tgz", 502 "integrity": "sha512-jr1bWRYx8vt4bCWB4hqR9Ve9rk/TCJ5mFRvkwEd+xTDyXG6ZMmps3HszGA6aCH7E+TCHH+bWw2qZo9sAeHVK/w==", 344 503 "requires": { 345 504 "@babel/runtime": "^7.0.0", 346 505 "@wordpress/deprecated": "^2.0.3", 347 "@wordpress/element": "^2.1. 5",506 "@wordpress/element": "^2.1.7", 348 507 "@wordpress/is-shallow-equal": "^1.1.4", 349 508 "lodash": "^4.17.10" … … 351 510 }, 352 511 "@wordpress/core-data": { 353 "version": "2.0. 9",354 "resolved": "https://registry.npmjs.org/@wordpress/core-data/-/core-data-2.0. 9.tgz",355 "integrity": "sha512- +mnHzz6lOur6+MEpgdASza1e7RjCgLty7p+tFZM9k8euNnx+UxffiPd1IWTV8CqBV7sTpZE5mqrM3oCeUxUFtg==",512 "version": "2.0.12", 513 "resolved": "https://registry.npmjs.org/@wordpress/core-data/-/core-data-2.0.12.tgz", 514 "integrity": "sha512-Z1nby7U+m+R2LVH2N6YEanbSbBiwKc+Ce646TULbnP7+S1NMGiLTlY00/00TWuIlQ6+gFHAd3lDuwigY6LZorw==", 356 515 "requires": { 357 516 "@babel/runtime": "^7.0.0", 358 "@wordpress/api-fetch": "^2.2. 2",359 "@wordpress/data": "^3.1. 0",360 "@wordpress/url": "^2. 2.0",517 "@wordpress/api-fetch": "^2.2.3", 518 "@wordpress/data": "^3.1.2", 519 "@wordpress/url": "^2.3.0", 361 520 "equivalent-key-map": "^0.2.2", 362 521 "lodash": "^4.17.10", 363 522 "rememo": "^3.0.0" 523 }, 524 "dependencies": { 525 "@wordpress/compose": { 526 "version": "2.1.2", 527 "resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-2.1.2.tgz", 528 "integrity": "sha512-jr1bWRYx8vt4bCWB4hqR9Ve9rk/TCJ5mFRvkwEd+xTDyXG6ZMmps3HszGA6aCH7E+TCHH+bWw2qZo9sAeHVK/w==", 529 "requires": { 530 "@babel/runtime": "^7.0.0", 531 "@wordpress/deprecated": "^2.0.3", 532 "@wordpress/element": "^2.1.7", 533 "@wordpress/is-shallow-equal": "^1.1.4", 534 "lodash": "^4.17.10" 535 } 536 }, 537 "@wordpress/data": { 538 "version": "3.1.2", 539 "resolved": "https://registry.npmjs.org/@wordpress/data/-/data-3.1.2.tgz", 540 "integrity": "sha512-aAYgRIljpLboplTaCA7t5r+qVjE53VGMS7rLjSHFsoFxj9GYPiCCX1f/B01eKz9pf04rVdM2N4cEowyxjkhKFA==", 541 "requires": { 542 "@babel/runtime": "^7.0.0", 543 "@wordpress/compose": "^2.1.2", 544 "@wordpress/deprecated": "^2.0.3", 545 "@wordpress/element": "^2.1.7", 546 "@wordpress/is-shallow-equal": "^1.1.4", 547 "@wordpress/redux-routine": "^3.0.3", 548 "equivalent-key-map": "^0.2.2", 549 "is-promise": "^2.1.0", 550 "lodash": "^4.17.10", 551 "redux": "^4.0.0", 552 "turbo-combine-reducers": "^1.0.2" 553 } 554 }, 555 "@wordpress/element": { 556 "version": "2.1.7", 557 "resolved": "https://registry.npmjs.org/@wordpress/element/-/element-2.1.7.tgz", 558 "integrity": "sha512-+2Nbs0R3eP2gNrH0z1H5ZXTr0Lja7ZGFrtlKXa3+ZblHDBAheSB24ZEbQqZJTK1zdGw+GOU/vXPyY4ThHHJiPg==", 559 "requires": { 560 "@babel/runtime": "^7.0.0", 561 "@wordpress/escape-html": "^1.0.1", 562 "lodash": "^4.17.10", 563 "react": "^16.4.1", 564 "react-dom": "^16.4.1" 565 } 566 } 364 567 } 365 568 }, … … 375 578 }, 376 579 "@wordpress/data": { 377 "version": "3.1. 0",378 "resolved": "https://registry.npmjs.org/@wordpress/data/-/data-3.1. 0.tgz",379 "integrity": "sha512- XQNSOy7xSHVi4KGxOOd6gJJ3+Qq4XWZMK5hMBSEwVCiyIcSbcP6I1AT1NnnPuJeH94BmFCPNADElHB4gazg8xA==",580 "version": "3.1.2", 581 "resolved": "https://registry.npmjs.org/@wordpress/data/-/data-3.1.2.tgz", 582 "integrity": "sha512-aAYgRIljpLboplTaCA7t5r+qVjE53VGMS7rLjSHFsoFxj9GYPiCCX1f/B01eKz9pf04rVdM2N4cEowyxjkhKFA==", 380 583 "requires": { 381 584 "@babel/runtime": "^7.0.0", 382 "@wordpress/compose": "^2.1. 0",585 "@wordpress/compose": "^2.1.2", 383 586 "@wordpress/deprecated": "^2.0.3", 384 "@wordpress/element": "^2.1. 5",587 "@wordpress/element": "^2.1.7", 385 588 "@wordpress/is-shallow-equal": "^1.1.4", 386 589 "@wordpress/redux-routine": "^3.0.3", … … 393 596 }, 394 597 "@wordpress/date": { 395 "version": "2. 1.0",396 "resolved": "https://registry.npmjs.org/@wordpress/date/-/date-2. 1.0.tgz",397 "integrity": "sha512- MMDU2/N0unnwKTmaeCYy4fW/CuyCdM5t+/ANXVigBxY/IiOGeRXnmiU4VHK1BshEnsWRJz687MmEGEkxVpwd8w==",598 "version": "2.2.1", 599 "resolved": "https://registry.npmjs.org/@wordpress/date/-/date-2.2.1.tgz", 600 "integrity": "sha512-icDlv9HAEVx4xXveU9m93CHqH+82SqkL/Y3Po9jjuCS6K2F0OMJURdQSbcf6QJ6KmCXJzeQTq4/IrtioXOEy5w==", 398 601 "requires": { 399 602 "@babel/runtime": "^7.0.0", … … 412 615 }, 413 616 "@wordpress/dom": { 414 "version": "2.0. 4",415 "resolved": "https://registry.npmjs.org/@wordpress/dom/-/dom-2.0. 4.tgz",416 "integrity": "sha512- uW/yeWayoSu6uUA+xrM+yCbNJc3oQfga1Y1PUgXvowv0ydn5Qhgh2Dj07ANgg1AncZqFZsObPerBFNloaJhsvQ==",617 "version": "2.0.6", 618 "resolved": "https://registry.npmjs.org/@wordpress/dom/-/dom-2.0.6.tgz", 619 "integrity": "sha512-z1xdNASrkJc+FTdYAEDKub7pqrizAo2WFlkBmqrurwBcY/HoOTTEqg6wzq2SwvEq/rff741BCWD/JmGU7tI3AQ==", 417 620 "requires": { 418 621 "@babel/runtime": "^7.0.0", … … 429 632 }, 430 633 "@wordpress/edit-post": { 431 "version": " 2.0.3",432 "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post- 2.0.3.tgz",433 "integrity": "sha512- p95SERqEfafGPh4xvAWJLxL6CeBHpiHk6ZKCHd5aAzALYc53ERWCDkz4vR7KLmhFLpaUNfduAcOD+Zh0oxJr8g==",634 "version": "3.0.0", 635 "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-3.0.0.tgz", 636 "integrity": "sha512-sswJ8jFYoUn70WGcWuxzPCldjAsAlmyBfOsfEdy6LDeBvxwi84Bk9CzooJr/V+FGsRmMtmRA5O6XbpnaBVo6Ig==", 434 637 "requires": { 435 638 "@babel/runtime": "^7.0.0", 436 639 "@wordpress/a11y": "^2.0.2", 437 "@wordpress/api-fetch": "^2.2.2", 438 "@wordpress/block-library": "^2.1.8", 439 "@wordpress/blocks": "^5.1.2", 440 "@wordpress/components": "^5.0.2", 441 "@wordpress/compose": "^2.1.0", 442 "@wordpress/core-data": "^2.0.9", 443 "@wordpress/data": "^3.1.0", 444 "@wordpress/deprecated": "^2.0.3", 445 "@wordpress/editor": "^6.1.1", 446 "@wordpress/element": "^2.1.5", 447 "@wordpress/format-library": "^1.0.3", 640 "@wordpress/api-fetch": "^2.2.3", 641 "@wordpress/block-library": "^2.2.2", 642 "@wordpress/blocks": "^5.3.1", 643 "@wordpress/components": "^6.0.0", 644 "@wordpress/compose": "^2.1.2", 645 "@wordpress/core-data": "^2.0.12", 646 "@wordpress/data": "^3.1.2", 647 "@wordpress/editor": "^7.0.0", 648 "@wordpress/element": "^2.1.7", 649 "@wordpress/format-library": "^1.2.0", 448 650 "@wordpress/hooks": "^2.0.3", 449 651 "@wordpress/i18n": "^3.0.1", 450 652 "@wordpress/keycodes": "^2.0.3", 451 "@wordpress/nux": "^2.0. 9",452 "@wordpress/plugins": "^2.0. 6",453 "@wordpress/url": "^2. 2.0",454 "@wordpress/viewport": "^2.0. 8",653 "@wordpress/nux": "^2.0.12", 654 "@wordpress/plugins": "^2.0.8", 655 "@wordpress/url": "^2.3.0", 656 "@wordpress/viewport": "^2.0.10", 455 657 "classnames": "^2.2.5", 456 658 "lodash": "^4.17.10", 457 659 "refx": "^3.0.0" 660 }, 661 "dependencies": { 662 "@wordpress/compose": { 663 "version": "2.1.2", 664 "resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-2.1.2.tgz", 665 "integrity": "sha512-jr1bWRYx8vt4bCWB4hqR9Ve9rk/TCJ5mFRvkwEd+xTDyXG6ZMmps3HszGA6aCH7E+TCHH+bWw2qZo9sAeHVK/w==", 666 "requires": { 667 "@babel/runtime": "^7.0.0", 668 "@wordpress/deprecated": "^2.0.3", 669 "@wordpress/element": "^2.1.7", 670 "@wordpress/is-shallow-equal": "^1.1.4", 671 "lodash": "^4.17.10" 672 } 673 }, 674 "@wordpress/data": { 675 "version": "3.1.2", 676 "resolved": "https://registry.npmjs.org/@wordpress/data/-/data-3.1.2.tgz", 677 "integrity": "sha512-aAYgRIljpLboplTaCA7t5r+qVjE53VGMS7rLjSHFsoFxj9GYPiCCX1f/B01eKz9pf04rVdM2N4cEowyxjkhKFA==", 678 "requires": { 679 "@babel/runtime": "^7.0.0", 680 "@wordpress/compose": "^2.1.2", 681 "@wordpress/deprecated": "^2.0.3", 682 "@wordpress/element": "^2.1.7", 683 "@wordpress/is-shallow-equal": "^1.1.4", 684 "@wordpress/redux-routine": "^3.0.3", 685 "equivalent-key-map": "^0.2.2", 686 "is-promise": "^2.1.0", 687 "lodash": "^4.17.10", 688 "redux": "^4.0.0", 689 "turbo-combine-reducers": "^1.0.2" 690 } 691 }, 692 "@wordpress/element": { 693 "version": "2.1.7", 694 "resolved": "https://registry.npmjs.org/@wordpress/element/-/element-2.1.7.tgz", 695 "integrity": "sha512-+2Nbs0R3eP2gNrH0z1H5ZXTr0Lja7ZGFrtlKXa3+ZblHDBAheSB24ZEbQqZJTK1zdGw+GOU/vXPyY4ThHHJiPg==", 696 "requires": { 697 "@babel/runtime": "^7.0.0", 698 "@wordpress/escape-html": "^1.0.1", 699 "lodash": "^4.17.10", 700 "react": "^16.4.1", 701 "react-dom": "^16.4.1" 702 } 703 }, 704 "@wordpress/plugins": { 705 "version": "2.0.8", 706 "resolved": "https://registry.npmjs.org/@wordpress/plugins/-/plugins-2.0.8.tgz", 707 "integrity": "sha512-qxoUQ6QukmktKDAIvYg+tJBSihZ/gPftxXOuYhoPBADXnAUxh6s7njpWebf2sw7pJjQPYv4EG7/edOQ0bt6C9Q==", 708 "requires": { 709 "@babel/runtime": "^7.0.0", 710 "@wordpress/compose": "^2.1.2", 711 "@wordpress/element": "^2.1.7", 712 "@wordpress/hooks": "^2.0.3", 713 "lodash": "^4.17.10" 714 } 715 }, 716 "@wordpress/viewport": { 717 "version": "2.0.10", 718 "resolved": "https://registry.npmjs.org/@wordpress/viewport/-/viewport-2.0.10.tgz", 719 "integrity": "sha512-G+7VgUQkRu9JwrsiBvTs/CS87vs6wcxCknr2lWU14rk55FWpxg4fhduRHUcBYEk7E+bvOHV1TgnAspBncu1aYg==", 720 "requires": { 721 "@babel/runtime": "^7.0.0", 722 "@wordpress/compose": "^2.1.2", 723 "@wordpress/data": "^3.1.2", 724 "@wordpress/element": "^2.1.7", 725 "lodash": "^4.17.10" 726 } 727 } 458 728 } 459 729 }, 460 730 "@wordpress/editor": { 461 "version": " 6.1.1",462 "resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor- 6.1.1.tgz",463 "integrity": "sha512- jLF2ig7G+25Amc+393swPpgGA7W5qJJHR8Nq+P4fQE4c98q4uB0buXeZBtxENscnMC8arsiucSymQMXlMkCSMA==",731 "version": "7.0.0", 732 "resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-7.0.0.tgz", 733 "integrity": "sha512-aNSwKvBlU6tg9qwte+yMk8W+sgOy2HUQyoyoPJIXo0awqfDPLFrBG8I7tnicybPXxxtBNamybSf6TVB1R/kn8A==", 464 734 "requires": { 465 735 "@babel/runtime": "^7.0.0", 466 736 "@wordpress/a11y": "^2.0.2", 467 "@wordpress/api-fetch": "^2.2. 2",737 "@wordpress/api-fetch": "^2.2.3", 468 738 "@wordpress/blob": "^2.1.0", 469 "@wordpress/blocks": "^5. 1.2",470 "@wordpress/components": "^ 5.0.2",471 "@wordpress/compose": "^2.1. 0",472 "@wordpress/core-data": "^2.0. 9",473 "@wordpress/data": "^3.1. 0",474 "@wordpress/date": "^2. 1.0",739 "@wordpress/blocks": "^5.3.1", 740 "@wordpress/components": "^6.0.0", 741 "@wordpress/compose": "^2.1.2", 742 "@wordpress/core-data": "^2.0.12", 743 "@wordpress/data": "^3.1.2", 744 "@wordpress/date": "^2.2.1", 475 745 "@wordpress/deprecated": "^2.0.3", 476 "@wordpress/dom": "^2.0. 4",477 "@wordpress/element": "^2.1. 5",746 "@wordpress/dom": "^2.0.6", 747 "@wordpress/element": "^2.1.7", 478 748 "@wordpress/hooks": "^2.0.3", 479 749 "@wordpress/html-entities": "^2.0.2", … … 481 751 "@wordpress/is-shallow-equal": "^1.1.4", 482 752 "@wordpress/keycodes": "^2.0.3", 483 "@wordpress/notices": "^1.0. 2",484 "@wordpress/nux": "^2.0. 9",753 "@wordpress/notices": "^1.0.4", 754 "@wordpress/nux": "^2.0.12", 485 755 "@wordpress/token-list": "^1.0.2", 486 "@wordpress/url": "^2. 2.0",487 "@wordpress/viewport": "^2.0. 8",756 "@wordpress/url": "^2.3.0", 757 "@wordpress/viewport": "^2.0.10", 488 758 "@wordpress/wordcount": "^2.0.3", 489 759 "classnames": "^2.2.5", … … 501 771 "tinymce": "^4.7.2", 502 772 "traverse": "^0.6.6" 773 }, 774 "dependencies": { 775 "@wordpress/compose": { 776 "version": "2.1.2", 777 "resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-2.1.2.tgz", 778 "integrity": "sha512-jr1bWRYx8vt4bCWB4hqR9Ve9rk/TCJ5mFRvkwEd+xTDyXG6ZMmps3HszGA6aCH7E+TCHH+bWw2qZo9sAeHVK/w==", 779 "requires": { 780 "@babel/runtime": "^7.0.0", 781 "@wordpress/deprecated": "^2.0.3", 782 "@wordpress/element": "^2.1.7", 783 "@wordpress/is-shallow-equal": "^1.1.4", 784 "lodash": "^4.17.10" 785 } 786 }, 787 "@wordpress/data": { 788 "version": "3.1.2", 789 "resolved": "https://registry.npmjs.org/@wordpress/data/-/data-3.1.2.tgz", 790 "integrity": "sha512-aAYgRIljpLboplTaCA7t5r+qVjE53VGMS7rLjSHFsoFxj9GYPiCCX1f/B01eKz9pf04rVdM2N4cEowyxjkhKFA==", 791 "requires": { 792 "@babel/runtime": "^7.0.0", 793 "@wordpress/compose": "^2.1.2", 794 "@wordpress/deprecated": "^2.0.3", 795 "@wordpress/element": "^2.1.7", 796 "@wordpress/is-shallow-equal": "^1.1.4", 797 "@wordpress/redux-routine": "^3.0.3", 798 "equivalent-key-map": "^0.2.2", 799 "is-promise": "^2.1.0", 800 "lodash": "^4.17.10", 801 "redux": "^4.0.0", 802 "turbo-combine-reducers": "^1.0.2" 803 } 804 }, 805 "@wordpress/date": { 806 "version": "2.2.1", 807 "resolved": "https://registry.npmjs.org/@wordpress/date/-/date-2.2.1.tgz", 808 "integrity": "sha512-icDlv9HAEVx4xXveU9m93CHqH+82SqkL/Y3Po9jjuCS6K2F0OMJURdQSbcf6QJ6KmCXJzeQTq4/IrtioXOEy5w==", 809 "requires": { 810 "@babel/runtime": "^7.0.0", 811 "moment": "^2.22.1", 812 "moment-timezone": "^0.5.16" 813 } 814 }, 815 "@wordpress/dom": { 816 "version": "2.0.6", 817 "resolved": "https://registry.npmjs.org/@wordpress/dom/-/dom-2.0.6.tgz", 818 "integrity": "sha512-z1xdNASrkJc+FTdYAEDKub7pqrizAo2WFlkBmqrurwBcY/HoOTTEqg6wzq2SwvEq/rff741BCWD/JmGU7tI3AQ==", 819 "requires": { 820 "@babel/runtime": "^7.0.0", 821 "lodash": "^4.17.10" 822 } 823 }, 824 "@wordpress/element": { 825 "version": "2.1.7", 826 "resolved": "https://registry.npmjs.org/@wordpress/element/-/element-2.1.7.tgz", 827 "integrity": "sha512-+2Nbs0R3eP2gNrH0z1H5ZXTr0Lja7ZGFrtlKXa3+ZblHDBAheSB24ZEbQqZJTK1zdGw+GOU/vXPyY4ThHHJiPg==", 828 "requires": { 829 "@babel/runtime": "^7.0.0", 830 "@wordpress/escape-html": "^1.0.1", 831 "lodash": "^4.17.10", 832 "react": "^16.4.1", 833 "react-dom": "^16.4.1" 834 } 835 }, 836 "@wordpress/notices": { 837 "version": "1.0.4", 838 "resolved": "https://registry.npmjs.org/@wordpress/notices/-/notices-1.0.4.tgz", 839 "integrity": "sha512-7vjv62bx2VJLagl6+8FPkQeVtWMd4tC3GYIqX6AU4HA6RUaC0VPxWxVTHt0tFXPL7bqUkOZgICNHTyzOIzdTzA==", 840 "requires": { 841 "@babel/runtime": "^7.0.0", 842 "@wordpress/a11y": "^2.0.2", 843 "@wordpress/data": "^3.1.2", 844 "lodash": "^4.17.10" 845 } 846 }, 847 "@wordpress/viewport": { 848 "version": "2.0.10", 849 "resolved": "https://registry.npmjs.org/@wordpress/viewport/-/viewport-2.0.10.tgz", 850 "integrity": "sha512-G+7VgUQkRu9JwrsiBvTs/CS87vs6wcxCknr2lWU14rk55FWpxg4fhduRHUcBYEk7E+bvOHV1TgnAspBncu1aYg==", 851 "requires": { 852 "@babel/runtime": "^7.0.0", 853 "@wordpress/compose": "^2.1.2", 854 "@wordpress/data": "^3.1.2", 855 "@wordpress/element": "^2.1.7", 856 "lodash": "^4.17.10" 857 } 858 } 503 859 } 504 860 }, 505 861 "@wordpress/element": { 506 "version": "2.1. 5",507 "resolved": "https://registry.npmjs.org/@wordpress/element/-/element-2.1. 5.tgz",508 "integrity": "sha512- y567y5SZv3VXDrUw/qpO7ElrTc8/BhumAivVlpAItychfn/PdTxd2l5V1Cc91Uc2/JDoAhPCRIO23UFWX+Ehtw==",862 "version": "2.1.7", 863 "resolved": "https://registry.npmjs.org/@wordpress/element/-/element-2.1.7.tgz", 864 "integrity": "sha512-+2Nbs0R3eP2gNrH0z1H5ZXTr0Lja7ZGFrtlKXa3+ZblHDBAheSB24ZEbQqZJTK1zdGw+GOU/vXPyY4ThHHJiPg==", 509 865 "requires": { 510 866 "@babel/runtime": "^7.0.0", … … 524 880 }, 525 881 "@wordpress/format-library": { 526 "version": "1. 0.3",527 "resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-1. 0.3.tgz",528 "integrity": "sha512- mNo9WgS9PChhtGV8ihV3a/i1KlpIttqma/wTiaHPkoecZwYECptnMF+jYNeQ8DTP/GtvgnWhiEdnlEVQ/tknHw==",882 "version": "1.2.0", 883 "resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-1.2.0.tgz", 884 "integrity": "sha512-FnkzmgMYrKiBdQN1iDUgqjqZTnniHsrxcg/MvQwpg+inRtXYUTh2lp4wWsn9lEO2g2t85r69GAYsC8TmmaUjEQ==", 529 885 "requires": { 530 886 "@babel/runtime": "^7.0.0", 531 "@wordpress/components": "^ 5.0.2",532 "@wordpress/dom": "^2.0. 4",533 "@wordpress/editor": "^ 6.1.1",534 "@wordpress/element": "^2.1. 5",887 "@wordpress/components": "^6.0.0", 888 "@wordpress/dom": "^2.0.6", 889 "@wordpress/editor": "^7.0.0", 890 "@wordpress/element": "^2.1.7", 535 891 "@wordpress/i18n": "^3.0.1", 536 892 "@wordpress/keycodes": "^2.0.3", 537 "@wordpress/rich-text": "^2.0.2", 538 "@wordpress/url": "^2.2.0" 893 "@wordpress/rich-text": "^2.0.4", 894 "@wordpress/url": "^2.3.0" 895 }, 896 "dependencies": { 897 "@wordpress/compose": { 898 "version": "2.1.2", 899 "resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-2.1.2.tgz", 900 "integrity": "sha512-jr1bWRYx8vt4bCWB4hqR9Ve9rk/TCJ5mFRvkwEd+xTDyXG6ZMmps3HszGA6aCH7E+TCHH+bWw2qZo9sAeHVK/w==", 901 "requires": { 902 "@babel/runtime": "^7.0.0", 903 "@wordpress/deprecated": "^2.0.3", 904 "@wordpress/element": "^2.1.7", 905 "@wordpress/is-shallow-equal": "^1.1.4", 906 "lodash": "^4.17.10" 907 } 908 }, 909 "@wordpress/data": { 910 "version": "3.1.2", 911 "resolved": "https://registry.npmjs.org/@wordpress/data/-/data-3.1.2.tgz", 912 "integrity": "sha512-aAYgRIljpLboplTaCA7t5r+qVjE53VGMS7rLjSHFsoFxj9GYPiCCX1f/B01eKz9pf04rVdM2N4cEowyxjkhKFA==", 913 "requires": { 914 "@babel/runtime": "^7.0.0", 915 "@wordpress/compose": "^2.1.2", 916 "@wordpress/deprecated": "^2.0.3", 917 "@wordpress/element": "^2.1.7", 918 "@wordpress/is-shallow-equal": "^1.1.4", 919 "@wordpress/redux-routine": "^3.0.3", 920 "equivalent-key-map": "^0.2.2", 921 "is-promise": "^2.1.0", 922 "lodash": "^4.17.10", 923 "redux": "^4.0.0", 924 "turbo-combine-reducers": "^1.0.2" 925 } 926 }, 927 "@wordpress/dom": { 928 "version": "2.0.6", 929 "resolved": "https://registry.npmjs.org/@wordpress/dom/-/dom-2.0.6.tgz", 930 "integrity": "sha512-z1xdNASrkJc+FTdYAEDKub7pqrizAo2WFlkBmqrurwBcY/HoOTTEqg6wzq2SwvEq/rff741BCWD/JmGU7tI3AQ==", 931 "requires": { 932 "@babel/runtime": "^7.0.0", 933 "lodash": "^4.17.10" 934 } 935 }, 936 "@wordpress/element": { 937 "version": "2.1.7", 938 "resolved": "https://registry.npmjs.org/@wordpress/element/-/element-2.1.7.tgz", 939 "integrity": "sha512-+2Nbs0R3eP2gNrH0z1H5ZXTr0Lja7ZGFrtlKXa3+ZblHDBAheSB24ZEbQqZJTK1zdGw+GOU/vXPyY4ThHHJiPg==", 940 "requires": { 941 "@babel/runtime": "^7.0.0", 942 "@wordpress/escape-html": "^1.0.1", 943 "lodash": "^4.17.10", 944 "react": "^16.4.1", 945 "react-dom": "^16.4.1" 946 } 947 }, 948 "@wordpress/rich-text": { 949 "version": "2.0.4", 950 "resolved": "https://registry.npmjs.org/@wordpress/rich-text/-/rich-text-2.0.4.tgz", 951 "integrity": "sha512-c1DQ5xhVb8k1PV/9fTCSFHyu8SbKVzM3tCG7JX/fsUppzjV3CzljkxSYRm1GrFidRX5uqOYP+SGWi9x25Cnl1g==", 952 "requires": { 953 "@babel/runtime": "^7.0.0", 954 "@wordpress/data": "^3.1.2", 955 "@wordpress/deprecated": "^2.0.3", 956 "@wordpress/escape-html": "^1.0.1", 957 "lodash": "^4.17.10", 958 "rememo": "^3.0.0" 959 } 960 } 539 961 } 540 962 }, … … 596 1018 }, 597 1019 "@wordpress/list-reusable-blocks": { 598 "version": "1.1. 7",599 "resolved": "https://registry.npmjs.org/@wordpress/list-reusable-blocks/-/list-reusable-blocks-1.1. 7.tgz",600 "integrity": "sha512- kdAmGks2p+J/z3iwOnir4kg/itqex+kRiJkH7TozzafgM2czBDh8oJ27Esy7NYAc8iu0FOfi4pIkQiZlGcKW3w==",1020 "version": "1.1.10", 1021 "resolved": "https://registry.npmjs.org/@wordpress/list-reusable-blocks/-/list-reusable-blocks-1.1.10.tgz", 1022 "integrity": "sha512-8Jdee13/AYfEYbTXZqz9XHbhKdw0c41oa3bf3nKWqrf2DaNWxLBAT9U9VsINcfFa0+508fLf6kgRCjNpmHvNag==", 601 1023 "requires": { 602 1024 "@babel/runtime": "^7.0.0", 603 "@wordpress/api-fetch": "^2.2. 2",604 "@wordpress/components": "^ 5.0.2",605 "@wordpress/compose": "^2.1. 0",606 "@wordpress/element": "^2.1. 5",1025 "@wordpress/api-fetch": "^2.2.3", 1026 "@wordpress/components": "^6.0.0", 1027 "@wordpress/compose": "^2.1.2", 1028 "@wordpress/element": "^2.1.7", 607 1029 "@wordpress/i18n": "^3.0.1", 608 1030 "lodash": "^4.17.10" 1031 }, 1032 "dependencies": { 1033 "@wordpress/compose": { 1034 "version": "2.1.2", 1035 "resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-2.1.2.tgz", 1036 "integrity": "sha512-jr1bWRYx8vt4bCWB4hqR9Ve9rk/TCJ5mFRvkwEd+xTDyXG6ZMmps3HszGA6aCH7E+TCHH+bWw2qZo9sAeHVK/w==", 1037 "requires": { 1038 "@babel/runtime": "^7.0.0", 1039 "@wordpress/deprecated": "^2.0.3", 1040 "@wordpress/element": "^2.1.7", 1041 "@wordpress/is-shallow-equal": "^1.1.4", 1042 "lodash": "^4.17.10" 1043 } 1044 }, 1045 "@wordpress/element": { 1046 "version": "2.1.7", 1047 "resolved": "https://registry.npmjs.org/@wordpress/element/-/element-2.1.7.tgz", 1048 "integrity": "sha512-+2Nbs0R3eP2gNrH0z1H5ZXTr0Lja7ZGFrtlKXa3+ZblHDBAheSB24ZEbQqZJTK1zdGw+GOU/vXPyY4ThHHJiPg==", 1049 "requires": { 1050 "@babel/runtime": "^7.0.0", 1051 "@wordpress/escape-html": "^1.0.1", 1052 "lodash": "^4.17.10", 1053 "react": "^16.4.1", 1054 "react-dom": "^16.4.1" 1055 } 1056 } 609 1057 } 610 1058 }, 611 1059 "@wordpress/notices": { 612 "version": "1.0. 2",613 "resolved": "https://registry.npmjs.org/@wordpress/notices/-/notices-1.0. 2.tgz",614 "integrity": "sha512- wvXWEuZRupmmuADY9boBm91YEUaGpE52+Xx2d1nqH8047XI+iBGsTCLSo3kzNMVrKgNVCli0wFb26KmB+KPRBw==",1060 "version": "1.0.4", 1061 "resolved": "https://registry.npmjs.org/@wordpress/notices/-/notices-1.0.4.tgz", 1062 "integrity": "sha512-7vjv62bx2VJLagl6+8FPkQeVtWMd4tC3GYIqX6AU4HA6RUaC0VPxWxVTHt0tFXPL7bqUkOZgICNHTyzOIzdTzA==", 615 1063 "requires": { 616 1064 "@babel/runtime": "^7.0.0", 617 1065 "@wordpress/a11y": "^2.0.2", 618 "@wordpress/data": "^3.1. 0",1066 "@wordpress/data": "^3.1.2", 619 1067 "lodash": "^4.17.10" 620 1068 } 621 1069 }, 622 1070 "@wordpress/nux": { 623 "version": "2.0. 9",624 "resolved": "https://registry.npmjs.org/@wordpress/nux/-/nux-2.0. 9.tgz",625 "integrity": "sha512- Zna2UABmkzxdP6dTPOeDc1ki+AoGDVsqDKOFK7m3OkzcIeUcLuUAQ0a0cJYyK7EE/T4lFezYJSamJ0osThXmHA==",1071 "version": "2.0.12", 1072 "resolved": "https://registry.npmjs.org/@wordpress/nux/-/nux-2.0.12.tgz", 1073 "integrity": "sha512-y97Q/plpcFPTRYqbfeucmIOnJe1jEIJwFJxJinDqifcfGhYZ4/x3JN7+9uwyatdT8oDzHUO67VoE9z2k2fPTmQ==", 626 1074 "requires": { 627 1075 "@babel/runtime": "^7.0.0", 628 "@wordpress/components": "^ 5.0.2",629 "@wordpress/compose": "^2.1. 0",630 "@wordpress/data": "^3.1. 0",1076 "@wordpress/components": "^6.0.0", 1077 "@wordpress/compose": "^2.1.2", 1078 "@wordpress/data": "^3.1.2", 631 1079 "@wordpress/deprecated": "^2.0.3", 632 "@wordpress/element": "^2.1. 5",1080 "@wordpress/element": "^2.1.7", 633 1081 "@wordpress/i18n": "^3.0.1", 634 1082 "lodash": "^4.17.10", 635 1083 "rememo": "^3.0.0" 1084 }, 1085 "dependencies": { 1086 "@wordpress/compose": { 1087 "version": "2.1.2", 1088 "resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-2.1.2.tgz", 1089 "integrity": "sha512-jr1bWRYx8vt4bCWB4hqR9Ve9rk/TCJ5mFRvkwEd+xTDyXG6ZMmps3HszGA6aCH7E+TCHH+bWw2qZo9sAeHVK/w==", 1090 "requires": { 1091 "@babel/runtime": "^7.0.0", 1092 "@wordpress/deprecated": "^2.0.3", 1093 "@wordpress/element": "^2.1.7", 1094 "@wordpress/is-shallow-equal": "^1.1.4", 1095 "lodash": "^4.17.10" 1096 } 1097 }, 1098 "@wordpress/data": { 1099 "version": "3.1.2", 1100 "resolved": "https://registry.npmjs.org/@wordpress/data/-/data-3.1.2.tgz", 1101 "integrity": "sha512-aAYgRIljpLboplTaCA7t5r+qVjE53VGMS7rLjSHFsoFxj9GYPiCCX1f/B01eKz9pf04rVdM2N4cEowyxjkhKFA==", 1102 "requires": { 1103 "@babel/runtime": "^7.0.0", 1104 "@wordpress/compose": "^2.1.2", 1105 "@wordpress/deprecated": "^2.0.3", 1106 "@wordpress/element": "^2.1.7", 1107 "@wordpress/is-shallow-equal": "^1.1.4", 1108 "@wordpress/redux-routine": "^3.0.3", 1109 "equivalent-key-map": "^0.2.2", 1110 "is-promise": "^2.1.0", 1111 "lodash": "^4.17.10", 1112 "redux": "^4.0.0", 1113 "turbo-combine-reducers": "^1.0.2" 1114 } 1115 }, 1116 "@wordpress/element": { 1117 "version": "2.1.7", 1118 "resolved": "https://registry.npmjs.org/@wordpress/element/-/element-2.1.7.tgz", 1119 "integrity": "sha512-+2Nbs0R3eP2gNrH0z1H5ZXTr0Lja7ZGFrtlKXa3+ZblHDBAheSB24ZEbQqZJTK1zdGw+GOU/vXPyY4ThHHJiPg==", 1120 "requires": { 1121 "@babel/runtime": "^7.0.0", 1122 "@wordpress/escape-html": "^1.0.1", 1123 "lodash": "^4.17.10", 1124 "react": "^16.4.1", 1125 "react-dom": "^16.4.1" 1126 } 1127 } 636 1128 } 637 1129 }, 638 1130 "@wordpress/plugins": { 639 "version": "2.0. 6",640 "resolved": "https://registry.npmjs.org/@wordpress/plugins/-/plugins-2.0. 6.tgz",641 "integrity": "sha512- 6irK6QjXc414ns0P/gSMJFUBXDVxqvuHmYKGNo5lyBbmas68WwyBwV/V52wP1cBhfqo3LCpYshX+jzTm/HXMLw==",1131 "version": "2.0.8", 1132 "resolved": "https://registry.npmjs.org/@wordpress/plugins/-/plugins-2.0.8.tgz", 1133 "integrity": "sha512-qxoUQ6QukmktKDAIvYg+tJBSihZ/gPftxXOuYhoPBADXnAUxh6s7njpWebf2sw7pJjQPYv4EG7/edOQ0bt6C9Q==", 642 1134 "requires": { 643 1135 "@babel/runtime": "^7.0.0", 644 "@wordpress/compose": "^2.1. 0",645 "@wordpress/element": "^2.1. 5",1136 "@wordpress/compose": "^2.1.2", 1137 "@wordpress/element": "^2.1.7", 646 1138 "@wordpress/hooks": "^2.0.3", 647 1139 "lodash": "^4.17.10" … … 659 1151 }, 660 1152 "@wordpress/rich-text": { 661 "version": "2.0. 2",662 "resolved": "https://registry.npmjs.org/@wordpress/rich-text/-/rich-text-2.0. 2.tgz",663 "integrity": "sha512- 86h3BEDtjegQ/SxkwtzuSUcKN7DQJN/4EZEeAF6Wg3Jg6E6wNl5y8v3ymdCYjyF8N901FN177uB9cKDrhaxXzQ==",1153 "version": "2.0.4", 1154 "resolved": "https://registry.npmjs.org/@wordpress/rich-text/-/rich-text-2.0.4.tgz", 1155 "integrity": "sha512-c1DQ5xhVb8k1PV/9fTCSFHyu8SbKVzM3tCG7JX/fsUppzjV3CzljkxSYRm1GrFidRX5uqOYP+SGWi9x25Cnl1g==", 664 1156 "requires": { 665 1157 "@babel/runtime": "^7.0.0", 666 "@wordpress/data": "^3.1. 0",1158 "@wordpress/data": "^3.1.2", 667 1159 "@wordpress/deprecated": "^2.0.3", 668 1160 "@wordpress/escape-html": "^1.0.1", … … 691 1183 }, 692 1184 "@wordpress/url": { 693 "version": "2. 2.0",694 "resolved": "https://registry.npmjs.org/@wordpress/url/-/url-2. 2.0.tgz",695 "integrity": "sha512- Y1Vjbvkcfeh9scstzArW0f4G0v1YpevZcjlPvVM77gqXPxKhoBobc/XyErUaqWbozji6L2YE/baP/bYSOaswug==",1185 "version": "2.3.0", 1186 "resolved": "https://registry.npmjs.org/@wordpress/url/-/url-2.3.0.tgz", 1187 "integrity": "sha512-Uzl6RZnPZZHM67Z6Rs4lHgGY7dJO6OHjWrcw5/Pnoy/WQGDAg1vl5lfTbRXSNKsubOsbvB9IF8qTwVoPEl/ezA==", 696 1188 "requires": { 697 1189 "@babel/runtime": "^7.0.0", … … 700 1192 }, 701 1193 "@wordpress/viewport": { 702 "version": "2.0. 8",703 "resolved": "https://registry.npmjs.org/@wordpress/viewport/-/viewport-2.0. 8.tgz",704 "integrity": "sha512- 3gSZ381WHMGR4ZzfWRmEh2NL2tA06ukUD8H6LoNCxuyeHkQwUgqBrKc8c6CLSoCkS7aNarSvlqEqYmrKqr1jcA==",1194 "version": "2.0.10", 1195 "resolved": "https://registry.npmjs.org/@wordpress/viewport/-/viewport-2.0.10.tgz", 1196 "integrity": "sha512-G+7VgUQkRu9JwrsiBvTs/CS87vs6wcxCknr2lWU14rk55FWpxg4fhduRHUcBYEk7E+bvOHV1TgnAspBncu1aYg==", 705 1197 "requires": { 706 1198 "@babel/runtime": "^7.0.0", 707 "@wordpress/compose": "^2.1. 0",708 "@wordpress/data": "^3.1. 0",709 "@wordpress/element": "^2.1. 5",1199 "@wordpress/compose": "^2.1.2", 1200 "@wordpress/data": "^3.1.2", 1201 "@wordpress/element": "^2.1.7", 710 1202 "lodash": "^4.17.10" 711 1203 } … … 2885 3377 }, 2886 3378 "clipboard": { 2887 "version": "2.0. 1",2888 "resolved": "https://registry.npmjs.org/clipboard/-/clipboard-2.0. 1.tgz",2889 "integrity": "sha512- 7yhQBmtN+uYZmfRjjVjKa0dZdWuabzpSKGtyQZN+9C8xlC788SSJjOHWh7tzurfwTqTD5UDYAhIv5fRJg3sHjQ==",3379 "version": "2.0.2", 3380 "resolved": "https://registry.npmjs.org/clipboard/-/clipboard-2.0.2.tgz", 3381 "integrity": "sha512-kr53YUunMs26TNMZ+O++poRqAVRFskEi7xrqJwMWrTPMOF5pfXkRz8tDw52lKdfkF8b81G8vS6hIR952JgGmIw==", 2890 3382 "requires": { 2891 3383 "good-listener": "^1.2.2", … … 11246 11738 }, 11247 11739 "re-resizable": { 11248 "version": "4.9. 2",11249 "resolved": "https://registry.npmjs.org/re-resizable/-/re-resizable-4.9. 2.tgz",11250 "integrity": "sha512- cmgy8mQO9hpiwMklqHpnjlOzSVKTNi3szgj45gauQ22NRWEpRROx3ms+a7TgcdoYlmOzMGSv4Py5pNd63XmVdg=="11740 "version": "4.9.3", 11741 "resolved": "https://registry.npmjs.org/re-resizable/-/re-resizable-4.9.3.tgz", 11742 "integrity": "sha512-JKzmZdUAYWs85YErkmZNB7hjGR9qUOHFUZUtEplZlEZBFHRguiWck5J+HFTy/NjlMJtqQsYPQq57nQAO2BuRRg==" 11251 11743 }, 11252 11744 "react": { … … 12700 13192 }, 12701 13193 "showdown": { 12702 "version": "1. 8.7",12703 "resolved": "https://registry.npmjs.org/showdown/-/showdown-1. 8.7.tgz",12704 "integrity": "sha512- S1wyj80vu2lZZ7xm2ijr6e3VxHxPu8WfhTH7R6nelbIQeyl2g0ioEohS0YtFim8yAFMbQ8sQuXxiKvr10rKbTg==",13194 "version": "1.9.0", 13195 "resolved": "https://registry.npmjs.org/showdown/-/showdown-1.9.0.tgz", 13196 "integrity": "sha512-x7xDCRIaOlicbC57nMhGfKamu+ghwsdVkHMttyn+DelwzuHOx4OHCVL/UW/2QOLH7BxfCcCCVVUix3boKXJKXQ==", 12705 13197 "requires": { 12706 13198 "yargs": "^10.0.3" -
branches/5.0/package.json
r43861 r43884 52 52 "@babel/polyfill": "^7.0.0", 53 53 "@wordpress/a11y": "^2.0.2", 54 "@wordpress/api-fetch": "^2.2.2", 54 "@wordpress/annotations": "^1.0.0", 55 "@wordpress/api-fetch": "^2.2.3", 55 56 "@wordpress/autop": "^2.0.2", 56 57 "@wordpress/blob": "^2.1.0", 57 "@wordpress/block-library": "^2. 1.8",58 "@wordpress/block-serialization-default-parser": "^ 1.0.2",59 "@wordpress/blocks": "^5. 1.2",60 "@wordpress/components": "^ 5.0.2",61 "@wordpress/compose": "^2.1. 0",62 "@wordpress/core-data": "^2.0. 9",63 "@wordpress/data": "^3.1. 0",64 "@wordpress/date": "^2. 1.0",58 "@wordpress/block-library": "^2.2.2", 59 "@wordpress/block-serialization-default-parser": "^2.0.0", 60 "@wordpress/blocks": "^5.3.1", 61 "@wordpress/components": "^6.0.0", 62 "@wordpress/compose": "^2.1.2", 63 "@wordpress/core-data": "^2.0.12", 64 "@wordpress/data": "^3.1.2", 65 "@wordpress/date": "^2.2.1", 65 66 "@wordpress/deprecated": "^2.0.3", 66 "@wordpress/dom": "^2.0. 4",67 "@wordpress/dom": "^2.0.6", 67 68 "@wordpress/dom-ready": "^2.0.2", 68 "@wordpress/edit-post": "^ 2.0.3",69 "@wordpress/editor": "^ 6.1.1",70 "@wordpress/element": "^2.1. 5",69 "@wordpress/edit-post": "^3.0.0", 70 "@wordpress/editor": "^7.0.0", 71 "@wordpress/element": "^2.1.7", 71 72 "@wordpress/escape-html": "^1.0.1", 72 "@wordpress/format-library": "^1. 0.3",73 "@wordpress/format-library": "^1.2.0", 73 74 "@wordpress/hooks": "^2.0.3", 74 75 "@wordpress/html-entities": "^2.0.2", … … 76 77 "@wordpress/is-shallow-equal": "^1.1.4", 77 78 "@wordpress/keycodes": "^2.0.3", 78 "@wordpress/list-reusable-blocks": "^1.1. 7",79 "@wordpress/notices": "^1.0. 2",80 "@wordpress/nux": "^2.0. 9",81 "@wordpress/plugins": "^2.0. 6",79 "@wordpress/list-reusable-blocks": "^1.1.10", 80 "@wordpress/notices": "^1.0.4", 81 "@wordpress/nux": "^2.0.12", 82 "@wordpress/plugins": "^2.0.8", 82 83 "@wordpress/redux-routine": "^3.0.3", 83 "@wordpress/rich-text": "^2.0. 2",84 "@wordpress/rich-text": "^2.0.4", 84 85 "@wordpress/shortcode": "^2.0.2", 85 86 "@wordpress/token-list": "^1.0.2", 86 "@wordpress/url": "^2. 2.0",87 "@wordpress/viewport": "^2.0. 8",87 "@wordpress/url": "^2.3.0", 88 "@wordpress/viewport": "^2.0.10", 88 89 "@wordpress/wordcount": "^2.0.3", 89 90 "element-closest": "^2.0.2", -
branches/5.0/src/wp-admin/edit-form-blocks.php
r43882 r43884 104 104 // Override "(Auto Draft)" new post default title with empty string, or filtered value. 105 105 $initial_edits = array( 106 'title' => array( 107 'raw' => $post->post_title, 108 ), 109 'content' => array( 110 'raw' => $post->post_content, 111 ), 112 'excerpt' => array( 113 'raw' => $post->post_excerpt, 114 ), 106 'title' => $post->post_title, 107 'content' => $post->post_content, 108 'excerpt' => $post->post_excerpt, 115 109 ); 116 110 } … … 203 197 204 198 // Image sizes. 205 $image_sizes = get_intermediate_image_sizes();206 $image_sizes[] = 'full';207 199 208 200 /** This filter is documented in wp-admin/includes/media.php */ … … 218 210 219 211 $available_image_sizes = array(); 220 foreach ( $image_size s as $image_size_slug) {212 foreach ( $image_size_names as $image_size_slug => $image_size_name ) { 221 213 $available_image_sizes[] = array( 222 214 'slug' => $image_size_slug, 223 'name' => isset( $image_size_names[ $image_size_slug ] ) ? $image_size_names[ $image_size_slug ] : $image_size_slug,215 'name' => $image_size_name, 224 216 ); 225 217 } … … 260 252 * @since 5.0.0 261 253 * 262 * @param string $text Placeholder text. Default ' Write your story'.254 * @param string $text Placeholder text. Default 'Start writing or type / to choose a block'. 263 255 * @param WP_Post $post Post object. 264 256 */ 265 $body_placeholder = apply_filters( 'write_your_story', __( ' Write your story' ), $post );257 $body_placeholder = apply_filters( 'write_your_story', __( 'Start writing or type / to choose a block' ), $post ); 266 258 267 259 $editor_settings = array( … … 280 272 'allowedMimeTypes' => get_allowed_mime_types(), 281 273 'styles' => $styles, 282 ' availableImageSizes'=> $available_image_sizes,274 'imageSizes' => $available_image_sizes, 283 275 'postLock' => $lock_details, 284 276 'postLockUtils' => array( -
branches/5.0/src/wp-includes/blocks.php
r43883 r43884 115 115 116 116 /** 117 * Remove all dynamic blocks from the given content. 118 * 119 * @since 5.0.0 120 * 121 * @param string $content Content of the current post. 122 * @return string 123 */ 124 function strip_dynamic_blocks( $content ) { 125 return _recurse_strip_dynamic_blocks( parse_blocks( $content ) ); 126 } 127 128 /** 129 * Helper function for strip_dynamic_blocks(), to recurse through the block tree. 130 * 131 * @since 5.0.0 132 * @access private 133 * 134 * @param array $blocks Array of blocks from parse_blocks(). 135 * @return string HTML from the non-dynamic blocks. 136 */ 137 function _recurse_strip_dynamic_blocks( $blocks ) { 138 $clean_content = ''; 139 $dynamic_blocks = get_dynamic_block_names(); 140 141 foreach ( $blocks as $block ) { 142 if ( ! in_array( $block['blockName'], $dynamic_blocks ) ) { 143 if ( $block['innerBlocks'] ) { 144 $clean_content .= _recurse_strip_dynamic_blocks( $block['innerBlocks'] ); 145 } else { 146 $clean_content .= $block['innerHTML']; 147 } 148 } 149 } 150 151 return $clean_content; 117 * Parses blocks out of a content string, and renders those appropriate for the excerpt. 118 * 119 * As the excerpt should be a small string of text relevant to the full post content, 120 * this function renders the blocks that are most likely to contain such text. 121 * 122 * @since 5.0.0 123 * 124 * @param string $content The content to parse. 125 * @return string The parsed and filtered content. 126 */ 127 function excerpt_remove_blocks( $content ) { 128 $allowed_blocks = array( 129 // Classic blocks have their blockName set to null. 130 null, 131 'core/columns', 132 'core/freeform', 133 'core/heading', 134 'core/html', 135 'core/list', 136 'core/media-text', 137 'core/paragraph', 138 'core/preformatted', 139 'core/pullquote', 140 'core/quote', 141 'core/table', 142 'core/verse', 143 ); 144 /** 145 * Filters the list of blocks that can contribute to the excerpt. 146 * 147 * If a dynamic block is added to this list, it must not generate another 148 * excerpt, as this will cause an infinite loop to occur. 149 * 150 * @since 4.4.0 151 * 152 * @param array $allowed_blocks The list of allowed blocks. 153 */ 154 $allowed_blocks = apply_filters( 'excerpt_allowed_blocks', $allowed_blocks ); 155 $blocks = parse_blocks( $content ); 156 $output = ''; 157 foreach ( $blocks as $block ) { 158 if ( in_array( $block['blockName'], $allowed_blocks, true ) ) { 159 $output .= render_block( $block ); 160 } 161 } 162 return $output; 163 } 164 165 /** 166 * Renders a single block into a HTML string. 167 * 168 * @since 5.0.0 169 * 170 * @global WP_Post $post The post to edit. 171 * 172 * @param array $block A single parsed block object. 173 * @return string String of rendered HTML. 174 */ 175 function render_block( $block ) { 176 global $post; 177 178 $block_type = WP_Block_Type_Registry::get_instance()->get_registered( $block['blockName'] ); 179 $is_dynamic = $block['blockName'] && null !== $block_type && $block_type->is_dynamic(); 180 $block_content = ''; 181 $index = 0; 182 183 foreach ( $block['innerContent'] as $chunk ) { 184 $block_content .= is_string( $chunk ) ? $chunk : render_block( $block['innerBlocks'][ $index++ ] ); 185 } 186 187 if ( $is_dynamic ) { 188 $attributes = is_array( $block['attrs'] ) ? (array) $block['attrs'] : array(); 189 $global_post = $post; 190 $block_content = $block_type->render( $attributes, $block_content ); 191 $post = $global_post; 192 } 193 194 /** 195 * Filters the content of a single block. 196 * 197 * @since 5.0.0 198 * 199 * @param string $block_content The block content about to be appended. 200 * @param array $block The full block, including name and attributes. 201 */ 202 return apply_filters( 'render_block', $block_content, $block ); 152 203 } 153 204 … … 157 208 * @since 5.0.0 158 209 * 159 * @param 160 * @return array 210 * @param string $content Post content. 211 * @return array Array of parsed block objects. 161 212 */ 162 213 function parse_blocks( $content ) { 163 /*164 * If there are no blocks in the content, return a single block, rather165 * than wasting time trying to parse the string.166 */167 if ( ! has_blocks( $content ) ) {168 return array(169 array(170 'blockName' => null,171 'attrs' => array(),172 'innerBlocks' => array(),173 'innerHTML' => $content,174 ),175 );176 }177 178 214 /** 179 215 * Filter to allow plugins to replace the server-side block parser … … 207 243 208 244 $blocks = parse_blocks( $content ); 209 return _recurse_do_blocks( $blocks, $blocks ); 245 $output = ''; 246 247 foreach ( $blocks as $block ) { 248 $output .= render_block( $block ); 249 } 250 251 return $output; 210 252 } 211 253 … … 232 274 233 275 /** 234 * Helper function for do_blocks(), to recurse through the block tree.235 *236 * @since 5.0.0237 * @access private238 *239 * @param array $blocks Array of blocks from parse_blocks().240 * @param array $all_blocks The top level array of blocks.241 * @return string The block HTML.242 */243 function _recurse_do_blocks( $blocks, $all_blocks ) {244 global $post;245 246 /*247 * Back up global post, to restore after render callback.248 * Allows callbacks to run new WP_Query instances without breaking the global post.249 */250 $global_post = $post;251 252 $rendered_content = '';253 $dynamic_blocks = get_dynamic_block_names();254 255 foreach ( $blocks as $block ) {256 $block = (array) $block;257 if ( in_array( $block['blockName'], $dynamic_blocks ) ) {258 // Find registered block type. We can assume it exists since we use the259 // `get_dynamic_block_names` function as a source for pattern matching.260 $block_type = WP_Block_Type_Registry::get_instance()->get_registered( $block['blockName'] );261 262 // Replace dynamic block with server-rendered output.263 $block_content = $block_type->render( (array) $block['attrs'], $block['innerHTML'] );264 } else if ( $block['innerBlocks'] ) {265 $block_content = _recurse_do_blocks( $block['innerBlocks'], $blocks );266 } else {267 $block_content = $block['innerHTML'];268 }269 270 /**271 * Filters the content of a single block.272 *273 * During the_content, each block is parsed and added to the output individually. This filter allows274 * that content to be altered immediately before it's appended.275 *276 * @since 5.0.0277 *278 * @param string $block_content The block content about to be appended.279 * @param array $block The full block, including name and attributes.280 * @param array $all_blocks The array of all blocks being processed.281 */282 $rendered_content .= apply_filters( 'do_block', $block_content, $block, $all_blocks );283 284 // Restore global $post.285 $post = $global_post;286 }287 288 // Strip remaining block comment demarcations.289 $rendered_content = preg_replace( '/<!--\s+\/?wp:.*?-->/m', '', $rendered_content );290 291 return $rendered_content;292 }293 294 /**295 276 * Returns the current version of the block format that the content string is using. 296 277 * -
branches/5.0/src/wp-includes/class-wp-block-parser.php
r43752 r43884 49 49 public $innerHTML; 50 50 51 function __construct( $name, $attrs, $innerBlocks, $innerHTML ) { 51 /** 52 * List of string fragments and null markers where inner blocks were found 53 * 54 * @example array( 55 * 'innerHTML' => 'BeforeInnerAfter', 56 * 'innerBlocks' => array( block, block ), 57 * 'innerContent' => array( 'Before', null, 'Inner', null, 'After' ), 58 * ) 59 * 60 * @since 4.2.0 61 * @var array 62 */ 63 public $innerContent; 64 65 function __construct( $name, $attrs, $innerBlocks, $innerHTML, $innerContent ) { 52 66 $this->blockName = $name; 53 67 $this->attrs = $attrs; 54 68 $this->innerBlocks = $innerBlocks; 55 69 $this->innerHTML = $innerHTML; 70 $this->innerContent = $innerContent; 56 71 } 57 72 } … … 160 175 161 176 /** 177 * Empty associative array, here due to PHP quirks 178 * 179 * @since 4.4.0 180 * @var array empty associative array 181 */ 182 public $empty_attrs; 183 184 /** 162 185 * Parses a document and returns a list of block structures 163 186 * … … 172 195 */ 173 196 function parse( $document ) { 174 $this->document = $document; 175 $this->offset = 0; 176 $this->output = array(); 177 $this->stack = array(); 197 $this->document = $document; 198 $this->offset = 0; 199 $this->output = array(); 200 $this->stack = array(); 201 $this->empty_attrs = json_decode( '{}', true ); 178 202 179 203 do { … … 253 277 } 254 278 255 $this->output[] = (array) new WP_Block_Parser_Block( $block_name, $attrs, array(), '' );279 $this->output[] = (array) new WP_Block_Parser_Block( $block_name, $attrs, array(), '', array() ); 256 280 $this->offset = $start_offset + $token_length; 257 281 return true; … … 260 284 // otherwise we found an inner block 261 285 $this->add_inner_block( 262 new WP_Block_Parser_Block( $block_name, $attrs, array(), '' ),286 new WP_Block_Parser_Block( $block_name, $attrs, array(), '', array() ), 263 287 $start_offset, 264 288 $token_length … … 270 294 // track all newly-opened blocks on the stack 271 295 array_push( $this->stack, new WP_Block_Parser_Frame( 272 new WP_Block_Parser_Block( $block_name, $attrs, array(), '' ),296 new WP_Block_Parser_Block( $block_name, $attrs, array(), '', array() ), 273 297 $start_offset, 274 298 $token_length, … … 307 331 */ 308 332 $stack_top = array_pop( $this->stack ); 309 310 333 $html = substr( $this->document, $stack_top->prev_offset, $start_offset - $stack_top->prev_offset ); 311 if ( $stack_top->block->innerBlocks ) { 312 $stack_top->block->innerBlocks[] = (array) $this->freeform( $html ); 313 } else { 314 $stack_top->block->innerHTML = $html; 315 } 316 334 $stack_top->block->innerHTML .= $html; 335 $stack_top->block->innerContent[] = $html; 317 336 $stack_top->prev_offset = $start_offset + $token_length; 318 337 … … 355 374 */ 356 375 $has_match = preg_match( 357 '/<!--\s+(?<closer>\/)?wp:(?<namespace>[a-z][a-z0-9_-]*\/)?(?<name>[a-z][a-z0-9_-]*)\s+(?<attrs>{(?: (?!}\s+-->).)+?}\s+)?(?<void>\/)?-->/s',376 '/<!--\s+(?<closer>\/)?wp:(?<namespace>[a-z][a-z0-9_-]*\/)?(?<name>[a-z][a-z0-9_-]*)\s+(?<attrs>{(?:[^}]+|}+(?=})|(?!}\s+-->).)*?}\s+)?(?<void>\/)?-->/s', 358 377 $this->document, 359 378 $matches, … … 383 402 $attrs = $has_attrs 384 403 ? json_decode( $matches[ 'attrs' ][ 0 ], /* as-associative */ true ) 385 : json_decode( '{}', /* don't ask why, just verify in PHP */ false );404 : $this->empty_attrs; 386 405 387 406 /* … … 413 432 * @return WP_Block_Parser_Block freeform block object 414 433 */ 415 staticfunction freeform( $innerHTML ) {416 return new WP_Block_Parser_Block( null, array(), array(), $innerHTML);434 function freeform( $innerHTML ) { 435 return new WP_Block_Parser_Block( null, $this->empty_attrs, array(), $innerHTML, array( $innerHTML ) ); 417 436 } 418 437 … … 448 467 function add_inner_block( WP_Block_Parser_Block $block, $token_start, $token_length, $last_offset = null ) { 449 468 $parent = $this->stack[ count( $this->stack ) - 1 ]; 450 $parent->block->innerBlocks[] = (array) $this->freeform( substr( $this->document, $parent->prev_offset, $token_start - $parent->prev_offset ) );451 469 $parent->block->innerBlocks[] = (array) $block; 470 $html = substr( $this->document, $parent->prev_offset, $token_start - $parent->prev_offset ); 471 472 if ( ! empty( $html ) ) { 473 $parent->block->innerHTML .= $html; 474 $parent->block->innerContent[] = $html; 475 } 476 477 $parent->block->innerContent[] = null; 452 478 $parent->prev_offset = $last_offset ? $last_offset : $token_start + $token_length; 453 479 } … … 468 494 : substr( $this->document, $prev_offset ); 469 495 470 if ( $stack_top->block->innerBlocks ) { 471 $stack_top->block->innerBlocks[] = (array) $this->freeform( $html ); 472 } else { 473 $stack_top->block->innerHTML = $html; 496 if ( ! empty( $html ) ) { 497 $stack_top->block->innerHTML .= $html; 498 $stack_top->block->innerContent[] = $html; 474 499 } 475 500 -
branches/5.0/src/wp-includes/formatting.php
r43879 r43884 3372 3372 3373 3373 $text = strip_shortcodes( $text ); 3374 $text = strip_dynamic_blocks( $text );3374 $text = excerpt_remove_blocks( $text ); 3375 3375 3376 3376 /** This filter is documented in wp-includes/post-template.php */ -
branches/5.0/src/wp-includes/script-loader.php
r43878 r43884 86 86 'wp-polyfill-node-contains', 87 87 'wp-polyfill-element-closest', 88 'wp-polyfill -ecmascript',88 'wp-polyfill', 89 89 ); 90 90 … … 100 100 } 101 101 102 $scripts->add( 'wp-polyfill', null, array( 'wp-polyfill -ecmascript' ) );102 $scripts->add( 'wp-polyfill', null, array( 'wp-polyfill' ) ); 103 103 did_action( 'init' ) && $scripts->add_data( 104 104 'wp-polyfill', … … 167 167 'api-fetch' => array( 'wp-polyfill', 'wp-hooks', 'wp-i18n', 'wp-url' ), 168 168 'a11y' => array( 'wp-dom-ready', 'wp-polyfill' ), 169 'annotations' => array( 170 'wp-data', 171 'wp-hooks', 172 'wp-i18n', 173 'wp-polyfill', 174 'wp-rich-text', 175 ), 169 176 'autop' => array( 'wp-polyfill' ), 170 177 'blob' => array( 'wp-polyfill' ), … … 260 267 'wp-core-data', 261 268 'wp-data', 262 'wp-deprecated',263 269 'wp-dom-ready', 264 270 'wp-editor', … … 335 341 'wp-a11y', 336 342 'wp-data', 337 'wp-polyfill -ecmascript',343 'wp-polyfill', 338 344 ), 339 345 'nux' => array( -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__4-invalid-starting-letter.parsed.json
r43751 r43884 4 4 "attrs": {}, 5 5 "innerBlocks": [], 6 "innerHTML": "<!-- wp:core/4-invalid /-->\n" 6 "innerHTML": "<!-- wp:core/4-invalid /-->\n", 7 "innerContent": [ 8 "<!-- wp:core/4-invalid /-->\n" 9 ] 7 10 } 8 11 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__4-invalid-starting-letter.server.html
r43752 r43884 1 1 <!-- wp:core/4-invalid /--> -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives.parsed.json
r43751 r43884 7 7 }, 8 8 "innerBlocks": [], 9 "innerHTML": "" 9 "innerHTML": "", 10 "innerContent": [] 10 11 } 11 12 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives__showPostCounts.parsed.json
r43751 r43884 7 7 }, 8 8 "innerBlocks": [], 9 "innerHTML": "" 9 "innerHTML": "", 10 "innerContent": [] 10 11 } 11 12 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__audio.parsed.json
r43751 r43884 6 6 }, 7 7 "innerBlocks": [], 8 "innerHTML": "\n<figure class=\"wp-block-audio alignright\">\n <audio controls=\"\" src=\"https://media.simplecast.com/episodes/audio/80564/draft-podcast-51-livePublish2.mp3\"></audio>\n</figure>\n" 8 "innerHTML": "\n<figure class=\"wp-block-audio alignright\">\n <audio controls=\"\" src=\"https://media.simplecast.com/episodes/audio/80564/draft-podcast-51-livePublish2.mp3\"></audio>\n</figure>\n", 9 "innerContent": [ "\n<figure class=\"wp-block-audio alignright\">\n <audio controls=\"\" src=\"https://media.simplecast.com/episodes/audio/80564/draft-podcast-51-livePublish2.mp3\"></audio>\n</figure>\n" ] 9 10 }, 10 11 { … … 12 13 "attrs": {}, 13 14 "innerBlocks": [], 14 "innerHTML": "\n" 15 "innerHTML": "\n", 16 "innerContent": [ "\n" ] 15 17 } 16 18 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__block.parsed.json
r43751 r43884 6 6 }, 7 7 "innerBlocks": [], 8 "innerHTML": "" 8 "innerHTML": "", 9 "innerContent": [] 9 10 }, 10 11 { … … 12 13 "attrs": {}, 13 14 "innerBlocks": [], 14 "innerHTML": "\n" 15 "innerHTML": "\n", 16 "innerContent": [ "\n" ] 15 17 } 16 18 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__button__center.parsed.json
r43751 r43884 6 6 }, 7 7 "innerBlocks": [], 8 "innerHTML": "\n<div class=\"wp-block-button aligncenter\"><a class=\"wp-block-button__link\" href=\"https://github.com/WordPress/gutenberg\">Help build Gutenberg</a></div>\n" 8 "innerHTML": "\n<div class=\"wp-block-button aligncenter\"><a class=\"wp-block-button__link\" href=\"https://github.com/WordPress/gutenberg\">Help build Gutenberg</a></div>\n", 9 "innerContent": [ "\n<div class=\"wp-block-button aligncenter\"><a class=\"wp-block-button__link\" href=\"https://github.com/WordPress/gutenberg\">Help build Gutenberg</a></div>\n" ] 9 10 }, 10 11 { … … 12 13 "attrs": {}, 13 14 "innerBlocks": [], 14 "innerHTML": "\n" 15 "innerHTML": "\n", 16 "innerContent": [ "\n" ] 15 17 } 16 18 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__categories.json
r43751 r43884 5 5 "isValid": true, 6 6 "attributes": { 7 "showPostCounts": false,8 7 "displayAsDropdown": false, 9 "showHierarchy": false 8 "showHierarchy": false, 9 "showPostCounts": false 10 10 }, 11 11 "innerBlocks": [], -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__categories.parsed.json
r43751 r43884 8 8 }, 9 9 "innerBlocks": [], 10 "innerHTML": "" 10 "innerHTML": "", 11 "innerContent": [] 11 12 }, 12 13 { … … 14 15 "attrs": {}, 15 16 "innerBlocks": [], 16 "innerHTML": "\n" 17 "innerHTML": "\n", 18 "innerContent": [ "\n" ] 17 19 } 18 20 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__code.parsed.json
r43751 r43884 4 4 "attrs": {}, 5 5 "innerBlocks": [], 6 "innerHTML": "\n<pre class=\"wp-block-code\"><code>export default function MyButton() {\n\treturn <Button>Click Me!</Button>;\n}</code></pre>\n" 6 "innerHTML": "\n<pre class=\"wp-block-code\"><code>export default function MyButton() {\n\treturn <Button>Click Me!</Button>;\n}</code></pre>\n", 7 "innerContent": [ "\n<pre class=\"wp-block-code\"><code>export default function MyButton() {\n\treturn <Button>Click Me!</Button>;\n}</code></pre>\n" ] 7 8 }, 8 9 { … … 10 11 "attrs": {}, 11 12 "innerBlocks": [], 12 "innerHTML": "\n" 13 "innerHTML": "\n", 14 "innerContent": [ "\n" ] 13 15 } 14 16 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__column.parsed.json
r43752 r43884 4 4 "attrs": {}, 5 5 "innerBlocks": [ 6 {7 "blockName": null,8 "attrs": {},9 "innerBlocks": [],10 "innerHTML": "\n<div class=\"wp-block-column\">\n\t"11 },12 6 { 13 7 "blockName": "core/paragraph", 14 8 "attrs": {}, 15 9 "innerBlocks": [], 16 "innerHTML": "\n\t<p>Column One, Paragraph One</p>\n\t" 10 "innerHTML": "\n\t<p>Column One, Paragraph One</p>\n\t", 11 "innerContent": [ "\n\t<p>Column One, Paragraph One</p>\n\t" ] 17 12 }, 18 {19 "blockName": null,20 "attrs": {},21 "innerBlocks": [],22 "innerHTML": "\n\t"23 },24 13 { 25 14 "blockName": "core/paragraph", 26 15 "attrs": {}, 27 16 "innerBlocks": [], 28 "innerHTML": "\n\t<p>Column One, Paragraph Two</p>\n\t" 29 }, 30 { 31 "blockName": null, 32 "attrs": {}, 33 "innerBlocks": [], 34 "innerHTML": "\n</div>\n" 35 } 36 ], 37 "innerHTML": "" 17 "innerHTML": "\n\t<p>Column One, Paragraph Two</p>\n\t", 18 "innerContent": [ "\n\t<p>Column One, Paragraph Two</p>\n\t" ] 19 } 20 ], 21 "innerHTML": "\n<div class=\"wp-block-column\">\n\t\n\t\n</div>\n", 22 "innerContent": [ "\n<div class=\"wp-block-column\">\n\t", null, "\n\t", null, "\n</div>\n" ] 38 23 }, 39 24 { … … 41 26 "attrs": {}, 42 27 "innerBlocks": [], 43 "innerHTML": "\n" 28 "innerHTML": "\n", 29 "innerContent": [ "\n" ] 44 30 } 45 31 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__columns.parsed.json
r43752 r43884 6 6 }, 7 7 "innerBlocks": [ 8 {9 "blockName": null,10 "attrs": {},11 "innerBlocks": [],12 "innerHTML": "\n<div class=\"wp-block-columns has-3-columns\">\n\t"13 },14 8 { 15 9 "blockName": "core/column", 16 10 "attrs": {}, 17 11 "innerBlocks": [ 18 { 19 "blockName": null, 20 "attrs": {}, 21 "innerBlocks": [], 22 "innerHTML": "\n\t<div class=\"wp-block-column\">\n\t\t" 23 }, 24 { 12 { 25 13 "blockName": "core/paragraph", 26 14 "attrs": {}, 27 15 "innerBlocks": [], 28 "innerHTML": "\n\t\t<p>Column One, Paragraph One</p>\n\t\t" 16 "innerHTML": "\n\t\t<p>Column One, Paragraph One</p>\n\t\t", 17 "innerContent": [ 18 "\n\t\t<p>Column One, Paragraph One</p>\n\t\t" 19 ] 29 20 }, 30 { 31 "blockName": null, 32 "attrs": {}, 33 "innerBlocks": [], 34 "innerHTML": "\n\t\t" 35 }, 36 { 21 { 37 22 "blockName": "core/paragraph", 38 23 "attrs": {}, 39 24 "innerBlocks": [], 40 "innerHTML": "\n\t\t<p>Column One, Paragraph Two</p>\n\t\t" 41 }, 42 { 43 "blockName": null, 44 "attrs": {}, 45 "innerBlocks": [], 46 "innerHTML": "\n\t</div>\n\t" 47 } 25 "innerHTML": "\n\t\t<p>Column One, Paragraph Two</p>\n\t\t", 26 "innerContent": [ 27 "\n\t\t<p>Column One, Paragraph Two</p>\n\t\t" 28 ] 29 } 48 30 ], 49 "innerHTML": "" 31 "innerHTML": "\n\t<div class=\"wp-block-column\">\n\t\t\n\t\t\n\t</div>\n\t", 32 "innerContent": [ 33 "\n\t<div class=\"wp-block-column\">\n\t\t", 34 null, 35 "\n\t\t", 36 null, 37 "\n\t</div>\n\t" 38 ] 50 39 }, 51 {52 "blockName": null,53 "attrs": {},54 "innerBlocks": [],55 "innerHTML": "\n\t"56 },57 40 { 58 41 "blockName": "core/column", 59 42 "attrs": {}, 60 "innerBlocks": [ 61 { 62 "blockName": null, 63 "attrs": {}, 64 "innerBlocks": [], 65 "innerHTML": "\n\t<div class=\"wp-block-column\">\n\t\t" 66 }, 67 { 43 "innerBlocks": [ 44 { 68 45 "blockName": "core/paragraph", 69 46 "attrs": {}, 70 47 "innerBlocks": [], 71 "innerHTML": "\n\t\t<p>Column Two, Paragraph One</p>\n\t\t" 48 "innerHTML": "\n\t\t<p>Column Two, Paragraph One</p>\n\t\t", 49 "innerContent": [ 50 "\n\t\t<p>Column Two, Paragraph One</p>\n\t\t" 51 ] 72 52 }, 73 { 74 "blockName": null, 75 "attrs": {}, 76 "innerBlocks": [], 77 "innerHTML": "\n\t\t" 78 }, 79 { 53 { 80 54 "blockName": "core/paragraph", 81 55 "attrs": {}, 82 56 "innerBlocks": [], 83 "innerHTML": "\n\t\t<p>Column Three, Paragraph One</p>\n\t\t" 84 }, 85 { 86 "blockName": null, 87 "attrs": {}, 88 "innerBlocks": [], 89 "innerHTML": "\n\t</div>\n\t" 90 } 57 "innerHTML": "\n\t\t<p>Column Three, Paragraph One</p>\n\t\t", 58 "innerContent": [ 59 "\n\t\t<p>Column Three, Paragraph One</p>\n\t\t" 60 ] 61 } 91 62 ], 92 "innerHTML": "" 93 }, 94 { 95 "blockName": null, 96 "attrs": {}, 97 "innerBlocks": [], 98 "innerHTML": "\n</div>\n" 99 } 63 "innerHTML": "\n\t<div class=\"wp-block-column\">\n\t\t\n\t\t\n\t</div>\n\t", 64 "innerContent": [ 65 "\n\t<div class=\"wp-block-column\">\n\t\t", 66 null, 67 "\n\t\t", 68 null, 69 "\n\t</div>\n\t" 70 ] 71 } 100 72 ], 101 "innerHTML": "" 73 "innerHTML": "\n<div class=\"wp-block-columns has-3-columns\">\n\t\n\t\n</div>\n", 74 "innerContent": [ 75 "\n<div class=\"wp-block-columns has-3-columns\">\n\t", 76 null, 77 "\n\t", 78 null, 79 "\n</div>\n" 80 ] 102 81 }, 103 82 { … … 105 84 "attrs": {}, 106 85 "innerBlocks": [], 107 "innerHTML": "\n" 86 "innerHTML": "\n", 87 "innerContent": [ 88 "\n" 89 ] 108 90 } 109 91 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__cover-image.parsed.json
r43751 r43884 7 7 }, 8 8 "innerBlocks": [], 9 "innerHTML": "\n<div class=\"wp-block-cover-image has-background-dim-40 has-background-dim\" style=\"background-image:url(https://cldup.com/uuUqE_dXzy.jpg)\">\n <p class=\"wp-block-cover-image-text\">Guten Berg!</p>\n</div>\n" 9 "innerHTML": "\n<div class=\"wp-block-cover-image has-background-dim-40 has-background-dim\" style=\"background-image:url(https://cldup.com/uuUqE_dXzy.jpg)\">\n <p class=\"wp-block-cover-image-text\">Guten Berg!</p>\n</div>\n", 10 "innerContent": [ 11 "\n<div class=\"wp-block-cover-image has-background-dim-40 has-background-dim\" style=\"background-image:url(https://cldup.com/uuUqE_dXzy.jpg)\">\n <p class=\"wp-block-cover-image-text\">Guten Berg!</p>\n</div>\n" 12 ] 10 13 }, 11 14 { … … 13 16 "attrs": {}, 14 17 "innerBlocks": [], 15 "innerHTML": "\n" 18 "innerHTML": "\n", 19 "innerContent": [ 20 "\n" 21 ] 16 22 } 17 23 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__embed.parsed.json
r43751 r43884 6 6 }, 7 7 "innerBlocks": [], 8 "innerHTML": "\n<figure class=\"wp-block-embed\">\n <div class=\"wp-block-embed__wrapper\">\n https://example.com/\n </div>\n <figcaption>Embedded content from an example URL</figcaption>\n</figure>\n" 8 "innerHTML": "\n<figure class=\"wp-block-embed\">\n <div class=\"wp-block-embed__wrapper\">\n https://example.com/\n </div>\n <figcaption>Embedded content from an example URL</figcaption>\n</figure>\n", 9 "innerContent": [ 10 "\n<figure class=\"wp-block-embed\">\n <div class=\"wp-block-embed__wrapper\">\n https://example.com/\n </div>\n <figcaption>Embedded content from an example URL</figcaption>\n</figure>\n" 11 ] 9 12 }, 10 13 { … … 12 15 "attrs": {}, 13 16 "innerBlocks": [], 14 "innerHTML": "\n" 17 "innerHTML": "\n", 18 "innerContent": [ 19 "\n" 20 ] 15 21 } 16 22 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__new-window.html
r43751 r43884 1 1 <!-- wp:file {"href":"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js","showDownloadButton":true,"id":176} --> 2 <div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" target="_blank" rel="noreferrer noopener">6546</a><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button" download ="6546">Download</a></div>2 <div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" target="_blank" rel="noreferrer noopener">6546</a><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button" download>Download</a></div> 3 3 <!-- /wp:file --> -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__new-window.json
r43751 r43884 14 14 }, 15 15 "innerBlocks": [], 16 "originalContent": "<div class=\"wp-block-file\"><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" target=\"_blank\" rel=\"noreferrer noopener\">6546</a><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" class=\"wp-block-file__button\" download =\"6546\">Download</a></div>"16 "originalContent": "<div class=\"wp-block-file\"><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" target=\"_blank\" rel=\"noreferrer noopener\">6546</a><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" class=\"wp-block-file__button\" download>Download</a></div>" 17 17 } 18 18 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__new-window.parsed.json
r43751 r43884 8 8 }, 9 9 "innerBlocks": [], 10 "innerHTML": "\n<div class=\"wp-block-file\"><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" target=\"_blank\" rel=\"noreferrer noopener\">6546</a><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" class=\"wp-block-file__button\" download=\"6546\">Download</a></div>\n" 10 "innerHTML": "\n<div class=\"wp-block-file\"><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" target=\"_blank\" rel=\"noreferrer noopener\">6546</a><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" class=\"wp-block-file__button\" download>Download</a></div>\n", 11 "innerContent": [ 12 "\n<div class=\"wp-block-file\"><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" target=\"_blank\" rel=\"noreferrer noopener\">6546</a><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" class=\"wp-block-file__button\" download>Download</a></div>\n" 13 ] 11 14 }, 12 15 { … … 14 17 "attrs": {}, 15 18 "innerBlocks": [], 16 "innerHTML": "\n" 19 "innerHTML": "\n", 20 "innerContent": [ 21 "\n" 22 ] 17 23 } 18 24 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__new-window.serialized.html
r43751 r43884 1 1 <!-- wp:file {"id":176,"href":"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js"} --> 2 <div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" target="_blank" rel="noreferrer noopener">6546</a><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button" download ="6546">Download</a></div>2 <div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" target="_blank" rel="noreferrer noopener">6546</a><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button" download>Download</a></div> 3 3 <!-- /wp:file --> -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__new-window.server.html
r43752 r43884 1 1 2 <div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" target="_blank" rel="noreferrer noopener">6546</a><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button" download ="6546">Download</a></div>2 <div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" target="_blank" rel="noreferrer noopener">6546</a><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button" download>Download</a></div> 3 3 -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-download-button.parsed.json
r43751 r43884 8 8 }, 9 9 "innerBlocks": [], 10 "innerHTML": "\n<div class=\"wp-block-file\"><a href=\"http://localhost:8888/?attachment_id=176\">lkjfijwef</a></div>\n" 10 "innerHTML": "\n<div class=\"wp-block-file\"><a href=\"http://localhost:8888/?attachment_id=176\">lkjfijwef</a></div>\n", 11 "innerContent": [ 12 "\n<div class=\"wp-block-file\"><a href=\"http://localhost:8888/?attachment_id=176\">lkjfijwef</a></div>\n" 13 ] 11 14 }, 12 15 { … … 14 17 "attrs": {}, 15 18 "innerBlocks": [], 16 "innerHTML": "\n" 19 "innerHTML": "\n", 20 "innerContent": [ 21 "\n" 22 ] 17 23 } 18 24 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-text-link.html
r43751 r43884 1 1 <!-- wp:file {"href":"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js","showDownloadButton":true,"id":176} --> 2 <div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button" download ="">Download</a></div>2 <div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button" download>Download</a></div> 3 3 <!-- /wp:file --> -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-text-link.json
r43751 r43884 12 12 }, 13 13 "innerBlocks": [], 14 "originalContent": "<div class=\"wp-block-file\"><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" class=\"wp-block-file__button\" download =\"\">Download</a></div>"14 "originalContent": "<div class=\"wp-block-file\"><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" class=\"wp-block-file__button\" download>Download</a></div>" 15 15 } 16 16 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-text-link.parsed.json
r43751 r43884 8 8 }, 9 9 "innerBlocks": [], 10 "innerHTML": "\n<div class=\"wp-block-file\"><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" class=\"wp-block-file__button\" download=\"\">Download</a></div>\n" 10 "innerHTML": "\n<div class=\"wp-block-file\"><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" class=\"wp-block-file__button\" download>Download</a></div>\n", 11 "innerContent": [ 12 "\n<div class=\"wp-block-file\"><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" class=\"wp-block-file__button\" download>Download</a></div>\n" 13 ] 11 14 }, 12 15 { … … 14 17 "attrs": {}, 15 18 "innerBlocks": [], 16 "innerHTML": "\n" 19 "innerHTML": "\n", 20 "innerContent": [ 21 "\n" 22 ] 17 23 } 18 24 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-text-link.serialized.html
r43751 r43884 1 1 <!-- wp:file {"id":176,"href":"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js"} --> 2 <div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button" download ="">Download</a></div>2 <div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button" download>Download</a></div> 3 3 <!-- /wp:file --> -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-text-link.server.html
r43752 r43884 1 1 2 <div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button" download ="">Download</a></div>2 <div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button" download>Download</a></div> 3 3 -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform.parsed.json
r43751 r43884 4 4 "attrs": {}, 5 5 "innerBlocks": [], 6 "innerHTML": "\nTesting freeform block with some\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>\n" 6 "innerHTML": "\nTesting freeform block with some\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>\n", 7 "innerContent": [ 8 "\nTesting freeform block with some\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>\n" 9 ] 7 10 }, 8 11 { … … 10 13 "attrs": {}, 11 14 "innerBlocks": [], 12 "innerHTML": "\n" 15 "innerHTML": "\n", 16 "innerContent": [ 17 "\n" 18 ] 13 19 } 14 20 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform__undelimited.parsed.json
r43751 r43884 1 1 [ 2 2 { 3 "blockName": null, 3 4 "attrs": {}, 4 "blockName": null,5 5 "innerBlocks": [], 6 "innerHTML": "Testing freeform block with some\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>\n" 6 "innerHTML": "Testing freeform block with some\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>\n", 7 "innerContent": [ 8 "Testing freeform block with some\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>\n" 9 ] 7 10 } 8 11 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery.parsed.json
r43751 r43884 4 4 "attrs": {}, 5 5 "innerBlocks": [], 6 "innerHTML": "\n<ul class=\"wp-block-gallery columns-2 is-cropped\">\n\t<li class=\"blocks-gallery-item\">\n\t\t<figure>\n\t\t\t<img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"title\" />\n\t\t</figure>\n\t</li>\n\t<li class=\"blocks-gallery-item\">\n\t\t<figure>\n\t\t\t<img src=\"http://google.com/hi.png\" alt=\"title\" />\n\t\t</figure>\n\t</li>\n</ul>\n" 6 "innerHTML": "\n<ul class=\"wp-block-gallery columns-2 is-cropped\">\n\t<li class=\"blocks-gallery-item\">\n\t\t<figure>\n\t\t\t<img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"title\" />\n\t\t</figure>\n\t</li>\n\t<li class=\"blocks-gallery-item\">\n\t\t<figure>\n\t\t\t<img src=\"http://google.com/hi.png\" alt=\"title\" />\n\t\t</figure>\n\t</li>\n</ul>\n", 7 "innerContent": [ 8 "\n<ul class=\"wp-block-gallery columns-2 is-cropped\">\n\t<li class=\"blocks-gallery-item\">\n\t\t<figure>\n\t\t\t<img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"title\" />\n\t\t</figure>\n\t</li>\n\t<li class=\"blocks-gallery-item\">\n\t\t<figure>\n\t\t\t<img src=\"http://google.com/hi.png\" alt=\"title\" />\n\t\t</figure>\n\t</li>\n</ul>\n" 9 ] 7 10 }, 8 11 { … … 10 13 "attrs": {}, 11 14 "innerBlocks": [], 12 "innerHTML": "\n" 15 "innerHTML": "\n", 16 "innerContent": [ 17 "\n" 18 ] 13 19 } 14 20 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery__columns.parsed.json
r43751 r43884 6 6 }, 7 7 "innerBlocks": [], 8 "innerHTML": "\n<ul class=\"wp-block-gallery columns-1 is-cropped\">\n\t<li class=\"blocks-gallery-item\">\n\t\t<figure>\n\t\t\t<img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"title\" />\n\t\t</figure>\n\t</li>\n\t<li class=\"blocks-gallery-item\">\n\t\t<figure>\n\t\t\t<img src=\"http://google.com/hi.png\" alt=\"title\" />\n\t\t</figure>\n\t</li>\n</ul>\n" 8 "innerHTML": "\n<ul class=\"wp-block-gallery columns-1 is-cropped\">\n\t<li class=\"blocks-gallery-item\">\n\t\t<figure>\n\t\t\t<img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"title\" />\n\t\t</figure>\n\t</li>\n\t<li class=\"blocks-gallery-item\">\n\t\t<figure>\n\t\t\t<img src=\"http://google.com/hi.png\" alt=\"title\" />\n\t\t</figure>\n\t</li>\n</ul>\n", 9 "innerContent": [ 10 "\n<ul class=\"wp-block-gallery columns-1 is-cropped\">\n\t<li class=\"blocks-gallery-item\">\n\t\t<figure>\n\t\t\t<img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"title\" />\n\t\t</figure>\n\t</li>\n\t<li class=\"blocks-gallery-item\">\n\t\t<figure>\n\t\t\t<img src=\"http://google.com/hi.png\" alt=\"title\" />\n\t\t</figure>\n\t</li>\n</ul>\n" 11 ] 9 12 }, 10 13 { … … 12 15 "attrs": {}, 13 16 "innerBlocks": [], 14 "innerHTML": "\n" 17 "innerHTML": "\n", 18 "innerContent": [ 19 "\n" 20 ] 15 21 } 16 22 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2-em.parsed.json
r43751 r43884 4 4 "attrs": {}, 5 5 "innerBlocks": [], 6 "innerHTML": "\n<h2>The <em>Inserter</em> Tool</h2>\n" 6 "innerHTML": "\n<h2>The <em>Inserter</em> Tool</h2>\n", 7 "innerContent": [ 8 "\n<h2>The <em>Inserter</em> Tool</h2>\n" 9 ] 7 10 }, 8 11 { … … 10 13 "attrs": {}, 11 14 "innerBlocks": [], 12 "innerHTML": "\n" 15 "innerHTML": "\n", 16 "innerContent": [ 17 "\n" 18 ] 13 19 } 14 20 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2.parsed.json
r43751 r43884 4 4 "attrs": {}, 5 5 "innerBlocks": [], 6 "innerHTML": "\n<h2>A picture is worth a thousand words, or so the saying goes</h2>\n" 6 "innerHTML": "\n<h2>A picture is worth a thousand words, or so the saying goes</h2>\n", 7 "innerContent": [ 8 "\n<h2>A picture is worth a thousand words, or so the saying goes</h2>\n" 9 ] 7 10 }, 8 11 { … … 10 13 "attrs": {}, 11 14 "innerBlocks": [], 12 "innerHTML": "\n" 15 "innerHTML": "\n", 16 "innerContent": [ 17 "\n" 18 ] 13 19 } 14 20 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__html.parsed.json
r43751 r43884 4 4 "attrs": {}, 5 5 "innerBlocks": [], 6 "innerHTML": "\n<h1>Some HTML code</h1>\n<marquee>This text will scroll from right to left</marquee>\n" 6 "innerHTML": "\n<h1>Some HTML code</h1>\n<marquee>This text will scroll from right to left</marquee>\n", 7 "innerContent": [ 8 "\n<h1>Some HTML code</h1>\n<marquee>This text will scroll from right to left</marquee>\n" 9 ] 7 10 }, 8 11 { … … 10 13 "attrs": {}, 11 14 "innerBlocks": [], 12 "innerHTML": "\n" 15 "innerHTML": "\n", 16 "innerContent": [ 17 "\n" 18 ] 13 19 } 14 20 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__image.parsed.json
r43751 r43884 4 4 "attrs": {}, 5 5 "innerBlocks": [], 6 "innerHTML": "\n<figure class=\"wp-block-image\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></figure>\n" 6 "innerHTML": "\n<figure class=\"wp-block-image\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></figure>\n", 7 "innerContent": [ 8 "\n<figure class=\"wp-block-image\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></figure>\n" 9 ] 7 10 }, 8 11 { … … 10 13 "attrs": {}, 11 14 "innerBlocks": [], 12 "innerHTML": "\n" 15 "innerHTML": "\n", 16 "innerContent": [ 17 "\n" 18 ] 13 19 } 14 20 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__attachment-link.parsed.json
r43751 r43884 6 6 }, 7 7 "innerBlocks": [], 8 "innerHTML": "\n<figure class=\"wp-block-image\"><a href=\"http://localhost:8888/?attachment_id=7\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>\n" 8 "innerHTML": "\n<figure class=\"wp-block-image\"><a href=\"http://localhost:8888/?attachment_id=7\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>\n", 9 "innerContent": [ 10 "\n<figure class=\"wp-block-image\"><a href=\"http://localhost:8888/?attachment_id=7\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>\n" 11 ] 9 12 }, 10 13 { … … 12 15 "attrs": {}, 13 16 "innerBlocks": [], 14 "innerHTML": "\n" 17 "innerHTML": "\n", 18 "innerContent": [ 19 "\n" 20 ] 15 21 } 16 22 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__center-caption.parsed.json
r43751 r43884 6 6 }, 7 7 "innerBlocks": [], 8 "innerHTML": "\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img src=\"https://cldup.com/YLYhpou2oq.jpg\" alt=\"\" /><figcaption>Give it a try. Press the "really wide" button on the image toolbar.</figcaption></figure></div>\n" 8 "innerHTML": "\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img src=\"https://cldup.com/YLYhpou2oq.jpg\" alt=\"\" /><figcaption>Give it a try. Press the "really wide" button on the image toolbar.</figcaption></figure></div>\n", 9 "innerContent": [ 10 "\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img src=\"https://cldup.com/YLYhpou2oq.jpg\" alt=\"\" /><figcaption>Give it a try. Press the "really wide" button on the image toolbar.</figcaption></figure></div>\n" 11 ] 9 12 }, 10 13 { … … 12 15 "attrs": {}, 13 16 "innerBlocks": [], 14 "innerHTML": "\n" 17 "innerHTML": "\n", 18 "innerContent": [ 19 "\n" 20 ] 15 21 } 16 22 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__custom-link.parsed.json
r43751 r43884 6 6 }, 7 7 "innerBlocks": [], 8 "innerHTML": "\n<figure class=\"wp-block-image\"><a href=\"https://wordpress.org/\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>\n" 8 "innerHTML": "\n<figure class=\"wp-block-image\"><a href=\"https://wordpress.org/\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>\n", 9 "innerContent": [ 10 "\n<figure class=\"wp-block-image\"><a href=\"https://wordpress.org/\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>\n" 11 ] 9 12 }, 10 13 { … … 12 15 "attrs": {}, 13 16 "innerBlocks": [], 14 "innerHTML": "\n" 17 "innerHTML": "\n", 18 "innerContent": [ 19 "\n" 20 ] 15 21 } 16 22 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__media-link.parsed.json
r43751 r43884 6 6 }, 7 7 "innerBlocks": [], 8 "innerHTML": "\n<figure class=\"wp-block-image\"><a href=\"https://cldup.com/uuUqE_dXzy.jpg\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>\n" 8 "innerHTML": "\n<figure class=\"wp-block-image\"><a href=\"https://cldup.com/uuUqE_dXzy.jpg\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>\n", 9 "innerContent": [ 10 "\n<figure class=\"wp-block-image\"><a href=\"https://cldup.com/uuUqE_dXzy.jpg\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>\n" 11 ] 9 12 }, 10 13 { … … 12 15 "attrs": {}, 13 16 "innerBlocks": [], 14 "innerHTML": "\n" 17 "innerHTML": "\n", 18 "innerContent": [ 19 "\n" 20 ] 15 21 } 16 22 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-Capitals.parsed.json
r43751 r43884 4 4 "attrs": {}, 5 5 "innerBlocks": [], 6 "innerHTML": "<!-- wp:core/invalid-Capitals /-->\n" 6 "innerHTML": "<!-- wp:core/invalid-Capitals /-->\n", 7 "innerContent": [ 8 "<!-- wp:core/invalid-Capitals /-->\n" 9 ] 7 10 } 8 11 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-Capitals.server.html
r43752 r43884 1 1 <!-- wp:core/invalid-Capitals /--> -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-special.parsed.json
r43751 r43884 4 4 "attrs": {}, 5 5 "innerBlocks": [], 6 "innerHTML": "<!-- wp:core/invalid-$special /-->\n" 6 "innerHTML": "<!-- wp:core/invalid-$special /-->\n", 7 "innerContent": [ 8 "<!-- wp:core/invalid-$special /-->\n" 9 ] 7 10 } 8 11 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-special.server.html
r43752 r43884 1 1 <!-- wp:core/invalid-$special /--> -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-comments.parsed.json
r43751 r43884 8 8 }, 9 9 "innerBlocks": [], 10 "innerHTML": "" 10 "innerHTML": "", 11 "innerContent": [] 11 12 }, 12 13 { … … 14 15 "attrs": {}, 15 16 "innerBlocks": [], 16 "innerHTML": "\n" 17 "innerHTML": "\n", 18 "innerContent": [ 19 "\n" 20 ] 17 21 } 18 22 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts.parsed.json
r43751 r43884 7 7 }, 8 8 "innerBlocks": [], 9 "innerHTML": "" 9 "innerHTML": "", 10 "innerContent": [] 10 11 }, 11 12 { … … 13 14 "attrs": {}, 14 15 "innerBlocks": [], 15 "innerHTML": "\n" 16 "innerHTML": "\n", 17 "innerContent": [ 18 "\n" 19 ] 16 20 } 17 21 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts__displayPostDate.parsed.json
r43751 r43884 7 7 }, 8 8 "innerBlocks": [], 9 "innerHTML": "" 9 "innerHTML": "", 10 "innerContent": [] 10 11 }, 11 12 { … … 13 14 "attrs": {}, 14 15 "innerBlocks": [], 15 "innerHTML": "\n" 16 "innerHTML": "\n", 17 "innerContent": [ 18 "\n" 19 ] 16 20 } 17 21 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__list__ul.parsed.json
r43751 r43884 4 4 "attrs": {}, 5 5 "innerBlocks": [], 6 "innerHTML": "\n<ul><li>Text & Headings</li><li>Images & Videos</li><li>Galleries</li><li>Embeds, like YouTube, Tweets, or other WordPress posts.</li><li>Layout blocks, like Buttons, Hero Images, Separators, etc.</li><li>And <em>Lists</em> like this one of course :)</li></ul>\n" 6 "innerHTML": "\n<ul><li>Text & Headings</li><li>Images & Videos</li><li>Galleries</li><li>Embeds, like YouTube, Tweets, or other WordPress posts.</li><li>Layout blocks, like Buttons, Hero Images, Separators, etc.</li><li>And <em>Lists</em> like this one of course :)</li></ul>\n", 7 "innerContent": [ 8 "\n<ul><li>Text & Headings</li><li>Images & Videos</li><li>Galleries</li><li>Embeds, like YouTube, Tweets, or other WordPress posts.</li><li>Layout blocks, like Buttons, Hero Images, Separators, etc.</li><li>And <em>Lists</em> like this one of course :)</li></ul>\n" 9 ] 7 10 }, 8 11 { … … 10 13 "attrs": {}, 11 14 "innerBlocks": [], 12 "innerHTML": "\n" 15 "innerHTML": "\n", 16 "innerContent": [ 17 "\n" 18 ] 13 19 } 14 20 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__missing.json
r43751 r43884 5 5 "isValid": true, 6 6 "attributes": { 7 "originalContent": "<!-- wp:unregistered/example {\"attr1\":\"One\",\"attr2\":\"Two\"} -->\n<p>Testing missing block with some</p>\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>\n<!-- /wp:unregistered/example -->",8 "originalName": "unregistered/example",9 "originalUndelimitedContent": "<p>Testing missing block with some</p>\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>"7 "originalName": "unregistered/example", 8 "originalUndelimitedContent": "<p>Testing missing block with some</p>\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>", 9 "originalContent": "<!-- wp:unregistered/example {\"attr1\":\"One\",\"attr2\":\"Two\"} -->\n<p>Testing missing block with some</p>\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>\n<!-- /wp:unregistered/example -->" 10 10 }, 11 11 "innerBlocks": [], -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__missing.parsed.json
r43751 r43884 3 3 "blockName": "unregistered/example", 4 4 "attrs": { 5 6 7 5 "attr1": "One", 6 "attr2": "Two" 7 }, 8 8 "innerBlocks": [], 9 "innerHTML": "\n<p>Testing missing block with some</p>\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>\n" 9 "innerHTML": "\n<p>Testing missing block with some</p>\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>\n", 10 "innerContent": [ "\n<p>Testing missing block with some</p>\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>\n" ] 10 11 }, 11 12 { 12 "blockName": null, 13 "attrs": {}, 14 "innerBlocks": [], 15 "innerHTML": "\n" 13 "blockName": null, 14 "attrs": {}, 15 "innerBlocks": [], 16 "innerHTML": "\n", 17 "innerContent": [ "\n" ] 16 18 } 17 19 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__more.parsed.json
r43751 r43884 4 4 "attrs": {}, 5 5 "innerBlocks": [], 6 "innerHTML": "\n<!--more-->\n" 6 "innerHTML": "\n<!--more-->\n", 7 "innerContent": [ "\n<!--more-->\n" ] 7 8 }, 8 9 { … … 10 11 "attrs": {}, 11 12 "innerBlocks": [], 12 "innerHTML": "\n" 13 "innerHTML": "\n", 14 "innerContent": [ "\n" ] 13 15 } 14 16 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__more__custom-text-teaser.parsed.json
r43751 r43884 7 7 }, 8 8 "innerBlocks": [], 9 "innerHTML": "\n<!--more Continue Reading-->\n<!--noteaser-->\n" 9 "innerHTML": "\n<!--more Continue Reading-->\n<!--noteaser-->\n", 10 "innerContent": [ "\n<!--more Continue Reading-->\n<!--noteaser-->\n" ] 10 11 }, 11 12 { … … 13 14 "attrs": {}, 14 15 "innerBlocks": [], 15 "innerHTML": "\n" 16 "innerHTML": "\n", 17 "innerContent": [ "\n" ] 16 18 } 17 19 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__nextpage.parsed.json
r43751 r43884 4 4 "attrs": {}, 5 5 "innerBlocks": [], 6 "innerHTML": "\n<!--nextpage-->\n" 6 "innerHTML": "\n<!--nextpage-->\n", 7 "innerContent": [ "\n<!--nextpage-->\n" ] 7 8 }, 8 9 { … … 10 11 "attrs": {}, 11 12 "innerBlocks": [], 12 "innerHTML": "\n" 13 "innerHTML": "\n", 14 "innerContent": [ "\n" ] 13 15 } 14 16 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__align-right.parsed.json
r43751 r43884 6 6 }, 7 7 "innerBlocks": [], 8 "innerHTML": "\n<p style=\"text-align:right;\">... like this one, which is separate from the above and right aligned.</p>\n" 8 "innerHTML": "\n<p style=\"text-align:right;\">... like this one, which is separate from the above and right aligned.</p>\n", 9 "innerContent": [ "\n<p style=\"text-align:right;\">... like this one, which is separate from the above and right aligned.</p>\n" ] 9 10 }, 10 11 { … … 12 13 "attrs": {}, 13 14 "innerBlocks": [], 14 "innerHTML": "\n" 15 "innerHTML": "\n", 16 "innerContent": [ "\n" ] 15 17 } 16 18 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__deprecated.parsed.json
r43751 r43884 4 4 "attrs": {}, 5 5 "innerBlocks": [], 6 "innerHTML": "\nUnwrapped is <em>still</em> valid.\n" 6 "innerHTML": "\nUnwrapped is <em>still</em> valid.\n", 7 "innerContent": [ "\nUnwrapped is <em>still</em> valid.\n" ] 7 8 }, 8 9 { … … 10 11 "attrs": {}, 11 12 "innerBlocks": [], 12 "innerHTML": "\n" 13 "innerHTML": "\n", 14 "innerContent": [ "\n" ] 13 15 } 14 16 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__preformatted.parsed.json
r43751 r43884 4 4 "attrs": {}, 5 5 "innerBlocks": [], 6 "innerHTML": "\n<pre class=\"wp-block-preformatted\">Some <em>preformatted</em> text...<br>And more!</pre>\n" 6 "innerHTML": "\n<pre class=\"wp-block-preformatted\">Some <em>preformatted</em> text...<br>And more!</pre>\n", 7 "innerContent": [ "\n<pre class=\"wp-block-preformatted\">Some <em>preformatted</em> text...<br>And more!</pre>\n" ] 7 8 }, 8 9 { … … 10 11 "attrs": {}, 11 12 "innerBlocks": [], 12 "innerHTML": "\n" 13 "innerHTML": "\n", 14 "innerContent": [ "\n" ] 13 15 } 14 16 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote.parsed.json
r43751 r43884 4 4 "attrs": {}, 5 5 "innerBlocks": [], 6 "innerHTML": "\n<figure class=\"wp-block-pullquote\">\n <blockquote>\n <p>Testing pullquote block...</p><cite>...with a caption</cite>\n </blockquote>\n</figure>\n" 6 "innerHTML": "\n<figure class=\"wp-block-pullquote\">\n <blockquote>\n <p>Testing pullquote block...</p><cite>...with a caption</cite>\n </blockquote>\n</figure>\n", 7 "innerContent": [ "\n<figure class=\"wp-block-pullquote\">\n <blockquote>\n <p>Testing pullquote block...</p><cite>...with a caption</cite>\n </blockquote>\n</figure>\n" ] 7 8 }, 8 9 { … … 10 11 "attrs": {}, 11 12 "innerBlocks": [], 12 "innerHTML": "\n" 13 "innerHTML": "\n", 14 "innerContent": [ "\n" ] 13 15 } 14 16 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote__multi-paragraph.parsed.json
r43751 r43884 4 4 "attrs": {}, 5 5 "innerBlocks": [], 6 "innerHTML": "\n<figure class=\"wp-block-pullquote\">\n <blockquote>\n <p>Paragraph <strong>one</strong></p>\n <p>Paragraph two</p>\n <cite>by whomever</cite>\n\t</blockquote>\n</figure>\n" 6 "innerHTML": "\n<figure class=\"wp-block-pullquote\">\n <blockquote>\n <p>Paragraph <strong>one</strong></p>\n <p>Paragraph two</p>\n <cite>by whomever</cite>\n\t</blockquote>\n</figure>\n", 7 "innerContent": [ "\n<figure class=\"wp-block-pullquote\">\n <blockquote>\n <p>Paragraph <strong>one</strong></p>\n <p>Paragraph two</p>\n <cite>by whomever</cite>\n\t</blockquote>\n</figure>\n" ] 7 8 }, 8 9 { … … 10 11 "attrs": {}, 11 12 "innerBlocks": [], 12 "innerHTML": "\n" 13 "innerHTML": "\n", 14 "innerContent": [ "\n" ] 13 15 } 14 16 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-1.parsed.json
r43751 r43884 4 4 "attrs": {}, 5 5 "innerBlocks": [], 6 "innerHTML": "\n<blockquote class=\"wp-block-quote\"><p>The editor will endeavour to create a new page and post building experience that makes writing rich posts effortless, and has “blocks” to make it easy what today might take shortcodes, custom HTML, or “mystery meat” embed discovery.</p><cite>Matt Mullenweg, 2017</cite></blockquote>\n" 6 "innerHTML": "\n<blockquote class=\"wp-block-quote\"><p>The editor will endeavour to create a new page and post building experience that makes writing rich posts effortless, and has “blocks” to make it easy what today might take shortcodes, custom HTML, or “mystery meat” embed discovery.</p><cite>Matt Mullenweg, 2017</cite></blockquote>\n", 7 "innerContent": [ "\n<blockquote class=\"wp-block-quote\"><p>The editor will endeavour to create a new page and post building experience that makes writing rich posts effortless, and has “blocks” to make it easy what today might take shortcodes, custom HTML, or “mystery meat” embed discovery.</p><cite>Matt Mullenweg, 2017</cite></blockquote>\n" ] 7 8 }, 8 9 { … … 10 11 "attrs": {}, 11 12 "innerBlocks": [], 12 "innerHTML": "\n" 13 "innerHTML": "\n", 14 "innerContent": [ "\n" ] 13 15 } 14 16 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-2.parsed.json
r43751 r43884 6 6 }, 7 7 "innerBlocks": [], 8 "innerHTML": "\n<blockquote class=\"wp-block-quote is-style-large\"><p>There is no greater agony than bearing an untold story inside you.</p><cite>Maya Angelou</cite></blockquote>\n" 8 "innerHTML": "\n<blockquote class=\"wp-block-quote is-style-large\"><p>There is no greater agony than bearing an untold story inside you.</p><cite>Maya Angelou</cite></blockquote>\n", 9 "innerContent": [ "\n<blockquote class=\"wp-block-quote is-style-large\"><p>There is no greater agony than bearing an untold story inside you.</p><cite>Maya Angelou</cite></blockquote>\n" ] 9 10 }, 10 11 { … … 12 13 "attrs": {}, 13 14 "innerBlocks": [], 14 "innerHTML": "\n" 15 "innerHTML": "\n", 16 "innerContent": [ "\n" ] 15 17 } 16 18 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__separator.parsed.json
r43751 r43884 4 4 "attrs": {}, 5 5 "innerBlocks": [], 6 "innerHTML": "\n<hr class=\"wp-block-separator\" />\n" 6 "innerHTML": "\n<hr class=\"wp-block-separator\" />\n", 7 "innerContent": [ "\n<hr class=\"wp-block-separator\" />\n" ] 7 8 }, 8 9 { … … 10 11 "attrs": {}, 11 12 "innerBlocks": [], 12 "innerHTML": "\n" 13 "innerHTML": "\n", 14 "innerContent": [ "\n" ] 13 15 } 14 16 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__shortcode.parsed.json
r43751 r43884 4 4 "attrs": {}, 5 5 "innerBlocks": [], 6 "innerHTML": "\n[gallery ids=\"238,338\"]\n" 6 "innerHTML": "\n[gallery ids=\"238,338\"]\n", 7 "innerContent": [ "\n[gallery ids=\"238,338\"]\n" ] 7 8 }, 8 9 { … … 10 11 "attrs": {}, 11 12 "innerBlocks": [], 12 "innerHTML": "\n" 13 "innerHTML": "\n", 14 "innerContent": [ "\n" ] 13 15 } 14 16 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__spacer.parsed.json
r43751 r43884 4 4 "attrs": {}, 5 5 "innerBlocks": [], 6 "innerHTML": "\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div>\n" 6 "innerHTML": "\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div>\n", 7 "innerContent": [ "\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div>\n" ] 7 8 }, 8 9 { … … 10 11 "attrs": {}, 11 12 "innerBlocks": [], 12 "innerHTML": "\n" 13 "innerHTML": "\n", 14 "innerContent": [ "\n" ] 13 15 } 14 16 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__subhead.parsed.json
r43751 r43884 4 4 "attrs": {}, 5 5 "innerBlocks": [], 6 "innerHTML": "\n<p class=\"wp-block-subhead\">This is a <em>subhead</em>.</p>\n" 6 "innerHTML": "\n<p class=\"wp-block-subhead\">This is a <em>subhead</em>.</p>\n", 7 "innerContent": [ "\n<p class=\"wp-block-subhead\">This is a <em>subhead</em>.</p>\n" ] 7 8 }, 8 9 { … … 10 11 "attrs": {}, 11 12 "innerBlocks": [], 12 "innerHTML": "\n" 13 "innerHTML": "\n", 14 "innerContent": [ "\n" ] 13 15 } 14 16 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__table.parsed.json
r43751 r43884 4 4 "attrs": {}, 5 5 "innerBlocks": [], 6 "innerHTML": "\n<table class=\"wp-block-table\"><thead><tr><th>Version</th><th>Musician</th><th>Date</th></tr></thead><tbody><tr><td><a href=\"https://wordpress.org/news/2003/05/wordpress-now-available/\">.70</a></td><td>No musician chosen.</td><td>May 27, 2003</td></tr><tr><td><a href=\"https://wordpress.org/news/2004/01/wordpress-10/\">1.0</a></td><td>Miles Davis</td><td>January 3, 2004</td></tr><tr><td>Lots of versions skipped, see <a href=\"https://codex.wordpress.org/WordPress_Versions\">the full list</a></td><td>…</td><td>…</td></tr><tr><td><a href=\"https://wordpress.org/news/2015/12/clifford/\">4.4</a></td><td>Clifford Brown</td><td>December 8, 2015</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/04/coleman/\">4.5</a></td><td>Coleman Hawkins</td><td>April 12, 2016</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/08/pepper/\">4.6</a></td><td>Pepper Adams</td><td>August 16, 2016</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/12/vaughan/\">4.7</a></td><td>Sarah Vaughan</td><td>December 6, 2016</td></tr></tbody></table>\n" 6 "innerHTML": "\n<table class=\"wp-block-table\"><thead><tr><th>Version</th><th>Musician</th><th>Date</th></tr></thead><tbody><tr><td><a href=\"https://wordpress.org/news/2003/05/wordpress-now-available/\">.70</a></td><td>No musician chosen.</td><td>May 27, 2003</td></tr><tr><td><a href=\"https://wordpress.org/news/2004/01/wordpress-10/\">1.0</a></td><td>Miles Davis</td><td>January 3, 2004</td></tr><tr><td>Lots of versions skipped, see <a href=\"https://codex.wordpress.org/WordPress_Versions\">the full list</a></td><td>…</td><td>…</td></tr><tr><td><a href=\"https://wordpress.org/news/2015/12/clifford/\">4.4</a></td><td>Clifford Brown</td><td>December 8, 2015</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/04/coleman/\">4.5</a></td><td>Coleman Hawkins</td><td>April 12, 2016</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/08/pepper/\">4.6</a></td><td>Pepper Adams</td><td>August 16, 2016</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/12/vaughan/\">4.7</a></td><td>Sarah Vaughan</td><td>December 6, 2016</td></tr></tbody></table>\n", 7 "innerContent": [ "\n<table class=\"wp-block-table\"><thead><tr><th>Version</th><th>Musician</th><th>Date</th></tr></thead><tbody><tr><td><a href=\"https://wordpress.org/news/2003/05/wordpress-now-available/\">.70</a></td><td>No musician chosen.</td><td>May 27, 2003</td></tr><tr><td><a href=\"https://wordpress.org/news/2004/01/wordpress-10/\">1.0</a></td><td>Miles Davis</td><td>January 3, 2004</td></tr><tr><td>Lots of versions skipped, see <a href=\"https://codex.wordpress.org/WordPress_Versions\">the full list</a></td><td>…</td><td>…</td></tr><tr><td><a href=\"https://wordpress.org/news/2015/12/clifford/\">4.4</a></td><td>Clifford Brown</td><td>December 8, 2015</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/04/coleman/\">4.5</a></td><td>Coleman Hawkins</td><td>April 12, 2016</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/08/pepper/\">4.6</a></td><td>Pepper Adams</td><td>August 16, 2016</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/12/vaughan/\">4.7</a></td><td>Sarah Vaughan</td><td>December 6, 2016</td></tr></tbody></table>\n" ] 7 8 }, 8 9 { … … 10 11 "attrs": {}, 11 12 "innerBlocks": [], 12 "innerHTML": "\n" 13 "innerHTML": "\n", 14 "innerContent": [ "\n" ] 13 15 } 14 16 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__text-columns.parsed.json
r43751 r43884 6 6 }, 7 7 "innerBlocks": [], 8 "innerHTML": "\n<div class=\"wp-block-text-columns aligncenter columns-2\">\n <div class=\"wp-block-column\">\n <p>One</p>\n </div>\n <div class=\"wp-block-column\">\n <p>Two</p>\n </div>\n</div>\n" 8 "innerHTML": "\n<div class=\"wp-block-text-columns aligncenter columns-2\">\n <div class=\"wp-block-column\">\n <p>One</p>\n </div>\n <div class=\"wp-block-column\">\n <p>Two</p>\n </div>\n</div>\n", 9 "innerContent": [ "\n<div class=\"wp-block-text-columns aligncenter columns-2\">\n <div class=\"wp-block-column\">\n <p>One</p>\n </div>\n <div class=\"wp-block-column\">\n <p>Two</p>\n </div>\n</div>\n" ] 9 10 }, 10 11 { … … 12 13 "attrs": {}, 13 14 "innerBlocks": [], 14 "innerHTML": "\n" 15 "innerHTML": "\n", 16 "innerContent": [ "\n" ] 15 17 } 16 18 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__text__converts-to-paragraph.parsed.json
r43751 r43884 4 4 "attrs": {}, 5 5 "innerBlocks": [], 6 "innerHTML": "\n<p>This is an old-style text block. Changed to <code>paragraph</code> in #2135.</p>\n" 6 "innerHTML": "\n<p>This is an old-style text block. Changed to <code>paragraph</code> in #2135.</p>\n", 7 "innerContent": [ "\n<p>This is an old-style text block. Changed to <code>paragraph</code> in #2135.</p>\n" ] 7 8 }, 8 9 { … … 10 11 "attrs": {}, 11 12 "innerBlocks": [], 12 "innerHTML": "\n" 13 "innerHTML": "\n", 14 "innerContent": [ "\n" ] 13 15 } 14 16 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__verse.parsed.json
r43751 r43884 4 4 "attrs": {}, 5 5 "innerBlocks": [], 6 "innerHTML": "\n<pre class=\"wp-block-verse\">A <em>verse</em>…<br>And more!</pre>\n" 6 "innerHTML": "\n<pre class=\"wp-block-verse\">A <em>verse</em>…<br>And more!</pre>\n", 7 "innerContent": [ "\n<pre class=\"wp-block-verse\">A <em>verse</em>…<br>And more!</pre>\n" ] 7 8 }, 8 9 { … … 10 11 "attrs": {}, 11 12 "innerBlocks": [], 12 "innerHTML": "\n" 13 "innerHTML": "\n", 14 "innerContent": [ "\n" ] 13 15 } 14 16 ] -
branches/5.0/tests/phpunit/data/blocks/fixtures/core__video.parsed.json
r43751 r43884 4 4 "attrs": {}, 5 5 "innerBlocks": [], 6 "innerHTML": "\n<figure class=\"wp-block-video\"><video controls src=\"https://awesome-fake.video/file.mp4\"></video></figure>\n" 6 "innerHTML": "\n<figure class=\"wp-block-video\"><video controls src=\"https://awesome-fake.video/file.mp4\"></video></figure>\n", 7 "innerContent": [ "\n<figure class=\"wp-block-video\"><video controls src=\"https://awesome-fake.video/file.mp4\"></video></figure>\n" ] 7 8 }, 8 9 { … … 10 11 "attrs": {}, 11 12 "innerBlocks": [], 12 "innerHTML": "\n" 13 "innerHTML": "\n", 14 "innerContent": [ "\n" ] 13 15 } 14 16 ] -
branches/5.0/tests/phpunit/tests/blocks/render.php
r43881 r43884 47 47 $registry->unregister( 'core/test' ); 48 48 } 49 if ( $registry->is_registered( 'core/dynamic' ) ) { 50 $registry->unregister( 'core/dynamic' ); 51 } 49 52 } 50 53 … … 76 79 $block_filtered_content = preg_replace( "/\n{2,}/", "\n", $block_filtered_content ); 77 80 81 remove_shortcode( 'someshortcode' ); 82 78 83 $this->assertEquals( trim( $classic_filtered_content ), trim( $block_filtered_content ) ); 79 84 } … … 81 86 function handle_shortcode( $atts, $content ) { 82 87 return $content; 88 } 89 90 public function test_can_nest_at_least_so_deep() { 91 $minimum_depth = 99; 92 93 $content = 'deep inside'; 94 for ( $i = 0; $i < $minimum_depth; $i++ ) { 95 $content = '<!-- wp:core/test -->' . $content . '<!-- /wp:core/test -->'; 96 } 97 98 $this->assertEquals( 'deep inside', do_blocks( $content ) ); 99 } 100 101 public function test_can_nest_at_least_so_deep_with_dynamic_blocks() { 102 $minimum_depth = 99; 103 104 $content = '0'; 105 for ( $i = 0; $i < $minimum_depth; $i++ ) { 106 $content = '<!-- wp:core/test -->' . $content . '<!-- /wp:core/test -->'; 107 } 108 109 register_block_type( 110 'core/test', 111 array( 112 'render_callback' => array( 113 $this, 114 'render_dynamic_incrementer', 115 ), 116 ) 117 ); 118 119 $this->assertEquals( $minimum_depth, (int) do_blocks( $content ) ); 120 } 121 122 public function render_dynamic_incrementer( $attrs, $content ) { 123 return (string) ( 1 + (int) $content ); 83 124 } 84 125 … … 243 284 } 244 285 286 public function test_dynamic_block_gets_inner_html() { 287 register_block_type( 288 'core/dynamic', 289 array( 290 'render_callback' => array( 291 $this, 292 'render_serialize_dynamic_block', 293 ), 294 ) 295 ); 296 297 $output = do_blocks( '<!-- wp:dynamic -->inner<!-- /wp:dynamic -->' ); 298 299 $data = unserialize( base64_decode( $output ) ); 300 301 $this->assertEquals( 'inner', $data[1] ); 302 } 303 304 public function test_dynamic_block_gets_rendered_inner_blocks() { 305 register_block_type( 306 'core/test', 307 array( 308 'render_callback' => array( 309 $this, 310 'render_test_block_numeric', 311 ), 312 ) 313 ); 314 315 register_block_type( 316 'core/dynamic', 317 array( 318 'render_callback' => array( 319 $this, 320 'render_serialize_dynamic_block', 321 ), 322 ) 323 ); 324 325 $output = do_blocks( '<!-- wp:dynamic -->before<!-- wp:test /-->after<!-- /wp:dynamic -->' ); 326 327 $data = unserialize( base64_decode( $output ) ); 328 329 $this->assertEquals( 'before10after', $data[1] ); 330 } 331 332 public function test_dynamic_block_gets_rendered_inner_dynamic_blocks() { 333 register_block_type( 334 'core/dynamic', 335 array( 336 'render_callback' => array( 337 $this, 338 'render_serialize_dynamic_block', 339 ), 340 ) 341 ); 342 343 $output = do_blocks( '<!-- wp:dynamic -->before<!-- wp:dynamic -->deep inner<!-- /wp:dynamic -->after<!-- /wp:dynamic -->' ); 344 345 $data = unserialize( base64_decode( $output ) ); 346 347 $inner = $this->render_serialize_dynamic_block( array(), 'deep inner' ); 348 349 $this->assertEquals( $data[1], 'before' . $inner . 'after' ); 350 } 351 245 352 /** 246 353 * Helper function to remove relative paths and extension from a filename, leaving just the fixture name. … … 306 413 public function render_test_block_numeric() { 307 414 return 10; 415 } 416 417 /** 418 * Test block rendering function, returning base64 encoded serialised value. 419 * 420 * @since 5.0.0 421 * 422 * @return string Block output. 423 */ 424 public function render_serialize_dynamic_block( $attributes, $content ) { 425 return base64_encode( serialize( array( $attributes, $content ) ) ); 308 426 } 309 427 -
branches/5.0/tools/webpack/packages.js
r43840 r43884 58 58 'api-fetch', 59 59 'a11y', 60 'annotations', 60 61 'autop', 61 62 'blob', … … 96 97 const vendors = { 97 98 'lodash.js': 'lodash/lodash.js', 98 'wp-polyfill -ecmascript.js': '@babel/polyfill/dist/polyfill.js',99 'wp-polyfill.js': '@babel/polyfill/dist/polyfill.js', 99 100 'wp-polyfill-fetch.js': 'whatwg-fetch/dist/fetch.umd.js', 100 101 'wp-polyfill-element-closest.js': 'element-closest/element-closest.js', … … 108 109 const minifiedVendors = { 109 110 'lodash.min.js': 'lodash/lodash.min.js', 110 'wp-polyfill -ecmascript.min.js': '@babel/polyfill/dist/polyfill.min.js',111 'wp-polyfill.min.js': '@babel/polyfill/dist/polyfill.min.js', 111 112 'wp-polyfill-formdata.min.js': 'formdata-polyfill/formdata.min.js', 112 113 'moment.min.js': 'moment/min/moment.min.js', … … 122 123 123 124 const phpFiles = { 124 // Parser shouldn't be copied until nested block issues are resolved. 125 // 'block-serialization-default-parser/parser.php': 'wp-includes/class-wp-block-parser.php', 125 'block-serialization-default-parser/parser.php': 'wp-includes/class-wp-block-parser.php', 126 126 'block-library/src/archives/index.php': 'wp-includes/blocks/archives.php', 127 127 'block-library/src/block/index.php': 'wp-includes/blocks/block.php',
Note: See TracChangeset
for help on using the changeset viewer.