Make WordPress Core


Ignore:
Timestamp:
05/30/2016 02:13:57 AM (10 years ago)
Author:
DrewAPicture
Message:

Docs: Ensure hook and duplicate hook docs directly precede all instances of the image_memory_limit filter.

Hook docs must directly precede hooks in order for the Code Reference parser to correctly identify them as such.

Fixes #36968.

File:
1 edited

Legend:

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

    r37492 r37592  
    105105         *                          Accepts an integer (bytes), or a shorthand string notation, such as '256M'.
    106106         */
    107         // Set artificially high because GD uses uncompressed images in memory
    108         @ini_set( 'memory_limit', apply_filters( 'image_memory_limit', WP_MAX_MEMORY_LIMIT ) );
     107        $image_memory_limit = apply_filters( 'image_memory_limit', WP_MAX_MEMORY_LIMIT );
     108
     109        // Set artificially high because GD uses uncompressed images in memory.
     110        @ini_set( 'memory_limit', $image_memory_limit );
    109111
    110112        $this->image = @imagecreatefromstring( file_get_contents( $this->file ) );
Note: See TracChangeset for help on using the changeset viewer.