Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #56368, comment 1


Ignore:
Timestamp:
09/03/2022 04:30:06 PM (3 years ago)
Author:
anna.bansaghi
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #56368, comment 1

    v1 v2  
    11Hi @picocodes, thank you for your report!
    22
    3 This modified schema will accept both string values like `'id'`, and array values like `['id', 'title']`:
     3I have tested your schema with this validator [https://jsonschemalint.com/#!/version/draft-04/markup/json], and not accepting array values is the correct behavior.
     4
     5What do you think, can you use the schema below instead? It will accept both string values like `'id'`, and array values like `['id', 'title']`:
    46{{{#!php
    57<?php
     
    3335);
    3436}}}
     37