Make WordPress Core


Ignore:
Timestamp:
08/18/2023 05:44:29 PM (7 months ago)
Author:
johnbillion
Message:

REST API: Correct the docblocks for various permission related methods.

See #58833

File:
1 edited

Legend:

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

    r55951 r56415  
    119119     *
    120120     * @param WP_REST_Request $request Full details about the request.
    121      * @return bool|WP_Error True if the request has read access for the item, otherwise WP_Error object.
     121     * @return true|WP_Error True if the request has read access for the item, otherwise WP_Error object.
    122122     */
    123123    public function get_item_permissions_check( $request ) {
     
    145145     * @since 5.7.0
    146146     *
    147      * @return bool|WP_Error Whether the theme can be read.
     147     * @return true|WP_Error True if the theme can be read, WP_Error object otherwise.
    148148     */
    149149    protected function check_read_active_theme_permission() {
Note: See TracChangeset for help on using the changeset viewer.