Plugin Directory

Changeset 3140919


Ignore:
Timestamp:
08/24/2024 11:32:24 PM (19 months ago)
Author:
Epsiloncool
Message:

1.77.256

  • Fixed a problem with memory_limit value conversion when it's given in Gigabytes (G).
  • Fixed a problem with "style" and "script" tags removal from the indexing when the corresponding option is set.
Location:
fulltext-search/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • fulltext-search/trunk/fulltext-search.php

    r3137131 r3140919  
    44Plugin Name: WP Fast Total Search - The Power of Indexed Search
    55Description: Extends the default search with relevance, jet speed and ability to search any posts, metadata, taxonomy, shortcode content and any piece of the wordpress data. No external software/service required.
    6 Version: 1.76.254
     6Version: 1.77.256
    77Tested up to: 6.6.1
    88Author: Epsiloncool
     
    3838 *  @copyright 2013-2024
    3939 *  @license GPLv3
    40  *  @version 1.76.254
     40 *  @version 1.77.256
    4141 *  @package WP Fast Total Search
    4242 *  @author Epsiloncool <info@e-wm.org>
     
    5757 */
    5858
    59 define('WPFTS_VERSION', '1.76.254');
     59define('WPFTS_VERSION', '1.77.256');
    6060
    6161if (file_exists(dirname(__FILE__).'/extensions/index.php')) {
  • fulltext-search/trunk/includes/wpfts_core.php

    r3133341 r3140919  
    13331333        $matches = array();
    13341334        if (preg_match('/^(\d+)(.)$/', $memory_limit, $matches)) {
    1335             if ($matches[2] == 'M') {
     1335            $letter = strtoupper($matches[2]);
     1336            if ($letter == 'G') {
     1337                $memory_limit = $matches[1] * 1024 * 1024 * 1024; // nnnG -> nnn GB
     1338            } elseif($letter == 'M') {
    13361339                $memory_limit = $matches[1] * 1024 * 1024; // nnnM -> nnn MB
    1337             } else if ($matches[2] == 'K') {
     1340            } elseif ($letter == 'K') {
    13381341                $memory_limit = $matches[1] * 1024; // nnnK -> nnn KB
    13391342            }
    13401343        }
    1341        
     1344        if (!is_numeric($memory_limit)) {
     1345            $memory_limit = intval($memory_limit);
     1346        }
     1347
    13421348        return $memory_limit;
    13431349    }
     
    16081614            }
    16091615            if ($is_on) {
    1610                 if (isset($opts['nodes'])) {
    1611                     if (in_array('script', $opts['nodes'])) {
     1616                if (isset($opts['node'])) {
     1617                    if (in_array('script', $opts['node'])) {
    16121618                        // Remove <script> with content
    16131619                        $s = preg_replace('/<script\b[^>]*>(.*?)<\/script>/is', "", $s);                       
    16141620                    }
    1615                     if (in_array('style', $opts['nodes'])) {
     1621                    if (in_array('style', $opts['node'])) {
    16161622                        // Remove <style> with content
    16171623                        $s = preg_replace('/<style\b[^>]*>(.*?)<\/style>/is', "", $s);
  • fulltext-search/trunk/readme.txt

    r3137131 r3140919  
    44Requires at least: 5.0
    55Tested up to: 6.6.1
    6 Stable tag: 1.76.254
     6Stable tag: 1.77.256
    77License: GPLv3
    88License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    9191
    9292== Changelog ==
     93
     94= 1.77.256 =
     95* Fixed a problem with memory_limit value conversion when it's given in Gigabytes (G).
     96* Fixed a problem with "style" and "script" tags removal from the indexing when the corresponding option is set.
    9397
    9498= 1.76.254 =
Note: See TracChangeset for help on using the changeset viewer.