updated plugin Menu Icons version 0.13.6

This commit is contained in:
2023-07-19 21:09:05 +00:00
committed by Gitium
parent 9a42dc17d2
commit 42e98ecd14
43 changed files with 1227 additions and 278 deletions

View File

@ -45,35 +45,34 @@ class ClassLoader
/** @var \Closure(string):void */
private static $includeFile;
/** @var ?string */
/** @var string|null */
private $vendorDir;
// PSR-4
/**
* @var array[]
* @psalm-var array<string, array<string, int>>
* @var array<string, array<string, int>>
*/
private $prefixLengthsPsr4 = array();
/**
* @var array[]
* @psalm-var array<string, array<int, string>>
* @var array<string, list<string>>
*/
private $prefixDirsPsr4 = array();
/**
* @var array[]
* @psalm-var array<string, string>
* @var list<string>
*/
private $fallbackDirsPsr4 = array();
// PSR-0
/**
* @var array[]
* @psalm-var array<string, array<string, string[]>>
* List of PSR-0 prefixes
*
* Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2')))
*
* @var array<string, array<string, list<string>>>
*/
private $prefixesPsr0 = array();
/**
* @var array[]
* @psalm-var array<string, string>
* @var list<string>
*/
private $fallbackDirsPsr0 = array();
@ -81,8 +80,7 @@ class ClassLoader
private $useIncludePath = false;
/**
* @var string[]
* @psalm-var array<string, string>
* @var array<string, string>
*/
private $classMap = array();
@ -90,21 +88,20 @@ class ClassLoader
private $classMapAuthoritative = false;
/**
* @var bool[]
* @psalm-var array<string, bool>
* @var array<string, bool>
*/
private $missingClasses = array();
/** @var ?string */
/** @var string|null */
private $apcuPrefix;
/**
* @var self[]
* @var array<string, self>
*/
private static $registeredLoaders = array();
/**
* @param ?string $vendorDir
* @param string|null $vendorDir
*/
public function __construct($vendorDir = null)
{
@ -113,7 +110,7 @@ class ClassLoader
}
/**
* @return string[]
* @return array<string, list<string>>
*/
public function getPrefixes()
{
@ -125,8 +122,7 @@ class ClassLoader
}
/**
* @return array[]
* @psalm-return array<string, array<int, string>>
* @return array<string, list<string>>
*/
public function getPrefixesPsr4()
{
@ -134,8 +130,7 @@ class ClassLoader
}
/**
* @return array[]
* @psalm-return array<string, string>
* @return list<string>
*/
public function getFallbackDirs()
{
@ -143,8 +138,7 @@ class ClassLoader
}
/**
* @return array[]
* @psalm-return array<string, string>
* @return list<string>
*/
public function getFallbackDirsPsr4()
{
@ -152,8 +146,7 @@ class ClassLoader
}
/**
* @return string[] Array of classname => path
* @psalm-return array<string, string>
* @return array<string, string> Array of classname => path
*/
public function getClassMap()
{
@ -161,8 +154,7 @@ class ClassLoader
}
/**
* @param string[] $classMap Class to filename map
* @psalm-param array<string, string> $classMap
* @param array<string, string> $classMap Class to filename map
*
* @return void
*/
@ -179,24 +171,25 @@ class ClassLoader
* 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>|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
);
}
@ -205,19 +198,19 @@ class ClassLoader
$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
);
}
}
@ -226,9 +219,9 @@ class ClassLoader
* 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>|string $paths The PSR-4 base directories
* @param bool $prepend Whether to prepend the directories
*
* @throws \InvalidArgumentException
*
@ -236,17 +229,18 @@ class ClassLoader
*/
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])) {
@ -256,18 +250,18 @@ class ClassLoader
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
);
}
}
@ -276,8 +270,8 @@ class ClassLoader
* 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>|string $paths The PSR-0 base directories
*
* @return void
*/
@ -294,8 +288,8 @@ class ClassLoader
* 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>|string $paths The PSR-4 base directories
*
* @throws \InvalidArgumentException
*
@ -481,9 +475,9 @@ class ClassLoader
}
/**
* 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<string, self>
*/
public static function getRegisteredLoaders()
{

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInitbf1297da02d6475c76ee8fa5bb3a7c73
class ComposerAutoloaderInit98ab46cfa4e7ff3e56643c5deb70943f
{
private static $loader;
@ -22,16 +22,16 @@ class ComposerAutoloaderInitbf1297da02d6475c76ee8fa5bb3a7c73
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInitbf1297da02d6475c76ee8fa5bb3a7c73', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit98ab46cfa4e7ff3e56643c5deb70943f', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInitbf1297da02d6475c76ee8fa5bb3a7c73', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit98ab46cfa4e7ff3e56643c5deb70943f', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInitbf1297da02d6475c76ee8fa5bb3a7c73::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit98ab46cfa4e7ff3e56643c5deb70943f::getInitializer($loader));
$loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInitbf1297da02d6475c76ee8fa5bb3a7c73::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInit98ab46cfa4e7ff3e56643c5deb70943f::$files;
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInitbf1297da02d6475c76ee8fa5bb3a7c73
class ComposerStaticInit98ab46cfa4e7ff3e56643c5deb70943f
{
public static $files = array (
'2c2d2fe92db4cd03403dbb108ac263b7' => __DIR__ . '/..' . '/codeinwp/gutenberg-menu-icons/load.php',
@ -20,7 +20,7 @@ class ComposerStaticInitbf1297da02d6475c76ee8fa5bb3a7c73
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->classMap = ComposerStaticInitbf1297da02d6475c76ee8fa5bb3a7c73::$classMap;
$loader->classMap = ComposerStaticInit98ab46cfa4e7ff3e56643c5deb70943f::$classMap;
}, null, ClassLoader::class);
}

