Make WordPress Core


Ignore:
Timestamp:
12/01/2014 01:33:34 AM (12 years ago)
Author:
wonderboymusic
Message:

Improve various @param docs for src/wp-includes/*.

See #30224.

File:
1 edited

Legend:

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

    r30180 r30681  
    256256         * @access public
    257257         *
    258          * @param string|int $src The source file or Attachment ID.
    259258         * @param int $src_x The start x position to crop from.
    260259         * @param int $src_y The start y position to crop from.
    … …  
    356355         * @access public
    357356         *
    358          * @param string $destfilename
    359          * @param string $mime_type
     357         * @param string|null $filename
     358         * @param string|null $mime_type
    360359         * @return array|WP_Error {'path'=>string, 'file'=>string, 'width'=>int, 'height'=>int, 'mime-type'=>string}
    361360         */
    … …  
    371370        }
    372371
     372        /**
     373         * @param resource $image
     374         * @param string|null $filename
     375         * @param string|null $mime_type
     376         * @return WP_Error|array
     377         */
    373378        protected function _save( $image, $filename = null, $mime_type = null ) {
    374379                list( $filename, $extension, $mime_type ) = $this->get_output_format( $filename, $mime_type );
Note: See TracChangeset for help on using the changeset viewer.