Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #35658, comment 121


Ignore:
Timestamp:
07/14/2016 11:31:36 PM (8 years ago)
Author:
jeremyfelt
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35658, comment 121

    initial v1  
    1717While the CURIE string flows well, several actions will end up changing to `actionname_post:post_etc` by default without stricter stripping of the second piece. I *think* this is okay, but more thought is needed.
    1818
    19 Also, to retrieve individual registered meta for a custom post type, a developer would need to use `get_metadata( 'post:books', .... )` instead of `get_post_meta()` *unless* we add another parameter for subtype to `get_post_meta()`.
     19To retrieve individual registered meta for a custom post type **and** have it pass through registered sanitize/auth callbacks, a developer would need to use `get_metadata( 'post:books', .... )` instead of `get_post_meta()` *unless* we add another parameter for subtype to `get_post_meta()`.
    2020
    2121Revisit the error messages and return values. I may agree with @rmccue in #37345 that `doing_it_wrong()` is better here, though I do like having `WP_Error` to test against. (Can we test a doing it wrong?)