| @@ -1,12 +1,12 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * @package FirePlugins Framework |
| 4 | - * @version 1.0.13 | |
| 4 | + * @version 1.1.132 | |
| 5 | 5 | * |
| 6 | 6 | * @author FirePlugins <[email protected]> |
| 7 | 7 | * @link https://www.fireplugins.com |
| 8 | - * @copyright Copyright © 2021 FirePlugins All Rights Reserved | |
| 8 | + * @copyright Copyright © 2025 FirePlugins All Rights Reserved | |
| 9 | 9 | * @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | namespace FPFramework\Base; |
| @@ -180,28 +180,8 @@ | ||
| 180 | 180 | // set cache |
| 181 | 181 | wp_cache_set($hash, $parent_ids); |
| 182 | 182 | |
| 183 | 183 | return $parent_ids; |
| 184 | - } | |
| 185 | - | |
| 186 | - /** | |
| 187 | - * Checks if an array of values (needle) exists in a text (haystack) | |
| 188 | - * | |
| 189 | - * @param array $needle The searched array of values. | |
| 190 | - * @param string $haystack The text | |
| 191 | - * | |
| 192 | - * @return bool | |
| 193 | - */ | |
| 194 | - public function passArrayInString($needle, $haystack) | |
| 195 | - { | |
| 196 | - if (empty($needle) || empty($haystack)) | |
| 197 | - { | |
| 198 | - return false; | |
| 199 | - } | |
| 200 | - | |
| 201 | - $needle = $this->splitKeywords($needle); | |
| 202 | - | |
| 203 | - return \FPFramework\Libs\Functions::strpos_arr($needle, $haystack); | |
| 204 | 184 | } |
| 205 | 185 | |
| 206 | 186 | /** |
| 207 | 187 | * Makes array from object |