Make WordPress Core

Ticket #54505: 54505.2.diff

File 54505.2.diff, 986 bytes (added by Presskopp, 3 years ago)

patch variant adding WP_TEMP_DIR also to list of constants

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

     
    268268                                        'label' => 'WP_PLUGIN_DIR',
    269269                                        'value' => WP_PLUGIN_DIR,
    270270                                ),
     271                                'WP_TEMP_DIR'         => array(
     272                                        'label' => 'WP_TEMP_DIR',
     273                                        'value' => ( defined( 'WP_TEMP_DIR' ) ? WP_TEMP_DIR : __( 'Undefined' ) ),
     274                                        'debug' => ( defined( 'WP_TEMP_DIR' ) ? WP_TEMP_DIR : 'undefined' ),
     275                                ),                             
    271276                                'WP_MEMORY_LIMIT'     => array(
    272277                                        'label' => 'WP_MEMORY_LIMIT',
    273278                                        'value' => WP_MEMORY_LIMIT,
     
    474479                                        'value' => $loading,
    475480                                        'debug' => 'loading...',
    476481                                ),
     482                                'temp_directory' => array(
     483                                        'label' => __( 'Temp directory' ),
     484                                        'value' => get_temp_dir(),
     485                                ),
    477486                                'database_size'  => array(
    478487                                        'label' => __( 'Database size' ),
    479488                                        'value' => $loading,