// Imagick.
$imagick_loaded =
extension_loaded( 'imagick'
);
$info['wp-server'
]['fields'
]['imagick_availability'
] = array
( 'label' =>
__( 'Is the Imagick library available?'
),
'value'
=> ( $imagick_loaded ?
__( 'Yes'
) :
__( 'No'
) ),
'debug' =>
$imagick_loaded,
);
// Pretty permalinks.
$pretty_permalinks_supported =
got_url_rewrite();
$info['wp-server'
]['fields'
]['pretty_permalinks'
] = array
( 'label' =>
__( 'Are pretty permalinks supported?'
),
'value'
=> ( $pretty_permalinks_supported ?
__( 'Yes'
) :
__( 'No'
) ),
'debug' =>
$pretty_permalinks_supported,
);
// Check if a .htaccess file exists.
if ( is_file( ABSPATH . '.htaccess'
) ) { // If the file exists, grab the content of it.
$htaccess_content =
file_get_contents( ABSPATH . '.htaccess'
);