merge with branch01

This commit is contained in:
ruben- 2015-12-05 17:38:52 +01:00
parent ac5ba0c1ab
commit f942c94b3d
24 changed files with 394 additions and 176 deletions

View file

@ -755,7 +755,7 @@ class MainWP_Backup {
$table = $curr_table[0];
fwrite( $fh, "\n\n" . 'DROP TABLE IF EXISTS ' . $table . ';' );
$table_create = $wpdb->get_row( 'SHOW CREATE TABLE ' . $table, ARRAY_N );
$table_create = $wpdb->get_row( $wpdb->prepare( 'SHOW CREATE TABLE %s', $table ), ARRAY_N );
fwrite( $fh, "\n" . $table_create[1] . ";\n\n" );
// @codingStandardsIgnoreStart
@ -825,7 +825,7 @@ class MainWP_Backup {
$table = $curr_table[0];
fwrite( $fh, "\n" . 'DROP TABLE IF EXISTS ' . $table . ';' );
$table_create = $wpdb->get_row( 'SHOW CREATE TABLE ' . $table, ARRAY_N );
$table_create = $wpdb->get_row( $wpdb->prepare( 'SHOW CREATE TABLE %s', $table ), ARRAY_N );
fwrite( $fh, "\n" . $table_create[1] . ';' );
//$rows = $wpdb->get_results('SELECT * FROM ' . $table, ARRAY_N);