From 380760d0285019fe0355f94c44982e20b77fa78d Mon Sep 17 00:00:00 2001 From: ethicalhack3r Date: Mon, 26 Oct 2015 16:06:13 +0100 Subject: [PATCH] Onlt shoe theme description when there is one --- lib/common/models/wp_theme/output.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/common/models/wp_theme/output.rb b/lib/common/models/wp_theme/output.rb index 12d50a6f..5174792e 100644 --- a/lib/common/models/wp_theme/output.rb +++ b/lib/common/models/wp_theme/output.rb @@ -6,13 +6,13 @@ class WpTheme # @return [ Void ] def additional_output(verbose = false) parse_style - + theme_desc = verbose ? @theme_description : truncate(@theme_description, 100) puts " | Style URL: #{style_url}" puts " | Referenced style.css: #{referenced_url}" if referenced_url && referenced_url != style_url puts " | Theme Name: #{@theme_name}" if @theme_name puts " | Theme URI: #{@theme_uri}" if @theme_uri - puts " | Description: #{theme_desc}" + puts " | Description: #{theme_desc}" if theme_desc puts " | Author: #{@theme_author}" if @theme_author puts " | Author URI: #{@theme_author_uri}" if @theme_author_uri puts " | Template: #{@theme_template}" if @theme_template and verbose