@@ -302,7 +302,7 @@ public function __invoke( $args, $assoc_args ) {
302
302
303
303
foreach ( $ tables as $ table ) {
304
304
305
- if ( in_array ( $ table , $ this ->skip_tables ) ) {
305
+ if ( in_array ( $ table , $ this ->skip_tables , true ) ) {
306
306
continue ;
307
307
}
308
308
@@ -340,11 +340,11 @@ public function __invoke( $args, $assoc_args ) {
340
340
}
341
341
342
342
foreach ( $ columns as $ col ) {
343
- if ( ! empty ( $ this ->include_columns ) && ! in_array ( $ col , $ this ->include_columns ) ) {
343
+ if ( ! empty ( $ this ->include_columns ) && ! in_array ( $ col , $ this ->include_columns , true ) ) {
344
344
continue ;
345
345
}
346
346
347
- if ( in_array ( $ col , $ this ->skip_columns ) ) {
347
+ if ( in_array ( $ col , $ this ->skip_columns , true ) ) {
348
348
continue ;
349
349
}
350
350
@@ -438,7 +438,7 @@ private function php_export_table( $table, $old, $new ) {
438
438
$ row_fields = array ();
439
439
foreach ( $ all_columns as $ col ) {
440
440
$ value = $ row ->$ col ;
441
- if ( $ value && ! in_array ( $ col , $ primary_keys ) && ! in_array ( $ col , $ this ->skip_columns ) ) {
441
+ if ( $ value && ! in_array ( $ col , $ primary_keys, true ) && ! in_array ( $ col , $ this ->skip_columns , true ) ) {
442
442
$ new_value = $ replacer ->run ( $ value );
443
443
if ( $ new_value !== $ value ) {
444
444
$ col_counts [ $ col ]++;
@@ -595,7 +595,7 @@ private function write_sql_row_fields( $table, $rows ) {
595
595
// $index % $export_insert_size == 0 && $index > 0
596
596
// 2. Or when the loop is running last time
597
597
// $index == $count
598
- if ( ( $ index % $ export_insert_size == 0 && $ index > 0 ) || $ index == $ count ) {
598
+ if ( ( $ index % $ export_insert_size === 0 && $ index > 0 ) || $ index = == $ count ) {
599
599
$ sql .= "; \n" ;
600
600
601
601
if ( method_exists ( $ wpdb , 'remove_placeholder_escape ' ) ) {
0 commit comments