Make WordPress Core


Ignore:
Timestamp:
05/31/2026 10:50:08 AM (2 months ago)
Author:
wildworks
Message:

Docs: Add missing @since tags to WP_REST_Icons_Controller.

Add the missing @since 7.0.0 tags to the constructor and methods of the WP_REST_Icons_Controller class to document the version in which they were introduced.

Follow-up to [61674].

Props mukesh27, wildworks.
See #64897.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-icons-controller.php

    r62077 r62435  
    11<?php
    2 
    32/**
    43 * REST API: WP_REST_Icons_Controller class
     
    2322        /**
    2423         * Constructs the controller.
     24         *
     25         * @since 7.0.0
    2526         */
    2627        public function __construct() {
     
    3132        /**
    3233         * Registers the routes for the objects of the controller.
     34         *
     35         * @since 7.0.0
    3336         */
    3437        public function register_routes() {
     
    7376         * Checks whether a given request has permission to read icons.
    7477         *
     78         * @since 7.0.0
     79         *
    7580         * @param WP_REST_Request $request Full details about the request.
    7681         * @return true|WP_Error True if the request has read access, WP_Error object otherwise.
     
    100105         * Checks if a given request has access to read a specific icon.
    101106         *
     107         * @since 7.0.0
     108         *
    102109         * @param WP_REST_Request $request Full details about the request.
    103110         * @return true|WP_Error True if the request has read access for the item, WP_Error object otherwise.
     
    114121        /**
    115122         * Retrieves all icons.
     123         *
     124         * @since 7.0.0
    116125         *
    117126         * @param WP_REST_Request $request Full details about the request.
     
    132141         * Retrieves a specific icon.
    133142         *
     143         * @since 7.0.0
     144         *
    134145         * @param WP_REST_Request $request Full details about the request.
    135146         * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure.
     
    147158        /**
    148159         * Retrieves a specific icon from the registry.
     160         *
     161         * @since 7.0.0
    149162         *
    150163         * @param string $name Icon name.
     
    173186         * Prepare a raw icon before it gets output in a REST API response.
    174187         *
     188         * @since 7.0.0
     189         *
    175190         * @param array           $item    Raw icon as registered, before any changes.
    176191         * @param WP_REST_Request $request Request object.
     
    199214        /**
    200215         * Retrieves the icon schema, conforming to JSON Schema.
     216         *
     217         * @since 7.0.0
    201218         *
    202219         * @return array Item schema data.
     
    241258         * Retrieves the query params for the icons collection.
    242259         *
     260         * @since 7.0.0
     261         *
    243262         * @return array Collection parameters.
    244263         */
Note: See TracChangeset for help on using the changeset viewer.