View File

@ -2,17 +2,17 @@
"packages": [
{
"name": "codeinwp/gutenberg-menu-icons",
"version": "1.0.4",
"version_normalized": "1.0.4.0",
"version": "1.0.5",
"version_normalized": "1.0.5.0",
"source": {
"type": "git",
"url": "https://github.com/Codeinwp/gutenberg-menu-icons.git",
"reference": "121ef82c57a556301265cbd1032d28619235e488"
"reference": "fce0fae088cc85001620d83253568aeec2af51c0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Codeinwp/gutenberg-menu-icons/zipball/121ef82c57a556301265cbd1032d28619235e488",
"reference": "121ef82c57a556301265cbd1032d28619235e488",
"url": "https://api.github.com/repos/Codeinwp/gutenberg-menu-icons/zipball/fce0fae088cc85001620d83253568aeec2af51c0",
"reference": "fce0fae088cc85001620d83253568aeec2af51c0",
"shasum": ""
},
"require-dev": {
@ -22,7 +22,7 @@
"squizlabs/php_codesniffer": "^3.3",
"wp-coding-standards/wpcs": "^1"
},
"time": "2020-05-17T21:08:46+00:00",
"time": "2021-06-23T20:23:12+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
@ -43,10 +43,7 @@
],
"description": "Menu Icons for Gutenberg",
"homepage": "https://github.com/Codeinwp/gutenberg-menu-icons",
"support": {
"issues": "https://github.com/Codeinwp/gutenberg-menu-icons/issues",
"source": "https://github.com/Codeinwp/gutenberg-menu-icons/tree/v1.0.4"
},
"abandoned": true,
"install-path": "../codeinwp/gutenberg-menu-icons"
},
{
@ -71,7 +68,6 @@
"wp-coding-standards/wpcs": "^0.10.0"
},
"time": "2021-05-05T18:52:26+00:00",
"default-branch": true,
"type": "wordpress-plugin",
"installation-source": "dist",
"notification-url": "https://packagist.org/downloads/",
@ -90,9 +86,6 @@
"plugin",
"wordpress"
],
"support": {
"source": "https://github.com/Codeinwp/icon-picker/tree/master"
},
"install-path": "../codeinwp/icon-picker"
},
{
@ -117,7 +110,6 @@
"wp-coding-standards/wpcs": "^0.10.0"
},
"time": "2021-05-05T18:49:57+00:00",
"default-branch": true,
"type": "wordpress-plugin",
"installation-source": "dist",
"notification-url": "https://packagist.org/downloads/",
@ -132,30 +124,27 @@
"plugin",
"wordpress"
],
"support": {
"source": "https://github.com/Codeinwp/menu-item-custom-fields/tree/master"
},
"install-path": "../codeinwp/menu-item-custom-fields"
},
{
"name": "codeinwp/themeisle-sdk",
"version": "3.2.40",
"version_normalized": "3.2.40.0",
"version": "3.3.1",
"version_normalized": "3.3.1.0",
"source": {
"type": "git",
"url": "https://github.com/Codeinwp/themeisle-sdk.git",
"reference": "d719fff89cb6643e555f5e3daa4ebd627ccb4fd7"
"reference": "efb66935e69935b21ad99b0e55484e611ce4549d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/d719fff89cb6643e555f5e3daa4ebd627ccb4fd7",
"reference": "d719fff89cb6643e555f5e3daa4ebd627ccb4fd7",
"url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/efb66935e69935b21ad99b0e55484e611ce4549d",
"reference": "efb66935e69935b21ad99b0e55484e611ce4549d",
"shasum": ""
},
"require-dev": {
"codeinwp/phpcs-ruleset": "dev-main"
},
"time": "2023-03-30T09:29:30+00:00",
"time": "2023-06-21T06:55:46+00:00",
"type": "library",
"installation-source": "dist",
"notification-url": "https://packagist.org/downloads/",
@ -174,10 +163,6 @@
"keywords": [
"wordpress"
],
"support": {
"issues": "https://github.com/Codeinwp/themeisle-sdk/issues",
"source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.2.40"
},
"install-path": "../codeinwp/themeisle-sdk"
}
],

