diff --git a/languages/userswp-en_US.mo b/languages/userswp-en_US.mo index 313fc97c..db0ca1b5 100644 Binary files a/languages/userswp-en_US.mo and b/languages/userswp-en_US.mo differ diff --git a/languages/userswp-en_US.po b/languages/userswp-en_US.po index 466314b3..00043da5 100644 --- a/languages/userswp-en_US.po +++ b/languages/userswp-en_US.po @@ -1,9 +1,9 @@ msgid "" msgstr "" -"Project-Id-Version: UsersWP 1.2.3.22\n" +"Project-Id-Version: UsersWP 1.2.3.23\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-09-06 16:46+0530\n" -"PO-Revision-Date: 2023-09-06 16:46+0530\n" +"POT-Creation-Date: 2023-11-01 13:13+0530\n" +"PO-Revision-Date: 2023-11-01 13:13+0530\n" "Last-Translator: \n" "Language-Team: AyeCode Ltd \n" "Language: en_US\n" @@ -1468,7 +1468,7 @@ msgstr "" msgid "Upload Image" msgstr "" -#: admin/settings/class-settings.php:384 includes/class-files.php:356 +#: admin/settings/class-settings.php:384 includes/class-files.php:354 msgid "Remove Image" msgstr "" @@ -1839,7 +1839,7 @@ msgstr "" #: admin/settings/class-uwp-settings-general.php:71 #: admin/settings/class-uwp-settings-general.php:309 -#: includes/class-emails.php:300 includes/class-forms.php:4562 +#: includes/class-emails.php:300 includes/class-forms.php:4566 #: includes/class-pages.php:325 templates/bootstrap/forgot.php:66 #: templates/bootstrap/login.php:11 templates/bootstrap/login.php:68 #: templates/bootstrap/register.php:65 templates/bootstrap/reset.php:49 @@ -3399,7 +3399,7 @@ msgid "New Password" msgstr "" #: includes/class-activator.php:537 includes/class-activator.php:579 -#: includes/class-forms.php:4295 +#: includes/class-forms.php:4299 msgid "Confirm Password" msgstr "" @@ -3584,7 +3584,7 @@ msgstr "" msgid "Uploaded files need to be one of the following file types: %s" msgstr "" -#: includes/class-files.php:365 +#: includes/class-files.php:363 msgid "Remove File" msgstr "" @@ -3824,43 +3824,47 @@ msgstr "" msgid "User Information:" msgstr "" -#: includes/class-forms.php:2453 +#: includes/class-forms.php:2191 includes/class-profile.php:1896 +msgid "Invalid access!" +msgstr "" + +#: includes/class-forms.php:2457 msgid "Clear field" msgstr "" -#: includes/class-forms.php:3161 +#: includes/class-forms.php:3165 msgid "Username or Email" msgstr "" -#: includes/class-forms.php:3484 +#: includes/class-forms.php:3488 msgid "Please enter a valid URL including https://" msgstr "" -#: includes/class-forms.php:3533 +#: includes/class-forms.php:3537 msgid "Please enter a valid URL including http://" msgstr "" -#: includes/class-forms.php:3847 +#: includes/class-forms.php:3851 #, php-format msgid "" "By using this form I agree to the storage and handling of my data by this " "website. View our %s %s %s." msgstr "" -#: includes/class-forms.php:3934 +#: includes/class-forms.php:3938 #, php-format msgid "I accept the %s %s %s." msgstr "" -#: includes/class-forms.php:4213 +#: includes/class-forms.php:4217 msgid "Site Default" msgstr "" -#: includes/class-forms.php:4387 +#: includes/class-forms.php:4391 msgid "Confirm Email" msgstr "" -#: includes/class-forms.php:4540 +#: includes/class-forms.php:4544 msgid "Privacy settings updated successfully." msgstr "" @@ -4727,23 +4731,23 @@ msgstr "" msgid "Something went wrong, please retry." msgstr "" -#: includes/helpers/misc.php:1502 widgets/output-location.php:90 +#: includes/helpers/misc.php:1503 widgets/output-location.php:90 msgid "Users Page" msgstr "" -#: includes/helpers/misc.php:1503 widgets/output-location.php:91 +#: includes/helpers/misc.php:1504 widgets/output-location.php:91 msgid "More info tab" msgstr "" -#: includes/helpers/misc.php:1504 +#: includes/helpers/misc.php:1505 msgid "Profile side (non bootstrap)" msgstr "" -#: includes/helpers/misc.php:1505 +#: includes/helpers/misc.php:1506 msgid "Fieldset" msgstr "" -#: includes/helpers/misc.php:1736 +#: includes/helpers/misc.php:1737 #, php-format msgid "" "%s requires a newer version of UsersWP and will not run until the UsersWP " diff --git a/readme.txt b/readme.txt index cee2314b..23eaee7f 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://www.ko-fi.com/stiofan Tags: login form, registration, registration form, user profile, user registration, members, membership Requires at least: 4.9 Tested up to: 6.3 -Stable tag: 1.2.3.22 +Stable tag: 1.2.3.23 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -147,7 +147,7 @@ Yes, you can customize it with Elementor, but also with Gutenberg, Divi, Beaver == Changelog == = 1.2.3.23 = -* Super Duper updated to v1.1.27 - UPDATED +* Super Duper updated to v1.1.28 - UPDATED * FontAwesome package updated to v1.1.6 - UPDATED * AyeCode UI updated to v0.2.0 - UPDATED * Profile picture could be removed if clicking a bad link CSRF - FIXED/SECURITY diff --git a/userswp.php b/userswp.php index 7113bc43..d803fd0c 100644 --- a/userswp.php +++ b/userswp.php @@ -3,7 +3,7 @@ Plugin Name: UsersWP Plugin URI: https://userswp.io/ Description: The only lightweight user profile plugin for WordPress. UsersWP features front end user profile, users directory, a registration and a login form. -Version: 1.2.3.22 +Version: 1.2.3.23 Author: AyeCode Ltd Author URI: https://userswp.io License: GPL-2.0+ @@ -24,7 +24,7 @@ } if ( ! defined( 'USERSWP_VERSION' ) ) { - define( 'USERSWP_VERSION', '1.2.3.22' ); + define( 'USERSWP_VERSION', '1.2.3.23' ); } if ( ! defined( 'USERSWP_PATH' ) ) { diff --git a/vendor/autoload.php b/vendor/autoload.php index 18f0f0fc..7c1ee1d1 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -2,6 +2,24 @@ // autoload.php @generated by Composer +if (PHP_VERSION_ID < 50600) { + if (!headers_sent()) { + header('HTTP/1.1 500 Internal Server Error'); + } + $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; + if (!ini_get('display_errors')) { + if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { + fwrite(STDERR, $err); + } elseif (!headers_sent()) { + echo $err; + } + } + trigger_error( + $err, + E_USER_ERROR + ); +} + require_once __DIR__ . '/composer/autoload_real.php'; return ComposerAutoloaderInitf3d2d3b01d25e99f52c2a4d35c24b58c::getLoader(); diff --git a/vendor/composer/ClassLoader.php b/vendor/composer/ClassLoader.php index afef3fa2..7824d8f7 100644 --- a/vendor/composer/ClassLoader.php +++ b/vendor/composer/ClassLoader.php @@ -42,35 +42,37 @@ */ class ClassLoader { - /** @var ?string */ + /** @var \Closure(string):void */ + private static $includeFile; + + /** @var string|null */ private $vendorDir; // PSR-4 /** - * @var array[] - * @psalm-var array> + * @var array> */ private $prefixLengthsPsr4 = array(); /** - * @var array[] - * @psalm-var array> + * @var array> */ private $prefixDirsPsr4 = array(); /** - * @var array[] - * @psalm-var array + * @var list */ private $fallbackDirsPsr4 = array(); // PSR-0 /** - * @var array[] - * @psalm-var array> + * List of PSR-0 prefixes + * + * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) + * + * @var array>> */ private $prefixesPsr0 = array(); /** - * @var array[] - * @psalm-var array + * @var list */ private $fallbackDirsPsr0 = array(); @@ -78,8 +80,7 @@ class ClassLoader private $useIncludePath = false; /** - * @var string[] - * @psalm-var array + * @var array */ private $classMap = array(); @@ -87,29 +88,29 @@ class ClassLoader private $classMapAuthoritative = false; /** - * @var bool[] - * @psalm-var array + * @var array */ private $missingClasses = array(); - /** @var ?string */ + /** @var string|null */ private $apcuPrefix; /** - * @var self[] + * @var array */ private static $registeredLoaders = array(); /** - * @param ?string $vendorDir + * @param string|null $vendorDir */ public function __construct($vendorDir = null) { $this->vendorDir = $vendorDir; + self::initializeIncludeClosure(); } /** - * @return string[] + * @return array> */ public function getPrefixes() { @@ -121,8 +122,7 @@ public function getPrefixes() } /** - * @return array[] - * @psalm-return array> + * @return array> */ public function getPrefixesPsr4() { @@ -130,8 +130,7 @@ public function getPrefixesPsr4() } /** - * @return array[] - * @psalm-return array + * @return list */ public function getFallbackDirs() { @@ -139,8 +138,7 @@ public function getFallbackDirs() } /** - * @return array[] - * @psalm-return array + * @return list */ public function getFallbackDirsPsr4() { @@ -148,8 +146,7 @@ public function getFallbackDirsPsr4() } /** - * @return string[] Array of classname => path - * @psalm-return array + * @return array Array of classname => path */ public function getClassMap() { @@ -157,8 +154,7 @@ public function getClassMap() } /** - * @param string[] $classMap Class to filename map - * @psalm-param array $classMap + * @param array $classMap Class to filename map * * @return void */ @@ -175,24 +171,25 @@ public function addClassMap(array $classMap) * Registers a set of PSR-0 directories for a given prefix, either * appending or prepending to the ones previously set for this prefix. * - * @param string $prefix The prefix - * @param string[]|string $paths The PSR-0 root directories - * @param bool $prepend Whether to prepend the directories + * @param string $prefix The prefix + * @param list|string $paths The PSR-0 root directories + * @param bool $prepend Whether to prepend the directories * * @return void */ public function add($prefix, $paths, $prepend = false) { + $paths = (array) $paths; if (!$prefix) { if ($prepend) { $this->fallbackDirsPsr0 = array_merge( - (array) $paths, + $paths, $this->fallbackDirsPsr0 ); } else { $this->fallbackDirsPsr0 = array_merge( $this->fallbackDirsPsr0, - (array) $paths + $paths ); } @@ -201,19 +198,19 @@ public function add($prefix, $paths, $prepend = false) $first = $prefix[0]; if (!isset($this->prefixesPsr0[$first][$prefix])) { - $this->prefixesPsr0[$first][$prefix] = (array) $paths; + $this->prefixesPsr0[$first][$prefix] = $paths; return; } if ($prepend) { $this->prefixesPsr0[$first][$prefix] = array_merge( - (array) $paths, + $paths, $this->prefixesPsr0[$first][$prefix] ); } else { $this->prefixesPsr0[$first][$prefix] = array_merge( $this->prefixesPsr0[$first][$prefix], - (array) $paths + $paths ); } } @@ -222,9 +219,9 @@ public function add($prefix, $paths, $prepend = false) * Registers a set of PSR-4 directories for a given namespace, either * appending or prepending to the ones previously set for this namespace. * - * @param string $prefix The prefix/namespace, with trailing '\\' - * @param string[]|string $paths The PSR-4 base directories - * @param bool $prepend Whether to prepend the directories + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param list|string $paths The PSR-4 base directories + * @param bool $prepend Whether to prepend the directories * * @throws \InvalidArgumentException * @@ -232,17 +229,18 @@ public function add($prefix, $paths, $prepend = false) */ public function addPsr4($prefix, $paths, $prepend = false) { + $paths = (array) $paths; if (!$prefix) { // Register directories for the root namespace. if ($prepend) { $this->fallbackDirsPsr4 = array_merge( - (array) $paths, + $paths, $this->fallbackDirsPsr4 ); } else { $this->fallbackDirsPsr4 = array_merge( $this->fallbackDirsPsr4, - (array) $paths + $paths ); } } elseif (!isset($this->prefixDirsPsr4[$prefix])) { @@ -252,18 +250,18 @@ public function addPsr4($prefix, $paths, $prepend = false) throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); } $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; - $this->prefixDirsPsr4[$prefix] = (array) $paths; + $this->prefixDirsPsr4[$prefix] = $paths; } elseif ($prepend) { // Prepend directories for an already registered namespace. $this->prefixDirsPsr4[$prefix] = array_merge( - (array) $paths, + $paths, $this->prefixDirsPsr4[$prefix] ); } else { // Append directories for an already registered namespace. $this->prefixDirsPsr4[$prefix] = array_merge( $this->prefixDirsPsr4[$prefix], - (array) $paths + $paths ); } } @@ -272,8 +270,8 @@ public function addPsr4($prefix, $paths, $prepend = false) * Registers a set of PSR-0 directories for a given prefix, * replacing any others previously set for this prefix. * - * @param string $prefix The prefix - * @param string[]|string $paths The PSR-0 base directories + * @param string $prefix The prefix + * @param list|string $paths The PSR-0 base directories * * @return void */ @@ -290,8 +288,8 @@ public function set($prefix, $paths) * Registers a set of PSR-4 directories for a given namespace, * replacing any others previously set for this namespace. * - * @param string $prefix The prefix/namespace, with trailing '\\' - * @param string[]|string $paths The PSR-4 base directories + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param list|string $paths The PSR-4 base directories * * @throws \InvalidArgumentException * @@ -425,7 +423,8 @@ public function unregister() public function loadClass($class) { if ($file = $this->findFile($class)) { - includeFile($file); + $includeFile = self::$includeFile; + $includeFile($file); return true; } @@ -476,9 +475,9 @@ public function findFile($class) } /** - * Returns the currently registered loaders indexed by their corresponding vendor directories. + * Returns the currently registered loaders keyed by their corresponding vendor directories. * - * @return self[] + * @return array */ public static function getRegisteredLoaders() { @@ -555,18 +554,26 @@ private function findFileWithExtension($class, $ext) return false; } -} -/** - * Scope isolated include. - * - * Prevents access to $this/self from included files. - * - * @param string $file - * @return void - * @private - */ -function includeFile($file) -{ - include $file; + /** + * @return void + */ + private static function initializeIncludeClosure() + { + if (self::$includeFile !== null) { + return; + } + + /** + * Scope isolated include. + * + * Prevents access to $this/self from included files. + * + * @param string $file + * @return void + */ + self::$includeFile = \Closure::bind(static function($file) { + include $file; + }, null, null); + } } diff --git a/vendor/composer/InstalledVersions.php b/vendor/composer/InstalledVersions.php index d50e0c9f..51e734a7 100644 --- a/vendor/composer/InstalledVersions.php +++ b/vendor/composer/InstalledVersions.php @@ -21,12 +21,14 @@ * See also https://getcomposer.org/doc/07-runtime.md#installed-versions * * To require its presence, you can require `composer-runtime-api ^2.0` + * + * @final */ class InstalledVersions { /** * @var mixed[]|null - * @psalm-var array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array}|array{}|null + * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array}|array{}|null */ private static $installed; @@ -37,7 +39,7 @@ class InstalledVersions /** * @var array[] - * @psalm-var array}> + * @psalm-var array}> */ private static $installedByVendor = array(); @@ -96,7 +98,7 @@ public static function isInstalled($packageName, $includeDevRequirements = true) { foreach (self::getInstalled() as $installed) { if (isset($installed['versions'][$packageName])) { - return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']); + return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false; } } @@ -117,7 +119,7 @@ public static function isInstalled($packageName, $includeDevRequirements = true) */ public static function satisfies(VersionParser $parser, $packageName, $constraint) { - $constraint = $parser->parseConstraints($constraint); + $constraint = $parser->parseConstraints((string) $constraint); $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); return $provided->matches($constraint); @@ -241,7 +243,7 @@ public static function getInstallPath($packageName) /** * @return array - * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string} + * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool} */ public static function getRootPackage() { @@ -255,7 +257,7 @@ public static function getRootPackage() * * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect. * @return array[] - * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array} + * @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} */ public static function getRawData() { @@ -278,7 +280,7 @@ public static function getRawData() * Returns the raw data of all installed.php which are currently loaded for custom implementations * * @return array[] - * @psalm-return list}> + * @psalm-return list}> */ public static function getAllRawData() { @@ -301,7 +303,7 @@ public static function getAllRawData() * @param array[] $data A vendor/composer/installed.php data set * @return void * - * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array} $data + * @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $data */ public static function reload($data) { @@ -311,7 +313,7 @@ public static function reload($data) /** * @return array[] - * @psalm-return list}> + * @psalm-return list}> */ private static function getInstalled() { @@ -326,7 +328,9 @@ private static function getInstalled() if (isset(self::$installedByVendor[$vendorDir])) { $installed[] = self::$installedByVendor[$vendorDir]; } elseif (is_file($vendorDir.'/composer/installed.php')) { - $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; + /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $required */ + $required = require $vendorDir.'/composer/installed.php'; + $installed[] = self::$installedByVendor[$vendorDir] = $required; if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { self::$installed = $installed[count($installed) - 1]; } @@ -338,12 +342,17 @@ private static function getInstalled() // only require the installed.php file if this file is loaded from its dumped location, // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 if (substr(__DIR__, -8, 1) !== 'C') { - self::$installed = require __DIR__ . '/installed.php'; + /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $required */ + $required = require __DIR__ . '/installed.php'; + self::$installed = $required; } else { self::$installed = array(); } } - $installed[] = self::$installed; + + if (self::$installed !== array()) { + $installed[] = self::$installed; + } return $installed; } diff --git a/vendor/composer/LICENSE b/vendor/composer/LICENSE index 62ecfd8d..f27399a0 100644 --- a/vendor/composer/LICENSE +++ b/vendor/composer/LICENSE @@ -1,3 +1,4 @@ + Copyright (c) Nils Adermann, Jordi Boggiano Permission is hereby granted, free of charge, to any person obtaining a copy @@ -17,3 +18,4 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php index 9c08f155..3ac14a39 100644 --- a/vendor/composer/autoload_classmap.php +++ b/vendor/composer/autoload_classmap.php @@ -2,7 +2,7 @@ // autoload_classmap.php @generated by Composer -$vendorDir = dirname(dirname(__FILE__)); +$vendorDir = dirname(__DIR__); $baseDir = dirname($vendorDir); return array( diff --git a/vendor/composer/autoload_files.php b/vendor/composer/autoload_files.php index cb504e9c..e7b1ee9b 100644 --- a/vendor/composer/autoload_files.php +++ b/vendor/composer/autoload_files.php @@ -2,7 +2,7 @@ // autoload_files.php @generated by Composer -$vendorDir = dirname(dirname(__FILE__)); +$vendorDir = dirname(__DIR__); $baseDir = dirname($vendorDir); return array( diff --git a/vendor/composer/autoload_namespaces.php b/vendor/composer/autoload_namespaces.php index b7fc0125..15a2ff3a 100644 --- a/vendor/composer/autoload_namespaces.php +++ b/vendor/composer/autoload_namespaces.php @@ -2,7 +2,7 @@ // autoload_namespaces.php @generated by Composer -$vendorDir = dirname(dirname(__FILE__)); +$vendorDir = dirname(__DIR__); $baseDir = dirname($vendorDir); return array( diff --git a/vendor/composer/autoload_psr4.php b/vendor/composer/autoload_psr4.php index 12ea9ccc..e480e283 100644 --- a/vendor/composer/autoload_psr4.php +++ b/vendor/composer/autoload_psr4.php @@ -2,7 +2,7 @@ // autoload_psr4.php @generated by Composer -$vendorDir = dirname(dirname(__FILE__)); +$vendorDir = dirname(__DIR__); $baseDir = dirname($vendorDir); return array( diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 06fcdf22..7b2a914f 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -25,56 +25,26 @@ public static function getLoader() require __DIR__ . '/platform_check.php'; spl_autoload_register(array('ComposerAutoloaderInitf3d2d3b01d25e99f52c2a4d35c24b58c', 'loadClassLoader'), true, true); - self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); + self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); spl_autoload_unregister(array('ComposerAutoloaderInitf3d2d3b01d25e99f52c2a4d35c24b58c', 'loadClassLoader')); - $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); - if ($useStaticLoader) { - require __DIR__ . '/autoload_static.php'; + require __DIR__ . '/autoload_static.php'; + call_user_func(\Composer\Autoload\ComposerStaticInitf3d2d3b01d25e99f52c2a4d35c24b58c::getInitializer($loader)); - call_user_func(\Composer\Autoload\ComposerStaticInitf3d2d3b01d25e99f52c2a4d35c24b58c::getInitializer($loader)); - } else { - $map = require __DIR__ . '/autoload_namespaces.php'; - foreach ($map as $namespace => $path) { - $loader->set($namespace, $path); - } + $loader->register(true); - $map = require __DIR__ . '/autoload_psr4.php'; - foreach ($map as $namespace => $path) { - $loader->setPsr4($namespace, $path); - } + $filesToLoad = \Composer\Autoload\ComposerStaticInitf3d2d3b01d25e99f52c2a4d35c24b58c::$files; + $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { + if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { + $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; - $classMap = require __DIR__ . '/autoload_classmap.php'; - if ($classMap) { - $loader->addClassMap($classMap); + require $file; } - } - - $loader->register(true); - - if ($useStaticLoader) { - $includeFiles = Composer\Autoload\ComposerStaticInitf3d2d3b01d25e99f52c2a4d35c24b58c::$files; - } else { - $includeFiles = require __DIR__ . '/autoload_files.php'; - } - foreach ($includeFiles as $fileIdentifier => $file) { - composerRequiref3d2d3b01d25e99f52c2a4d35c24b58c($fileIdentifier, $file); + }, null, null); + foreach ($filesToLoad as $fileIdentifier => $file) { + $requireFile($fileIdentifier, $file); } return $loader; } } - -/** - * @param string $fileIdentifier - * @param string $file - * @return void - */ -function composerRequiref3d2d3b01d25e99f52c2a4d35c24b58c($fileIdentifier, $file) -{ - if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { - $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; - - require $file; - } -} diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 018a1c22..2e628fc0 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -1,67 +1,67 @@ array( + 'name' => 'uswerwp/userswp', 'pretty_version' => 'dev-master', 'version' => 'dev-master', + 'reference' => 'ac6dd909abf1832abb63727d464a6e92f2d908bc', 'type' => 'project', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => '1b945a1acaa60250ef99d269e35975e9e8e42ca4', - 'name' => 'uswerwp/userswp', 'dev' => true, ), 'versions' => array( 'ayecode/ayecode-connect-helper' => array( 'pretty_version' => '1.0.3', 'version' => '1.0.3.0', + 'reference' => '1af7cdefdbd20d4443a3ab4834e4c1cd8fe57fb4', 'type' => 'library', 'install_path' => __DIR__ . '/../ayecode/ayecode-connect-helper', 'aliases' => array(), - 'reference' => '1af7cdefdbd20d4443a3ab4834e4c1cd8fe57fb4', 'dev_requirement' => false, ), 'ayecode/wp-ayecode-ui' => array( 'pretty_version' => '0.2.0', 'version' => '0.2.0.0', + 'reference' => 'e84efbc7d23b96dc74d782a99645a69561775f31', 'type' => 'library', 'install_path' => __DIR__ . '/../ayecode/wp-ayecode-ui', 'aliases' => array(), - 'reference' => 'e84efbc7d23b96dc74d782a99645a69561775f31', 'dev_requirement' => false, ), 'ayecode/wp-deactivation-survey' => array( 'pretty_version' => '1.0.6', 'version' => '1.0.6.0', + 'reference' => '4edfd24e58ee27ecb6bab08a4e15bed5dd012bda', 'type' => 'library', 'install_path' => __DIR__ . '/../ayecode/wp-deactivation-survey', 'aliases' => array(), - 'reference' => '4edfd24e58ee27ecb6bab08a4e15bed5dd012bda', 'dev_requirement' => false, ), 'ayecode/wp-font-awesome-settings' => array( 'pretty_version' => '1.1.6', 'version' => '1.1.6.0', + 'reference' => '37c34c29dfbe3e37a4cd5bf5d902c0498acc2c4c', 'type' => 'library', 'install_path' => __DIR__ . '/../ayecode/wp-font-awesome-settings', 'aliases' => array(), - 'reference' => '37c34c29dfbe3e37a4cd5bf5d902c0498acc2c4c', 'dev_requirement' => false, ), 'ayecode/wp-super-duper' => array( 'pretty_version' => '1.1.28', 'version' => '1.1.28.0', + 'reference' => '46d9f6dd41545d2a64f78d2cb8b2d444a5d07428', 'type' => 'library', 'install_path' => __DIR__ . '/../ayecode/wp-super-duper', 'aliases' => array(), - 'reference' => '46d9f6dd41545d2a64f78d2cb8b2d444a5d07428', 'dev_requirement' => false, ), 'composer/installers' => array( 'pretty_version' => '1.x-dev', 'version' => '1.9999999.9999999.9999999-dev', + 'reference' => '894a0b5c5d34c88b69b097f2aae1439730fa6836', 'type' => 'composer-plugin', 'install_path' => __DIR__ . '/./installers', 'aliases' => array(), - 'reference' => '894a0b5c5d34c88b69b097f2aae1439730fa6836', 'dev_requirement' => false, ), 'roundcube/plugin-installer' => array( @@ -79,10 +79,10 @@ 'uswerwp/userswp' => array( 'pretty_version' => 'dev-master', 'version' => 'dev-master', + 'reference' => 'ac6dd909abf1832abb63727d464a6e92f2d908bc', 'type' => 'project', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => '1b945a1acaa60250ef99d269e35975e9e8e42ca4', 'dev_requirement' => false, ), ),