Version Description
Download this release
Release Info
| Developer | themeisle |
| Plugin | |
| Version | 1.1.18 |
| Comparing to | |
| See all releases | |
Code changes from version 1.1.17 to 1.1.18
- CHANGELOG.md +4 -0
- README.md +7 -0
- includes/Importers/WP/WP_Import.php +1 -1
- includes/Main.php +1 -1
- languages/templates-patterns-collection.pot +2 -2
- readme.txt +7 -0
- templates-patterns-collection.php +1 -1
- vendor/autoload.php +1 -1
- vendor/composer/ClassLoader.php +102 -11
- vendor/composer/InstalledVersions.php +6 -6
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +4 -4
- vendor/composer/installed.php +4 -4
CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
##### [Version 1.1.17](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.16...v1.1.17) (2021-08-30)
|
| 2 |
|
| 3 |
- add the capability to clean up previous import plugins and content before the next import
|
| 1 |
+
##### [Version 1.1.18](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.17...v1.1.18) (2021-10-07)
|
| 2 |
+
|
| 3 |
+
* Replace add_post_meta function with update_post_meta function to avoid duplicate meta keys.
|
| 4 |
+
|
| 5 |
##### [Version 1.1.17](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.16...v1.1.17) (2021-08-30)
|
| 6 |
|
| 7 |
- add the capability to clean up previous import plugins and content before the next import
|
README.md
CHANGED
|
@@ -39,6 +39,13 @@ Yes, you can. You can either chose to import one template or the entire starter
|
|
| 39 |
|
| 40 |
## Changelog ##
|
| 41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
##### [Version 1.1.17](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.16...v1.1.17) (2021-08-30)
|
| 43 |
|
| 44 |
- add the capability to clean up previous import plugins and content before the next import
|
| 39 |
|
| 40 |
## Changelog ##
|
| 41 |
|
| 42 |
+
##### [Version 1.1.18](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.17...v1.1.18) (2021-10-07)
|
| 43 |
+
|
| 44 |
+
* Replace add_post_meta function with update_post_meta function to avoid duplicate meta keys.
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
|
| 49 |
##### [Version 1.1.17](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.16...v1.1.17) (2021-08-30)
|
| 50 |
|
| 51 |
- add the capability to clean up previous import plugins and content before the next import
|
includes/Importers/WP/WP_Import.php
CHANGED
|
@@ -540,7 +540,7 @@ class WP_Import extends WP_Importer {
|
|
| 540 |
) ) {
|
| 541 |
$value = $this->replace_image_urls( $value );
|
| 542 |
}
|
| 543 |
-
|
| 544 |
do_action( 'import_post_meta', $post_id, $key, $value );
|
| 545 |
// if the post has a featured image, take note of this in case of remap
|
| 546 |
if ( '_thumbnail_id' == $key ) {
|
| 540 |
) ) {
|
| 541 |
$value = $this->replace_image_urls( $value );
|
| 542 |
}
|
| 543 |
+
update_post_meta( $post_id, $key, $value );
|
| 544 |
do_action( 'import_post_meta', $post_id, $key, $value );
|
| 545 |
// if the post has a featured image, take note of this in case of remap
|
| 546 |
if ( '_thumbnail_id' == $key ) {
|
includes/Main.php
CHANGED
|
@@ -19,7 +19,7 @@ class Main {
|
|
| 19 |
*
|
| 20 |
* @var string Version string.
|
| 21 |
*/
|
| 22 |
-
const VERSION = '1.1.
|
| 23 |
/**
|
| 24 |
* Sites Library API URL.
|
| 25 |
*
|
| 19 |
*
|
| 20 |
* @var string Version string.
|
| 21 |
*/
|
| 22 |
+
const VERSION = '1.1.18';
|
| 23 |
/**
|
| 24 |
* Sites Library API URL.
|
| 25 |
*
|
languages/templates-patterns-collection.pot
CHANGED
|
@@ -2,14 +2,14 @@
|
|
| 2 |
# This file is distributed under the GPLv3.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
-
"Project-Id-Version: Templates Patterns Collection 1.1.
|
| 6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/templates-patterns-collection\n"
|
| 7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
| 8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
| 9 |
"MIME-Version: 1.0\n"
|
| 10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
| 11 |
"Content-Transfer-Encoding: 8bit\n"
|
| 12 |
-
"POT-Creation-Date: 2021-
|
| 13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
| 14 |
"X-Generator: WP-CLI 2.5.0\n"
|
| 15 |
"X-Domain: templates-patterns-collection\n"
|
| 2 |
# This file is distributed under the GPLv3.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
+
"Project-Id-Version: Templates Patterns Collection 1.1.18\n"
|
| 6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/templates-patterns-collection\n"
|
| 7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
| 8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
| 9 |
"MIME-Version: 1.0\n"
|
| 10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
| 11 |
"Content-Transfer-Encoding: 8bit\n"
|
| 12 |
+
"POT-Creation-Date: 2021-10-07T08:15:14+00:00\n"
|
| 13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
| 14 |
"X-Generator: WP-CLI 2.5.0\n"
|
| 15 |
"X-Domain: templates-patterns-collection\n"
|
readme.txt
CHANGED
|
@@ -39,6 +39,13 @@ Yes, you can. You can either chose to import one template or the entire starter
|
|
| 39 |
|
| 40 |
== Changelog ==
|
| 41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
##### [Version 1.1.17](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.16...v1.1.17) (2021-08-30)
|
| 43 |
|
| 44 |
- add the capability to clean up previous import plugins and content before the next import
|
| 39 |
|
| 40 |
== Changelog ==
|
| 41 |
|
| 42 |
+
##### [Version 1.1.18](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.17...v1.1.18) (2021-10-07)
|
| 43 |
+
|
| 44 |
+
* Replace add_post_meta function with update_post_meta function to avoid duplicate meta keys.
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
|
| 49 |
##### [Version 1.1.17](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.16...v1.1.17) (2021-08-30)
|
| 50 |
|
| 51 |
- add the capability to clean up previous import plugins and content before the next import
|
templates-patterns-collection.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
/**
|
| 3 |
* Plugin Name: Templates Patterns Collection
|
| 4 |
* Description: This plugin is an add-on to Neve WordPress theme which offers access to Templates and Block Patterns library service to be used with the theme.
|
| 5 |
-
* Version: 1.1.
|
| 6 |
* Author: ThemeIsle
|
| 7 |
* Author URI: https://themeisle.com
|
| 8 |
* License: GPLv3
|
| 2 |
/**
|
| 3 |
* Plugin Name: Templates Patterns Collection
|
| 4 |
* Description: This plugin is an add-on to Neve WordPress theme which offers access to Templates and Block Patterns library service to be used with the theme.
|
| 5 |
+
* Version: 1.1.18
|
| 6 |
* Author: ThemeIsle
|
| 7 |
* Author URI: https://themeisle.com
|
| 8 |
* License: GPLv3
|
vendor/autoload.php
CHANGED
|
@@ -4,4 +4,4 @@
|
|
| 4 |
|
| 5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
| 6 |
|
| 7 |
-
return
|
| 4 |
|
| 5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
| 6 |
|
| 7 |
+
return ComposerAutoloaderInitf607021062f1f7955bfeabe6abe2c41d::getLoader();
|
vendor/composer/ClassLoader.php
CHANGED
|
@@ -42,30 +42,75 @@ namespace Composer\Autoload;
|
|
| 42 |
*/
|
| 43 |
class ClassLoader
|
| 44 |
{
|
|
|
|
| 45 |
private $vendorDir;
|
| 46 |
|
| 47 |
// PSR-4
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
private $prefixLengthsPsr4 = array();
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
private $prefixDirsPsr4 = array();
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
private $fallbackDirsPsr4 = array();
|
| 51 |
|
| 52 |
// PSR-0
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
private $prefixesPsr0 = array();
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
private $fallbackDirsPsr0 = array();
|
| 55 |
|
|
|
|
| 56 |
private $useIncludePath = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
private $classMap = array();
|
|
|
|
|
|
|
| 58 |
private $classMapAuthoritative = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
private $missingClasses = array();
|
|
|
|
|
|
|
| 60 |
private $apcuPrefix;
|
| 61 |
|
|
|
|
|
|
|
|
|
|
| 62 |
private static $registeredLoaders = array();
|
| 63 |
|
|
|
|
|
|
|
|
|
|
| 64 |
public function __construct($vendorDir = null)
|
| 65 |
{
|
| 66 |
$this->vendorDir = $vendorDir;
|
| 67 |
}
|
| 68 |
|
|
|
|
|
|
|
|
|
|
| 69 |
public function getPrefixes()
|
| 70 |
{
|
| 71 |
if (!empty($this->prefixesPsr0)) {
|
|
@@ -75,28 +120,47 @@ class ClassLoader
|
|
| 75 |
return array();
|
| 76 |
}
|
| 77 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
public function getPrefixesPsr4()
|
| 79 |
{
|
| 80 |
return $this->prefixDirsPsr4;
|
| 81 |
}
|
| 82 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
public function getFallbackDirs()
|
| 84 |
{
|
| 85 |
return $this->fallbackDirsPsr0;
|
| 86 |
}
|
| 87 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 88 |
public function getFallbackDirsPsr4()
|
| 89 |
{
|
| 90 |
return $this->fallbackDirsPsr4;
|
| 91 |
}
|
| 92 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
public function getClassMap()
|
| 94 |
{
|
| 95 |
return $this->classMap;
|
| 96 |
}
|
| 97 |
|
| 98 |
/**
|
| 99 |
-
* @param
|
|
|
|
|
|
|
|
|
|
| 100 |
*/
|
| 101 |
public function addClassMap(array $classMap)
|
| 102 |
{
|
|
@@ -111,9 +175,11 @@ class ClassLoader
|
|
| 111 |
* Registers a set of PSR-0 directories for a given prefix, either
|
| 112 |
* appending or prepending to the ones previously set for this prefix.
|
| 113 |
*
|
| 114 |
-
* @param string
|
| 115 |
-
* @param
|
| 116 |
-
* @param bool
|
|
|
|
|
|
|
| 117 |
*/
|
| 118 |
public function add($prefix, $paths, $prepend = false)
|
| 119 |
{
|
|
@@ -156,11 +222,13 @@ class ClassLoader
|
|
| 156 |
* Registers a set of PSR-4 directories for a given namespace, either
|
| 157 |
* appending or prepending to the ones previously set for this namespace.
|
| 158 |
*
|
| 159 |
-
* @param string
|
| 160 |
-
* @param
|
| 161 |
-
* @param bool
|
| 162 |
*
|
| 163 |
* @throws \InvalidArgumentException
|
|
|
|
|
|
|
| 164 |
*/
|
| 165 |
public function addPsr4($prefix, $paths, $prepend = false)
|
| 166 |
{
|
|
@@ -204,8 +272,10 @@ class ClassLoader
|
|
| 204 |
* Registers a set of PSR-0 directories for a given prefix,
|
| 205 |
* replacing any others previously set for this prefix.
|
| 206 |
*
|
| 207 |
-
* @param string
|
| 208 |
-
* @param
|
|
|
|
|
|
|
| 209 |
*/
|
| 210 |
public function set($prefix, $paths)
|
| 211 |
{
|
|
@@ -220,10 +290,12 @@ class ClassLoader
|
|
| 220 |
* Registers a set of PSR-4 directories for a given namespace,
|
| 221 |
* replacing any others previously set for this namespace.
|
| 222 |
*
|
| 223 |
-
* @param string
|
| 224 |
-
* @param
|
| 225 |
*
|
| 226 |
* @throws \InvalidArgumentException
|
|
|
|
|
|
|
| 227 |
*/
|
| 228 |
public function setPsr4($prefix, $paths)
|
| 229 |
{
|
|
@@ -243,6 +315,8 @@ class ClassLoader
|
|
| 243 |
* Turns on searching the include path for class files.
|
| 244 |
*
|
| 245 |
* @param bool $useIncludePath
|
|
|
|
|
|
|
| 246 |
*/
|
| 247 |
public function setUseIncludePath($useIncludePath)
|
| 248 |
{
|
|
@@ -265,6 +339,8 @@ class ClassLoader
|
|
| 265 |
* that have not been registered with the class map.
|
| 266 |
*
|
| 267 |
* @param bool $classMapAuthoritative
|
|
|
|
|
|
|
| 268 |
*/
|
| 269 |
public function setClassMapAuthoritative($classMapAuthoritative)
|
| 270 |
{
|
|
@@ -285,6 +361,8 @@ class ClassLoader
|
|
| 285 |
* APCu prefix to use to cache found/not-found classes, if the extension is enabled.
|
| 286 |
*
|
| 287 |
* @param string|null $apcuPrefix
|
|
|
|
|
|
|
| 288 |
*/
|
| 289 |
public function setApcuPrefix($apcuPrefix)
|
| 290 |
{
|
|
@@ -305,6 +383,8 @@ class ClassLoader
|
|
| 305 |
* Registers this instance as an autoloader.
|
| 306 |
*
|
| 307 |
* @param bool $prepend Whether to prepend the autoloader or not
|
|
|
|
|
|
|
| 308 |
*/
|
| 309 |
public function register($prepend = false)
|
| 310 |
{
|
|
@@ -324,6 +404,8 @@ class ClassLoader
|
|
| 324 |
|
| 325 |
/**
|
| 326 |
* Unregisters this instance as an autoloader.
|
|
|
|
|
|
|
| 327 |
*/
|
| 328 |
public function unregister()
|
| 329 |
{
|
|
@@ -403,6 +485,11 @@ class ClassLoader
|
|
| 403 |
return self::$registeredLoaders;
|
| 404 |
}
|
| 405 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 406 |
private function findFileWithExtension($class, $ext)
|
| 407 |
{
|
| 408 |
// PSR-4 lookup
|
|
@@ -474,6 +561,10 @@ class ClassLoader
|
|
| 474 |
* Scope isolated include.
|
| 475 |
*
|
| 476 |
* Prevents access to $this/self from included files.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 477 |
*/
|
| 478 |
function includeFile($file)
|
| 479 |
{
|
| 42 |
*/
|
| 43 |
class ClassLoader
|
| 44 |
{
|
| 45 |
+
/** @var ?string */
|
| 46 |
private $vendorDir;
|
| 47 |
|
| 48 |
// PSR-4
|
| 49 |
+
/**
|
| 50 |
+
* @var array[]
|
| 51 |
+
* @psalm-var array<string, array<string, int>>
|
| 52 |
+
*/
|
| 53 |
private $prefixLengthsPsr4 = array();
|
| 54 |
+
/**
|
| 55 |
+
* @var array[]
|
| 56 |
+
* @psalm-var array<string, array<int, string>>
|
| 57 |
+
*/
|
| 58 |
private $prefixDirsPsr4 = array();
|
| 59 |
+
/**
|
| 60 |
+
* @var array[]
|
| 61 |
+
* @psalm-var array<string, string>
|
| 62 |
+
*/
|
| 63 |
private $fallbackDirsPsr4 = array();
|
| 64 |
|
| 65 |
// PSR-0
|
| 66 |
+
/**
|
| 67 |
+
* @var array[]
|
| 68 |
+
* @psalm-var array<string, array<string, string[]>>
|
| 69 |
+
*/
|
| 70 |
private $prefixesPsr0 = array();
|
| 71 |
+
/**
|
| 72 |
+
* @var array[]
|
| 73 |
+
* @psalm-var array<string, string>
|
| 74 |
+
*/
|
| 75 |
private $fallbackDirsPsr0 = array();
|
| 76 |
|
| 77 |
+
/** @var bool */
|
| 78 |
private $useIncludePath = false;
|
| 79 |
+
|
| 80 |
+
/**
|
| 81 |
+
* @var string[]
|
| 82 |
+
* @psalm-var array<string, string>
|
| 83 |
+
*/
|
| 84 |
private $classMap = array();
|
| 85 |
+
|
| 86 |
+
/** @var bool */
|
| 87 |
private $classMapAuthoritative = false;
|
| 88 |
+
|
| 89 |
+
/**
|
| 90 |
+
* @var bool[]
|
| 91 |
+
* @psalm-var array<string, bool>
|
| 92 |
+
*/
|
| 93 |
private $missingClasses = array();
|
| 94 |
+
|
| 95 |
+
/** @var ?string */
|
| 96 |
private $apcuPrefix;
|
| 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 |
+
*/
|
| 114 |
public function getPrefixes()
|
| 115 |
{
|
| 116 |
if (!empty($this->prefixesPsr0)) {
|
| 120 |
return array();
|
| 121 |
}
|
| 122 |
|
| 123 |
+
/**
|
| 124 |
+
* @return array[]
|
| 125 |
+
* @psalm-return array<string, array<int, string>>
|
| 126 |
+
*/
|
| 127 |
public function getPrefixesPsr4()
|
| 128 |
{
|
| 129 |
return $this->prefixDirsPsr4;
|
| 130 |
}
|
| 131 |
|
| 132 |
+
/**
|
| 133 |
+
* @return array[]
|
| 134 |
+
* @psalm-return array<string, string>
|
| 135 |
+
*/
|
| 136 |
public function getFallbackDirs()
|
| 137 |
{
|
| 138 |
return $this->fallbackDirsPsr0;
|
| 139 |
}
|
| 140 |
|
| 141 |
+
/**
|
| 142 |
+
* @return array[]
|
| 143 |
+
* @psalm-return array<string, string>
|
| 144 |
+
*/
|
| 145 |
public function getFallbackDirsPsr4()
|
| 146 |
{
|
| 147 |
return $this->fallbackDirsPsr4;
|
| 148 |
}
|
| 149 |
|
| 150 |
+
/**
|
| 151 |
+
* @return string[] Array of classname => path
|
| 152 |
+
* @psalm-var array<string, string>
|
| 153 |
+
*/
|
| 154 |
public function getClassMap()
|
| 155 |
{
|
| 156 |
return $this->classMap;
|
| 157 |
}
|
| 158 |
|
| 159 |
/**
|
| 160 |
+
* @param string[] $classMap Class to filename map
|
| 161 |
+
* @psalm-param array<string, string> $classMap
|
| 162 |
+
*
|
| 163 |
+
* @return void
|
| 164 |
*/
|
| 165 |
public function addClassMap(array $classMap)
|
| 166 |
{
|
| 175 |
* Registers a set of PSR-0 directories for a given prefix, either
|
| 176 |
* appending or prepending to the ones previously set for this prefix.
|
| 177 |
*
|
| 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
|
| 183 |
*/
|
| 184 |
public function add($prefix, $paths, $prepend = false)
|
| 185 |
{
|
| 222 |
* Registers a set of PSR-4 directories for a given namespace, either
|
| 223 |
* appending or prepending to the ones previously set for this namespace.
|
| 224 |
*
|
| 225 |
+
* @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
|
| 228 |
*
|
| 229 |
* @throws \InvalidArgumentException
|
| 230 |
+
*
|
| 231 |
+
* @return void
|
| 232 |
*/
|
| 233 |
public function addPsr4($prefix, $paths, $prepend = false)
|
| 234 |
{
|
| 272 |
* Registers a set of PSR-0 directories for a given prefix,
|
| 273 |
* replacing any others previously set for this prefix.
|
| 274 |
*
|
| 275 |
+
* @param string $prefix The prefix
|
| 276 |
+
* @param string[]|string $paths The PSR-0 base directories
|
| 277 |
+
*
|
| 278 |
+
* @return void
|
| 279 |
*/
|
| 280 |
public function set($prefix, $paths)
|
| 281 |
{
|
| 290 |
* Registers a set of PSR-4 directories for a given namespace,
|
| 291 |
* replacing any others previously set for this namespace.
|
| 292 |
*
|
| 293 |
+
* @param string $prefix The prefix/namespace, with trailing '\\'
|
| 294 |
+
* @param string[]|string $paths The PSR-4 base directories
|
| 295 |
*
|
| 296 |
* @throws \InvalidArgumentException
|
| 297 |
+
*
|
| 298 |
+
* @return void
|
| 299 |
*/
|
| 300 |
public function setPsr4($prefix, $paths)
|
| 301 |
{
|
| 315 |
* Turns on searching the include path for class files.
|
| 316 |
*
|
| 317 |
* @param bool $useIncludePath
|
| 318 |
+
*
|
| 319 |
+
* @return void
|
| 320 |
*/
|
| 321 |
public function setUseIncludePath($useIncludePath)
|
| 322 |
{
|
| 339 |
* that have not been registered with the class map.
|
| 340 |
*
|
| 341 |
* @param bool $classMapAuthoritative
|
| 342 |
+
*
|
| 343 |
+
* @return void
|
| 344 |
*/
|
| 345 |
public function setClassMapAuthoritative($classMapAuthoritative)
|
| 346 |
{
|
| 361 |
* APCu prefix to use to cache found/not-found classes, if the extension is enabled.
|
| 362 |
*
|
| 363 |
* @param string|null $apcuPrefix
|
| 364 |
+
*
|
| 365 |
+
* @return void
|
| 366 |
*/
|
| 367 |
public function setApcuPrefix($apcuPrefix)
|
| 368 |
{
|
| 383 |
* Registers this instance as an autoloader.
|
| 384 |
*
|
| 385 |
* @param bool $prepend Whether to prepend the autoloader or not
|
| 386 |
+
*
|
| 387 |
+
* @return void
|
| 388 |
*/
|
| 389 |
public function register($prepend = false)
|
| 390 |
{
|
| 404 |
|
| 405 |
/**
|
| 406 |
* Unregisters this instance as an autoloader.
|
| 407 |
+
*
|
| 408 |
+
* @return void
|
| 409 |
*/
|
| 410 |
public function unregister()
|
| 411 |
{
|
| 485 |
return self::$registeredLoaders;
|
| 486 |
}
|
| 487 |
|
| 488 |
+
/**
|
| 489 |
+
* @param string $class
|
| 490 |
+
* @param string $ext
|
| 491 |
+
* @return string|false
|
| 492 |
+
*/
|
| 493 |
private function findFileWithExtension($class, $ext)
|
| 494 |
{
|
| 495 |
// PSR-4 lookup
|
| 561 |
* Scope isolated include.
|
| 562 |
*
|
| 563 |
* Prevents access to $this/self from included files.
|
| 564 |
+
*
|
| 565 |
+
* @param string $file
|
| 566 |
+
* @return void
|
| 567 |
+
* @private
|
| 568 |
*/
|
| 569 |
function includeFile($file)
|
| 570 |
{
|
vendor/composer/InstalledVersions.php
CHANGED
|
@@ -20,7 +20,7 @@ use Composer\Semver\VersionParser;
|
|
| 20 |
*
|
| 21 |
* See also https://getcomposer.org/doc/07-runtime.md#installed-versions
|
| 22 |
*
|
| 23 |
-
* To require
|
| 24 |
*/
|
| 25 |
class InstalledVersions
|
| 26 |
{
|
|
@@ -228,7 +228,7 @@ class InstalledVersions
|
|
| 228 |
|
| 229 |
/**
|
| 230 |
* @return array
|
| 231 |
-
* @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}
|
| 232 |
*/
|
| 233 |
public static function getRootPackage()
|
| 234 |
{
|
|
@@ -242,7 +242,7 @@ class InstalledVersions
|
|
| 242 |
*
|
| 243 |
* @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.
|
| 244 |
* @return array[]
|
| 245 |
-
* @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string}>}
|
| 246 |
*/
|
| 247 |
public static function getRawData()
|
| 248 |
{
|
|
@@ -265,7 +265,7 @@ class InstalledVersions
|
|
| 265 |
* Returns the raw data of all installed.php which are currently loaded for custom implementations
|
| 266 |
*
|
| 267 |
* @return array[]
|
| 268 |
-
* @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string}>}>
|
| 269 |
*/
|
| 270 |
public static function getAllRawData()
|
| 271 |
{
|
|
@@ -288,7 +288,7 @@ class InstalledVersions
|
|
| 288 |
* @param array[] $data A vendor/composer/installed.php data set
|
| 289 |
* @return void
|
| 290 |
*
|
| 291 |
-
* @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string}>} $data
|
| 292 |
*/
|
| 293 |
public static function reload($data)
|
| 294 |
{
|
|
@@ -298,7 +298,7 @@ class InstalledVersions
|
|
| 298 |
|
| 299 |
/**
|
| 300 |
* @return array[]
|
| 301 |
-
* @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string}>}>
|
| 302 |
*/
|
| 303 |
private static function getInstalled()
|
| 304 |
{
|
| 20 |
*
|
| 21 |
* See also https://getcomposer.org/doc/07-runtime.md#installed-versions
|
| 22 |
*
|
| 23 |
+
* To require its presence, you can require `composer-runtime-api ^2.0`
|
| 24 |
*/
|
| 25 |
class InstalledVersions
|
| 26 |
{
|
| 228 |
|
| 229 |
/**
|
| 230 |
* @return array
|
| 231 |
+
* @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}
|
| 232 |
*/
|
| 233 |
public static function getRootPackage()
|
| 234 |
{
|
| 242 |
*
|
| 243 |
* @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.
|
| 244 |
* @return array[]
|
| 245 |
+
* @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<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}
|
| 246 |
*/
|
| 247 |
public static function getRawData()
|
| 248 |
{
|
| 265 |
* Returns the raw data of all installed.php which are currently loaded for custom implementations
|
| 266 |
*
|
| 267 |
* @return array[]
|
| 268 |
+
* @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
|
| 269 |
*/
|
| 270 |
public static function getAllRawData()
|
| 271 |
{
|
| 288 |
* @param array[] $data A vendor/composer/installed.php data set
|
| 289 |
* @return void
|
| 290 |
*
|
| 291 |
+
* @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<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>} $data
|
| 292 |
*/
|
| 293 |
public static function reload($data)
|
| 294 |
{
|
| 298 |
|
| 299 |
/**
|
| 300 |
* @return array[]
|
| 301 |
+
* @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
|
| 302 |
*/
|
| 303 |
private static function getInstalled()
|
| 304 |
{
|
vendor/composer/autoload_real.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
// autoload_real.php @generated by Composer
|
| 4 |
|
| 5 |
-
class
|
| 6 |
{
|
| 7 |
private static $loader;
|
| 8 |
|
|
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit0ddd844e4cd37309af68165e6856df0b
|
|
| 22 |
return self::$loader;
|
| 23 |
}
|
| 24 |
|
| 25 |
-
spl_autoload_register(array('
|
| 26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
| 27 |
-
spl_autoload_unregister(array('
|
| 28 |
|
| 29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
| 30 |
if ($useStaticLoader) {
|
| 31 |
require __DIR__ . '/autoload_static.php';
|
| 32 |
|
| 33 |
-
call_user_func(\Composer\Autoload\
|
| 34 |
} else {
|
| 35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
| 36 |
foreach ($map as $namespace => $path) {
|
|
@@ -51,19 +51,19 @@ class ComposerAutoloaderInit0ddd844e4cd37309af68165e6856df0b
|
|
| 51 |
$loader->register(true);
|
| 52 |
|
| 53 |
if ($useStaticLoader) {
|
| 54 |
-
$includeFiles = Composer\Autoload\
|
| 55 |
} else {
|
| 56 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
| 57 |
}
|
| 58 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
| 59 |
-
|
| 60 |
}
|
| 61 |
|
| 62 |
return $loader;
|
| 63 |
}
|
| 64 |
}
|
| 65 |
|
| 66 |
-
function
|
| 67 |
{
|
| 68 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
| 69 |
require $file;
|
| 2 |
|
| 3 |
// autoload_real.php @generated by Composer
|
| 4 |
|
| 5 |
+
class ComposerAutoloaderInitf607021062f1f7955bfeabe6abe2c41d
|
| 6 |
{
|
| 7 |
private static $loader;
|
| 8 |
|
| 22 |
return self::$loader;
|
| 23 |
}
|
| 24 |
|
| 25 |
+
spl_autoload_register(array('ComposerAutoloaderInitf607021062f1f7955bfeabe6abe2c41d', 'loadClassLoader'), true, true);
|
| 26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
| 27 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitf607021062f1f7955bfeabe6abe2c41d', 'loadClassLoader'));
|
| 28 |
|
| 29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
| 30 |
if ($useStaticLoader) {
|
| 31 |
require __DIR__ . '/autoload_static.php';
|
| 32 |
|
| 33 |
+
call_user_func(\Composer\Autoload\ComposerStaticInitf607021062f1f7955bfeabe6abe2c41d::getInitializer($loader));
|
| 34 |
} else {
|
| 35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
| 36 |
foreach ($map as $namespace => $path) {
|
| 51 |
$loader->register(true);
|
| 52 |
|
| 53 |
if ($useStaticLoader) {
|
| 54 |
+
$includeFiles = Composer\Autoload\ComposerStaticInitf607021062f1f7955bfeabe6abe2c41d::$files;
|
| 55 |
} else {
|
| 56 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
| 57 |
}
|
| 58 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
| 59 |
+
composerRequiref607021062f1f7955bfeabe6abe2c41d($fileIdentifier, $file);
|
| 60 |
}
|
| 61 |
|
| 62 |
return $loader;
|
| 63 |
}
|
| 64 |
}
|
| 65 |
|
| 66 |
+
function composerRequiref607021062f1f7955bfeabe6abe2c41d($fileIdentifier, $file)
|
| 67 |
{
|
| 68 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
| 69 |
require $file;
|
vendor/composer/autoload_static.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
|
| 5 |
namespace Composer\Autoload;
|
| 6 |
|
| 7 |
-
class
|
| 8 |
{
|
| 9 |
public static $files = array (
|
| 10 |
'50f1a0479b2a5847c529d784c54cebe2' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
|
|
@@ -58,9 +58,9 @@ class ComposerStaticInit0ddd844e4cd37309af68165e6856df0b
|
|
| 58 |
public static function getInitializer(ClassLoader $loader)
|
| 59 |
{
|
| 60 |
return \Closure::bind(function () use ($loader) {
|
| 61 |
-
$loader->prefixLengthsPsr4 =
|
| 62 |
-
$loader->prefixDirsPsr4 =
|
| 63 |
-
$loader->classMap =
|
| 64 |
|
| 65 |
}, null, ClassLoader::class);
|
| 66 |
}
|
| 4 |
|
| 5 |
namespace Composer\Autoload;
|
| 6 |
|
| 7 |
+
class ComposerStaticInitf607021062f1f7955bfeabe6abe2c41d
|
| 8 |
{
|
| 9 |
public static $files = array (
|
| 10 |
'50f1a0479b2a5847c529d784c54cebe2' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
|
| 58 |
public static function getInitializer(ClassLoader $loader)
|
| 59 |
{
|
| 60 |
return \Closure::bind(function () use ($loader) {
|
| 61 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInitf607021062f1f7955bfeabe6abe2c41d::$prefixLengthsPsr4;
|
| 62 |
+
$loader->prefixDirsPsr4 = ComposerStaticInitf607021062f1f7955bfeabe6abe2c41d::$prefixDirsPsr4;
|
| 63 |
+
$loader->classMap = ComposerStaticInitf607021062f1f7955bfeabe6abe2c41d::$classMap;
|
| 64 |
|
| 65 |
}, null, ClassLoader::class);
|
| 66 |
}
|
vendor/composer/installed.php
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?php return array(
|
| 2 |
'root' => array(
|
| 3 |
-
'pretty_version' => '1.1.
|
| 4 |
-
'version' => '1.1.
|
| 5 |
'type' => 'library',
|
| 6 |
'install_path' => __DIR__ . '/../../',
|
| 7 |
'aliases' => array(),
|
|
@@ -11,8 +11,8 @@
|
|
| 11 |
),
|
| 12 |
'versions' => array(
|
| 13 |
'codeinwp/templates-patterns-collection' => array(
|
| 14 |
-
'pretty_version' => '1.1.
|
| 15 |
-
'version' => '1.1.
|
| 16 |
'type' => 'library',
|
| 17 |
'install_path' => __DIR__ . '/../../',
|
| 18 |
'aliases' => array(),
|
| 1 |
<?php return array(
|
| 2 |
'root' => array(
|
| 3 |
+
'pretty_version' => '1.1.18',
|
| 4 |
+
'version' => '1.1.18.0',
|
| 5 |
'type' => 'library',
|
| 6 |
'install_path' => __DIR__ . '/../../',
|
| 7 |
'aliases' => array(),
|
| 11 |
),
|
| 12 |
'versions' => array(
|
| 13 |
'codeinwp/templates-patterns-collection' => array(
|
| 14 |
+
'pretty_version' => '1.1.18',
|
| 15 |
+
'version' => '1.1.18.0',
|
| 16 |
'type' => 'library',
|
| 17 |
'install_path' => __DIR__ . '/../../',
|
| 18 |
'aliases' => array(),
|
