Skip to content

remove flag --allow-root when possible with WP-CLI

Few times the flag --allow-root is used with WP-CLI when :

  • root is used to execute, but it is probably not required
  • user attribute is defined in exec

Examples :

A review about this is needed.