WordPress.org

Make WordPress Core

Changeset 39014


Ignore:
Timestamp:
10/30/2016 06:33:34 AM (4 years ago)
Author:
DrewAPicture
Message:

Docs: Add much more complete and syntactically correct documentation throughout the WP_REST_Comment_Meta_Fields class.

Props Soean, mrahmadawais, flixos90.
See #38398.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/fields/class-wp-rest-comment-meta-fields.php

    r38832 r39014  
    11<?php
     2/**
     3 * REST API: WP_REST_Comment_Meta_Fields class
     4 *
     5 * @package WordPress
     6 * @subpackage REST_API
     7 * @since 4.7.0
     8 */
    29
     10/**
     11 * Core class to manage comment meta via the REST API.
     12 *
     13 * @since 4.7.0
     14 *
     15 * @see WP_REST_Meta_Fields
     16 */
    317class WP_REST_Comment_Meta_Fields extends WP_REST_Meta_Fields {
     18
    419    /**
    5      * Get the object type for meta.
     20     * Retrieves the object type for comment meta.
    621     *
    7      * @return string
     22     * @since 4.7.0
     23     * @access protected
     24     *
     25     * @return string The meta type.
    826     */
    927    protected function get_meta_type() {
     
    1230
    1331    /**
    14      * Get the type for `register_rest_field`.
     32     * Retrieves the type for register_rest_field() in the context of comments.
    1533     *
    16      * @return string
     34     * @since 4.7.0
     35     * @access public
     36     *
     37     * @return string The REST field type.
    1738     */
    1839    public function get_rest_field_type() {
Note: See TracChangeset for help on using the changeset viewer.