Changeset 2666476
- Timestamp:
- 01/26/2022 10:46:56 PM (4 years ago)
- Location:
- calculated-fields-for-acf/trunk
- Files:
-
- 3 added
- 2 deleted
- 8 edited
-
admin/assets/calculated-fields-for-acf.min.js (deleted)
-
calculated-fields-for-acf.php (modified) (2 diffs)
-
languages/calculated-fields-for-acf.pot (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
src/Stack.php (modified) (4 diffs)
-
test.php (deleted)
-
vendor/autoload.php (modified) (1 diff)
-
vendor/composer/ClassLoader.php (modified) (18 diffs)
-
vendor/composer/InstalledVersions.php (added)
-
vendor/composer/autoload_real.php (modified) (3 diffs)
-
vendor/composer/autoload_static.php (modified) (2 diffs)
-
vendor/composer/installed.json (added)
-
vendor/composer/installed.php (added)
Legend:
- Unmodified
- Added
- Removed
-
calculated-fields-for-acf/trunk/calculated-fields-for-acf.php
r2419071 r2666476 9 9 * Plugin URI: https://www.wundermatics.com/product/calculated-fields-for-acf 10 10 * Description: Simple field math for Advanced Custom Fields 11 * Version: 1.3 11 * Version: 1.3.1 12 12 * Author: Wundermatics 13 13 * Author URI: https://wundermatics.com … … 18 18 */ 19 19 20 $calculated_fields_for_acf_version = '1.3 ';20 $calculated_fields_for_acf_version = '1.3.1'; 21 21 $dependencies = []; 22 22 -
calculated-fields-for-acf/trunk/languages/calculated-fields-for-acf.pot
r2419071 r2666476 1 # Copyright (C) 202 0Calculated fields for ACF1 # Copyright (C) 2022 Calculated fields for ACF 2 2 # This file is distributed under the same license as the Calculated fields for ACF package. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Calculated fields for ACF 1.3 \n"5 "Project-Id-Version: Calculated fields for ACF 1.3.1\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/calculated-fields-" 7 7 "for-acf\n" 8 "POT-Creation-Date: 202 0-11-15 19:49:07+00:00\n"8 "POT-Creation-Date: 2022-01-26 22:44:20+00:00\n" 9 9 "MIME-Version: 1.0\n" 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "PO-Revision-Date: 202 0-MO-DA HO:MI+ZONE\n"12 "PO-Revision-Date: 2022-MO-DA HO:MI+ZONE\n" 13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 14 14 "Language-Team: LANGUAGE <LL@li.org>\n" -
calculated-fields-for-acf/trunk/readme.txt
r2419071 r2666476 3 3 Tags: acf, admin 4 4 Requires at least: 4.7 5 Tested up to: 5. 55 Tested up to: 5.9 6 6 Requires PHP: 7.0 7 Stable tag: 1.3 7 Stable tag: 1.3.1 8 8 License: GPLv2 or later 9 9 -
calculated-fields-for-acf/trunk/src/Stack.php
r2206588 r2666476 1 1 <?php 2 2 3 namespace CalculatedFields; 3 4 … … 36 37 { 37 38 /** 38 * @var array 39 * @var array<int, mixed> 39 40 */ 40 41 public $stack = array(); 42 41 43 /** 42 44 * @var int … … 45 47 46 48 /** 47 * @param $val 49 * @param mixed $val 50 * 51 * @return void 48 52 */ 49 53 public function push($val) … … 67 71 /** 68 72 * @param int $n 73 * 69 74 * @return mixed|null 70 75 */ -
calculated-fields-for-acf/trunk/vendor/autoload.php
r2419071 r2666476 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 32e9c4d98cb5adff4785af403584ceb0::getLoader();7 return ComposerAutoloaderInit1090df91b4a4e619de98a1908a7edd20::getLoader(); -
calculated-fields-for-acf/trunk/vendor/composer/ClassLoader.php
r2419071 r2666476 43 43 class ClassLoader 44 44 { 45 /** @var ?string */ 46 private $vendorDir; 47 45 48 // PSR-4 49 /** 50 * @var array[] 51 * @psalm-var array<string, array<string, int>> 52 */ 46 53 private $prefixLengthsPsr4 = array(); 54 /** 55 * @var array[] 56 * @psalm-var array<string, array<int, string>> 57 */ 47 58 private $prefixDirsPsr4 = array(); 59 /** 60 * @var array[] 61 * @psalm-var array<string, string> 62 */ 48 63 private $fallbackDirsPsr4 = array(); 49 64 50 65 // PSR-0 66 /** 67 * @var array[] 68 * @psalm-var array<string, array<string, string[]>> 69 */ 51 70 private $prefixesPsr0 = array(); 71 /** 72 * @var array[] 73 * @psalm-var array<string, string> 74 */ 52 75 private $fallbackDirsPsr0 = array(); 53 76 77 /** @var bool */ 54 78 private $useIncludePath = false; 79 80 /** 81 * @var string[] 82 * @psalm-var array<string, string> 83 */ 55 84 private $classMap = array(); 85 86 /** @var bool */ 56 87 private $classMapAuthoritative = false; 88 89 /** 90 * @var bool[] 91 * @psalm-var array<string, bool> 92 */ 57 93 private $missingClasses = array(); 94 95 /** @var ?string */ 58 96 private $apcuPrefix; 59 97 98 /** 99 * @var self[] 100 */ 101 private static $registeredLoaders = array(); 102 103 /** 104 * @param ?string $vendorDir 105 */ 106 public function __construct($vendorDir = null) 107 { 108 $this->vendorDir = $vendorDir; 109 } 110 111 /** 112 * @return string[] 113 */ 60 114 public function getPrefixes() 61 115 { … … 67 121 } 68 122 123 /** 124 * @return array[] 125 * @psalm-return array<string, array<int, string>> 126 */ 69 127 public function getPrefixesPsr4() 70 128 { … … 72 130 } 73 131 132 /** 133 * @return array[] 134 * @psalm-return array<string, string> 135 */ 74 136 public function getFallbackDirs() 75 137 { … … 77 139 } 78 140 141 /** 142 * @return array[] 143 * @psalm-return array<string, string> 144 */ 79 145 public function getFallbackDirsPsr4() 80 146 { … … 82 148 } 83 149 150 /** 151 * @return string[] Array of classname => path 152 * @psalm-return array<string, string> 153 */ 84 154 public function getClassMap() 85 155 { … … 88 158 89 159 /** 90 * @param array $classMap Class to filename map 160 * @param string[] $classMap Class to filename map 161 * @psalm-param array<string, string> $classMap 162 * 163 * @return void 91 164 */ 92 165 public function addClassMap(array $classMap) … … 103 176 * appending or prepending to the ones previously set for this prefix. 104 177 * 105 * @param string $prefix The prefix 106 * @param array|string $paths The PSR-0 root directories 107 * @param bool $prepend Whether to prepend the directories 178 * @param string $prefix The prefix 179 * @param string[]|string $paths The PSR-0 root directories 180 * @param bool $prepend Whether to prepend the directories 181 * 182 * @return void 108 183 */ 109 184 public function add($prefix, $paths, $prepend = false) … … 148 223 * appending or prepending to the ones previously set for this namespace. 149 224 * 150 * @param string $prefix The prefix/namespace, with trailing '\\'151 * @param array|string $paths The PSR-4 base directories152 * @param bool $prepend Whether to prepend the directories225 * @param string $prefix The prefix/namespace, with trailing '\\' 226 * @param string[]|string $paths The PSR-4 base directories 227 * @param bool $prepend Whether to prepend the directories 153 228 * 154 229 * @throws \InvalidArgumentException 230 * 231 * @return void 155 232 */ 156 233 public function addPsr4($prefix, $paths, $prepend = false) … … 196 273 * replacing any others previously set for this prefix. 197 274 * 198 * @param string $prefix The prefix 199 * @param array|string $paths The PSR-0 base directories 275 * @param string $prefix The prefix 276 * @param string[]|string $paths The PSR-0 base directories 277 * 278 * @return void 200 279 */ 201 280 public function set($prefix, $paths) … … 212 291 * replacing any others previously set for this namespace. 213 292 * 214 * @param string $prefix The prefix/namespace, with trailing '\\'215 * @param array|string $paths The PSR-4 base directories293 * @param string $prefix The prefix/namespace, with trailing '\\' 294 * @param string[]|string $paths The PSR-4 base directories 216 295 * 217 296 * @throws \InvalidArgumentException 297 * 298 * @return void 218 299 */ 219 300 public function setPsr4($prefix, $paths) … … 235 316 * 236 317 * @param bool $useIncludePath 318 * 319 * @return void 237 320 */ 238 321 public function setUseIncludePath($useIncludePath) … … 257 340 * 258 341 * @param bool $classMapAuthoritative 342 * 343 * @return void 259 344 */ 260 345 public function setClassMapAuthoritative($classMapAuthoritative) … … 277 362 * 278 363 * @param string|null $apcuPrefix 364 * 365 * @return void 279 366 */ 280 367 public function setApcuPrefix($apcuPrefix) … … 297 384 * 298 385 * @param bool $prepend Whether to prepend the autoloader or not 386 * 387 * @return void 299 388 */ 300 389 public function register($prepend = false) 301 390 { 302 391 spl_autoload_register(array($this, 'loadClass'), true, $prepend); 392 393 if (null === $this->vendorDir) { 394 return; 395 } 396 397 if ($prepend) { 398 self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders; 399 } else { 400 unset(self::$registeredLoaders[$this->vendorDir]); 401 self::$registeredLoaders[$this->vendorDir] = $this; 402 } 303 403 } 304 404 305 405 /** 306 406 * Unregisters this instance as an autoloader. 407 * 408 * @return void 307 409 */ 308 410 public function unregister() 309 411 { 310 412 spl_autoload_unregister(array($this, 'loadClass')); 413 414 if (null !== $this->vendorDir) { 415 unset(self::$registeredLoaders[$this->vendorDir]); 416 } 311 417 } 312 418 … … 315 421 * 316 422 * @param string $class The name of the class 317 * @return bool|null True if loaded, null otherwise423 * @return true|null True if loaded, null otherwise 318 424 */ 319 425 public function loadClass($class) … … 324 430 return true; 325 431 } 432 433 return null; 326 434 } 327 435 … … 368 476 } 369 477 478 /** 479 * Returns the currently registered loaders indexed by their corresponding vendor directories. 480 * 481 * @return self[] 482 */ 483 public static function getRegisteredLoaders() 484 { 485 return self::$registeredLoaders; 486 } 487 488 /** 489 * @param string $class 490 * @param string $ext 491 * @return string|false 492 */ 370 493 private function findFileWithExtension($class, $ext) 371 494 { … … 439 562 * 440 563 * Prevents access to $this/self from included files. 564 * 565 * @param string $file 566 * @return void 567 * @private 441 568 */ 442 569 function includeFile($file) -
calculated-fields-for-acf/trunk/vendor/composer/autoload_real.php
r2419071 r2666476 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 32e9c4d98cb5adff4785af403584ceb05 class ComposerAutoloaderInit1090df91b4a4e619de98a1908a7edd20 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 32e9c4d98cb5adff4785af403584ceb0', 'loadClassLoader'), true, true);26 self::$loader = $loader = new \Composer\Autoload\ClassLoader( );27 spl_autoload_unregister(array('ComposerAutoloaderInit 32e9c4d98cb5adff4785af403584ceb0', 'loadClassLoader'));25 spl_autoload_register(array('ComposerAutoloaderInit1090df91b4a4e619de98a1908a7edd20', 'loadClassLoader'), true, true); 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); 27 spl_autoload_unregister(array('ComposerAutoloaderInit1090df91b4a4e619de98a1908a7edd20', 'loadClassLoader')); 28 28 29 29 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 31 31 require __DIR__ . '/autoload_static.php'; 32 32 33 call_user_func(\Composer\Autoload\ComposerStaticInit 32e9c4d98cb5adff4785af403584ceb0::getInitializer($loader));33 call_user_func(\Composer\Autoload\ComposerStaticInit1090df91b4a4e619de98a1908a7edd20::getInitializer($loader)); 34 34 } else { 35 35 $map = require __DIR__ . '/autoload_namespaces.php'; -
calculated-fields-for-acf/trunk/vendor/composer/autoload_static.php
r2419071 r2666476 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 32e9c4d98cb5adff4785af403584ceb07 class ComposerStaticInit1090df91b4a4e619de98a1908a7edd20 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 28 28 { 29 29 return \Closure::bind(function () use ($loader) { 30 $loader->prefixLengthsPsr4 = ComposerStaticInit 32e9c4d98cb5adff4785af403584ceb0::$prefixLengthsPsr4;31 $loader->prefixDirsPsr4 = ComposerStaticInit 32e9c4d98cb5adff4785af403584ceb0::$prefixDirsPsr4;32 $loader->classMap = ComposerStaticInit 32e9c4d98cb5adff4785af403584ceb0::$classMap;30 $loader->prefixLengthsPsr4 = ComposerStaticInit1090df91b4a4e619de98a1908a7edd20::$prefixLengthsPsr4; 31 $loader->prefixDirsPsr4 = ComposerStaticInit1090df91b4a4e619de98a1908a7edd20::$prefixDirsPsr4; 32 $loader->classMap = ComposerStaticInit1090df91b4a4e619de98a1908a7edd20::$classMap; 33 33 34 34 }, null, ClassLoader::class);
Note: See TracChangeset
for help on using the changeset viewer.