Plugin Directory

Changeset 2511575


Ignore:
Timestamp:
04/08/2021 03:49:51 PM (5 years ago)
Author:
ced1870
Message:

2.2.14

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tooltip-ck/trunk/includes/class.front.php

    r2511574 r2511575  
    8787
    8888    function search_key($content){
     89        $bypass = false;
    8990        // check for the Amp plugin
    9091        if (function_exists( 'ampforwp_is_amp_endpoint' ) && ampforwp_is_amp_endpoint()) {
     
    9394            $content = str_replace('{end-text}', '</span><i>', $content);
    9495            $content = str_replace('{end-tooltip}', '</i>', $content);
    95             return $content;
     96            $bypass = true;
    9697        }
    9798        // simple check, if the class is not instanciated, then nothing to do here
    98         if (! $this->fields) return $content;
     99        if (! $this->fields) $bypass = true;
    99100        // check for feed
    100         if (is_feed()) return $content;
     101        if (is_feed()) $bypass = true;
    101102        // check for Divi
    102103        $isDivi = isset($_REQUEST['page']) && $_REQUEST['page'] === 'et_theme_builder';
    103         if ($isDivi) return $content;
     104        if ($isDivi) $bypass = true;
     105
     106        if ($bypass == true) return $content;
    104107
    105108        // test if the plugin is needed
Note: See TracChangeset for help on using the changeset viewer.