Plugin Directory

Changeset 1659486


Ignore:
Timestamp:
05/17/2017 03:33:35 PM (9 years ago)
Author:
modeewine
Message:

New version 3.4.

  • Fixed small bug in the search-engine of strings-translation.
  • Added file size limit in the theme-files search-system.
Location:
polylang-theme-strings
Files:
10 added
2 edited

Legend:

Unmodified
Added
Removed
  • polylang-theme-strings/trunk/mw-polylang-theme-strings.php

    r1581815 r1659486  
    55    Plugin URI: http://modeewine.com/en-polylang-theme-strings
    66    Description: Automatic scanning of strings translation in the theme and registration of them in Polylang plugin. Extension for Polylang plugin.
    7     Version: 3.3.2
     7    Version: 3.4
    88    Author: Modeewine
    99    Author URI: http://modeewine.com
     
    1616    {
    1717        static $prefix = 'mw_polylang_strings_';
    18         static $plugin_version = '3.3.2';
     18        static $plugin_version = '3.4';
    1919        static $pll_f = 'pll_register_string';
     20        static $php_file_size_limit = 2097152;
    2021        private $paths;
    2122        private $var = array();
     
    212213                    $f = $dir . '/' . $item;
    213214
    214                     if (is_file($f))
     215                    if (is_file($f) && filesize($f) <= self::$php_file_size_limit)
    215216                    {
    216217                        $files[] = $f;
     
    283284                                    foreach ($p[0] as $pv)
    284285                                    {
    285                                         preg_match_all("/pll_[_e][\s]*\([\s]*[\'\"](.*?)[\'\"][\s]*\)/uis", $pv, $m);
     286                                        preg_match_all("/pll_[_e][\s]*\([\s]*[\'\"](.*?)[\'\"][\s]*[\),]/uis", $pv, $m);
    286287
    287288                                        if (count($m[0]))
  • polylang-theme-strings/trunk/readme.txt

    r1581815 r1659486  
    55Requires at least: 3.8
    66Tested up to: 4.7
    7 Stable tag: 3.3.2
     7Stable tag: 3.4
    88License: GPL2
    99
     
    4545
    4646== Changelog ==
     47
     48= 3.4 (2017-05-17) =
     49
     50* Fixed small bug in the search-engine of strings-translation.
     51* Added file size limit in the theme-files search-system.
    4752
    4853= 3.3.2 (2017-01-25) =
Note: See TracChangeset for help on using the changeset viewer.