WordPress.org

Make WordPress Core

Ticket #6821: 6821.doc-fixes.diff

File 6821.doc-fixes.diff, 1.7 KB (added by duck_, 7 years ago)
  • wp-includes/class-wp-image-editor.php

     
    3030         *
    3131         * @param string $path Path to File to Load
    3232         * @param array $required_methods Methods to require in implementation
    33          * @return WP_Image_Editor|WP_Error|boolean
     33         * @return WP_Image_Editor|WP_Error
    3434         */
    3535        public final static function get_instance( $path = null, $required_methods = null ) {
    3636                $implementation = apply_filters( 'wp_image_editor_class', self::choose_implementation( $required_methods ), $path );
     
    5454         * @since 3.5.0
    5555         * @access private
    5656         *
    57          * @param $required_methods Array String array of all methods required for implementation returned.
    58          *
     57         * @param array $required_methods String array of all methods required for implementation returned.
    5958         * @return string|bool Class name for the first editor that claims to support the request. False if no editor claims to support the request.
    6059         */
    6160        private final static function choose_implementation( $required_methods = null ) {
     
    103102         * @access public
    104103         * @abstract
    105104         *
    106          * @param $args array
     105         * @param array $args
    107106         * @return boolean
    108107         */
    109108        public static function test( $args = null ) {
     
    181180         * @access protected
    182181         *
    183182         * @param string $filename
    184          * @param type $mime_type
     183         * @param string $mime_type
    185184         * @return array { filename|null, extension, mime-type }
    186185         */
    187186        protected function get_output_format( $filename = null, $mime_type = null ) {
     
    359358
    360359                return $extensions[0];
    361360        }
    362 }
    363  No newline at end of file
     361}