From d552e475fd08f8ddc3792845c94e7b6c6b089dd1 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 28 Mar 2020 21:20:06 +0000 Subject: [PATCH] Site Health: Add pretty links support information to debug data. Props valentinbora, afragen. Fixes #49422. Built from https://develop.svn.wordpress.org/trunk@47527 git-svn-id: http://core.svn.wordpress.org/trunk@47302 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-debug-data.php | 12 ++++++++++++ wp-includes/version.php | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/class-wp-debug-data.php b/wp-admin/includes/class-wp-debug-data.php index d93f201500..42f9a788f7 100644 --- a/wp-admin/includes/class-wp-debug-data.php +++ b/wp-admin/includes/class-wp-debug-data.php @@ -23,6 +23,9 @@ class WP_Debug_Data { * Static function for generating site debug data when required. * * @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 * @global wpdb $wpdb WordPress database abstraction object. @@ -695,6 +698,15 @@ class WP_Debug_Data { '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. diff --git a/wp-includes/version.php b/wp-includes/version.php index e90e1c9ed9..c917a31a30 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-47526'; +$wp_version = '5.5-alpha-47527'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.