View File

@ -1,9 +1,9 @@
<?php return array(
'root' => array(
'name' => 'codeinwp/wp-menu-icons',
'pretty_version' => 'v0.13.5',
'version' => '0.13.5.0',
'reference' => '90e8cdc9710ce66bc735545ccea2bd5048d7f2f6',
'pretty_version' => 'v0.13.6',
'version' => '0.13.6.0',
'reference' => 'fd9b0de0423292fd9404f53beed66a72e5b0c2d5',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
@ -11,9 +11,9 @@
),
'versions' => array(
'codeinwp/gutenberg-menu-icons' => array(
'pretty_version' => '1.0.4',
'version' => '1.0.4.0',
'reference' => '121ef82c57a556301265cbd1032d28619235e488',
'pretty_version' => '1.0.5',
'version' => '1.0.5.0',
'reference' => 'fce0fae088cc85001620d83253568aeec2af51c0',
'type' => 'library',
'install_path' => __DIR__ . '/../codeinwp/gutenberg-menu-icons',
'aliases' => array(),
@ -25,9 +25,7 @@
'reference' => '0c60ce3a41653e41a20e710c4d5a6a2104c85020',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../codeinwp/icon-picker',
'aliases' => array(
0 => '9999999-dev',
),
'aliases' => array(),
'dev_requirement' => false,
),
'codeinwp/menu-item-custom-fields' => array(
@ -36,24 +34,22 @@
'reference' => 'f491fcfa873e92006e3d92a4ede8775e9cf53bae',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../codeinwp/menu-item-custom-fields',
'aliases' => array(
0 => '9999999-dev',
),
'aliases' => array(),
'dev_requirement' => false,
),
'codeinwp/themeisle-sdk' => array(
'pretty_version' => '3.2.40',
'version' => '3.2.40.0',
'reference' => 'd719fff89cb6643e555f5e3daa4ebd627ccb4fd7',
'pretty_version' => '3.3.1',
'version' => '3.3.1.0',
'reference' => 'efb66935e69935b21ad99b0e55484e611ce4549d',
'type' => 'library',
'install_path' => __DIR__ . '/../codeinwp/themeisle-sdk',
'aliases' => array(),
'dev_requirement' => false,
),
'codeinwp/wp-menu-icons' => array(
'pretty_version' => 'v0.13.5',
'version' => '0.13.5.0',
'reference' => '90e8cdc9710ce66bc735545ccea2bd5048d7f2f6',
'pretty_version' => 'v0.13.6',
'version' => '0.13.6.0',
'reference' => 'fd9b0de0423292fd9404f53beed66a72e5b0c2d5',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),