PluginProbe
Database Reset / 3.25
Database Reset v3.25
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 +5 -4 3.03.25 View file →
@@ -40,9 +40,9 @@
40 40 *
41 41 * @subcommand list
42 42 */
43 43 public function _list() {
44 - $tables = $this->resetter->get_wp_tables();
44 + $tables = $this->get_wp_tables();
45 45
46 46 foreach( $tables as $key => $value ) {
47 47 WP_CLI::line( $key );
48 48 }
@@ -52,10 +52,11 @@
52 52 $this->disable_error_reporting();
53 53 }
54 54
55 55 private function disable_error_reporting() {
56 - $this->reporting = error_reporting();
57 - error_reporting( 0 );
56 + // disable error reporting during reset
57 + $this->reporting = error_reporting(); //phpcs:ignore
58 + error_reporting( 0 ); //phpcs:ignore
58 59 }
59 60
60 61 private function sanitize_input( $string = '' ) {
61 62 if ( ! empty ( $string ) ) {
@@ -96,9 +97,9 @@
96 97 }
97 98 }
98 99
99 100 private function handle_after_reset() {
100 - error_reporting( $this->reporting );
101 + error_reporting( $this->reporting ); //phpcs:ignore
101 102 }
102 103 }
103 104
104 105 WP_CLI::add_command( 'reset', 'DB_Reset_Command' );