Plugin Directory

Changeset 3424963


Ignore:
Timestamp:
12/21/2025 11:44:22 PM (3 months ago)
Author:
Genoo
Message:

Release $SOURCE_TAG

Location:
genoo/trunk
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • genoo/trunk/Genoo.php

    r3241017 r3424963  
    66    Author URI: http://www.genoo.com/
    77    Author Email: info@genoo.com
    8     Version: 6.0.22
     8    Version: 6.0.23
    99    License: GPLv2
    1010    Text Domain: genoo
  • genoo/trunk/libs/Genoo/Admin.php

    r3198455 r3424963  
    6464    var $repositaryCTAs;
    6565    /** @var \WPME\Extensions\RepositorySurveys */
    66     var $repositorySurveys;
     66    var $repositarySurveys;
    6767    /** @var \WPMKTENGINE\RepositoryUser */
    6868    var $user;
     
    7979    /** @var \WPMKTENGINE\TablePages */
    8080    var $tablePages;
     81    /** @var \WPME\Extensions\TableSurveys */
     82    var $tableSurveys;
    8183
    8284
  • genoo/trunk/libs/Genoo/Frontend.php

    r2902098 r3424963  
    4141    /** @var Cache */
    4242    var $cache;
     43    /** @var bool */
     44    var $hasMultipleCTAs = false;
    4345
    4446    /**
  • genoo/trunk/libs/WPME/Extensions/Clever/Plugins.php

    r2901505 r3424963  
    3737    /** @var array  */
    3838    var $installedPlugins = array();
     39
     40    /** @var \WPME\Nag\Nag */
     41    var $nag;
    3942
    4043    /** @var array */
     
    106109      // If it's a plugin, that is not our own, and remote
    107110      // one hosted in a repo, return regular response.
    108       if(!in_array($args->slug, $this->remotePlugins)){
     111      if(!isset($args->slug) || !in_array($args->slug, $this->remotePlugins)){
    109112        return $res;
    110113      }
  • genoo/trunk/libs/WPME/Nag/Nag.php

    r1678278 r3424963  
    3535    /** @var \WPMKTENGINE\Wordpress\Nag  */
    3636    public $dummyNag;
     37
     38    /** @var \WPMKTENGINE\RepositoryUser  */
     39    public $userRepository;
    3740
    3841    /**
  • genoo/trunk/libs/WPMKTENGINE/Cache.php

    r2191137 r3424963  
    320320        $this->cacheDir   = $data['cacheDir'];
    321321        $this->cacheName  = $data['cacheName'];
    322         $this->_cache_tinme = $data['cacheTime'];
     322        $this->cacheTime = $data['cacheTime'];
    323323        $this->hardFind   = $data['hardFind'];
    324324        return $this;
  • genoo/trunk/libs/WPMKTENGINE/HtmlForm.php

    r1784533 r3424963  
    4141    /** @var string */
    4242    private $validator;
     43    /** @var \DOMElement|null */
     44    private $msg;
    4345    /** @var int */
    4446    static $count = 1;
  • genoo/trunk/libs/WPMKTENGINE/RepositoryLumens.php

    r2191137 r3424963  
    5151     */
    5252    private $api;
     53
     54    /**
     55     * @var bool
     56     */
     57    private $empty = false;
    5358
    5459    const REPO_TIMER = '3600';
  • genoo/trunk/libs/WPMKTENGINE/Table.php

    r2243769 r3424963  
    4040    var $screen;
    4141    /** @var string */
     42    var $screenId;
     43    /** @var bool */
     44    var $screenOptions;
     45    /** @var int|false */
     46    var $userPerpage;
     47    /** @var int */
     48    var $perPage;
     49    /** @var string */
    4250    var $searchQuery;
     51    /** @var array */
     52    var $found_data;
    4353
    4454    /**
  • genoo/trunk/libs/WPMKTENGINE/Utils/Strings.php

    r2761864 r3424963  
    175175    public static function toAscii($s)
    176176    {
     177        if ($s === null) {
     178            return '';
     179        }
    177180        $s = \preg_replace('#[^\x09\x0A\x0D\x20-\x7E\xA0-\x{2FF}\x{370}-\x{10FFFF}]#u', '', $s);
    178181        $s = \strtr($s, '`\'"^~', "\x01\x02\x03\x04\x05");
     
    371374    public static function length($s)
    372375    {
    373         return strlen(utf8_decode($s)); // fastest way
     376        // mb_strlen is the modern replacement for utf8_decode (deprecated PHP 8.2+)
     377        if (function_exists('mb_strlen')) {
     378            return mb_strlen($s, 'UTF-8');
     379        }
     380        // Fallback for systems without mbstring
     381        return strlen($s);
    374382    }
    375383
  • genoo/trunk/libs/WPMKTENGINE/Wordpress/Metabox.php

    r2549300 r3424963  
    149149        if(is_array($this->fields) && !empty($this->fields)){
    150150            foreach($this->fields as $field){
    151                 $fieldId = isset($field['id']) ? $field['id'] : str_replace('-', '_', Strings::lower(Strings::webalize($field['label'])));
    152                 if(isset($field['type']) && (isset($field['label']))){
     151                if (!is_array($field)) {
     152                    continue;
     153                }
     154                $fieldLabel = isset($field['label']) ? $field['label'] : '';
     155                $fieldId = isset($field['id']) ? $field['id'] : str_replace('-', '_', Strings::lower(Strings::webalize($fieldLabel)));
     156                if(isset($field['type']) && !empty($fieldLabel)){
    153157                    $fieldRow = '<tr class="themeMetaboxRow" id="themeMetaboxRow'. $fieldId .'" >';
    154158                    $fieldValue = get_post_meta($post->ID, $fieldId, true);
     
    171175                }
    172176                if(isset($field['atts']) && is_array($field['atts'])){ foreach($field['atts'] as $key => $value){ $fieldAtts .= ' '. $key .'="'. $value .'" '; } }
     177                if (!isset($field['type'])) {
     178                    continue;
     179                }
    173180                switch($field['type']){
    174181                    case 'text':
  • genoo/trunk/libs/WPMKTENGINE/Wordpress/MetaboxCTA.php

    r1603735 r3424963  
    3838    /** @var  */
    3939    var $ctas;
     40    /** @var array */
     41    var $fields;
     42    /** @var array */
     43    var $fieldsSanatized;
    4044
    4145
  • genoo/trunk/libs/WPMKTENGINE/Wordpress/Settings.php

    r1801692 r3424963  
    138138                if (false == get_option($section['id'])){ add_option($section['id']); }
    139139                if (isset($section['desc']) && !empty($section['desc'])){
    140                     $section['desc'] = '<div class="inside">'.$section['desc'].'</div>';
    141                     $callback = create_function('', 'echo "'.str_replace('"', '\"', $section['desc']).'";');
     140                    $sectionDesc = '<div class="inside">'.$section['desc'].'</div>';
     141                    $callback = function() use ($sectionDesc) {
     142                        echo $sectionDesc;
     143                    };
    142144                } else {
    143145                    $callback = '__return_false';
  • genoo/trunk/libs/WPMKTENGINE/Wordpress/TableLite.php

    r2761864 r3424963  
    9595     */
    9696    protected $modes = array();
     97
     98    /**
     99     * Stores column headers info
     100     *
     101     * @since 3.1.0
     102     * @var array
     103     * @access protected
     104     */
     105    protected $_column_headers;
    97106
    98107    /**
  • genoo/trunk/libs/WPMKTENGINE/Wordpress/Utils.php

    r2761864 r3424963  
    163163    public static function underscoreToCamelCase($string, $firstCaps = true)
    164164    {
    165         if($firstCaps == true){$string[0] = strtoupper($string[0]); } $func = create_function('$c', 'return strtoupper($c[1]);');
    166         return preg_replace_callback('/_([a-z])/', $func, $string);
     165        if ($firstCaps == true) {
     166            $string[0] = strtoupper($string[0]);
     167        }
     168        return preg_replace_callback('/_([a-z])/', function($c) {
     169            return strtoupper($c[1]);
     170        }, $string);
    167171    }
    168172
  • genoo/trunk/readme.txt

    r3241017 r3424963  
    33Tags: marketing automation, email marketing, centralized lead database, lead capture forms
    44Requires at least: 4.6
    5 Tested up to: 6.7.2
     5Tested up to: 6.9
    66License: GPLv2 or later
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
    8 Stable tag: 6.0.22
     8Stable tag: 6.0.23
    99
    1010Combine the flexibility of WordPress with the power of Genoo and experience amazing results!
     
    3535
    36361. Wordpress at least version 3.3
    37 2. PHP at least version 5.3.1
     372. PHP at least version 7.4
    38383. PHP DOMDocument extension
    39394. Active Genoo account (http://www.genoo.com)
     
    7070== Changelog ==
    7171
     72= 6.0.23 =
     73* PHP 8.0/8.1/8.2+ compatibility fixes
     74* Replaced deprecated utf8_decode() function
     75* Replaced removed create_function() calls with closures
     76* Fixed dynamic property deprecation warnings
     77* Fixed null value warnings in strict mode
     78* Fixed typo in Cache.php
     79
    7280= 6.0.22 =
    7381* Fixed issue with PageBuilder pages (templates) being cleared from cache prior to being refreshed, and pages not able to display.
Note: See TracChangeset for help on using the changeset viewer.