REST API: Only validate the format keyword if the type is a string.
This allows for using multi-type support with a string that has a format. For backwards compatibility support, the format validation will still apply if the type is not specified, or it is invalid. Two new doing it wrong notices are issued when omitting a type, or using an invalid type. Props ryotsun. Fixes #50189. Built from https://develop.svn.wordpress.org/trunk@48300 git-svn-id: https://core.svn.wordpress.org/trunk@48069 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Loading
Please register or sign in to comment