mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 07:36:58 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@37592 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -138,8 +138,13 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
|
||||
return new WP_Error( 'error_loading_image', __('File doesn’t exist?'), $this->file );
|
||||
|
||||
/** This filter is documented in wp-includes/class-wp-image-editor-gd.php */
|
||||
// Even though Imagick uses less PHP memory than GD, set higher limit for users that have low PHP.ini limits
|
||||
@ini_set( 'memory_limit', apply_filters( 'image_memory_limit', WP_MAX_MEMORY_LIMIT ) );
|
||||
$image_memory_limit = apply_filters( 'image_memory_limit', WP_MAX_MEMORY_LIMIT );
|
||||
|
||||
/*
|
||||
* Even though Imagick uses less PHP memory than GD, set higher limit
|
||||
* for users that have low PHP.ini limits.
|
||||
*/
|
||||
@ini_set( 'memory_limit', $image_memory_limit );
|
||||
|
||||
try {
|
||||
$this->image = new Imagick( $this->file );
|
||||
|
||||
Reference in New Issue
Block a user