Make WordPress Core


Ignore:
Timestamp:
07/23/2020 09:09:04 PM (5 years ago)
Author:
johnbillion
Message:

Docs: Another pass at some inline docs fixes mostly made by PHPCBF.

See #49572, #50744

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/theme.php

    r48576 r48590  
    30243024 * @param string $feature The name uniquely identifying the feature. See add_theme_support()
    30253025 *                        for the list of possible values.
    3026  * @param array $args {
    3027  *      Data used to describe the theme.
    3028  *
    3029  *      @type string     $type         The type of data associated with this feature.
    3030  *                                     Valid values are 'string', 'boolean', 'integer',
    3031  *                                     'number', 'array', and 'object'. Defaults to 'boolean'.
    3032  *      @type boolean    $variadic     Does this feature utilize the variadic support
    3033  *                                     of add_theme_support(), or are all arguments specified
    3034  *                                     as the second parameter. Must be used with the "array" type.
    3035  *      @type string     $description  A short description of the feature. Included in
    3036  *                                     the Themes REST API schema. Intended for developers.
    3037  *      @type bool|array $show_in_rest {
    3038  *          Whether this feature should be included in the Themes REST API endpoint.
    3039  *          Defaults to not being included. When registering an 'array' or 'object' type,
    3040  *          this argument must be an array with the 'schema' key.
    3041  *
    3042  *          @type array    $schema           Specifies the JSON Schema definition describing
    3043  *                                           the feature. If any objects in the schema do not include
    3044  *                                           the 'additionalProperties' keyword, it is set to false.
    3045  *          @type string   $name             An alternate name to be used as the property name
    3046  *                                           in the REST API.
    3047  *          @type callable $prepare_callback A function used to format the theme support in the REST API.
    3048  *                                           Receives the raw theme support value.
     3026 * @param array  $args {
     3027 *     Data used to describe the theme.
     3028 *
     3029 *     @type string     $type         The type of data associated with this feature.
     3030 *                                    Valid values are 'string', 'boolean', 'integer',
     3031 *                                    'number', 'array', and 'object'. Defaults to 'boolean'.
     3032 *     @type boolean    $variadic     Does this feature utilize the variadic support
     3033 *                                    of add_theme_support(), or are all arguments specified
     3034 *                                    as the second parameter. Must be used with the "array" type.
     3035 *     @type string     $description  A short description of the feature. Included in
     3036 *                                    the Themes REST API schema. Intended for developers.
     3037 *     @type bool|array $show_in_rest {
     3038 *         Whether this feature should be included in the Themes REST API endpoint.
     3039 *         Defaults to not being included. When registering an 'array' or 'object' type,
     3040 *         this argument must be an array with the 'schema' key.
     3041 *
     3042 *         @type array    $schema           Specifies the JSON Schema definition describing
     3043 *                                          the feature. If any objects in the schema do not include
     3044 *                                          the 'additionalProperties' keyword, it is set to false.
     3045 *         @type string   $name             An alternate name to be used as the property name
     3046 *                                          in the REST API.
     3047 *         @type callable $prepare_callback A function used to format the theme support in the REST API.
     3048 *                                          Receives the raw theme support value.
    30493049 *      }
    30503050 * }
Note: See TracChangeset for help on using the changeset viewer.