You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use Utils\make_temp_file() for temporary paths #345
wp-cli/wp-cli#6374 added Utils\make_temp_file() and Utils\make_temp_dir() (merged to main, milestone 3.0.0). This package still builds temporary paths by hand:
Switch them to Utils\make_temp_file( 'wp_', '.tmp' ), Utils\make_temp_file( 'wp_', '.zip' ) and Utils\make_temp_file( 'wp_', ".{$extension}" ). The helper creates the file up front with mode 0600 and errors out instead of handing back a path that might already exist. The shutdown-function cleanup at each site stays as it is.
Blocked on a wp-cli/wp-cli release that ships the helpers. composer.json already requires wp-cli/wp-cli ^3.0.
Activity