Make WordPress Core


Ignore:
Timestamp:
11/11/2019 02:41:15 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: In various @return tags, list the expected type first, instead of WP_Error.

See #48303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-image-editor-gd.php

    r46594 r46696  
    253253     *     @type bool $crop   Whether to crop the image to exact dimensions.
    254254     * }
    255      * @return WP_Error|array WP_Error on error, or the image data array for inclusion in the `sizes` array in the image meta.
     255     * @return array|WP_Error The image data array for inclusion in the `sizes` array in the image meta,
     256     *                        WP_Error object on error.
    256257     */
    257258    public function make_subsize( $size_data ) {
     
    418419     * @param string|null $filename
    419420     * @param string|null $mime_type
    420      * @return WP_Error|array
     421     * @return array|WP_Error
    421422     */
    422423    protected function _save( $image, $filename = null, $mime_type = null ) {
Note: See TracChangeset for help on using the changeset viewer.