Plugin Directory

Changeset 2147717


Ignore:
Timestamp:
08/29/2019 11:03:47 AM (6 years ago)
Author:
puvoxsoftware
Message:

minor update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • enable-wp-debug-from-admin-dashboard/trunk/index.php

    r2147705 r2147717  
    8383        {
    8484            $wp_config_content=file_get_contents($wp_config);
    85             if( strpos($wp_config_content, $this->phrase_start) ===false )
     85            if( strpos($wp_config_content, $this->phrase_start) === false )
    8686            {
    8787                $inserting_code_block=
     
    111111            }
    112112        }
     113       
     114        if (!get_option("EWDFD_1_8_update_issue"))
     115        {
     116            update_option("EWDFD_1_8_update_issue", true);
     117           
     118            $wp_config_content=file_get_contents($wp_config);
     119            if( strpos($wp_config_content, 'WP_DEBUG_LOGS') !== false )
     120            {
     121                $new_content = str_replace( 'WP_DEBUG_LOGS', 'WP_DEBUG_LOG', $wp_config_content);
     122                file_put_contents($wp_config, $new_content);
     123            }
     124        }
    113125        // ===============================================//
    114126    }
Note: See TracChangeset for help on using the changeset viewer.