Make WordPress Core

Ticket #47866: docs-change.diff

File docs-change.diff, 1.1 KB (added by kadamwhite, 6 years ago)

Proposed documentation adjustment for show_in_rest field

  • src/wp-includes/meta.php

    diff --git src/wp-includes/meta.php src/wp-includes/meta.php
    index 9bd989540c..67d274b4a8 100644
    function sanitize_meta( $meta_key, $meta_value, $object_type, $object_subtype = 
    11291129 *     @type bool   $single            Whether the meta key has one value per object, or an array of values per object.
    11301130 *     @type string $sanitize_callback A function or method to call when sanitizing `$meta_key` data.
    11311131 *     @type string $auth_callback     Optional. A function or method to call when performing edit_post_meta, add_post_meta, and delete_post_meta capability checks.
    1132  *     @type bool   $show_in_rest      Whether data associated with this meta key can be considered public.
     1132 *     @type bool   $show_in_rest      Whether data associated with this meta key can be considered public and
     1133 *                                     should be accessible via the REST API. A custom post type must also declare
     1134 *                                     support for custom fields for registered meta to be accessible via REST.
    11331135 * }
    11341136 * @param string|array $deprecated Deprecated. Use `$args` instead.
    11351137 *