Skip to content

Commit

Permalink
Updated requirement message
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisChasm committed Jan 4, 2021
1 parent 4d3483a commit fea7fe5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions disciple-tools-dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,9 @@ function dt_dashboard_plugin_hook_admin_notice() {
global $dt_dashboard_required_dt_theme_version;
$wp_theme = wp_get_theme();
$current_version = $wp_theme->version;
$message = __( "'Disciple Tools - Dashboard Plugin' plugin requires 'Disciple Tools' theme to work. Please activate 'Disciple Tools' theme or make sure it is latest version.", "dt_dashboard_plugin" );
$message = __( "'Disciple Tools - Dashboard' plugin requires 'Disciple Tools' theme to work. Please activate 'Disciple Tools' theme or make sure it is latest version.", "dt_dashboard_plugin" );
if ( $wp_theme->get_template() === "disciple-tools-theme" ){
$message .= sprintf( esc_html__( 'Current Disciple Tools version: %1$s, required version: %2$s', 'dt_dashboard_plugin' ), esc_html( $current_version ), esc_html( $dt_dashboard_required_dt_theme_version ) );
$message .= ' ' . sprintf( esc_html__( 'Current Disciple Tools version: %1$s, required version: %2$s', 'dt_dashboard_plugin' ), esc_html( $current_version ), esc_html( $dt_dashboard_required_dt_theme_version ) );
}
// Check if it's been dismissed...
if ( ! get_option( 'dismissed-dt-dashboard', false ) ) { ?>
Expand Down

0 comments on commit fea7fe5

Please sign in to comment.