Make WordPress Core

Ticket #49422: 49422.diff

File 49422.diff, 792 bytes (added by valentinbora, 4 years ago)

Add permalink support entry under Site Health > Info > Server

  • src/wp-admin/includes/class-wp-debug-data.php

    diff --git src/wp-admin/includes/class-wp-debug-data.php src/wp-admin/includes/class-wp-debug-data.php
    index 40c4f5d13f..0156581eb1 100644
    class WP_Debug_Data { 
    695695                        'debug' => $imagick_loaded,
    696696                );
    697697
     698                // Pretty permalinks.
     699                $pretty_permalinks_available = got_url_rewrite();
     700
     701                $info['wp-server']['fields']['pretty_permalinks_availability'] = array(
     702                        'label' => __( 'Pretty permalinks support' ),
     703                        'value' => ( $pretty_permalinks_available ? __( 'Yes' ) : __( 'No' ) ),
     704                        'debug' => $pretty_permalinks_available,
     705                );
     706
    698707                // Check if a .htaccess file exists.
    699708                if ( is_file( ABSPATH . '.htaccess' ) ) {
    700709                        // If the file exists, grab the content of it.