Make WordPress Core


Ignore:
Timestamp:
07/11/2020 08:32:19 PM (5 years ago)
Author:
TimothyBlynJacobs
Message:

REST API: Sanitize block renderer attributes.

In [48069] the Block Renderer was changed to register a single route for all dynamic blocks. Validation was dynamically applied based on the requested block, but sanitization was not. This commit adds the same sanitization back to the block attributes.

Props manooweb.
Fixes #50620. See #48079.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package-lock.json

    r48434 r48437  
    59405940                "kind-of": {
    59415941                    "version": "6.0.2",
    5942                     "resolved": "",
     5942                    "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz",
     5943                    "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==",
    59435944                    "dev": true
    59445945                }
     
    1056710568                "kind-of": {
    1056810569                    "version": "6.0.2",
    10569                     "resolved": "",
     10570                    "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz",
     10571                    "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==",
    1057010572                    "dev": true
    1057110573                }
     
    2358523587                "kind-of": {
    2358623588                    "version": "6.0.2",
    23587                     "resolved": "",
     23589                    "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz",
     23590                    "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==",
    2358823591                    "dev": true
    2358923592                }
Note: See TracChangeset for help on using the changeset viewer.