Plugin Directory

Changeset 3121979


Ignore:
Timestamp:
07/19/2024 10:57:08 AM (17 months ago)
Author:
PerS
Message:

Update to version 2.3.2 from GitHub

Location:
a-faster-load-textdomain
Files:
2 added
8 edited
1 copied

Legend:

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

    r3101663 r3121979  
    22/**
    33 * Plugin Name: A faster load_textdomain
    4  * Version: 2.3.1
     4 * Version: 2.3.2
    55 * Description: Cache the .mo file as an PHP array, and load the array instead of the .mo file.
    66 * Author: Per Soderlind
     
    112112}
    113113if ( version_compare( $GLOBALS['wp_version'], '6.5', '>=' ) ) {
    114     // admin messages
     114    // admin messages.
    115115    \add_action(
    116116        'admin_notices',
  • a-faster-load-textdomain/tags/2.3.2/includes/class-afld-cachehandler.php

    r3101663 r3121979  
    5454     *
    5555     * @param string $cache_path Path to the cache directory.
     56     * @return void
    5657     */
    5758    private function set_cache_path( $cache_path ) {
     
    6768     * @param string $cache_file_prefix Prefix for cache files.
    6869     * @throws \InvalidArgumentException If an invalid cache file prefix is provided.
     70     * @return void
    6971     */
    7072    private function set_cache_file_prefix( $cache_file_prefix ) {
     
    113115     * @param mixed  $data Data to cache.
    114116     * @param string $str_class Translation_Entry class name.
     117     * @return void
    115118     */
    116119    public function update_cache_data( $file, $data, $str_class = 'Translation_Entry' ) {
  • a-faster-load-textdomain/tags/2.3.2/includes/class-translation-entry.php

    r2999628 r3121979  
    1818class Translation_Entry extends \Translation_Entry {
    1919
    20     /**
    21      * Constructor.
    22      *
    23      * @param array $args {
    24      *     Optional. Array of arguments for the translation entry.
    25      *
    26      *     @type string $singular Singular form of the string.
    27      *     @type string $plural   Plural form of the string.
    28      *     @type string $context  Context information for the translators.
    29      *     @type string $domain   Text domain. Unique identifier for retrieving translated strings.
    30      *     @type string $context  Context information for the translators.
    31      *     @type string $translations {
    32      *         Optional. Array of translations for different plural forms.
    33      *
    34      *         @type string $singular Singular form of the string.
    35      *         @type string $plural   Plural form of the string.
    36      *     }
    37      * }
    38      */
     20
     21        /**
     22         * Constructor for the Translation_Entry class.
     23         *
     24         * @param array<string, mixed> $args Arguments array.
     25         *
     26         * @return \Translation_Entry
     27         */
    3928    public static function __set_state( $args ) {
    4029        return new \Translation_Entry( $args );
  • a-faster-load-textdomain/tags/2.3.2/readme.txt

    r3101663 r3121979  
    55Requires PHP: 7.4
    66Tested up to: 6.4
    7 Stable tag: 2.3.1
     7Stable tag: 2.3.2
    88Donate link: https://paypal.me/PerSoderlind
    99License: GPLv2 or later
  • a-faster-load-textdomain/trunk/a-faster-load-textdomain.php

    r3101663 r3121979  
    22/**
    33 * Plugin Name: A faster load_textdomain
    4  * Version: 2.3.1
     4 * Version: 2.3.2
    55 * Description: Cache the .mo file as an PHP array, and load the array instead of the .mo file.
    66 * Author: Per Soderlind
     
    112112}
    113113if ( version_compare( $GLOBALS['wp_version'], '6.5', '>=' ) ) {
    114     // admin messages
     114    // admin messages.
    115115    \add_action(
    116116        'admin_notices',
  • a-faster-load-textdomain/trunk/includes/class-afld-cachehandler.php

    r3101663 r3121979  
    5454     *
    5555     * @param string $cache_path Path to the cache directory.
     56     * @return void
    5657     */
    5758    private function set_cache_path( $cache_path ) {
     
    6768     * @param string $cache_file_prefix Prefix for cache files.
    6869     * @throws \InvalidArgumentException If an invalid cache file prefix is provided.
     70     * @return void
    6971     */
    7072    private function set_cache_file_prefix( $cache_file_prefix ) {
     
    113115     * @param mixed  $data Data to cache.
    114116     * @param string $str_class Translation_Entry class name.
     117     * @return void
    115118     */
    116119    public function update_cache_data( $file, $data, $str_class = 'Translation_Entry' ) {
  • a-faster-load-textdomain/trunk/includes/class-translation-entry.php

    r2999628 r3121979  
    1818class Translation_Entry extends \Translation_Entry {
    1919
    20     /**
    21      * Constructor.
    22      *
    23      * @param array $args {
    24      *     Optional. Array of arguments for the translation entry.
    25      *
    26      *     @type string $singular Singular form of the string.
    27      *     @type string $plural   Plural form of the string.
    28      *     @type string $context  Context information for the translators.
    29      *     @type string $domain   Text domain. Unique identifier for retrieving translated strings.
    30      *     @type string $context  Context information for the translators.
    31      *     @type string $translations {
    32      *         Optional. Array of translations for different plural forms.
    33      *
    34      *         @type string $singular Singular form of the string.
    35      *         @type string $plural   Plural form of the string.
    36      *     }
    37      * }
    38      */
     20
     21        /**
     22         * Constructor for the Translation_Entry class.
     23         *
     24         * @param array<string, mixed> $args Arguments array.
     25         *
     26         * @return \Translation_Entry
     27         */
    3928    public static function __set_state( $args ) {
    4029        return new \Translation_Entry( $args );
  • a-faster-load-textdomain/trunk/readme.txt

    r3101663 r3121979  
    55Requires PHP: 7.4
    66Tested up to: 6.4
    7 Stable tag: 2.3.1
     7Stable tag: 2.3.2
    88Donate link: https://paypal.me/PerSoderlind
    99License: GPLv2 or later
Note: See TracChangeset for help on using the changeset viewer.