PluginProbe
Database Reset / 3.21
Database Reset v3.21
2.3.2 3.0 3.0.1 3.0.2 3.1 3.15 3.16 3.17 3.18 3.19 3.20 3.21 3.22 3.23 3.24 3.25 trunk 1.0 1.2 1.2.1 1.2.2 1.3 1.4 2.0 2.1 All 27 releases
← All changes | class-db-reset-command.php +3 -4 trunk3.21 View file →
@@ -52,11 +52,10 @@
52 52 $this->disable_error_reporting();
53 53 }
54 54
55 55 private function disable_error_reporting() {
56 - // disable error reporting during reset
57 - $this->reporting = error_reporting(); //phpcs:ignore
58 - error_reporting( 0 ); //phpcs:ignore
56 + $this->reporting = error_reporting();
57 + error_reporting( 0 );
59 58 }
60 59
61 60 private function sanitize_input( $string = '' ) {
62 61 if ( ! empty ( $string ) ) {
@@ -97,9 +96,9 @@
97 96 }
98 97 }
99 98
100 99 private function handle_after_reset() {
101 - error_reporting( $this->reporting ); //phpcs:ignore
100 + error_reporting( $this->reporting );
102 101 }
103 102 }
104 103
105 104 WP_CLI::add_command( 'reset', 'DB_Reset_Command' );