Make WordPress Core


Ignore:
Timestamp:
05/30/2016 02:13:57 AM (9 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/deprecated.php

    r37542 r37592  
    31763176        return __('The GD image library is not installed.');
    31773177
    3178     // Set artificially high because GD uses uncompressed images in memory
    3179     @ini_set( 'memory_limit', apply_filters( 'image_memory_limit', WP_MAX_MEMORY_LIMIT ) );
     3178    /** This filter is documented in wp-includes/class-wp-image-editor-gd.php */
     3179    $image_memory_limit = apply_filters( 'image_memory_limit', WP_MAX_MEMORY_LIMIT );
     3180
     3181    // Set artificially high because GD uses uncompressed images in memory.
     3182    @ini_set( 'memory_limit', $image_memory_limit );
     3183
    31803184    $image = imagecreatefromstring( file_get_contents( $file ) );
    31813185
Note: See TracChangeset for help on using the changeset viewer.