/** * Returns row counts from list of tables * * @param array $tables * @param int $stage * * @return mixed */ function get_row_counts_from_table_list($tables, $stage) { static $cached_results = array(); if (isset($cached_results[$stage])) { return $cached_results[$stage]; } $local_table_rows = $this->wpmdb->get_table_row_count(); $cached_results[$stage] = apply_filters('wpmdb_cli_get_row_counts_from_table_list', $local_table_rows, $stage); return $cached_results[$stage]; }