// Populate the media fields.
$info['wp-media'
]['fields'
]['image_editor'
] = array
( 'label' =>
__( 'Active editor'
),
'value' =>
_wp_image_editor_choose(),
);
// Get ImageMagic information, if available.
if ( class_exists( 'Imagick'
) ) { // Save the Imagick instance for later use.
$imagick =
new Imagick();
$imagemagick_version =
$imagick->
getVersion();
} else { $imagemagick_version =
__( 'Not available'
);
} $info['wp-media'
]['fields'
]['imagick_module_version'
] = array
( 'label' =>
__( 'ImageMagick version number'
),
'value'
=> ( is_array( $imagemagick_version ) ?
$imagemagick_version['versionNumber'
] :
$imagemagick_version ),
);
$info['wp-media'
]['fields'
]['imagemagick_version'
] = array
(