WordPress.org

Make WordPress Core

Changeset 47295


Ignore:
Timestamp:
02/17/2020 03:11:50 AM (5 months ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments for require_once() calls in WP_REST_Attachments_Controller.

See #49449, #48303.

File:
1 edited

Legend:

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

    r47261 r47295  
    186186        }
    187187
    188         // Include admin function to get access to wp_generate_attachment_metadata().
     188        // Include media functions to get access to wp_generate_attachment_metadata().
    189189        require_once ABSPATH . 'wp-admin/includes/media.php';
    190190
     
    718718        $type = array_shift( $headers['content_type'] );
    719719
    720         /** Include admin functions to get access to wp_tempnam() and wp_handle_sideload(). */
     720        // Include filesystem functions to get access to wp_tempnam() and wp_handle_sideload().
    721721        require_once ABSPATH . 'wp-admin/includes/file.php';
    722722
     
    916916        }
    917917
    918         /** Include admin function to get access to wp_handle_upload(). */
     918        // Include filesystem functions to get access to wp_handle_upload().
    919919        require_once ABSPATH . 'wp-admin/includes/file.php';
    920920
     
    998998        }
    999999
    1000         // Include admin function to get access to upload_is_user_over_quota().
     1000        // Include multisite admin functions to get access to upload_is_user_over_quota().
    10011001        require_once ABSPATH . 'wp-admin/includes/ms.php';
    10021002
Note: See TracChangeset for help on using the changeset viewer.