Changeset 3121979
- Timestamp:
- 07/19/2024 10:57:08 AM (17 months ago)
- Location:
- a-faster-load-textdomain
- Files:
-
- 2 added
- 8 edited
- 1 copied
-
tags/2.3.2 (copied) (copied from a-faster-load-textdomain/trunk)
-
tags/2.3.2/a-faster-load-textdomain.php (modified) (2 diffs)
-
tags/2.3.2/includes/class-afld-cachehandler.php (modified) (3 diffs)
-
tags/2.3.2/includes/class-translation-entry.php (modified) (1 diff)
-
tags/2.3.2/phpstan.neon (added)
-
tags/2.3.2/readme.txt (modified) (1 diff)
-
trunk/a-faster-load-textdomain.php (modified) (2 diffs)
-
trunk/includes/class-afld-cachehandler.php (modified) (3 diffs)
-
trunk/includes/class-translation-entry.php (modified) (1 diff)
-
trunk/phpstan.neon (added)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
a-faster-load-textdomain/tags/2.3.2/a-faster-load-textdomain.php
r3101663 r3121979 2 2 /** 3 3 * Plugin Name: A faster load_textdomain 4 * Version: 2.3. 14 * Version: 2.3.2 5 5 * Description: Cache the .mo file as an PHP array, and load the array instead of the .mo file. 6 6 * Author: Per Soderlind … … 112 112 } 113 113 if ( version_compare( $GLOBALS['wp_version'], '6.5', '>=' ) ) { 114 // admin messages 114 // admin messages. 115 115 \add_action( 116 116 'admin_notices', -
a-faster-load-textdomain/tags/2.3.2/includes/class-afld-cachehandler.php
r3101663 r3121979 54 54 * 55 55 * @param string $cache_path Path to the cache directory. 56 * @return void 56 57 */ 57 58 private function set_cache_path( $cache_path ) { … … 67 68 * @param string $cache_file_prefix Prefix for cache files. 68 69 * @throws \InvalidArgumentException If an invalid cache file prefix is provided. 70 * @return void 69 71 */ 70 72 private function set_cache_file_prefix( $cache_file_prefix ) { … … 113 115 * @param mixed $data Data to cache. 114 116 * @param string $str_class Translation_Entry class name. 117 * @return void 115 118 */ 116 119 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 18 18 class Translation_Entry extends \Translation_Entry { 19 19 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 */ 39 28 public static function __set_state( $args ) { 40 29 return new \Translation_Entry( $args ); -
a-faster-load-textdomain/tags/2.3.2/readme.txt
r3101663 r3121979 5 5 Requires PHP: 7.4 6 6 Tested up to: 6.4 7 Stable tag: 2.3. 17 Stable tag: 2.3.2 8 8 Donate link: https://paypal.me/PerSoderlind 9 9 License: GPLv2 or later -
a-faster-load-textdomain/trunk/a-faster-load-textdomain.php
r3101663 r3121979 2 2 /** 3 3 * Plugin Name: A faster load_textdomain 4 * Version: 2.3. 14 * Version: 2.3.2 5 5 * Description: Cache the .mo file as an PHP array, and load the array instead of the .mo file. 6 6 * Author: Per Soderlind … … 112 112 } 113 113 if ( version_compare( $GLOBALS['wp_version'], '6.5', '>=' ) ) { 114 // admin messages 114 // admin messages. 115 115 \add_action( 116 116 'admin_notices', -
a-faster-load-textdomain/trunk/includes/class-afld-cachehandler.php
r3101663 r3121979 54 54 * 55 55 * @param string $cache_path Path to the cache directory. 56 * @return void 56 57 */ 57 58 private function set_cache_path( $cache_path ) { … … 67 68 * @param string $cache_file_prefix Prefix for cache files. 68 69 * @throws \InvalidArgumentException If an invalid cache file prefix is provided. 70 * @return void 69 71 */ 70 72 private function set_cache_file_prefix( $cache_file_prefix ) { … … 113 115 * @param mixed $data Data to cache. 114 116 * @param string $str_class Translation_Entry class name. 117 * @return void 115 118 */ 116 119 public function update_cache_data( $file, $data, $str_class = 'Translation_Entry' ) { -
a-faster-load-textdomain/trunk/includes/class-translation-entry.php
r2999628 r3121979 18 18 class Translation_Entry extends \Translation_Entry { 19 19 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 */ 39 28 public static function __set_state( $args ) { 40 29 return new \Translation_Entry( $args ); -
a-faster-load-textdomain/trunk/readme.txt
r3101663 r3121979 5 5 Requires PHP: 7.4 6 6 Tested up to: 6.4 7 Stable tag: 2.3. 17 Stable tag: 2.3.2 8 8 Donate link: https://paypal.me/PerSoderlind 9 9 License: GPLv2 or later
Note: See TracChangeset
for help on using the changeset viewer.