Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #53417


Ignore:
Timestamp:
06/15/2021 11:23:41 PM (3 years ago)
Author:
johnbillion
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #53417 – Description

    initial v1  
    881. Remove the `content.protected` property from the schema
    992. Add the `content.protected` property to the response
     10
     11Here is the `content` property from the schema. Note the `context` property states that the `protected` property exists for all three contexts.
     12
     13{{{
     14"content": {
     15    "description": "The content for the post.",
     16    "type": "object",
     17    "context": [
     18        "view",
     19        "edit"
     20    ],
     21    "properties": {
     22        "raw": {
     23            "description": "Content for the post, as it exists in the database.",
     24            "type": "string",
     25            "context": [
     26                "edit"
     27            ]
     28        },
     29        "rendered": {
     30            "description": "HTML content for the post, transformed for display.",
     31            "type": "string",
     32            "context": [
     33                "view",
     34                "edit"
     35            ],
     36            "readonly": true
     37        },
     38        "block_version": {
     39            "description": "Version of the content block format used by the post.",
     40            "type": "integer",
     41            "context": [
     42                "edit"
     43            ],
     44            "readonly": true
     45        },
     46        "protected": {
     47            "description": "Whether the content is protected with a password.",
     48            "type": "boolean",
     49            "context": [
     50                "view",
     51                "edit",
     52                "embed"
     53            ],
     54            "readonly": true
     55        }
     56    }
     57},
     58}}}