Make WordPress Core


Ignore:
Timestamp:
03/28/2020 09:18:19 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Site Health: Add pretty links support information to debug data.

Props valentinbora, afragen.
Fixes #49422.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-debug-data.php

    r47345 r47527  
    2424     *
    2525     * @since 5.2.0
     26     * @since 5.3.0 Added database charset, database collation,
     27     *              and timezone information.
     28     * @since 5.5.0 Added pretty permalinks support information.
    2629     *
    2730     * @throws ImagickException
     
    694697            'value' => ( $imagick_loaded ? __( 'Yes' ) : __( 'No' ) ),
    695698            'debug' => $imagick_loaded,
     699        );
     700
     701        // Pretty permalinks.
     702        $pretty_permalinks_supported = got_url_rewrite();
     703
     704        $info['wp-server']['fields']['pretty_permalinks'] = array(
     705            'label' => __( 'Are pretty permalinks supported?' ),
     706            'value' => ( $pretty_permalinks_supported ? __( 'Yes' ) : __( 'No' ) ),
     707            'debug' => $pretty_permalinks_supported,
    696708        );
    697709
Note: See TracChangeset for help on using the changeset viewer.