Plugin Directory

Changeset 3687570


Ignore:
Timestamp:
09/09/2026 04:34:34 AM (3 months ago)
Author:
premiocommit
Message:

Update to version 3.2.0 from GitHub

Location:
folders
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • folders/tags/3.2.0/folders.php

    r3543186 r3687570  
    33 * Plugin Name: Folders
    44 * Description: Organize your Media library, Pages, and Posts into folders. You can easily drag and drop items into directories and change the folders tree view.
    5  * Version: 3.1.9
     5 * Version: 3.2.0
    66 * Author: Premio
    77 * Author URI: https://premio.io/downloads/folders/
    … …  
    2929}
    3030if(!defined("WCP_FOLDER_VERSION")) {
    31     define('WCP_FOLDER_VERSION', "3.1.9");
     31    define('WCP_FOLDER_VERSION', "3.2.0");
    3232}
    3333if(!defined("IS_FOLDERS_DEVELOPER_MODE")) {
    … …  
    7272            } else if (class_exists("autoptimizeCache") && method_exists("autoptimizeCache", "clearall")) {
    7373                autoptimizeCache::clearall();
    74             } else if (class_exists("LiteSpeed_Cache_API") && method_exists("autoptimizeCache", "purge_all")) {
     74            } else if (class_exists("LiteSpeed_Cache_API") && method_exists("LiteSpeed_Cache_API", "purge_all")) {
    7575                LiteSpeed_Cache_API::purge_all();
    7676            }
  • folders/tags/3.2.0/includes/folders.class.php

    r3523235 r3687570  
    31803180                $post_type = self::get_custom_post_type($type);
    31813181                foreach ($postArray as $post) {
     3182                    if (!is_numeric($post) || $post <= 0) {
     3183                        continue;
     3184                    }
     3185                    $post = absint($post);
     3186
    31823187                    $terms      = get_the_terms($post, $post_type);
    31833188                    $post_terms = [
  • folders/tags/3.2.0/includes/media.replace.php

    r3402986 r3687570  
    16201620     */
    16211621    function findAndReplaceContent($content, $search, $replace, $depth = false) {
    1622         $content = maybe_unserialize($content);
     1622        if ($depth === false && is_serialized($content)) {
     1623            $unserialized = @unserialize(trim($content), array('allowed_classes' => false));
     1624            if ($unserialized !== false || trim($content) === 'b:0;') {
     1625                $content = $unserialized;
     1626            }
     1627        }
    16231628
    16241629        // Checking for JSON Data
  • folders/tags/3.2.0/readme.txt

    r3677130 r3687570  
    44Requires at least: 4.7
    55Tested up to: 7.1
    6 Stable tag: 3.1.9
     6Stable tag: 3.2.0
    77Plugin URI: https://premio.io/downloads/folders/
    88License: GPLv3
    … …  
    225225== Changelog ==
    226226
     227= 3.2.0 =
     228Media replace bug fixed
     229
    227230= 3.1.9 =
    228231PHP 8.4 deprecation warnings fixed
  • folders/trunk/folders.php

    r3543186 r3687570  
    33 * Plugin Name: Folders
    44 * Description: Organize your Media library, Pages, and Posts into folders. You can easily drag and drop items into directories and change the folders tree view.
    5  * Version: 3.1.9
     5 * Version: 3.2.0
    66 * Author: Premio
    77 * Author URI: https://premio.io/downloads/folders/
    … …  
    2929}
    3030if(!defined("WCP_FOLDER_VERSION")) {
    31     define('WCP_FOLDER_VERSION', "3.1.9");
     31    define('WCP_FOLDER_VERSION', "3.2.0");
    3232}
    3333if(!defined("IS_FOLDERS_DEVELOPER_MODE")) {
    … …  
    7272            } else if (class_exists("autoptimizeCache") && method_exists("autoptimizeCache", "clearall")) {
    7373                autoptimizeCache::clearall();
    74             } else if (class_exists("LiteSpeed_Cache_API") && method_exists("autoptimizeCache", "purge_all")) {
     74            } else if (class_exists("LiteSpeed_Cache_API") && method_exists("LiteSpeed_Cache_API", "purge_all")) {
    7575                LiteSpeed_Cache_API::purge_all();
    7676            }
  • folders/trunk/includes/folders.class.php

    r3523235 r3687570  
    31803180                $post_type = self::get_custom_post_type($type);
    31813181                foreach ($postArray as $post) {
     3182                    if (!is_numeric($post) || $post <= 0) {
     3183                        continue;
     3184                    }
     3185                    $post = absint($post);
     3186
    31823187                    $terms      = get_the_terms($post, $post_type);
    31833188                    $post_terms = [
  • folders/trunk/includes/media.replace.php

    r3402986 r3687570  
    16201620     */
    16211621    function findAndReplaceContent($content, $search, $replace, $depth = false) {
    1622         $content = maybe_unserialize($content);
     1622        if ($depth === false && is_serialized($content)) {
     1623            $unserialized = @unserialize(trim($content), array('allowed_classes' => false));
     1624            if ($unserialized !== false || trim($content) === 'b:0;') {
     1625                $content = $unserialized;
     1626            }
     1627        }
    16231628
    16241629        // Checking for JSON Data
  • folders/trunk/readme.txt

    r3677130 r3687570  
    44Requires at least: 4.7
    55Tested up to: 7.1
    6 Stable tag: 3.1.9
     6Stable tag: 3.2.0
    77Plugin URI: https://premio.io/downloads/folders/
    88License: GPLv3
    … …  
    225225== Changelog ==
    226226
     227= 3.2.0 =
     228Media replace bug fixed
     229
    227230= 3.1.9 =
    228231PHP 8.4 deprecation warnings fixed
Note: See TracChangeset for help on using the changeset viewer.