'value' =>
size_format( $effective ),
);
$info['wp-media'
]['fields'
]['max_file_uploads'
] = array
( 'label' =>
__( 'Max number of files allowed'
),
'value' =>
number_format( $max_file_uploads ),
);
} // If Imagick is used as our editor, provide some more information about its limitations.
if ( 'WP_Image_Editor_Imagick' ===
_wp_image_editor_choose() &&
isset( $imagick ) &&
$imagick instanceof Imagick
) { $limits = array
( 'area'
=> ( defined( 'imagick::RESOURCETYPE_AREA'
) ?
size_format( $imagick->
getResourceLimit( imagick::RESOURCETYPE_AREA
) ) :
$not_available ),
'disk'
=> ( defined( 'imagick::RESOURCETYPE_DISK'
) ?
$imagick->
getResourceLimit( imagick::RESOURCETYPE_DISK
) :
$not_available ),
'file'
=> ( defined( 'imagick::RESOURCETYPE_FILE'
) ?
$imagick->
getResourceLimit( imagick::RESOURCETYPE_FILE
) :
$not_available ),
'map'
=> ( defined( 'imagick::RESOURCETYPE_MAP'
) ?
size_format( $imagick->
getResourceLimit( imagick::RESOURCETYPE_MAP
) ) :
$not_available ),
'memory'
=> ( defined( 'imagick::RESOURCETYPE_MEMORY'
) ?
size_format( $imagick->
getResourceLimit( imagick::RESOURCETYPE_MEMORY
) ) :
$not_available ),
'thread'
=> ( defined( 'imagick::RESOURCETYPE_THREAD'
) ?
$imagick->
getResourceLimit( imagick::RESOURCETYPE_THREAD
) :
$not_available ),
'time'
=> ( defined( 'imagick::RESOURCETYPE_TIME'
) ?
$imagick->
getResourceLimit( imagick::RESOURCETYPE_TIME
) :
$not_available ),
);
$limits_debug = array
( 'imagick::RESOURCETYPE_AREA'
=> ( defined( 'imagick::RESOURCETYPE_AREA'
) ?
size_format( $imagick->
getResourceLimit( imagick::RESOURCETYPE_AREA
) ) : 'not available'
),
'imagick::RESOURCETYPE_DISK'
=> ( defined( 'imagick::RESOURCETYPE_DISK'
) ?
$imagick->
getResourceLimit( imagick::RESOURCETYPE_DISK
) : 'not available'
),