wp-cli-integration.php
public function all($args, $assoc_args)
  {
    $result = self::replace_content($args,$assoc_args);

    if ( isset($assoc_args['dry-run']) )
      WP_CLI::success("Found {$result['replaced_count']} from {$result['considered_count']} attachments to replace.");
    else
      WP_CLI::success("Replaced {$result['replaced_count']} from {$result['considered_count']} attachments.");
  }
public function all($args, $assoc_args)
  {
    $result = self::replace_content($args,$assoc_args);

    if ( isset($assoc_args['dry-run']) )
      WP_CLI::success("Found {$result['replaced_count']} from {$result['considered_count']} attachments to replace.");
    else
      WP_CLI::success("Replaced {$result['replaced_count']} from {$result['considered_count']} attachments.");
  }
public function all ( $ args , $ assoc_args ) { $ result = self :: replace_content ( $ args , $ assoc_args ) ; if ( isset ( $ assoc_args [ 'dry-run' ] ) ) WP_CLI :: success ( "Found {$result['replaced_count']} from {$result['considered_count']} attachments to replace." ) ; else WP_CLI :: success ( "Replaced {$result['replaced_count']} from {$result['considered_count']} attachments." ) ; }
Makes all currently uploaded filenames and urls sanitized. Also replaces corresponding files from wp_posts and wp_postmeta

// OPTIONS

[--dry-run]
: Only prints the changes without replacing.

[--verbose]
: More output from replacing.

[--without-sanitize]
: This doesn't make files to lower case and doesn't strip special chars

[--network]
: More output from replacing.

// EXAMPLES

wp sanitize all
wp sanitize all --dry-run

@synopsis [--dry-run] [--without-sanitize] [--verbose] [--network]
Makes all currently uploaded filenames and urls sanitized . Also replaces corresponding files from wp_posts and wp_postmeta