| @@ -84,32 +84,8 @@ | ||
| 84 | 84 | error_log( '[' . date_i18n( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ) ) . "] $method: $message\n", 3, self::get_log_file_path() ); |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | /** |
| 88 | - * Log the current plugin settings on request. | |
| 89 | - */ | |
| 90 | - public static function maybe_log_settings() { | |
| 91 | - // phpcs:ignore WordPress.Security.NonceVerification.Recommended | |
| 92 | - if ( ! self::enabled() || ! isset( $_GET['isc-settings'] ) ) { | |
| 93 | - return; | |
| 94 | - } | |
| 95 | - | |
| 96 | - $options = Plugin::get_options(); | |
| 97 | - unset( $options['license-key'] ); | |
| 98 | - | |
| 99 | - self::log( '=== ISC SETTINGS ===' ); | |
| 100 | - self::log( $options ); | |
| 101 | - | |
| 102 | - $license_status = get_option( 'isc_license_status', '' ); | |
| 103 | - | |
| 104 | - if ( '' === $license_status || false === $license_status || null === $license_status ) { | |
| 105 | - $license_status = '-'; | |
| 106 | - } | |
| 107 | - | |
| 108 | - self::log( 'isc_license_status: ' . $license_status ); | |
| 109 | - } | |
| 110 | - | |
| 111 | - /** | |
| 112 | 88 | * Delete the log file without any conditions |
| 113 | 89 | */ |
| 114 | 90 | public static function delete_log_file() { |
| 115 | 91 | wp_delete_file( self::get_log_file_path() ); |