Ryan McCue

Results 402 comments of Ryan McCue

We're going to spin this up as a feature plugin; we have an [early beta](https://gist.github.com/rmccue/184a2329a922f6b4350d) to be turned into a proper plugin.

Core ticket to allow the sanitise callback to return an error: https://core.trac.wordpress.org/ticket/37560

> By allowing sanitize to also validate, not only does it mean the logic can be combined, but also the initial validate can do an initial gut sense of the...

> I am +1 on just having a `validate_callback`, but can understand people wanting two callbacks for semantic reasons. We'd actually be unifying on `sanitize_callback` instead, as `validate_callback` can be...

This was added to the update callback in #2702.

As noted, you can add fields to the endpoints, but if every theme is going to do it, we might as well add it. What about adding another context here...

> It's a fairly important feature if you want your theme to support any permalink structure. I'd just like to mention on this note that we might be able to...

We're going to punt deciding this one for now. Themes can register extra data they need for posts for now, and we can look at codifying this later.