wordpress: implement get_latest_version

pull/1053/head
Jasper van Merle 6 years ago
parent b9b454a272
commit 934cee4ae2

@ -35,5 +35,10 @@ module Docs
&copy; 2003&ndash;2019 WordPress Foundation<br>
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

Loading…
Cancel
Save