WordPress.org

Make WordPress Core

Changeset 26650


Ignore:
Timestamp:
12/04/2013 11:50:33 PM (8 years ago)
Author:
DrewAPicture
Message:

Two more hook docs fixes.

image_memory_limit filter:

  • Go with int|string on the limit, and simply notate '256M' as an acceptable string value.

wp_editor_set_quality filter:

  • Add a missing parameter description for the mime type.

See #25721.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

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

    r26648 r26650  
    9292         * @since 3.5.0
    9393         *
    94          * @param string $limit Maximum memory limit to allocate for images. Default value
    95          *                      of WP_MAX_MEMORY_LIMIT is '256M'.
     94         * @param int|string $limit Maximum memory limit to allocate for images. Default WP_MAX_MEMORY_LIMIT.
     95         *                          Accepts an integer (bytes), or a shorthand string notation, such as '256M'.
    9696         */
    9797        // Set artificially high because GD uses uncompressed images in memory
  • trunk/src/wp-includes/class-wp-image-editor.php

    r26648 r26650  
    218218         * @since 3.5.0
    219219         *
    220          * @param int $quality Quality level between 1 (low) and 100 (high).
     220         * @param int    $quality   Quality level between 1 (low) and 100 (high).
     221         * @param string $mime_type Image mime type.
    221222         */
    222223        $quality = apply_filters( 'wp_editor_set_quality', $quality, $this->mime_type );
Note: See TracChangeset for help on using the changeset viewer.