Plugin Directory

Changeset 3019875


Ignore:
Timestamp:
01/10/2024 02:00:01 PM (2 years ago)
Author:
PerS
Message:

Update to version 2.2.4 from GitHub

Location:
a-faster-load-textdomain
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • a-faster-load-textdomain/tags/2.2.4/a-faster-load-textdomain.php

    r3007494 r3019875  
    22/**
    33 * Plugin Name: A faster load_textdomain
    4  * Version: 2.2.3
     4 * Version: 2.2.4
    55 * Description: Cache the .mo file as an PHP array, and load the array instead of the .mo file.
    66 * Author: Per Soderlind
     
    5555    $cache_handler = new \AFLD_CacheHandler( $cache_path, 'mo' );
    5656
     57    if ( $cache_handler->failed ) {
     58        // If the cache directory could not be created, return false.
     59        return false;
     60    }
     61
    5762    // Get the cached data for the MO file.
    5863    $data = $cache_handler->get_cache_data( $mofile );
  • a-faster-load-textdomain/tags/2.2.4/includes/class-afld-cachehandler.php

    r3007494 r3019875  
    1717 */
    1818class AFLD_CacheHandler {
     19
     20    /**
     21     * Whether the cache path could be created.
     22     *
     23     * @var bool
     24     */
     25    public $failed = false;
     26
    1927    /**
    2028     * Path to the cache directory.
     
    4654     *
    4755     * @param string $cache_path Path to the cache directory.
    48      * @throws \InvalidArgumentException If an invalid cache path is provided.
    4956     */
    5057    private function set_cache_path( $cache_path ) {
    51         if ( ! is_dir( $cache_path ) ) {
    52             throw new \InvalidArgumentException( 'Invalid cache path provided' );
    53         }
     58        // Ensure cache directory exists.
     59        $this->failed = ! wp_mkdir_p( $cache_path );
    5460
    5561        $this->cache_path = $cache_path;
  • a-faster-load-textdomain/tags/2.2.4/readme.txt

    r3007494 r3019875  
    55Requires PHP: 7.4
    66Tested up to: 6.4
    7 Stable tag: 2.2.3
     7Stable tag: 2.2.4
    88Donate link: https://paypal.me/PerSoderlind
    99License: GPLv2 or later
     
    5858
    5959== Changelog ==
     60
     61= 2.2.4 =
     62
     63* Fail gracefully if  cache directory can't be created.
    6064
    6165= 2.2.3 =
  • a-faster-load-textdomain/trunk/a-faster-load-textdomain.php

    r3007494 r3019875  
    22/**
    33 * Plugin Name: A faster load_textdomain
    4  * Version: 2.2.3
     4 * Version: 2.2.4
    55 * Description: Cache the .mo file as an PHP array, and load the array instead of the .mo file.
    66 * Author: Per Soderlind
     
    5555    $cache_handler = new \AFLD_CacheHandler( $cache_path, 'mo' );
    5656
     57    if ( $cache_handler->failed ) {
     58        // If the cache directory could not be created, return false.
     59        return false;
     60    }
     61
    5762    // Get the cached data for the MO file.
    5863    $data = $cache_handler->get_cache_data( $mofile );
  • a-faster-load-textdomain/trunk/includes/class-afld-cachehandler.php

    r3007494 r3019875  
    1717 */
    1818class AFLD_CacheHandler {
     19
     20    /**
     21     * Whether the cache path could be created.
     22     *
     23     * @var bool
     24     */
     25    public $failed = false;
     26
    1927    /**
    2028     * Path to the cache directory.
     
    4654     *
    4755     * @param string $cache_path Path to the cache directory.
    48      * @throws \InvalidArgumentException If an invalid cache path is provided.
    4956     */
    5057    private function set_cache_path( $cache_path ) {
    51         if ( ! is_dir( $cache_path ) ) {
    52             throw new \InvalidArgumentException( 'Invalid cache path provided' );
    53         }
     58        // Ensure cache directory exists.
     59        $this->failed = ! wp_mkdir_p( $cache_path );
    5460
    5561        $this->cache_path = $cache_path;
  • a-faster-load-textdomain/trunk/readme.txt

    r3007494 r3019875  
    55Requires PHP: 7.4
    66Tested up to: 6.4
    7 Stable tag: 2.2.3
     7Stable tag: 2.2.4
    88Donate link: https://paypal.me/PerSoderlind
    99License: GPLv2 or later
     
    5858
    5959== Changelog ==
     60
     61= 2.2.4 =
     62
     63* Fail gracefully if  cache directory can't be created.
    6064
    6165= 2.2.3 =
Note: See TracChangeset for help on using the changeset viewer.