diff --git a/lib/docs/scrapers/wordpress.rb b/lib/docs/scrapers/wordpress.rb index 58e42cb8..b1bf46c9 100644 --- a/lib/docs/scrapers/wordpress.rb +++ b/lib/docs/scrapers/wordpress.rb @@ -35,5 +35,10 @@ module Docs © 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License. HTML + + def get_latest_version(opts) + doc = fetch_doc('https://wordpress.org/download/releases/', opts) + doc.at_css('.releases.latest td').content + end end end