Browse Source

Update WordPress version

master
Adrian Heine 4 years ago
parent
commit
c431e578e6
  1. 4
      src/symbols/wordpress/translation.rs

4
src/symbols/wordpress/translation.rs

@ -74,8 +74,8 @@ impl<'a, C, D, R> Symbol for WordpressTranslation<'a, C, D, R> where C: Deref<Ta
newest = max(newest, file_date.to_string());
}
}
let upstream = try!(self.command_runner.get_output("curl", &["https://api.wordpress.org/core/version-check/1.7/?version=4.7.5&locale=de_DE"]));
Ok(try!(String::from_utf8(upstream)).contains(&format!(r###"language":"de_DE","version":"4.7.5","updated":"{}"###, newest)))
let upstream = try!(self.command_runner.get_output("curl", &["https://api.wordpress.org/core/version-check/1.7/?version=4.7.8&locale=de_DE"]));
Ok(try!(String::from_utf8(upstream)).contains(&format!(r###"language":"de_DE","version":"4.7.8","updated":"{}"###, newest)))
}
fn execute(&self) -> Result<(), Box<Error>> {

Loading…
Cancel
Save