Make WordPress Core

Changeset 26648


Ignore:
Timestamp:
12/04/2013 11:31:21 PM (13 years ago)
Author:
DrewAPicture
Message:

Hook docs fixes following [26645].

See #25721.

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/image-edit.php

    r25868 r26648  
    260260                switch ( $mime_type ) {
    261261                        case 'image/jpeg':
     262                                /** This filter is documented in wp-includes/class-wp-image-editor.php */
    262263                                return imagejpeg( $image, $filename, apply_filters( 'jpeg_quality', 90, 'edit_image' ) );
    263264                        case 'image/png':
  • trunk/src/wp-includes/class-wp-image-editor-gd.php

    r26645 r26648  
    9292                 * @since 3.5.0
    9393                 *
    94                  * @param int Maximum memory limit to allocate (default is WP_MAX_MEMORY_LIMIT)
     94                 * @param string $limit Maximum memory limit to allocate for images. Default value
     95                 *                      of WP_MAX_MEMORY_LIMIT is '256M'.
    9596                 */
    9697                // Set artificially high because GD uses uncompressed images in memory
  • trunk/src/wp-includes/class-wp-image-editor.php

    r26645 r26648  
    214214
    215215                /**
    216                  * Filter the default quality setting.
     216                 * Filter the default image compression quality setting.
    217217                 *
    218218                 * @since 3.5.0
    … …  
    222222                $quality = apply_filters( 'wp_editor_set_quality', $quality, $this->mime_type );
    223223
    224                 /**
    225                  * Filter the JPEG quality for backwards compatibilty.
    226                  *
    227                  * @since 2.5.0
    228                  *
    229                  * @param int $quality Quality level between 0 (low) and 100 (high) of the JPEG.
    230                  * @param string The context of the filter.
    231                  */
    232224                if ( 'image/jpeg' == $this->mime_type ) {
     225                        /**
     226                         * Filter the JPEG compression quality for backward-compatibility.
     227                         *
     228                         * The filter is evaluated under two contexts: 'image_resize', and 'edit_image',
     229                         * (when a JPEG image is saved to file).
     230                         *
     231                         * @since 2.5.0
     232                         *
     233                         * @param int    $quality Quality level between 0 (low) and 100 (high) of the JPEG.
     234                         * @param string $context Context of the filter.
     235                         */
    233236                        $quality = apply_filters( 'jpeg_quality', $quality, 'image_resize' );
    234237
Note: See TracChangeset for help on using the changeset viewer.