Site Health: Add pretty links support information to debug data.
Props valentinbora, afragen. Fixes #49422. git-svn-id: https://develop.svn.wordpress.org/trunk@47527 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fe18be23fd
commit
96a35dad0b
@ -23,6 +23,9 @@ class WP_Debug_Data {
|
|||||||
* Static function for generating site debug data when required.
|
* Static function for generating site debug data when required.
|
||||||
*
|
*
|
||||||
* @since 5.2.0
|
* @since 5.2.0
|
||||||
|
* @since 5.3.0 Added database charset, database collation,
|
||||||
|
* and timezone information.
|
||||||
|
* @since 5.5.0 Added pretty permalinks support information.
|
||||||
*
|
*
|
||||||
* @throws ImagickException
|
* @throws ImagickException
|
||||||
* @global wpdb $wpdb WordPress database abstraction object.
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
@ -695,6 +698,15 @@ class WP_Debug_Data {
|
|||||||
'debug' => $imagick_loaded,
|
'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.
|
// Check if a .htaccess file exists.
|
||||||
if ( is_file( ABSPATH . '.htaccess' ) ) {
|
if ( is_file( ABSPATH . '.htaccess' ) ) {
|
||||||
// If the file exists, grab the content of it.
|
// If the file exists, grab the content of it.
|
||||||
|
Loading…
Reference in New Issue
Block a user