Updates WP version output to handle future latest-in-branch status - Ref #1649

This commit is contained in:
erwanlr
2021-06-04 12:03:35 +02:00
parent 1201ecbfd3
commit 52e3e25741
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
<% if @version -%>
<%= info_icon %> WordPress version <%= @version.number %> identified (<%= @version.status.capitalize %>, released on <%= @version.release_date %>).
<%= info_icon %> WordPress version <%= @version.number %> identified (<%= @version.status.tr('-', '_').humanize %>, released on <%= @version.release_date %>).
<%= render('@finding', item: @version) -%>
<% else -%>
<%= notice_icon %> The WordPress version could not be detected.