WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/16/2012 10:02:21 PM (7 years ago)
Author:
ryan
Message:

Add abstract methods back to WP_Image_Editor and refresh phpdoc.

Props DH-Shredder, markoheijnen, kurtpayne, nacin
see #6821

File:
1 edited

Legend:

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

    r22538 r22619  
    2626
    2727    /**
    28      * Checks to see if current environment supports GD
     28     * Checks to see if current environment supports GD.
    2929     *
    3030     * @since 3.5.0
     
    4141
    4242    /**
    43      * Loads image from $this->file into new GD Resource
    44      *
    45      * @since 3.5
     43     * Loads image from $this->file into new GD Resource.
     44     *
     45     * @since 3.5.0
    4646     * @access protected
    4747     *
     
    7373
    7474    /**
    75      * Sets or updates current image size
     75     * Sets or updates current image size.
    7676     *
    7777     * @since 3.5.0
     
    9292
    9393    /**
    94      * Checks to see if editor supports mime-type specified
     94     * Checks to see if editor supports the mime-type specified.
    9595     *
    9696     * @since 3.5.0
     
    108108    /**
    109109     * Resizes current image.
    110      * Wrapper around _resize, since _resize returns a GD Resource
     110     * Wraps _resize, since _resize returns a GD Resource.
     111     *
     112     * @since 3.5.0
     113     * @access public
    111114     *
    112115     * @param int $max_w
     
    153156     * Processes current image and saves to disk
    154157     * multiple sizes from single source.
     158     *
     159     * @since 3.5.0
     160     * @access public
    155161     *
    156162     * @param array $sizes { {width, height}, ... }
     
    193199     * @param int $dst_w Optional. The destination width.
    194200     * @param int $dst_h Optional. The destination height.
    195      * @param int $src_abs Optional. If the source crop points are absolute.
     201     * @param boolean $src_abs Optional. If the source crop points are absolute.
    196202     * @return boolean|WP_Error
    197203     */
     
    251257
    252258    /**
    253      * Flips current image
     259     * Flips current image.
     260     *
     261     * @since 3.5.0
     262     * @access public
    254263     *
    255264     * @param boolean $horz Horizonal Flip
     
    278287
    279288    /**
    280      * Saves current in-memory image to file
     289     * Saves current in-memory image to file.
     290     *
     291     * @since 3.5.0
     292     * @access public
    281293     *
    282294     * @param string $destfilename
     
    336348
    337349    /**
    338      * Returns stream of current image
     350     * Returns stream of current image.
     351     *
     352     * @since 3.5.0
     353     * @access public
    339354     *
    340355     * @param string $mime_type
Note: See TracChangeset for help on using the changeset viewer.