diff --git a/classes/plugin.class.php b/classes/plugin.class.php index 1ebb267..12032d1 100644 --- a/classes/plugin.class.php +++ b/classes/plugin.class.php @@ -975,11 +975,9 @@ public function show_tooltip( $description, $meta ) { $input_desc = ! empty( $meta['description'] ) ? $meta['description'] : ''; $input_desc = apply_filters( 'ppom_description_content', stripslashes( $input_desc ), $meta ); $input_desc = wp_strip_all_tags( html_entity_decode( $input_desc ) ); - if ( empty( $input_desc ) ) { - return $description; - } + // Check if the tooltip is enabled. - if ( isset( $meta['desc_tooltip'] ) && 'on' === $meta['desc_tooltip'] ) { + if ( ! empty( $input_desc ) && isset( $meta['desc_tooltip'] ) && 'on' === $meta['desc_tooltip'] ) { $description = ( ! empty( $meta['description'] ) ) ? ' ' : ''; } return $description;