Changeset 2511575
- Timestamp:
- 04/08/2021 03:49:51 PM (5 years ago)
- File:
-
- 1 edited
-
tooltip-ck/trunk/includes/class.front.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tooltip-ck/trunk/includes/class.front.php
r2511574 r2511575 87 87 88 88 function search_key($content){ 89 $bypass = false; 89 90 // check for the Amp plugin 90 91 if (function_exists( 'ampforwp_is_amp_endpoint' ) && ampforwp_is_amp_endpoint()) { … … 93 94 $content = str_replace('{end-text}', '</span><i>', $content); 94 95 $content = str_replace('{end-tooltip}', '</i>', $content); 95 return $content;96 $bypass = true; 96 97 } 97 98 // 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; 99 100 // check for feed 100 if (is_feed()) return $content;101 if (is_feed()) $bypass = true; 101 102 // check for Divi 102 103 $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; 104 107 105 108 // test if the plugin is needed
Note: See TracChangeset
for help on using the changeset viewer.