Commit 93be0b6
Fix sqlite_import() passing array instead of string to Process::create()
The command_parts array was being passed directly to \WP_CLI\Process::create()
which requires a string command. This caused proc_open() to fail with
"expects parameter 1 to be string, array given".
Also fixes the .read argument: sqlite3 expects ".read FILENAME" as a single
quoted argument, not as two separate arguments.
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>1 parent 54be7a7 commit 93be0b6
1 file changed
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
448 | | - | |
449 | | - | |
450 | 448 | | |
451 | | - | |
452 | | - | |
| 449 | + | |
| 450 | + | |
453 | 451 | | |
454 | 452 | | |
455 | 453 | | |
456 | 454 | | |
457 | | - | |
| 455 | + | |
| 456 | + | |
458 | 457 | | |
459 | | - | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
460 | 461 | | |
461 | 462 | | |
462 | 463 | | |
| |||
0 commit comments