Version Description
Download this release
Release Info
Developer | jeherve |
Plugin | VaultPress |
Version | 2.2.1 |
Comparing to | |
See all releases |
Code changes from version 2.2.0 to 2.2.1
- .phpcs.dir.xml +24 -0
- CHANGELOG.md +9 -0
- LICENSE.txt +357 -0
- README.md +19 -0
- SECURITY.md +38 -0
- changelog.txt +0 -220
- composer.json +7 -20
- images/security.svg +1 -1
- readme.txt +6 -11
- vaultpress.php +28 -5
- vendor/autoload.php +1 -1
- vendor/autoload_packages.php +1 -1
- vendor/automattic/jetpack-autoloader/README.md +0 -44
- vendor/automattic/jetpack-autoloader/composer.json +0 -28
- vendor/automattic/jetpack-autoloader/src/AutoloadGenerator.php +0 -357
- vendor/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php +0 -90
- vendor/automattic/jetpack-autoloader/src/autoload.php +0 -178
- vendor/automattic/jetpack-logo/CHANGELOG.md +138 -0
- vendor/automattic/jetpack-logo/LICENSE.txt +357 -0
- vendor/automattic/jetpack-logo/SECURITY.md +38 -0
- vendor/automattic/jetpack-logo/composer.json +4 -6
- vendor/automattic/jetpack-logo/src/class-logo.php +2 -2
- vendor/composer/ClassLoader.php +1 -1
- vendor/composer/InstalledVersions.php +13 -0
- vendor/composer/autoload_classmap_package.php +0 -58
- vendor/composer/autoload_files_package.php +0 -10
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +4 -4
- vendor/composer/installed.json +19 -19
- vendor/composer/installed.php +7 -7
- vendor/composer/jetpack_autoload_classmap.php +10 -10
- vendor/jetpack-autoloader/class-autoloader-handler.php +1 -1
- vendor/jetpack-autoloader/class-autoloader-locator.php +1 -1
- vendor/jetpack-autoloader/class-autoloader.php +1 -1
- vendor/jetpack-autoloader/class-container.php +1 -1
- vendor/jetpack-autoloader/class-hook-manager.php +1 -1
- vendor/jetpack-autoloader/class-latest-autoloader-guard.php +1 -1
- vendor/jetpack-autoloader/class-manifest-reader.php +1 -1
- vendor/jetpack-autoloader/class-path-processor.php +1 -1
- vendor/jetpack-autoloader/class-php-autoloader.php +4 -1
- vendor/jetpack-autoloader/class-plugin-locator.php +1 -1
- vendor/jetpack-autoloader/class-plugins-handler.php +1 -1
- vendor/jetpack-autoloader/class-shutdown-handler.php +1 -1
- vendor/jetpack-autoloader/class-version-loader.php +1 -1
- vendor/jetpack-autoloader/class-version-selector.php +1 -1
.phpcs.dir.xml
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<ruleset>
|
3 |
+
|
4 |
+
<rule ref="WordPress.WP.I18n">
|
5 |
+
<properties>
|
6 |
+
<property name="text_domain" type="array">
|
7 |
+
<element value="vaultpress" />
|
8 |
+
</property>
|
9 |
+
</properties>
|
10 |
+
</rule>
|
11 |
+
<rule ref="Jetpack.Functions.I18n">
|
12 |
+
<properties>
|
13 |
+
<property name="text_domain" value="vaultpress" />
|
14 |
+
</properties>
|
15 |
+
</rule>
|
16 |
+
|
17 |
+
<rule ref="WordPress.Utils.I18nTextDomainFixer">
|
18 |
+
<properties>
|
19 |
+
<property name="old_text_domain" type="array" />
|
20 |
+
<property name="new_text_domain" value="vaultpress" />
|
21 |
+
</properties>
|
22 |
+
</rule>
|
23 |
+
|
24 |
+
</ruleset>
|
CHANGELOG.md
CHANGED
@@ -2,6 +2,15 @@
|
|
2 |
|
3 |
All notable changes to this project will be documented in this file.
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
## 2.2.0 - 2021-10-11
|
6 |
### Changed
|
7 |
- Tests: update PHPUnit polyfills dependency (yoast/phpunit-polyfills).
|
2 |
|
3 |
All notable changes to this project will be documented in this file.
|
4 |
|
5 |
+
## 2.2.1 - 2022-02-01
|
6 |
+
### Changed
|
7 |
+
- Colors: update colors to match the latest iterations of our brand.
|
8 |
+
- General: update WordPress tested up to version, since the plugin works with WordPress 5.9.
|
9 |
+
- Set `convertDeprecationsToExceptions` true in PHPUnit config.
|
10 |
+
- Switch to pcov for code coverage.
|
11 |
+
- Updated package dependencies.
|
12 |
+
|
13 |
+
|
14 |
## 2.2.0 - 2021-10-11
|
15 |
### Changed
|
16 |
- Tests: update PHPUnit polyfills dependency (yoast/phpunit-polyfills).
|
LICENSE.txt
ADDED
@@ -0,0 +1,357 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
This program is free software; you can redistribute it and/or modify
|
2 |
+
it under the terms of the GNU General Public License as published by
|
3 |
+
the Free Software Foundation; either version 2 of the License, or
|
4 |
+
(at your option) any later version.
|
5 |
+
|
6 |
+
This program is distributed in the hope that it will be useful,
|
7 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
8 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
9 |
+
GNU General Public License for more details.
|
10 |
+
|
11 |
+
You should have received a copy of the GNU General Public License
|
12 |
+
along with this program; if not, write to the Free Software
|
13 |
+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
14 |
+
|
15 |
+
|
16 |
+
===================================
|
17 |
+
|
18 |
+
|
19 |
+
GNU GENERAL PUBLIC LICENSE
|
20 |
+
Version 2, June 1991
|
21 |
+
|
22 |
+
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
23 |
+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
24 |
+
Everyone is permitted to copy and distribute verbatim copies
|
25 |
+
of this license document, but changing it is not allowed.
|
26 |
+
|
27 |
+
Preamble
|
28 |
+
|
29 |
+
The licenses for most software are designed to take away your
|
30 |
+
freedom to share and change it. By contrast, the GNU General Public
|
31 |
+
License is intended to guarantee your freedom to share and change free
|
32 |
+
software--to make sure the software is free for all its users. This
|
33 |
+
General Public License applies to most of the Free Software
|
34 |
+
Foundation's software and to any other program whose authors commit to
|
35 |
+
using it. (Some other Free Software Foundation software is covered by
|
36 |
+
the GNU Lesser General Public License instead.) You can apply it to
|
37 |
+
your programs, too.
|
38 |
+
|
39 |
+
When we speak of free software, we are referring to freedom, not
|
40 |
+
price. Our General Public Licenses are designed to make sure that you
|
41 |
+
have the freedom to distribute copies of free software (and charge for
|
42 |
+
this service if you wish), that you receive source code or can get it
|
43 |
+
if you want it, that you can change the software or use pieces of it
|
44 |
+
in new free programs; and that you know you can do these things.
|
45 |
+
|
46 |
+
To protect your rights, we need to make restrictions that forbid
|
47 |
+
anyone to deny you these rights or to ask you to surrender the rights.
|
48 |
+
These restrictions translate to certain responsibilities for you if you
|
49 |
+
distribute copies of the software, or if you modify it.
|
50 |
+
|
51 |
+
For example, if you distribute copies of such a program, whether
|
52 |
+
gratis or for a fee, you must give the recipients all the rights that
|
53 |
+
you have. You must make sure that they, too, receive or can get the
|
54 |
+
source code. And you must show them these terms so they know their
|
55 |
+
rights.
|
56 |
+
|
57 |
+
We protect your rights with two steps: (1) copyright the software, and
|
58 |
+
(2) offer you this license which gives you legal permission to copy,
|
59 |
+
distribute and/or modify the software.
|
60 |
+
|
61 |
+
Also, for each author's protection and ours, we want to make certain
|
62 |
+
that everyone understands that there is no warranty for this free
|
63 |
+
software. If the software is modified by someone else and passed on, we
|
64 |
+
want its recipients to know that what they have is not the original, so
|
65 |
+
that any problems introduced by others will not reflect on the original
|
66 |
+
authors' reputations.
|
67 |
+
|
68 |
+
Finally, any free program is threatened constantly by software
|
69 |
+
patents. We wish to avoid the danger that redistributors of a free
|
70 |
+
program will individually obtain patent licenses, in effect making the
|
71 |
+
program proprietary. To prevent this, we have made it clear that any
|
72 |
+
patent must be licensed for everyone's free use or not licensed at all.
|
73 |
+
|
74 |
+
The precise terms and conditions for copying, distribution and
|
75 |
+
modification follow.
|
76 |
+
|
77 |
+
GNU GENERAL PUBLIC LICENSE
|
78 |
+
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
79 |
+
|
80 |
+
0. This License applies to any program or other work which contains
|
81 |
+
a notice placed by the copyright holder saying it may be distributed
|
82 |
+
under the terms of this General Public License. The "Program", below,
|
83 |
+
refers to any such program or work, and a "work based on the Program"
|
84 |
+
means either the Program or any derivative work under copyright law:
|
85 |
+
that is to say, a work containing the Program or a portion of it,
|
86 |
+
either verbatim or with modifications and/or translated into another
|
87 |
+
language. (Hereinafter, translation is included without limitation in
|
88 |
+
the term "modification".) Each licensee is addressed as "you".
|
89 |
+
|
90 |
+
Activities other than copying, distribution and modification are not
|
91 |
+
covered by this License; they are outside its scope. The act of
|
92 |
+
running the Program is not restricted, and the output from the Program
|
93 |
+
is covered only if its contents constitute a work based on the
|
94 |
+
Program (independent of having been made by running the Program).
|
95 |
+
Whether that is true depends on what the Program does.
|
96 |
+
|
97 |
+
1. You may copy and distribute verbatim copies of the Program's
|
98 |
+
source code as you receive it, in any medium, provided that you
|
99 |
+
conspicuously and appropriately publish on each copy an appropriate
|
100 |
+
copyright notice and disclaimer of warranty; keep intact all the
|
101 |
+
notices that refer to this License and to the absence of any warranty;
|
102 |
+
and give any other recipients of the Program a copy of this License
|
103 |
+
along with the Program.
|
104 |
+
|
105 |
+
You may charge a fee for the physical act of transferring a copy, and
|
106 |
+
you may at your option offer warranty protection in exchange for a fee.
|
107 |
+
|
108 |
+
2. You may modify your copy or copies of the Program or any portion
|
109 |
+
of it, thus forming a work based on the Program, and copy and
|
110 |
+
distribute such modifications or work under the terms of Section 1
|
111 |
+
above, provided that you also meet all of these conditions:
|
112 |
+
|
113 |
+
a) You must cause the modified files to carry prominent notices
|
114 |
+
stating that you changed the files and the date of any change.
|
115 |
+
|
116 |
+
b) You must cause any work that you distribute or publish, that in
|
117 |
+
whole or in part contains or is derived from the Program or any
|
118 |
+
part thereof, to be licensed as a whole at no charge to all third
|
119 |
+
parties under the terms of this License.
|
120 |
+
|
121 |
+
c) If the modified program normally reads commands interactively
|
122 |
+
when run, you must cause it, when started running for such
|
123 |
+
interactive use in the most ordinary way, to print or display an
|
124 |
+
announcement including an appropriate copyright notice and a
|
125 |
+
notice that there is no warranty (or else, saying that you provide
|
126 |
+
a warranty) and that users may redistribute the program under
|
127 |
+
these conditions, and telling the user how to view a copy of this
|
128 |
+
License. (Exception: if the Program itself is interactive but
|
129 |
+
does not normally print such an announcement, your work based on
|
130 |
+
the Program is not required to print an announcement.)
|
131 |
+
|
132 |
+
These requirements apply to the modified work as a whole. If
|
133 |
+
identifiable sections of that work are not derived from the Program,
|
134 |
+
and can be reasonably considered independent and separate works in
|
135 |
+
themselves, then this License, and its terms, do not apply to those
|
136 |
+
sections when you distribute them as separate works. But when you
|
137 |
+
distribute the same sections as part of a whole which is a work based
|
138 |
+
on the Program, the distribution of the whole must be on the terms of
|
139 |
+
this License, whose permissions for other licensees extend to the
|
140 |
+
entire whole, and thus to each and every part regardless of who wrote it.
|
141 |
+
|
142 |
+
Thus, it is not the intent of this section to claim rights or contest
|
143 |
+
your rights to work written entirely by you; rather, the intent is to
|
144 |
+
exercise the right to control the distribution of derivative or
|
145 |
+
collective works based on the Program.
|
146 |
+
|
147 |
+
In addition, mere aggregation of another work not based on the Program
|
148 |
+
with the Program (or with a work based on the Program) on a volume of
|
149 |
+
a storage or distribution medium does not bring the other work under
|
150 |
+
the scope of this License.
|
151 |
+
|
152 |
+
3. You may copy and distribute the Program (or a work based on it,
|
153 |
+
under Section 2) in object code or executable form under the terms of
|
154 |
+
Sections 1 and 2 above provided that you also do one of the following:
|
155 |
+
|
156 |
+
a) Accompany it with the complete corresponding machine-readable
|
157 |
+
source code, which must be distributed under the terms of Sections
|
158 |
+
1 and 2 above on a medium customarily used for software interchange; or,
|
159 |
+
|
160 |
+
b) Accompany it with a written offer, valid for at least three
|
161 |
+
years, to give any third party, for a charge no more than your
|
162 |
+
cost of physically performing source distribution, a complete
|
163 |
+
machine-readable copy of the corresponding source code, to be
|
164 |
+
distributed under the terms of Sections 1 and 2 above on a medium
|
165 |
+
customarily used for software interchange; or,
|
166 |
+
|
167 |
+
c) Accompany it with the information you received as to the offer
|
168 |
+
to distribute corresponding source code. (This alternative is
|
169 |
+
allowed only for noncommercial distribution and only if you
|
170 |
+
received the program in object code or executable form with such
|
171 |
+
an offer, in accord with Subsection b above.)
|
172 |
+
|
173 |
+
The source code for a work means the preferred form of the work for
|
174 |
+
making modifications to it. For an executable work, complete source
|
175 |
+
code means all the source code for all modules it contains, plus any
|
176 |
+
associated interface definition files, plus the scripts used to
|
177 |
+
control compilation and installation of the executable. However, as a
|
178 |
+
special exception, the source code distributed need not include
|
179 |
+
anything that is normally distributed (in either source or binary
|
180 |
+
form) with the major components (compiler, kernel, and so on) of the
|
181 |
+
operating system on which the executable runs, unless that component
|
182 |
+
itself accompanies the executable.
|
183 |
+
|
184 |
+
If distribution of executable or object code is made by offering
|
185 |
+
access to copy from a designated place, then offering equivalent
|
186 |
+
access to copy the source code from the same place counts as
|
187 |
+
distribution of the source code, even though third parties are not
|
188 |
+
compelled to copy the source along with the object code.
|
189 |
+
|
190 |
+
4. You may not copy, modify, sublicense, or distribute the Program
|
191 |
+
except as expressly provided under this License. Any attempt
|
192 |
+
otherwise to copy, modify, sublicense or distribute the Program is
|
193 |
+
void, and will automatically terminate your rights under this License.
|
194 |
+
However, parties who have received copies, or rights, from you under
|
195 |
+
this License will not have their licenses terminated so long as such
|
196 |
+
parties remain in full compliance.
|
197 |
+
|
198 |
+
5. You are not required to accept this License, since you have not
|
199 |
+
signed it. However, nothing else grants you permission to modify or
|
200 |
+
distribute the Program or its derivative works. These actions are
|
201 |
+
prohibited by law if you do not accept this License. Therefore, by
|
202 |
+
modifying or distributing the Program (or any work based on the
|
203 |
+
Program), you indicate your acceptance of this License to do so, and
|
204 |
+
all its terms and conditions for copying, distributing or modifying
|
205 |
+
the Program or works based on it.
|
206 |
+
|
207 |
+
6. Each time you redistribute the Program (or any work based on the
|
208 |
+
Program), the recipient automatically receives a license from the
|
209 |
+
original licensor to copy, distribute or modify the Program subject to
|
210 |
+
these terms and conditions. You may not impose any further
|
211 |
+
restrictions on the recipients' exercise of the rights granted herein.
|
212 |
+
You are not responsible for enforcing compliance by third parties to
|
213 |
+
this License.
|
214 |
+
|
215 |
+
7. If, as a consequence of a court judgment or allegation of patent
|
216 |
+
infringement or for any other reason (not limited to patent issues),
|
217 |
+
conditions are imposed on you (whether by court order, agreement or
|
218 |
+
otherwise) that contradict the conditions of this License, they do not
|
219 |
+
excuse you from the conditions of this License. If you cannot
|
220 |
+
distribute so as to satisfy simultaneously your obligations under this
|
221 |
+
License and any other pertinent obligations, then as a consequence you
|
222 |
+
may not distribute the Program at all. For example, if a patent
|
223 |
+
license would not permit royalty-free redistribution of the Program by
|
224 |
+
all those who receive copies directly or indirectly through you, then
|
225 |
+
the only way you could satisfy both it and this License would be to
|
226 |
+
refrain entirely from distribution of the Program.
|
227 |
+
|
228 |
+
If any portion of this section is held invalid or unenforceable under
|
229 |
+
any particular circumstance, the balance of the section is intended to
|
230 |
+
apply and the section as a whole is intended to apply in other
|
231 |
+
circumstances.
|
232 |
+
|
233 |
+
It is not the purpose of this section to induce you to infringe any
|
234 |
+
patents or other property right claims or to contest validity of any
|
235 |
+
such claims; this section has the sole purpose of protecting the
|
236 |
+
integrity of the free software distribution system, which is
|
237 |
+
implemented by public license practices. Many people have made
|
238 |
+
generous contributions to the wide range of software distributed
|
239 |
+
through that system in reliance on consistent application of that
|
240 |
+
system; it is up to the author/donor to decide if he or she is willing
|
241 |
+
to distribute software through any other system and a licensee cannot
|
242 |
+
impose that choice.
|
243 |
+
|
244 |
+
This section is intended to make thoroughly clear what is believed to
|
245 |
+
be a consequence of the rest of this License.
|
246 |
+
|
247 |
+
8. If the distribution and/or use of the Program is restricted in
|
248 |
+
certain countries either by patents or by copyrighted interfaces, the
|
249 |
+
original copyright holder who places the Program under this License
|
250 |
+
may add an explicit geographical distribution limitation excluding
|
251 |
+
those countries, so that distribution is permitted only in or among
|
252 |
+
countries not thus excluded. In such case, this License incorporates
|
253 |
+
the limitation as if written in the body of this License.
|
254 |
+
|
255 |
+
9. The Free Software Foundation may publish revised and/or new versions
|
256 |
+
of the General Public License from time to time. Such new versions will
|
257 |
+
be similar in spirit to the present version, but may differ in detail to
|
258 |
+
address new problems or concerns.
|
259 |
+
|
260 |
+
Each version is given a distinguishing version number. If the Program
|
261 |
+
specifies a version number of this License which applies to it and "any
|
262 |
+
later version", you have the option of following the terms and conditions
|
263 |
+
either of that version or of any later version published by the Free
|
264 |
+
Software Foundation. If the Program does not specify a version number of
|
265 |
+
this License, you may choose any version ever published by the Free Software
|
266 |
+
Foundation.
|
267 |
+
|
268 |
+
10. If you wish to incorporate parts of the Program into other free
|
269 |
+
programs whose distribution conditions are different, write to the author
|
270 |
+
to ask for permission. For software which is copyrighted by the Free
|
271 |
+
Software Foundation, write to the Free Software Foundation; we sometimes
|
272 |
+
make exceptions for this. Our decision will be guided by the two goals
|
273 |
+
of preserving the free status of all derivatives of our free software and
|
274 |
+
of promoting the sharing and reuse of software generally.
|
275 |
+
|
276 |
+
NO WARRANTY
|
277 |
+
|
278 |
+
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
279 |
+
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
280 |
+
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
281 |
+
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
282 |
+
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
283 |
+
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
284 |
+
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
285 |
+
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
286 |
+
REPAIR OR CORRECTION.
|
287 |
+
|
288 |
+
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
289 |
+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
290 |
+
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
291 |
+
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
292 |
+
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
293 |
+
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
294 |
+
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
295 |
+
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
296 |
+
POSSIBILITY OF SUCH DAMAGES.
|
297 |
+
|
298 |
+
END OF TERMS AND CONDITIONS
|
299 |
+
|
300 |
+
How to Apply These Terms to Your New Programs
|
301 |
+
|
302 |
+
If you develop a new program, and you want it to be of the greatest
|
303 |
+
possible use to the public, the best way to achieve this is to make it
|
304 |
+
free software which everyone can redistribute and change under these terms.
|
305 |
+
|
306 |
+
To do so, attach the following notices to the program. It is safest
|
307 |
+
to attach them to the start of each source file to most effectively
|
308 |
+
convey the exclusion of warranty; and each file should have at least
|
309 |
+
the "copyright" line and a pointer to where the full notice is found.
|
310 |
+
|
311 |
+
<one line to give the program's name and a brief idea of what it does.>
|
312 |
+
Copyright (C) <year> <name of author>
|
313 |
+
|
314 |
+
This program is free software; you can redistribute it and/or modify
|
315 |
+
it under the terms of the GNU General Public License as published by
|
316 |
+
the Free Software Foundation; either version 2 of the License, or
|
317 |
+
(at your option) any later version.
|
318 |
+
|
319 |
+
This program is distributed in the hope that it will be useful,
|
320 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
321 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
322 |
+
GNU General Public License for more details.
|
323 |
+
|
324 |
+
You should have received a copy of the GNU General Public License along
|
325 |
+
with this program; if not, write to the Free Software Foundation, Inc.,
|
326 |
+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
327 |
+
|
328 |
+
Also add information on how to contact you by electronic and paper mail.
|
329 |
+
|
330 |
+
If the program is interactive, make it output a short notice like this
|
331 |
+
when it starts in an interactive mode:
|
332 |
+
|
333 |
+
Gnomovision version 69, Copyright (C) year name of author
|
334 |
+
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
335 |
+
This is free software, and you are welcome to redistribute it
|
336 |
+
under certain conditions; type `show c' for details.
|
337 |
+
|
338 |
+
The hypothetical commands `show w' and `show c' should show the appropriate
|
339 |
+
parts of the General Public License. Of course, the commands you use may
|
340 |
+
be called something other than `show w' and `show c'; they could even be
|
341 |
+
mouse-clicks or menu items--whatever suits your program.
|
342 |
+
|
343 |
+
You should also get your employer (if you work as a programmer) or your
|
344 |
+
school, if any, to sign a "copyright disclaimer" for the program, if
|
345 |
+
necessary. Here is a sample; alter the names:
|
346 |
+
|
347 |
+
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
348 |
+
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
349 |
+
|
350 |
+
<signature of Ty Coon>, 1 April 1989
|
351 |
+
Ty Coon, President of Vice
|
352 |
+
|
353 |
+
This General Public License does not permit incorporating your program into
|
354 |
+
proprietary programs. If your program is a subroutine library, you may
|
355 |
+
consider it more useful to permit linking proprietary applications with the
|
356 |
+
library. If this is what you want to do, use the GNU Lesser General
|
357 |
+
Public License instead of this License.
|
README.md
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# VaultPress
|
2 |
+
|
3 |
+
VaultPress is a subscription service offering real-time backup, automated security scanning, and support from WordPress experts.
|
4 |
+
|
5 |
+
## How to install VaultPress
|
6 |
+
|
7 |
+
### Installation From Git Repo
|
8 |
+
|
9 |
+
## Contribute
|
10 |
+
|
11 |
+
## Get Help
|
12 |
+
|
13 |
+
## Security
|
14 |
+
|
15 |
+
Need to report a security vulnerability? Go to [https://automattic.com/security/](https://automattic.com/security/) or directly to our security bug bounty site [https://hackerone.com/automattic](https://hackerone.com/automattic).
|
16 |
+
|
17 |
+
## License
|
18 |
+
|
19 |
+
VaultPress is licensed under [GNU General Public License v2 (or later)](./LICENSE.txt)
|
SECURITY.md
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Security Policy
|
2 |
+
|
3 |
+
Full details of the Automattic Security Policy can be found on [automattic.com](https://automattic.com/security/).
|
4 |
+
|
5 |
+
## Supported Versions
|
6 |
+
|
7 |
+
Generally, only the latest version of Jetpack has continued support. If a critical vulnerability is found in the current version of Jetpack, we may opt to backport any patches to previous versions.
|
8 |
+
|
9 |
+
## Reporting a Vulnerability
|
10 |
+
|
11 |
+
[Jetpack](https://jetpack.com/) is an open-source plugin for WordPress. Our HackerOne program covers the plugin software, as well as a variety of related projects and infrastructure.
|
12 |
+
|
13 |
+
**For responsible disclosure of security issues and to be eligible for our bug bounty program, please submit your report via the [HackerOne](https://hackerone.com/automattic) portal.**
|
14 |
+
|
15 |
+
Our most critical targets are:
|
16 |
+
|
17 |
+
* Jetpack and the Jetpack composer packages (all within this repo)
|
18 |
+
* Jetpack.com -- the primary marketing site.
|
19 |
+
* cloud.jetpack.com -- a management site.
|
20 |
+
* wordpress.com -- the shared management site for both Jetpack and WordPress.com sites.
|
21 |
+
|
22 |
+
For more targets, see the `In Scope` section on [HackerOne](https://hackerone.com/automattic).
|
23 |
+
|
24 |
+
_Please note that the **WordPress software is a separate entity** from Automattic. Please report vulnerabilities for WordPress through [the WordPress Foundation's HackerOne page](https://hackerone.com/wordpress)._
|
25 |
+
|
26 |
+
## Guidelines
|
27 |
+
|
28 |
+
We're committed to working with security researchers to resolve the vulnerabilities they discover. You can help us by following these guidelines:
|
29 |
+
|
30 |
+
* Follow [HackerOne's disclosure guidelines](https://www.hackerone.com/disclosure-guidelines).
|
31 |
+
* Pen-testing Production:
|
32 |
+
* Please **setup a local environment** instead whenever possible. Most of our code is open source (see above).
|
33 |
+
* If that's not possible, **limit any data access/modification** to the bare minimum necessary to reproduce a PoC.
|
34 |
+
* **_Don't_ automate form submissions!** That's very annoying for us, because it adds extra work for the volunteers who manage those systems, and reduces the signal/noise ratio in our communication channels.
|
35 |
+
* To be eligible for a bounty, all of these guidelines must be followed.
|
36 |
+
* Be Patient - Give us a reasonable time to correct the issue before you disclose the vulnerability.
|
37 |
+
|
38 |
+
We also expect you to comply with all applicable laws. You're responsible to pay any taxes associated with your bounties.
|
changelog.txt
DELETED
@@ -1,220 +0,0 @@
|
|
1 |
-
== Changelog ==
|
2 |
-
|
3 |
-
**This is a list detailing changes for all the past Jetpack releases. For more information about the current release, see [the readme](https://github.com/Automattic/vaultpress/blob/master/readme.txt).**
|
4 |
-
|
5 |
-
= 2.0.1 =
|
6 |
-
|
7 |
-
* Release date: July 12, 2019
|
8 |
-
|
9 |
-
**Bug Fixes**
|
10 |
-
|
11 |
-
* Security Scanner: ensure the Security Scanner can be triggered at all times.
|
12 |
-
|
13 |
-
= 2.0 =
|
14 |
-
|
15 |
-
* Release date: July 9, 2019
|
16 |
-
|
17 |
-
**Enhancements**
|
18 |
-
|
19 |
-
* Dashboard: redesign the main VaultPress dashboard.
|
20 |
-
|
21 |
-
**Compatibility**
|
22 |
-
|
23 |
-
* General: VaultPress now requires PHP 5.3.2, and will display a notice if your site uses an older version of PHP.
|
24 |
-
|
25 |
-
|
26 |
-
= 1.9.10 =
|
27 |
-
|
28 |
-
* Release date: April 4, 2019
|
29 |
-
|
30 |
-
**Bug fixes**
|
31 |
-
|
32 |
-
* Fix a PHP fatal error caused by passing an object to the current() function.
|
33 |
-
|
34 |
-
= 1.9.9 - 28 March 2019 =
|
35 |
-
* PHP 7.2.0 compatibility fix.
|
36 |
-
* Adding button to delete all VaultPress settings
|
37 |
-
|
38 |
-
= 1.9.8 - 7 February 2019 =
|
39 |
-
* Limit the size of _vp_ai_ping_% entries when a site gets disconnected from VaultPress.com
|
40 |
-
|
41 |
-
= 1.9.7 - 11 December 2018 =
|
42 |
-
* Update firewall IP detection rules to autodetect various reverse proxy setups
|
43 |
-
|
44 |
-
= 1.9.6 - 17 August 2018 =
|
45 |
-
* Limit _vp_ai_ping_% entries to improve stability when a site gets disconnected from VaultPress.com
|
46 |
-
|
47 |
-
= 1.9.5 - 2 February 2018 =
|
48 |
-
* Removing activation notice
|
49 |
-
|
50 |
-
= 1.9.4 - 15 November 2017 =
|
51 |
-
* Error handling improvements in the scanner
|
52 |
-
|
53 |
-
= 1.9.3 - 9 November 2017 =
|
54 |
-
* Compatibility update
|
55 |
-
* Send a better user-agent string to VaultPress servers
|
56 |
-
|
57 |
-
= 1.9.2 - 6 July 2017 =
|
58 |
-
* Compatibility update
|
59 |
-
|
60 |
-
= 1.9.1 - 29 June 2017 =
|
61 |
-
* Security improvement: use hash_equals to compare signatures
|
62 |
-
|
63 |
-
= 1.9.0 - 5 June 2017 =
|
64 |
-
* Bugfix: Check return value from openssl_verify()
|
65 |
-
|
66 |
-
= 1.8.9 - 8 May 2017 =
|
67 |
-
* Remove outdated free trial link
|
68 |
-
|
69 |
-
= 1.8.7 - 6 March 2017 =
|
70 |
-
* Security fix for https://wpvulndb.com/vulnerabilities/8745
|
71 |
-
|
72 |
-
= 1.8.6 - 26 January 2016 =
|
73 |
-
* Compatibility updates
|
74 |
-
* Security hotfixes
|
75 |
-
* Improved performance for security scanner
|
76 |
-
* Misc small bugfixes
|
77 |
-
|
78 |
-
= 1.8.5 - 7 August 2016 =
|
79 |
-
* Delete plugin option when plugin is deleted via admin area.
|
80 |
-
* Fix horizontal scroll bar on the fresh installation settings page at high resolutions.
|
81 |
-
|
82 |
-
= 1.8.4 - 21 July 2016 =
|
83 |
-
* Compatibility updates for Jetpack 4.1
|
84 |
-
|
85 |
-
= 1.8.3 - 26 May 2016 =
|
86 |
-
* Security: Hotfix for certain versions of Jetpack
|
87 |
-
|
88 |
-
= 1.8.2 - 11 May 2016 =
|
89 |
-
* Workaround for some versions of mod_security.
|
90 |
-
|
91 |
-
= 1.8.1 - 29 Mar 2016 =
|
92 |
-
* Improved support for WooCommerce live backups.
|
93 |
-
* Bugfix: Avoid cloning the 'vaultpress' option between Multisite instances.
|
94 |
-
|
95 |
-
= 1.8.0 - 7 Mar 2016 =
|
96 |
-
* Add support for an upcoming ability to have the Jetpack plugin manage registering the VaultPress plugin and entering the required API key. Gone will be the days of needing to copy/paste it!
|
97 |
-
|
98 |
-
= 1.7.9 - 24 Feb 2016 =
|
99 |
-
* PHP 7 support. Drop support for PHP 4 and versions of WordPress older than 3.2.
|
100 |
-
* Silence PHP errors when attempting to change the execution time limit when PHP is running in safe mode.
|
101 |
-
* Prevent database update pings from being stored when not connected to a paid VaultPress account.
|
102 |
-
|
103 |
-
= 1.7.8 - 15 Oct 2015 =
|
104 |
-
* Security: Hotfix for Akismet < 3.1.5.
|
105 |
-
|
106 |
-
= 1.7.7 - 15 Sep 2015 =
|
107 |
-
* Security: Add a new security hotfix.
|
108 |
-
|
109 |
-
= 1.7.6 - 14 Aug 2015 =
|
110 |
-
* Improved support for multisite installs with custom domains
|
111 |
-
* Improved live-backup support for WooCommerce
|
112 |
-
* Tested against WordPress 4.3
|
113 |
-
|
114 |
-
= 1.7.5 - 11 Jun 2015 =
|
115 |
-
* Security: Add a new security hotfix.
|
116 |
-
|
117 |
-
= 1.7.4 - 28 Apr 2015 =
|
118 |
-
* Bugfix: Don't allow openssl signing unless the public key exists.
|
119 |
-
|
120 |
-
= 1.7.3 - 27 Apr 2015 =
|
121 |
-
* Security: Add a new security hotfix.
|
122 |
-
|
123 |
-
= 1.7.2 - 20 Apr 2015 =
|
124 |
-
* Hotfix: Protect against a core security issue.
|
125 |
-
* Bugfix: Don't allow direct access to plugin files
|
126 |
-
* Bugfix: Ensure that the firewall rule option is not autoloaded.
|
127 |
-
* Bugfix: More careful path tidy-up when inspecting directory contents. Fixes an edge case where some sites were having backup problems.
|
128 |
-
|
129 |
-
= 1.7.1 - 25 Mar 2015 =
|
130 |
-
* Added support for openssl signing.
|
131 |
-
|
132 |
-
= 1.7.0 - 9 Jan 2015 =
|
133 |
-
* Added an option to disable calls to php_uname, as some hosts don't allow them.
|
134 |
-
|
135 |
-
= 1.6.9 - 24 Dec 2014 =
|
136 |
-
* Tested against WordPress 4.1
|
137 |
-
|
138 |
-
= 1.6.8 - 12 Dec 2014 =
|
139 |
-
* Bugfix: Fall back on HTTP when updating firewall via HTTPS fails. Still warn the user about the security implications.
|
140 |
-
|
141 |
-
= 1.6.7 - 1 Dec 2014 =
|
142 |
-
* Security: More efficient format for internal firewall IPs.
|
143 |
-
|
144 |
-
= 1.6.6 - 14 Nov 2014 =
|
145 |
-
* Security: Fetch service IP updates via HTTPS.
|
146 |
-
* Feature: Don't send backup notifications while mass-deleting spam.
|
147 |
-
|
148 |
-
= 1.6.5 - 4 Sep 2014 =
|
149 |
-
* Security: Hotfix for the Slider Revolution plugin.
|
150 |
-
|
151 |
-
= 1.6.4 - 3 Sep 2014 =
|
152 |
-
* Bumping the "Tested up to" tag to 4.0
|
153 |
-
|
154 |
-
= 1.6.3 - 30 Jul 2014 =
|
155 |
-
* Bugfix: Make sure existing empty key and secret options are always strings. This fixes an error when run with HHVM.
|
156 |
-
* Bugfix: Detect if the plugin has been installed on localhost and show an error.
|
157 |
-
* CSS Fix: Stop the "Register" button from bouncing around when clicked.
|
158 |
-
|
159 |
-
= 1.6.2 - 10 Jul 2014 =
|
160 |
-
* Feature: Instantly register for a VaultPress trial via Jetpack.
|
161 |
-
* Bugfix: Make sure the key and secret options are always strings. This fixes an error when run with HHVM.
|
162 |
-
|
163 |
-
= 1.6.1 - 1 Jul 2014 =
|
164 |
-
* Security: Add a new security hotfix.
|
165 |
-
|
166 |
-
= 1.6 - 27 Jun 2014 =
|
167 |
-
* Bugfix: Better handling for Multisite table prefixes.
|
168 |
-
* Bugfix: Do not use the deprecated wpdb::escape() method.
|
169 |
-
|
170 |
-
= 1.5.9 - 16 Jun 2014 =
|
171 |
-
* Feature: If available, use command line md5sum and sha1sum to get checksums for large files.
|
172 |
-
|
173 |
-
= 1.5.8 - 3 Jun 2014 =
|
174 |
-
* Security: Add a new security hotfix.
|
175 |
-
|
176 |
-
= 1.5.7 - 11 Apr 2014 =
|
177 |
-
* Bugfix: Avoid PHP 5.4 warnings due to invalid constructor names.
|
178 |
-
* Security: Add a new security hotfix.
|
179 |
-
|
180 |
-
= 1.5.6 - 1 Apr 2014 =
|
181 |
-
* Bugfix: Avoid PHP 5.4 warnings.
|
182 |
-
* Bugfix: Some servers with restrictive security filters make database restores fail.
|
183 |
-
* Feature: Add a new restore method to VaultPress_Database.
|
184 |
-
|
185 |
-
= 1.5.2 - 26 Dec 2013 =
|
186 |
-
* Bugfix: Adding less greedy patterns for cache directories.
|
187 |
-
|
188 |
-
= 1.5.1 - 16 Dec 2013 =
|
189 |
-
* Feature: Adding file exclusion patterns to avoid backing up cache and backup directories.
|
190 |
-
|
191 |
-
= 1.5 - 11 Dec 2013 =
|
192 |
-
* Bugfix: Don't show admin notices on the about page.
|
193 |
-
|
194 |
-
= 1.4.9 - 10 Oct 2013 =
|
195 |
-
* Bugfix: Clean up PHP5 strict warnings.
|
196 |
-
|
197 |
-
= 1.4.8 - 15 Jul 2013 =
|
198 |
-
* Feature: Include styles and images with the plugin instead of loading them externally.
|
199 |
-
|
200 |
-
= 1.4.7 - 2 Jul 2013 =
|
201 |
-
* Bugfix: Some servers have SSL configuration problems, which breaks the plugin when SSL verification is enforced.
|
202 |
-
|
203 |
-
= 1.4.6 - 26 Jun 2013 =
|
204 |
-
* Bugfix: PHP 5.4 notices
|
205 |
-
* Feature: Add the possibility to ignore frequent updates on some postmeta keys.
|
206 |
-
|
207 |
-
= 1.3.9 =
|
208 |
-
* Feature: Request decoding (base64/rot13)
|
209 |
-
* Feature: Response encoding (base64/rot13)
|
210 |
-
|
211 |
-
= 1.3.8 =
|
212 |
-
* Bugfix: Validate IPv4-mapped IPv6 addresses in the internal firewall.
|
213 |
-
* Bugfix: Fix hooks not being properly added under certain circumstances.
|
214 |
-
|
215 |
-
= 1.3.7 =
|
216 |
-
* Bugfix: Protect against infinite loop due to a PHP bug.
|
217 |
-
* Bugfix: Encode remote ping requests.
|
218 |
-
|
219 |
-
= 1.0 =
|
220 |
-
* First public release!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
composer.json
CHANGED
@@ -12,41 +12,28 @@
|
|
12 |
"automattic/jetpack-autoloader": "^2.10"
|
13 |
},
|
14 |
"require-dev": {
|
15 |
-
"yoast/phpunit-polyfills": "1.0.
|
16 |
-
"automattic/jetpack-changelogger": "^
|
17 |
},
|
18 |
"scripts": {
|
19 |
"phpunit": [
|
20 |
"./vendor/phpunit/phpunit/phpunit --colors=always"
|
21 |
],
|
22 |
"test-coverage": [
|
23 |
-
"
|
24 |
-
"phpdbg -d memory_limit=2048M -d max_execution_time=900 -qrr ./vendor/bin/phpunit --coverage-clover \"$COVERAGE_DIR/clover.xml\""
|
25 |
],
|
26 |
"test-php": [
|
27 |
-
"@composer install",
|
28 |
"@composer phpunit"
|
29 |
-
],
|
30 |
-
"build-development": [
|
31 |
-
"Composer\\Config::disableProcessTimeout",
|
32 |
-
"@clean",
|
33 |
-
"@composer install"
|
34 |
-
],
|
35 |
-
"build-production": [
|
36 |
-
"Composer\\Config::disableProcessTimeout",
|
37 |
-
"@clean",
|
38 |
-
"@putenv COMPOSER_MIRROR_PATH_REPOS=1",
|
39 |
-
"@composer install -o --no-dev --classmap-authoritative --prefer-dist"
|
40 |
-
],
|
41 |
-
"clean": [
|
42 |
-
"rm -rf vendor/"
|
43 |
]
|
44 |
},
|
45 |
"repositories": [],
|
46 |
"minimum-stability": "dev",
|
47 |
"prefer-stable": true,
|
48 |
"config": {
|
49 |
-
"autoloader-suffix": "9559eef123208b7d1b9c15b978567267_vaultpressⓥ
|
|
|
|
|
|
|
50 |
},
|
51 |
"extra": {
|
52 |
"mirror-repo": "Automattic/vaultpress",
|
12 |
"automattic/jetpack-autoloader": "^2.10"
|
13 |
},
|
14 |
"require-dev": {
|
15 |
+
"yoast/phpunit-polyfills": "1.0.3",
|
16 |
+
"automattic/jetpack-changelogger": "^3.0"
|
17 |
},
|
18 |
"scripts": {
|
19 |
"phpunit": [
|
20 |
"./vendor/phpunit/phpunit/phpunit --colors=always"
|
21 |
],
|
22 |
"test-coverage": [
|
23 |
+
"php -dpcov.directory=. ./vendor/bin/phpunit --coverage-clover \"$COVERAGE_DIR/clover.xml\""
|
|
|
24 |
],
|
25 |
"test-php": [
|
|
|
26 |
"@composer phpunit"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
]
|
28 |
},
|
29 |
"repositories": [],
|
30 |
"minimum-stability": "dev",
|
31 |
"prefer-stable": true,
|
32 |
"config": {
|
33 |
+
"autoloader-suffix": "9559eef123208b7d1b9c15b978567267_vaultpressⓥ2_2_1",
|
34 |
+
"allow-plugins": {
|
35 |
+
"automattic/jetpack-autoloader": true
|
36 |
+
}
|
37 |
},
|
38 |
"extra": {
|
39 |
"mirror-repo": "Automattic/vaultpress",
|
images/security.svg
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 183 104"><style>.st0{fill:#e3eaf0}.st1{fill:#D8DEE4}.st2{fill:#BBC9D5}.st3{fill:#BBC9D5}.st4{fill:#fff}.st5{fill:#CCCED0}.st6{fill:#46799A}.st7{fill:#
|
1 |
+
<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 183 104"><style>.st0{fill:#e3eaf0}.st1{fill:#D8DEE4}.st2{fill:#BBC9D5}.st3{fill:#BBC9D5}.st4{fill:#fff}.st5{fill:#CCCED0}.st6{fill:#46799A}.st7{fill:#069e08}.st8{fill:#6F93AD}</style><title>security & backups image</title><path class="st0" d="M.3 99.6c11-.6 22.1-.7 33.1-.8l16.6-.1h16.6l33.1.2c11 .1 22.1.2 33.1.6.2 0 .4.2.4.4s-.2.4-.4.4c-11 .4-22.1.5-33.1.6l-33.1.2H50l-16.6-.1c-11-.1-22.1-.3-33.1-.8-.1 0-.2-.1-.2-.2 0-.3.1-.4.2-.4zm152.5 0c2.5-.5 5-.7 7.5-.8l3.7-.1h3.7c2.5 0 5 .1 7.5.2s5 .2 7.5.6c.2 0 .4.2.4.5 0 .2-.2.3-.4.4-2.5.4-5 .5-7.5.6-2.5.1-5 .1-7.5.2H164l-3.7-.1c-2.5-.1-5-.3-7.5-.8-.1 0-.2-.1-.2-.2 0-.4.1-.5.2-.5z"/><path class="st1" d="M46.1 82.8V25h70.1v57.8H49.9"/><path class="st2" d="M46.1 24.7V11.1h98.2v13.5H51.5"/><path class="st3" d="M144.3 25.2l.9 57.3-28.9.1V25.2h28"/><path class="st4" d="M102.5 82.7H54.3V50.6h53.1v32.1m0-35.7H54.3V33.8h53.1V47"/><path class="st5" d="M96.1 41.6c-.7.2-1.4.5-2.1.8-.6.4-1.3.7-1.9 1.1-.4.3-.9.6-1.4.9.4-.5.9-1.1 1.3-1.6.5-.6 1-1.3 1.4-2 .5-.7.9-1.4 1.2-2.2 0-.1 0-.1-.1-.1h-.1c-.7.5-1.3 1.1-1.8 1.7-.5.6-1 1.3-1.5 1.9-.4.6-.9 1.2-1.3 1.9.2-.7.5-1.4.7-2.2l.6-2.4c.2-.8.3-1.6.3-2.5v-.1h-.1c-.4.7-.8 1.5-1 2.2-.3.8-.5 1.6-.7 2.3-.2.6-.3 1.2-.4 1.8 0-.7-.1-1.5-.1-2.2-.1-.9-.2-1.7-.3-2.6-.1-.9-.3-1.7-.5-2.6 0-.1-.1-.2-.2-.1-.1 0-.1.1-.1.2-.1.9-.1 1.8-.1 2.6 0 .9.1 1.7.1 2.6.1.9.1 1.7.2 2.6-.2-.5-.5-1.1-.8-1.6-.3-.6-.7-1.3-1-1.9l-1.2-1.8c-.1-.1-.2-.1-.3 0-.1 0-.1.1-.1.2.2.7.4 1.4.7 2.1.3.7.6 1.3.9 2 .2.3.3.6.5.9-.5-.5-1-1.1-1.5-1.6-.7-.6-1.3-1.3-2-1.9-.7-.6-1.4-1.2-2.2-1.7-.1-.1-.2 0-.3.1v.2c.5.8 1.1 1.5 1.7 2.1.6.7 1.3 1.3 1.9 2 .6.6 1.3 1.3 2 1.9l.1.1c-.4-.2-.8-.4-1.2-.5-.6-.2-1.2-.5-1.9-.7-.6-.2-1.3-.4-1.9-.5-.1 0-.2.1-.2.2s0 .1.1.2c.5.4 1.1.7 1.7 1 .6.3 1.2.6 1.8.8.6.3 1.2.5 1.9.7.6.2 1.2.3 1.9.4H89.1c.7-.3 1.4-.6 2-.9.6-.4 1.3-.7 1.9-1.1l1.8-1.2c.6-.4 1.2-.9 1.7-1.5v-.1c-.3.1-.4.1-.4.1z"/><path class="st6" d="M147.6 24.9c-8.7.9-17.4.9-26.1 1l-26.1.3H69.3c-8.7 0-17.4.1-26.1-.7V25c8.7-.9 17.4-.9 26.1-1l26.1-.3h26.1c8.7 0 17.4-.1 26.1.7v.5z"/><path class="st5" d="M77.3 70c-1.1.6-2.1 1.3-2.9 2.2l.3-1.1c.4-1.7 1-3.4 1.6-5.1l-.3-.2c-.6.7-1.1 1.5-1.4 2.4-.4.9-.7 1.7-.9 2.6-.2.9-.4 1.8-.5 2.8v.8c-.2.6-.3 1.4-.1 2h.2l.1-.1v.1h.2c.1-.5.3-.9.4-1.4.1-.1.1-.2.2-.3.3-.5.7-1 1-1.5.4-.5.8-.9 1.3-1.4.5-.5.9-.9 1.3-1.5-.2 0-.5-.3-.5-.3zm24.6-10.4c-.5-.9-1.3-2-2.8-2.5-.6-.2-1.3-.3-2-.3.3-.4.6-.7.9-1.1l-.3-.3c-.6.5-1.1 1-1.7 1.5-.5.1-1 .3-1.4.5-.2-1-.6-2.3-1.8-3.3-.8-.7-1.9-1.1-2.9-1.2-1.1-.1-2.1.7-2.3 1.8 0 .3 0 .5.1.8.3 1.1.9 2 1.8 2.7 1 .8 2.3 1.3 3.6 1.3.3 0 .6 0 .9-.1-1 1.5-1.8 3.1-2.5 4.8l-.1.1c-.2-1-.7-2.8-2.5-3.8-1.1-.6-2.3-.9-3.6-.7-1 .1-1.7 1-1.6 2.1 0 .1 0 .3.1.4.4 1.2 1.2 2.2 2.3 2.9 1.4.8 3 1 4.5.5 0 .1.1.2.2.3-.5 1.7-.8 3.4-1 5.1-.2-.6-1.4-2.8-3.9-3.3-1.2-.2-2.5 0-3.6.5-.9.5-1.3 1.6-.8 2.5.1.1.1.2.2.3.8 1 1.9 1.7 3.2 1.9.3.1.7.1 1.1.1 1.2 0 2.3-.4 3.3-1l-.1.2.2.3c.1.2.2.3.3.5-.1 1.5 0 3.1.2 4.6h.2c.2-1.3.3-2.5.4-3.8.9.8 2.1 1.2 3.4 1.2 1.2 0 2.3-.4 3.3-1 .5-.3.8-.8.8-1.4 0-.6-.2-1.1-.6-1.5-.7-.7-1.9-1.5-3.5-1.5-1.1 0-2.1.3-3 .9.2-1.2.4-2.4.8-3.6.9.8 2 1.3 3.1 1.4h.5c1 0 2-.3 2.9-.8.5-.3.8-.8.9-1.3.1-.6-.1-1.1-.5-1.5-.7-.7-1.8-1.6-3.3-1.7-.8-.1-1.7.1-2.5.4.4-1 .9-2 1.5-3 .1-.1.1-.2.2-.4.6.9 1.6 1.7 2.7 2 .6.2 1.2.3 1.8.3.6 0 1.1-.1 1.6-.2.5-.2 1-.6 1.2-1.1.5-.4.4-1 .1-1.5zm-15.2 4.9c-.9-.5-1.5-1.3-1.9-2.3-.1-.4.1-.9.5-1.1h.8c.8 0 1.6.2 2.3.6 1.5.9 1.9 2.6 2 3.3-1.2.3-2.6.1-3.7-.5zm-1.5 7.7c-1-.2-1.9-.7-2.6-1.6-.3-.4-.2-.9.1-1.2l.1-.1c.7-.3 1.4-.5 2.2-.5.3 0 .5 0 .8.1 1.7.3 2.7 1.8 3 2.5-.9.8-2.3 1.1-3.6.8zm8.8-1.3c1.3 0 2.2.6 2.8 1.2.3.3.4.9 0 1.2 0 0-.1.1-.2.1-.7.6-1.6.9-2.6.9-1.6 0-2.6-.8-3.2-1.5 0-.2.1-.4.1-.6.6-.5 1.7-1.3 3.1-1.3zm1.4-6.6c1.2.1 2.2.8 2.7 1.4.2.2.2.4.2.7 0 .3-.2.5-.4.6-.9.5-1.9.7-2.9.6-1.1-.1-2.2-.7-2.9-1.5V66c.1-.3.2-.7.3-1 .9-.5 1.9-.8 3-.7zm-1.7-5.6c-1.3.2-2.6-.2-3.6-1-.7-.6-1.2-1.3-1.4-2.2-.2-.6.2-1.2.7-1.3h.4c.9.1 1.7.4 2.4 1 1.4 1 1.5 2.7 1.5 3.5zm7.4 2.1c-.1.2-.3.4-.6.5-.9.3-1.9.3-2.9-.1-1-.3-1.9-1.1-2.4-2l.9-1.2c.9-.2 1.8-.2 2.6.1 1.2.4 1.9 1.3 2.3 2 .2.2.2.5.1.7z"/><path class="st7" d="M178.2 57.1c-.1-.5-.5-.9-1-.9-2.1 0-4.2-.2-6.3-.5-2.1-.3-4.2-.8-6.2-1.5s-3.9-1.6-5.7-2.7c-1.8-1.1-3.3-2.5-4.6-4.1l-.1-.1c-.4-.3-1-.3-1.3.1-1.2 1.4-2.8 2.8-4.3 4-1.6 1.2-3.3 2.2-5.1 3-1.8.8-3.7 1.4-5.6 1.8-1.9.4-3.9.5-5.9.3-.4 0-.7.3-.8.6-.7 4.8-.9 9.5-.6 14.3.3 4.7 1.2 9.5 2.9 13.9 1.7 4.5 4.3 8.6 7.8 11.9 3.5 3.3 7.8 5.5 12.4 6.7h.1c2.5-.1 4.9-.8 7.1-1.8 2.2-1 4.4-2.3 6.2-4 3.8-3.2 6.7-7.4 8.6-12 2-4.6 2.8-9.5 3.1-14.4.3-4.9 0-9.8-.7-14.6z"/><path class="st7" d="M145.3 78.3l7.4 5.9L167.8 67"/><path class="st4" d="M168.1 66.9c-.1-.1-.3-.2-.5-.1-1.5 1.2-2.9 2.6-4.2 3.9l-3.9 4.2c-2.3 2.6-4.6 5.1-6.9 7.7-1-.8-1.9-1.5-2.9-2.3l-1.9-1.5c-.7-.5-1.2-1.1-2.1-1.2h-.4c-.4.2-.6.6-.4 1 .3.9 1 1.2 1.6 1.8l1.8 1.5c1.2 1 2.4 2 3.7 3 .5.4 1.1.3 1.5-.1 2.5-2.9 5-5.7 7.5-8.6 1.2-1.5 2.5-2.9 3.7-4.4s2.3-3 3.3-4.7c.2.1.1-.1.1-.2z"/><path class="st5" d="M137.2 99.7c-5-.2-10-.4-15-.5-5-.1-10-.2-15-.2-10-.1-19.9-.1-29.9-.1l-29.9-.1H28.7c-.7 0-1.1 0-1.6-.1s-.9-.3-1.3-.6c-.8-.6-1.3-1.4-1.5-2.4 0-.2-.1-.5-.1-.7v-1.6l52.9-.1h4.8v2.4c0 .3.2.5.5.5h24.5c.3 0 .5-.2.5-.5V93c3.5 0 6.9-.1 10.4-.2 4.5-.1 9-.2 13.5-.4.1 0 .2-.1.2-.3 0-.1-.1-.2-.2-.2-4.5-.2-9-.3-13.5-.4-4.5-.1-9-.2-13.5-.2-9-.1-18-.1-27-.1L23.1 91c-.6 0-1.2.5-1.2 1.2V95c0 .4 0 .8.1 1.2.5 2.3 2.2 4.2 4.5 4.8.7.2 1.6.2 2.2.2h18.7l29.9-.1c10 0 19.9 0 29.9-.1 5 0 10-.1 15-.2s10-.2 15-.5c.1 0 .2-.1.2-.3 0-.2-.1-.3-.2-.3zM153.8.3L128 .2H42.9c-.6 0-1.2.1-1.8.3-1.2.3-2.3.9-3.3 1.7-1.9 1.6-3.1 4-3 6.5v82.5H37V8.8c0-2.9 1.9-5.4 4.6-6.1.4-.1.9-.2 1.4-.2h85.1l24.9-.1.2 19.7.1 10.3.2 10.3c0 .2.2.3.4.3.1 0 .3-.1.3-.3l.2-10.3.1-10.3.2-20.6c-.1-.7-.4-1.1-.9-1.2z"/><path class="st8" d="M54.3 78.8c13.6-5.6 42.9-1.9 52.5 4.1l-52.5-.2v-3.9z"/></svg>
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== VaultPress ===
|
2 |
-
Contributors: automattic, apokalyptik, briancolinger, josephscott,
|
3 |
Tags: security, malware, virus, archive, back up, back ups, backup, backups, scanning, restore, wordpress backup, site backup, website backup
|
4 |
Requires at least: 5.2
|
5 |
-
Tested up to:
|
6 |
-
Stable tag: 2.2.
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2
|
9 |
|
@@ -48,16 +48,11 @@ A VaultPress subscription is for a single WordPress site. You can purchase addit
|
|
48 |
Yes, VaultPress supports Multisite installs. Each site will require its own subscription.
|
49 |
|
50 |
== Changelog ==
|
51 |
-
### 2.2.
|
52 |
#### Changed
|
53 |
-
-
|
54 |
-
-
|
55 |
|
56 |
-
#### Security
|
57 |
-
- VaultPress: Remove obsolete hotfixes
|
58 |
-
|
59 |
-
#### Fixed
|
60 |
-
- General: avoid PHP notices when using recent versions of PHP.
|
61 |
|
62 |
--------
|
63 |
|
1 |
=== VaultPress ===
|
2 |
+
Contributors: automattic, annezazu, apokalyptik, bjorsch, briancolinger, dsmart, georgestephanis, jeherve, josephscott, miguelxavierpenha, rachelsquirrel, rdcoll, sdixon194, shaunandrews, thingalon, viper007bond, williamvianas, xknown
|
3 |
Tags: security, malware, virus, archive, back up, back ups, backup, backups, scanning, restore, wordpress backup, site backup, website backup
|
4 |
Requires at least: 5.2
|
5 |
+
Tested up to: 6.0
|
6 |
+
Stable tag: 2.2.1
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2
|
9 |
|
48 |
Yes, VaultPress supports Multisite installs. Each site will require its own subscription.
|
49 |
|
50 |
== Changelog ==
|
51 |
+
### 2.2.1 - 2022-02-01
|
52 |
#### Changed
|
53 |
+
- Colors: update colors to match the latest iterations of our brand.
|
54 |
+
- General: update WordPress tested up to version, since the plugin works with WordPress 5.9.
|
55 |
|
|
|
|
|
|
|
|
|
|
|
56 |
|
57 |
--------
|
58 |
|
vaultpress.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: VaultPress
|
4 |
* Plugin URI: http://vaultpress.com/?utm_source=plugin-uri&utm_medium=plugin-description&utm_campaign=1.0
|
5 |
* Description: Protect your content, themes, plugins, and settings with <strong>realtime backup</strong> and <strong>automated security scanning</strong> from <a href="http://vaultpress.com/?utm_source=wp-admin&utm_medium=plugin-description&utm_campaign=1.0" rel="nofollow">VaultPress</a>. Activate, enter your registration key, and never worry again. <a href="http://vaultpress.com/help/?utm_source=wp-admin&utm_medium=plugin-description&utm_campaign=1.0" rel="nofollow">Need some help?</a>
|
6 |
-
* Version: 2.2.
|
7 |
* Author: Automattic
|
8 |
* Author URI: http://vaultpress.com/?utm_source=author-uri&utm_medium=plugin-description&utm_campaign=1.0
|
9 |
* License: GPL2+
|
@@ -17,7 +17,7 @@
|
|
17 |
defined( 'ABSPATH' ) || die();
|
18 |
|
19 |
define( 'VAULTPRESS__MINIMUM_PHP_VERSION', '5.6' );
|
20 |
-
define( 'VAULTPRESS__VERSION', '2.2.
|
21 |
define( 'VAULTPRESS__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
22 |
|
23 |
/**
|
@@ -1287,9 +1287,32 @@ class VaultPress {
|
|
1287 |
$this->block_change_handler( 'woocommerce_tax_rate_locations', array( 'tax_rate_id' => $id ) );
|
1288 |
}
|
1289 |
|
1290 |
-
|
1291 |
-
|
1292 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1293 |
|
1294 |
function generic_change_handler( $table, $key ) {
|
1295 |
$this->add_ping( 'db', array( $table => $key ) );
|
3 |
* Plugin Name: VaultPress
|
4 |
* Plugin URI: http://vaultpress.com/?utm_source=plugin-uri&utm_medium=plugin-description&utm_campaign=1.0
|
5 |
* Description: Protect your content, themes, plugins, and settings with <strong>realtime backup</strong> and <strong>automated security scanning</strong> from <a href="http://vaultpress.com/?utm_source=wp-admin&utm_medium=plugin-description&utm_campaign=1.0" rel="nofollow">VaultPress</a>. Activate, enter your registration key, and never worry again. <a href="http://vaultpress.com/help/?utm_source=wp-admin&utm_medium=plugin-description&utm_campaign=1.0" rel="nofollow">Need some help?</a>
|
6 |
+
* Version: 2.2.1
|
7 |
* Author: Automattic
|
8 |
* Author URI: http://vaultpress.com/?utm_source=author-uri&utm_medium=plugin-description&utm_campaign=1.0
|
9 |
* License: GPL2+
|
17 |
defined( 'ABSPATH' ) || die();
|
18 |
|
19 |
define( 'VAULTPRESS__MINIMUM_PHP_VERSION', '5.6' );
|
20 |
+
define( 'VAULTPRESS__VERSION', '2.2.1' );
|
21 |
define( 'VAULTPRESS__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
22 |
|
23 |
/**
|
1287 |
$this->block_change_handler( 'woocommerce_tax_rate_locations', array( 'tax_rate_id' => $id ) );
|
1288 |
}
|
1289 |
|
1290 |
+
/**
|
1291 |
+
* Monitor for changes to a Woo order (creation, update, or deletion).
|
1292 |
+
*
|
1293 |
+
* @param int $id Item ID.
|
1294 |
+
*/
|
1295 |
+
public function woocommerce_order_item_handler( $id ) {
|
1296 |
+
$this->generic_change_handler( 'woocommerce_order_items', array( 'order_item_id' => $id ) );
|
1297 |
+
}
|
1298 |
+
|
1299 |
+
/**
|
1300 |
+
* Monitor for changes to a Woo order meta (creation, update, or deletion).
|
1301 |
+
*
|
1302 |
+
* @param int $id Item ID.
|
1303 |
+
*/
|
1304 |
+
public function woocommerce_order_item_meta_handler( $id ) {
|
1305 |
+
$this->generic_change_handler( 'woocommerce_order_itemmeta', array( 'meta_id' => $id ) );
|
1306 |
+
}
|
1307 |
+
|
1308 |
+
/**
|
1309 |
+
* Monitor for changes to a Woo attribute (creation, update, or deletion).
|
1310 |
+
*
|
1311 |
+
* @param int $id Item ID.
|
1312 |
+
*/
|
1313 |
+
public function woocommerce_attribute_handler( $id ) {
|
1314 |
+
$this->generic_change_handler( 'woocommerce_attribute_taxonomies', array( 'attribute_id' => $id ) );
|
1315 |
+
}
|
1316 |
|
1317 |
function generic_change_handler( $table, $key ) {
|
1318 |
$this->add_ping( 'db', array( $table => $key ) );
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return ComposerAutoloaderInit9559eef123208b7d1b9c15b978567267_vaultpressⓥ
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit9559eef123208b7d1b9c15b978567267_vaultpressⓥ2_2_1::getLoader();
|
vendor/autoload_packages.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\jp9559eef123208b7d1b9c15b978567267_vaultpressⓥ
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jp9559eef123208b7d1b9c15b978567267_vaultpressⓥ2_2_1;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/automattic/jetpack-autoloader/README.md
DELETED
@@ -1,44 +0,0 @@
|
|
1 |
-
A custom autoloader for Composer
|
2 |
-
=====================================
|
3 |
-
|
4 |
-
This is a custom autoloader generator that uses a classmap to always load the latest version of a class.
|
5 |
-
|
6 |
-
The problem this autoloader is trying to solve is conflicts that arise when two or more plugins use the same package, but one of the plugins uses an older version of said package.
|
7 |
-
|
8 |
-
This is solved by keeping an in memory map of all the different classes that can be loaded, and updating the map with the path to the latest version of the package for the autoloader to find when we instantiate the class.
|
9 |
-
This only works if we instantiate the class after all the plugins have loaded. That is why the class produces an error if the plugin calls a class but has not loaded all the plugins yet.
|
10 |
-
|
11 |
-
It diverges from the default Composer autoloader setup in the following ways:
|
12 |
-
|
13 |
-
* It creates an `autoload_classmap_package.php` file in the `vendor/composer` directory.
|
14 |
-
* This file includes the version numbers from each package that is used.
|
15 |
-
* The autoloader will only load the latest version of the library no matter what plugin loads the library.
|
16 |
-
* Only call the library classes after all the plugins have loaded and the `plugins_loaded` action has fired.
|
17 |
-
|
18 |
-
|
19 |
-
Usage
|
20 |
-
-----
|
21 |
-
|
22 |
-
In your project's `composer.json`, add the following lines:
|
23 |
-
|
24 |
-
```json
|
25 |
-
{
|
26 |
-
"require-dev": {
|
27 |
-
"automattic/jetpack-autoloader": "^1"
|
28 |
-
}
|
29 |
-
}
|
30 |
-
```
|
31 |
-
|
32 |
-
After the next update/install, you will have a `vendor/autoload_packages.php` file.
|
33 |
-
Load the file in your plugin via main plugin file.
|
34 |
-
|
35 |
-
In the main plugin you will also need to include the files like this.
|
36 |
-
```php
|
37 |
-
require_once . plugin_dir_path( __FILE__ ) . '/vendor/autoload_packages.php';
|
38 |
-
```
|
39 |
-
|
40 |
-
|
41 |
-
Current Limitations
|
42 |
-
-----
|
43 |
-
|
44 |
-
We currently only support packages that autoload via psr-4 definition in their package.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/automattic/jetpack-autoloader/composer.json
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"name": "automattic/jetpack-autoloader",
|
3 |
-
"description": "Creates a custom autoloader for a plugin or theme.",
|
4 |
-
"type": "composer-plugin",
|
5 |
-
"license": "GPL-2.0-or-later",
|
6 |
-
"require": {
|
7 |
-
"composer-plugin-api": "^1.1"
|
8 |
-
},
|
9 |
-
"require-dev": {
|
10 |
-
"phpunit/phpunit": "^5.7 || ^6.5 || ^7.5"
|
11 |
-
},
|
12 |
-
"autoload": {
|
13 |
-
"psr-4": {
|
14 |
-
"Automattic\\Jetpack\\Autoloader\\": "src"
|
15 |
-
}
|
16 |
-
},
|
17 |
-
"extra": {
|
18 |
-
"class": "Automattic\\Jetpack\\Autoloader\\CustomAutoloaderPlugin"
|
19 |
-
},
|
20 |
-
"scripts": {
|
21 |
-
"phpunit": [
|
22 |
-
"@composer install",
|
23 |
-
"./vendor/phpunit/phpunit/phpunit --colors=always"
|
24 |
-
]
|
25 |
-
},
|
26 |
-
"minimum-stability": "dev",
|
27 |
-
"prefer-stable": true
|
28 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/automattic/jetpack-autoloader/src/AutoloadGenerator.php
DELETED
@@ -1,357 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Autoloader Generator.
|
4 |
-
*
|
5 |
-
* @package automattic/jetpack-autoloader
|
6 |
-
*/
|
7 |
-
|
8 |
-
// phpcs:disable PHPCompatibility.Keywords.NewKeywords.t_useFound
|
9 |
-
// phpcs:disable PHPCompatibility.LanguageConstructs.NewLanguageConstructs.t_ns_separatorFound
|
10 |
-
// phpcs:disable PHPCompatibility.FunctionDeclarations.NewClosure.Found
|
11 |
-
// phpcs:disable PHPCompatibility.Keywords.NewKeywords.t_namespaceFound
|
12 |
-
// phpcs:disable PHPCompatibility.Keywords.NewKeywords.t_dirFound
|
13 |
-
// phpcs:disable WordPress.Files.FileName.InvalidClassFileName
|
14 |
-
// phpcs:disable WordPress.Files.FileName.NotHyphenatedLowercase
|
15 |
-
// phpcs:disable WordPress.Files.FileName.InvalidClassFileName
|
16 |
-
// phpcs:disable WordPress.PHP.DevelopmentFunctions.error_log_var_export
|
17 |
-
// phpcs:disable WordPress.WP.AlternativeFunctions.file_system_read_file_put_contents
|
18 |
-
// phpcs:disable WordPress.WP.AlternativeFunctions.file_system_read_fopen
|
19 |
-
// phpcs:disable WordPress.WP.AlternativeFunctions.file_system_read_fwrite
|
20 |
-
// phpcs:disable WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
|
21 |
-
// phpcs:disable WordPress.NamingConventions.ValidVariableName.InterpolatedVariableNotSnakeCase
|
22 |
-
// phpcs:disable WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase
|
23 |
-
// phpcs:disable WordPress.NamingConventions.ValidVariableName.PropertyNotSnakeCase
|
24 |
-
|
25 |
-
|
26 |
-
namespace Automattic\Jetpack\Autoloader;
|
27 |
-
|
28 |
-
use Composer\Autoload\AutoloadGenerator as BaseGenerator;
|
29 |
-
use Composer\Autoload\ClassMapGenerator;
|
30 |
-
use Composer\Config;
|
31 |
-
use Composer\Installer\InstallationManager;
|
32 |
-
use Composer\IO\IOInterface;
|
33 |
-
use Composer\Package\PackageInterface;
|
34 |
-
use Composer\Repository\InstalledRepositoryInterface;
|
35 |
-
use Composer\Util\Filesystem;
|
36 |
-
|
37 |
-
/**
|
38 |
-
* Class AutoloadGenerator.
|
39 |
-
*/
|
40 |
-
class AutoloadGenerator extends BaseGenerator {
|
41 |
-
|
42 |
-
/**
|
43 |
-
* Instantiate an AutoloadGenerator object.
|
44 |
-
*
|
45 |
-
* @param IOInterface $io IO object.
|
46 |
-
*/
|
47 |
-
public function __construct( IOInterface $io = null ) {
|
48 |
-
$this->io = $io;
|
49 |
-
}
|
50 |
-
|
51 |
-
/**
|
52 |
-
* Dump the autoloader.
|
53 |
-
*
|
54 |
-
* @param Config $config Config object.
|
55 |
-
* @param InstalledRepositoryInterface $localRepo Installed Reposetories object.
|
56 |
-
* @param PackageInterface $mainPackage Main Package object.
|
57 |
-
* @param InstallationManager $installationManager Manager for installing packages.
|
58 |
-
* @param string $targetDir Path to the current target directory.
|
59 |
-
* @param bool $scanPsr0Packages Whether to search for packages. Currently hard coded to always be false.
|
60 |
-
* @param string $suffix The autoloader suffix, ignored since we want our autoloader to only be included once.
|
61 |
-
*/
|
62 |
-
public function dump(
|
63 |
-
Config $config,
|
64 |
-
InstalledRepositoryInterface $localRepo,
|
65 |
-
PackageInterface $mainPackage,
|
66 |
-
InstallationManager $installationManager,
|
67 |
-
$targetDir,
|
68 |
-
$scanPsr0Packages = null, // Not used we always optimize.
|
69 |
-
$suffix = null
|
70 |
-
) {
|
71 |
-
|
72 |
-
$filesystem = new Filesystem();
|
73 |
-
$filesystem->ensureDirectoryExists( $config->get( 'vendor-dir' ) );
|
74 |
-
|
75 |
-
$basePath = $filesystem->normalizePath( realpath( getcwd() ) );
|
76 |
-
$vendorPath = $filesystem->normalizePath( realpath( $config->get( 'vendor-dir' ) ) );
|
77 |
-
$targetDir = $vendorPath . '/' . $targetDir;
|
78 |
-
$filesystem->ensureDirectoryExists( $targetDir );
|
79 |
-
|
80 |
-
$packageMap = $this->buildPackageMap( $installationManager, $mainPackage, $localRepo->getCanonicalPackages() );
|
81 |
-
$autoloads = $this->parseAutoloads( $packageMap, $mainPackage );
|
82 |
-
|
83 |
-
$classMap = $this->getClassMap( $autoloads, $filesystem, $vendorPath, $basePath );
|
84 |
-
$fileMap = $this->getFileMap( $autoloads, $filesystem, $vendorPath, $basePath );
|
85 |
-
|
86 |
-
// Generate the files.
|
87 |
-
file_put_contents( $targetDir . '/autoload_classmap_package.php', $this->getAutoloadClassmapPackagesFile( $classMap ) );
|
88 |
-
$this->io->writeError( '<info>Generated ' . $targetDir . '/autoload_classmap_package.php</info>', true );
|
89 |
-
|
90 |
-
file_put_contents( $targetDir . '/autoload_files_package.php', $this->getAutoloadFilesPackagesFile( $fileMap ) );
|
91 |
-
$this->io->writeError( '<info>Generated ' . $targetDir . '/autoload_files_package.php</info>', true );
|
92 |
-
|
93 |
-
file_put_contents( $vendorPath . '/autoload_packages.php', $this->getAutoloadPackageFile( $suffix ) );
|
94 |
-
$this->io->writeError( '<info>Generated ' . $vendorPath . '/autoload_packages.php</info>', true );
|
95 |
-
|
96 |
-
}
|
97 |
-
|
98 |
-
/**
|
99 |
-
* This function differs from the composer parseAutoloadsType in that beside returning the path.
|
100 |
-
* It also return the path and the version of a package.
|
101 |
-
*
|
102 |
-
* Currently supports only psr-4 and clasmap parsing.
|
103 |
-
*
|
104 |
-
* @param array $packageMap Map of all the packages.
|
105 |
-
* @param string $type Type of autoloader to use, currently not used, since we only support psr-4.
|
106 |
-
* @param PackageInterface $mainPackage Instance of the Package Object.
|
107 |
-
*
|
108 |
-
* @return array
|
109 |
-
*/
|
110 |
-
protected function parseAutoloadsType( array $packageMap, $type, PackageInterface $mainPackage ) {
|
111 |
-
$autoloads = array();
|
112 |
-
|
113 |
-
if ( 'psr-4' !== $type && 'classmap' !== $type && 'files' !== $type ) {
|
114 |
-
return parent::parseAutoloadsType( $packageMap, $type, $mainPackage );
|
115 |
-
}
|
116 |
-
|
117 |
-
foreach ( $packageMap as $item ) {
|
118 |
-
list($package, $installPath) = $item;
|
119 |
-
$autoload = $package->getAutoload();
|
120 |
-
|
121 |
-
if ( $package === $mainPackage ) {
|
122 |
-
$autoload = array_merge_recursive( $autoload, $package->getDevAutoload() );
|
123 |
-
}
|
124 |
-
|
125 |
-
if ( null !== $package->getTargetDir() && $package !== $mainPackage ) {
|
126 |
-
$installPath = substr( $installPath, 0, -strlen( '/' . $package->getTargetDir() ) );
|
127 |
-
}
|
128 |
-
|
129 |
-
if ( 'psr-4' === $type && isset( $autoload['psr-4'] ) && is_array( $autoload['psr-4'] ) ) {
|
130 |
-
foreach ( $autoload['psr-4'] as $namespace => $paths ) {
|
131 |
-
$paths = is_array( $paths ) ? $paths : array( $paths );
|
132 |
-
foreach ( $paths as $path ) {
|
133 |
-
$relativePath = empty( $installPath ) ? ( empty( $path ) ? '.' : $path ) : $installPath . '/' . $path;
|
134 |
-
$autoloads[ $namespace ][] = array(
|
135 |
-
'path' => $relativePath,
|
136 |
-
'version' => $package->getVersion(), // Version of the class comes from the package - should we try to parse it?
|
137 |
-
);
|
138 |
-
}
|
139 |
-
}
|
140 |
-
}
|
141 |
-
|
142 |
-
if ( 'classmap' === $type && isset( $autoload['classmap'] ) && is_array( $autoload['classmap'] ) ) {
|
143 |
-
foreach ( $autoload['classmap'] as $paths ) {
|
144 |
-
$paths = is_array( $paths ) ? $paths : array( $paths );
|
145 |
-
foreach ( $paths as $path ) {
|
146 |
-
$relativePath = empty( $installPath ) ? ( empty( $path ) ? '.' : $path ) : $installPath . '/' . $path;
|
147 |
-
$autoloads[] = array(
|
148 |
-
'path' => $relativePath,
|
149 |
-
'version' => $package->getVersion(), // Version of the class comes from the package - should we try to parse it?
|
150 |
-
);
|
151 |
-
}
|
152 |
-
}
|
153 |
-
}
|
154 |
-
if ( 'files' === $type && isset( $autoload['files'] ) && is_array( $autoload['files'] ) ) {
|
155 |
-
foreach ( $autoload['files'] as $file_id => $paths ) {
|
156 |
-
$paths = is_array( $paths ) ? $paths : array( $paths );
|
157 |
-
foreach ( $paths as $path ) {
|
158 |
-
$relativePath = empty( $installPath ) ? ( empty( $path ) ? '.' : $path ) : $installPath . '/' . $path;
|
159 |
-
$autoloads[ $this->getFileIdentifier( $package, $path ) ] = array(
|
160 |
-
'path' => $relativePath,
|
161 |
-
'version' => $package->getVersion(), // Version of the file comes from the package - should we try to parse it?
|
162 |
-
);
|
163 |
-
}
|
164 |
-
}
|
165 |
-
}
|
166 |
-
}
|
167 |
-
|
168 |
-
return $autoloads;
|
169 |
-
}
|
170 |
-
|
171 |
-
/**
|
172 |
-
* Take the autoloads array and return the classMap that contains the path and the version for each namespace.
|
173 |
-
*
|
174 |
-
* @param array $autoloads Array of autoload settings defined defined by the packages.
|
175 |
-
* @param Filesystem $filesystem Filesystem class instance.
|
176 |
-
* @param string $vendorPath Path to the vendor directory.
|
177 |
-
* @param string $basePath Base Path.
|
178 |
-
*
|
179 |
-
* @return string $classMap
|
180 |
-
*/
|
181 |
-
private function getClassMap( array $autoloads, Filesystem $filesystem, $vendorPath, $basePath ) {
|
182 |
-
$blacklist = null;
|
183 |
-
|
184 |
-
if ( ! empty( $autoloads['exclude-from-classmap'] ) ) {
|
185 |
-
$blacklist = '{(' . implode( '|', $autoloads['exclude-from-classmap'] ) . ')}';
|
186 |
-
}
|
187 |
-
|
188 |
-
$classmapString = '';
|
189 |
-
|
190 |
-
// Scan the PSR-4 and classmap directories for class files, and add them to the class map.
|
191 |
-
foreach ( $autoloads['psr-4'] as $namespace => $packages_info ) {
|
192 |
-
foreach ( $packages_info as $package ) {
|
193 |
-
$dir = $filesystem->normalizePath(
|
194 |
-
$filesystem->isAbsolutePath( $package['path'] )
|
195 |
-
? $package['path']
|
196 |
-
: $basePath . '/' . $package['path']
|
197 |
-
);
|
198 |
-
$namespace = empty( $namespace ) ? null : $namespace;
|
199 |
-
$map = ClassMapGenerator::createMap( $dir, $blacklist, $this->io, $namespace );
|
200 |
-
|
201 |
-
foreach ( $map as $class => $path ) {
|
202 |
-
$classCode = var_export( $class, true );
|
203 |
-
$pathCode = $this->getPathCode( $filesystem, $basePath, $vendorPath, $path );
|
204 |
-
$versionCode = var_export( $package['version'], true );
|
205 |
-
$classmapString .= <<<CLASS_CODE
|
206 |
-
$classCode => array(
|
207 |
-
'version' => $versionCode,
|
208 |
-
'path' => $pathCode
|
209 |
-
),
|
210 |
-
CLASS_CODE;
|
211 |
-
$classmapString .= PHP_EOL;
|
212 |
-
}
|
213 |
-
}
|
214 |
-
}
|
215 |
-
|
216 |
-
foreach ( $autoloads['classmap'] as $package ) {
|
217 |
-
$dir = $filesystem->normalizePath(
|
218 |
-
$filesystem->isAbsolutePath( $package['path'] )
|
219 |
-
? $package['path']
|
220 |
-
: $basePath . '/' . $package['path']
|
221 |
-
);
|
222 |
-
$map = ClassMapGenerator::createMap( $dir, $blacklist, $this->io, null );
|
223 |
-
|
224 |
-
foreach ( $map as $class => $path ) {
|
225 |
-
$classCode = var_export( $class, true );
|
226 |
-
$pathCode = $this->getPathCode( $filesystem, $basePath, $vendorPath, $path );
|
227 |
-
$versionCode = var_export( $package['version'], true );
|
228 |
-
$classmapString .= <<<CLASS_CODE
|
229 |
-
$classCode => array(
|
230 |
-
'version' => $versionCode,
|
231 |
-
'path' => $pathCode
|
232 |
-
),
|
233 |
-
CLASS_CODE;
|
234 |
-
$classmapString .= PHP_EOL;
|
235 |
-
}
|
236 |
-
}
|
237 |
-
|
238 |
-
return 'array( ' . PHP_EOL . $classmapString . ');' . PHP_EOL;
|
239 |
-
}
|
240 |
-
|
241 |
-
/**
|
242 |
-
* Generate the PHP that will be used in the autoload_classmap_package.php files.
|
243 |
-
*
|
244 |
-
* @param string $classMap class map array string that is to be written out to the file.
|
245 |
-
*
|
246 |
-
* @return string
|
247 |
-
*/
|
248 |
-
private function getAutoloadClassmapPackagesFile( $classMap ) {
|
249 |
-
|
250 |
-
return <<<INCLUDE_CLASSMAP
|
251 |
-
<?php
|
252 |
-
|
253 |
-
// This file `autoload_classmap_packages.php` was auto generated by automattic/jetpack-autoloader.
|
254 |
-
|
255 |
-
\$vendorDir = dirname(__DIR__);
|
256 |
-
\$baseDir = dirname(\$vendorDir);
|
257 |
-
|
258 |
-
return $classMap
|
259 |
-
|
260 |
-
INCLUDE_CLASSMAP;
|
261 |
-
}
|
262 |
-
|
263 |
-
/**
|
264 |
-
* Take the autoloads array and return the fileMap that contains the path and the version for each namespace.
|
265 |
-
*
|
266 |
-
* @param array $autoloads Array of autoload settings defined defined by the packages.
|
267 |
-
* @param Filesystem $filesystem Filesystem class instance.
|
268 |
-
* @param string $vendorPath Path to the vendor directory.
|
269 |
-
* @param string $basePath Base Path.
|
270 |
-
*
|
271 |
-
* @return string $fileMap
|
272 |
-
*/
|
273 |
-
private function getFileMap( array $autoloads, Filesystem $filesystem, $vendorPath, $basePath ) {
|
274 |
-
$fileMapString = '';
|
275 |
-
foreach ( $autoloads['files'] as $file_id => $package ) {
|
276 |
-
$key = var_export( $file_id, true );
|
277 |
-
$pathCode = $this->getPathCode( $filesystem, $basePath, $vendorPath, $package['path'] );
|
278 |
-
$versionCode = var_export( $package['version'], true );
|
279 |
-
$fileMapString .= <<<FILE_CODE
|
280 |
-
$key => array(
|
281 |
-
'version' => $versionCode,
|
282 |
-
'path' => $pathCode
|
283 |
-
),
|
284 |
-
FILE_CODE;
|
285 |
-
$fileMapString .= PHP_EOL;
|
286 |
-
}
|
287 |
-
|
288 |
-
return 'array( ' . PHP_EOL . $fileMapString . ');' . PHP_EOL;
|
289 |
-
}
|
290 |
-
|
291 |
-
/**
|
292 |
-
* Generate the PHP that will be used in the autoload_files_package.php files.
|
293 |
-
*
|
294 |
-
* @param string $filesMap files array as string that is to be written out to the file.
|
295 |
-
*
|
296 |
-
* @return string
|
297 |
-
*/
|
298 |
-
private function getAutoloadFilesPackagesFile( $filesMap ) {
|
299 |
-
|
300 |
-
return <<<INCLUDE_FILEMAP
|
301 |
-
<?php
|
302 |
-
|
303 |
-
// This file `autoload_files_packages.php` was auto generated by automattic/jetpack-autoloader.
|
304 |
-
|
305 |
-
\$vendorDir = dirname(__DIR__);
|
306 |
-
\$baseDir = dirname(\$vendorDir);
|
307 |
-
|
308 |
-
return $filesMap
|
309 |
-
|
310 |
-
INCLUDE_FILEMAP;
|
311 |
-
}
|
312 |
-
|
313 |
-
/**
|
314 |
-
* Generate the PHP that will be used in the autoload_packages.php files.
|
315 |
-
*
|
316 |
-
* @param string $suffix Unique suffix added to the jetpack_enqueue_packages function.
|
317 |
-
*
|
318 |
-
* @return string
|
319 |
-
*/
|
320 |
-
private function getAutoloadPackageFile( $suffix ) {
|
321 |
-
$sourceLoader = fopen( __DIR__ . '/autoload.php', 'r' );
|
322 |
-
$file_contents = stream_get_contents( $sourceLoader );
|
323 |
-
$file_contents .= <<<INCLUDE_FILES
|
324 |
-
/**
|
325 |
-
* Prepare all the classes for autoloading.
|
326 |
-
*/
|
327 |
-
function enqueue_packages_$suffix() {
|
328 |
-
\$class_map = require_once dirname( __FILE__ ) . '/composer/autoload_classmap_package.php';
|
329 |
-
foreach ( \$class_map as \$class_name => \$class_info ) {
|
330 |
-
enqueue_package_class( \$class_name, \$class_info['version'], \$class_info['path'] );
|
331 |
-
}
|
332 |
-
|
333 |
-
\$autoload_file = __DIR__ . '/composer/autoload_files_package.php';
|
334 |
-
|
335 |
-
\$includeFiles = file_exists( \$autoload_file )
|
336 |
-
? require \$autoload_file
|
337 |
-
: array();
|
338 |
-
|
339 |
-
foreach ( \$includeFiles as \$fileIdentifier => \$file_data ) {
|
340 |
-
enqueue_package_file( \$fileIdentifier, \$file_data[ 'version' ], \$file_data[ 'path' ] );
|
341 |
-
}
|
342 |
-
|
343 |
-
if ( function_exists( 'has_action') && function_exists( 'did_action' ) && ! did_action( 'plugins_loaded' ) && false === has_action( 'plugins_loaded', __NAMESPACE__ . '\\file_loader' ) ) {
|
344 |
-
// Add action if it has not been added and has not happened yet.
|
345 |
-
// Priority -10 to load files as early as possible in case plugins try to use them during `plugins_loaded`.
|
346 |
-
add_action( 'plugins_loaded', __NAMESPACE__ . '\\file_loader', 0, -10 );
|
347 |
-
} elseif( ! function_exists( 'did_action' ) || did_action( 'plugins_loaded' ) ) {
|
348 |
-
file_loader(); // Either WordPress is not loaded or plugin is doing it wrong. Either way we'll load the files so nothing breaks.
|
349 |
-
}
|
350 |
-
}
|
351 |
-
enqueue_packages_$suffix();
|
352 |
-
|
353 |
-
INCLUDE_FILES;
|
354 |
-
|
355 |
-
return $file_contents;
|
356 |
-
}
|
357 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php
DELETED
@@ -1,90 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Custom Autoloader Composer Plugin, hooks into composer events to generate the custom autoloader.
|
4 |
-
*
|
5 |
-
* @package automattic/jetpack-autoloader
|
6 |
-
*/
|
7 |
-
|
8 |
-
// phpcs:disable PHPCompatibility.Keywords.NewKeywords.t_useFound
|
9 |
-
// phpcs:disable PHPCompatibility.LanguageConstructs.NewLanguageConstructs.t_ns_separatorFound
|
10 |
-
// phpcs:disable PHPCompatibility.Keywords.NewKeywords.t_namespaceFound
|
11 |
-
// phpcs:disable WordPress.Files.FileName.NotHyphenatedLowercase
|
12 |
-
// phpcs:disable WordPress.Files.FileName.InvalidClassFileName
|
13 |
-
// phpcs:disable WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase
|
14 |
-
|
15 |
-
namespace Automattic\Jetpack\Autoloader;
|
16 |
-
|
17 |
-
use Composer\Composer;
|
18 |
-
use Composer\IO\IOInterface;
|
19 |
-
use Composer\Script\Event;
|
20 |
-
use Composer\Script\ScriptEvents;
|
21 |
-
use Composer\Plugin\PluginInterface;
|
22 |
-
use Composer\EventDispatcher\EventSubscriberInterface;
|
23 |
-
|
24 |
-
/**
|
25 |
-
* Class CustomAutoloaderPlugin.
|
26 |
-
*
|
27 |
-
* @package automattic/jetpack-autoloader
|
28 |
-
*/
|
29 |
-
class CustomAutoloaderPlugin implements PluginInterface, EventSubscriberInterface {
|
30 |
-
|
31 |
-
/**
|
32 |
-
* IO object.
|
33 |
-
*
|
34 |
-
* @var IOInterface IO object.
|
35 |
-
*/
|
36 |
-
private $io;
|
37 |
-
|
38 |
-
/**
|
39 |
-
* Composer object.
|
40 |
-
*
|
41 |
-
* @var Composer Composer object.
|
42 |
-
*/
|
43 |
-
private $composer;
|
44 |
-
|
45 |
-
/**
|
46 |
-
* Do nothing.
|
47 |
-
*
|
48 |
-
* @param Composer $composer Composer object.
|
49 |
-
* @param IOInterface $io IO object.
|
50 |
-
*/
|
51 |
-
public function activate( Composer $composer, IOInterface $io ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
|
52 |
-
$this->composer = $composer;
|
53 |
-
$this->io = $io;
|
54 |
-
}
|
55 |
-
|
56 |
-
/**
|
57 |
-
* Tell composer to listen for events and do something with them.
|
58 |
-
*
|
59 |
-
* @return array List of succribed events.
|
60 |
-
*/
|
61 |
-
public static function getSubscribedEvents() {
|
62 |
-
return array(
|
63 |
-
ScriptEvents::POST_AUTOLOAD_DUMP => 'postAutoloadDump',
|
64 |
-
);
|
65 |
-
}
|
66 |
-
|
67 |
-
/**
|
68 |
-
* Generate the custom autolaoder.
|
69 |
-
*
|
70 |
-
* @param Event $event Script event object.
|
71 |
-
*/
|
72 |
-
public function postAutoloadDump( Event $event ) {
|
73 |
-
|
74 |
-
$installationManager = $this->composer->getInstallationManager();
|
75 |
-
$repoManager = $this->composer->getRepositoryManager();
|
76 |
-
$localRepo = $repoManager->getLocalRepository();
|
77 |
-
$package = $this->composer->getPackage();
|
78 |
-
$config = $this->composer->getConfig();
|
79 |
-
$optimize = true;
|
80 |
-
$suffix = $config->get( 'autoloader-suffix' )
|
81 |
-
? $config->get( 'autoloader-suffix' )
|
82 |
-
: md5( uniqid( '', true ) );
|
83 |
-
|
84 |
-
$generator = new AutoloadGenerator( $this->io );
|
85 |
-
|
86 |
-
$generator->dump( $config, $localRepo, $package, $installationManager, 'composer', $optimize, $suffix );
|
87 |
-
$this->generated = true;
|
88 |
-
}
|
89 |
-
|
90 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/automattic/jetpack-autoloader/src/autoload.php
DELETED
@@ -1,178 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* This file `autoload_packages.php`was generated by automattic/jetpack-autoloader.
|
4 |
-
*
|
5 |
-
* From your plugin include this file with:
|
6 |
-
* require_once . plugin_dir_path( __FILE__ ) . '/vendor/autoload_packages.php';
|
7 |
-
*
|
8 |
-
* @package automattic/jetpack-autoloader
|
9 |
-
*/
|
10 |
-
|
11 |
-
// phpcs:disable PHPCompatibility.LanguageConstructs.NewLanguageConstructs.t_ns_separatorFound
|
12 |
-
// phpcs:disable PHPCompatibility.Keywords.NewKeywords.t_namespaceFound
|
13 |
-
// phpcs:disable PHPCompatibility.Keywords.NewKeywords.t_ns_cFound
|
14 |
-
|
15 |
-
namespace Automattic\Jetpack\Autoloader;
|
16 |
-
|
17 |
-
if ( ! function_exists( __NAMESPACE__ . '\enqueue_package_class' ) ) {
|
18 |
-
global $jetpack_packages_classes;
|
19 |
-
|
20 |
-
if ( ! is_array( $jetpack_packages_classes ) ) {
|
21 |
-
$jetpack_packages_classes = array();
|
22 |
-
}
|
23 |
-
/**
|
24 |
-
* Adds the version of a package to the $jetpack_packages global array so that
|
25 |
-
* the autoloader is able to find it.
|
26 |
-
*
|
27 |
-
* @param string $class_name Name of the class that you want to autoload.
|
28 |
-
* @param string $version Version of the class.
|
29 |
-
* @param string $path Absolute path to the class so that we can load it.
|
30 |
-
*/
|
31 |
-
function enqueue_package_class( $class_name, $version, $path ) {
|
32 |
-
global $jetpack_packages_classes;
|
33 |
-
|
34 |
-
if ( ! isset( $jetpack_packages_classes[ $class_name ] ) ) {
|
35 |
-
$jetpack_packages_classes[ $class_name ] = array(
|
36 |
-
'version' => $version,
|
37 |
-
'path' => $path,
|
38 |
-
);
|
39 |
-
|
40 |
-
return;
|
41 |
-
}
|
42 |
-
// If we have a @dev version set always use that one!
|
43 |
-
if ( 'dev-' === substr( $jetpack_packages_classes[ $class_name ]['version'], 0, 4 ) ) {
|
44 |
-
return;
|
45 |
-
}
|
46 |
-
|
47 |
-
// Always favour the @dev version. Since that version is the same as bleeding edge.
|
48 |
-
// We need to make sure that we don't do this in production!
|
49 |
-
if ( 'dev-' === substr( $version, 0, 4 ) ) {
|
50 |
-
$jetpack_packages_classes[ $class_name ] = array(
|
51 |
-
'version' => $version,
|
52 |
-
'path' => $path,
|
53 |
-
);
|
54 |
-
|
55 |
-
return;
|
56 |
-
}
|
57 |
-
// Set the latest version!
|
58 |
-
if ( version_compare( $jetpack_packages_classes[ $class_name ]['version'], $version, '<' ) ) {
|
59 |
-
$jetpack_packages_classes[ $class_name ] = array(
|
60 |
-
'version' => $version,
|
61 |
-
'path' => $path,
|
62 |
-
);
|
63 |
-
}
|
64 |
-
}
|
65 |
-
}
|
66 |
-
|
67 |
-
if ( ! function_exists( __NAMESPACE__ . '\enqueue_package_file' ) ) {
|
68 |
-
global $jetpack_packages_files;
|
69 |
-
|
70 |
-
if ( ! is_array( $jetpack_packages_files ) ) {
|
71 |
-
$jetpack_packages_files = array();
|
72 |
-
}
|
73 |
-
/**
|
74 |
-
* Adds the version of a package file to the $jetpack_packages_files global array so that
|
75 |
-
* we can load the most recent version after 'plugins_loaded'.
|
76 |
-
*
|
77 |
-
* @param string $file_identifier Unique id to file assigned by composer based on package name and filename.
|
78 |
-
* @param string $version Version of the file.
|
79 |
-
* @param string $path Absolute path to the file so that we can load it.
|
80 |
-
*/
|
81 |
-
function enqueue_package_file( $file_identifier, $version, $path ) {
|
82 |
-
global $jetpack_packages_files;
|
83 |
-
|
84 |
-
if ( ! isset( $jetpack_packages_files[ $file_identifier ] ) ) {
|
85 |
-
$jetpack_packages_files[ $file_identifier ] = array(
|
86 |
-
'version' => $version,
|
87 |
-
'path' => $path,
|
88 |
-
);
|
89 |
-
|
90 |
-
return;
|
91 |
-
}
|
92 |
-
// If we have a @dev version set always use that one!
|
93 |
-
if ( 'dev-' === substr( $jetpack_packages_files[ $file_identifier ]['version'], 0, 4 ) ) {
|
94 |
-
return;
|
95 |
-
}
|
96 |
-
|
97 |
-
// Always favour the @dev version. Since that version is the same as bleeding edge.
|
98 |
-
// We need to make sure that we don't do this in production!
|
99 |
-
if ( 'dev-' === substr( $version, 0, 4 ) ) {
|
100 |
-
$jetpack_packages_files[ $file_identifier ] = array(
|
101 |
-
'version' => $version,
|
102 |
-
'path' => $path,
|
103 |
-
);
|
104 |
-
|
105 |
-
return;
|
106 |
-
}
|
107 |
-
// Set the latest version!
|
108 |
-
if ( version_compare( $jetpack_packages_files[ $file_identifier ]['version'], $version, '<' ) ) {
|
109 |
-
$jetpack_packages_files[ $file_identifier ] = array(
|
110 |
-
'version' => $version,
|
111 |
-
'path' => $path,
|
112 |
-
);
|
113 |
-
}
|
114 |
-
}
|
115 |
-
}
|
116 |
-
|
117 |
-
if ( ! function_exists( __NAMESPACE__ . '\file_loader' ) ) {
|
118 |
-
/**
|
119 |
-
* Include latest version of all enqueued files. Should be called after all plugins are loaded.
|
120 |
-
*/
|
121 |
-
function file_loader() {
|
122 |
-
global $jetpack_packages_files;
|
123 |
-
foreach ( $jetpack_packages_files as $file_identifier => $file_data ) {
|
124 |
-
if ( empty( $GLOBALS['__composer_autoload_files'][ $file_identifier ] ) ) {
|
125 |
-
require $file_data['path'];
|
126 |
-
|
127 |
-
$GLOBALS['__composer_autoload_files'][ $file_identifier ] = true;
|
128 |
-
}
|
129 |
-
}
|
130 |
-
}
|
131 |
-
}
|
132 |
-
|
133 |
-
if ( ! function_exists( __NAMESPACE__ . '\autoloader' ) ) {
|
134 |
-
/**
|
135 |
-
* Used for autoloading jetpack packages.
|
136 |
-
*
|
137 |
-
* @param string $class_name Class Name to load.
|
138 |
-
*/
|
139 |
-
function autoloader( $class_name ) {
|
140 |
-
global $jetpack_packages_classes;
|
141 |
-
|
142 |
-
if ( isset( $jetpack_packages_classes[ $class_name ] ) ) {
|
143 |
-
if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
|
144 |
-
// TODO ideally we shouldn't skip any of these, see: https://github.com/Automattic/jetpack/pull/12646.
|
145 |
-
$ignore = in_array(
|
146 |
-
$class_name,
|
147 |
-
array(
|
148 |
-
'Automattic\Jetpack\Connection\Manager',
|
149 |
-
'Jetpack_Options',
|
150 |
-
),
|
151 |
-
true
|
152 |
-
);
|
153 |
-
|
154 |
-
if ( ! $ignore && function_exists( 'did_action' ) && ! did_action( 'plugins_loaded' ) ) {
|
155 |
-
_doing_it_wrong(
|
156 |
-
esc_html( $class_name ),
|
157 |
-
sprintf(
|
158 |
-
/* translators: %s Name of a PHP Class */
|
159 |
-
esc_html__( 'Not all plugins have loaded yet but we requested the class %s', 'jetpack' ),
|
160 |
-
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
161 |
-
$class_name
|
162 |
-
),
|
163 |
-
esc_html( $jetpack_packages_classes[ $class_name ]['version'] )
|
164 |
-
);
|
165 |
-
}
|
166 |
-
}
|
167 |
-
|
168 |
-
require_once $jetpack_packages_classes[ $class_name ]['path'];
|
169 |
-
|
170 |
-
return true;
|
171 |
-
}
|
172 |
-
|
173 |
-
return false;
|
174 |
-
}
|
175 |
-
|
176 |
-
// Add the jetpack autoloader.
|
177 |
-
spl_autoload_register( __NAMESPACE__ . '\autoloader' );
|
178 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/automattic/jetpack-logo/CHANGELOG.md
ADDED
@@ -0,0 +1,138 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Changelog
|
2 |
+
|
3 |
+
All notable changes to this project will be documented in this file.
|
4 |
+
|
5 |
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
6 |
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7 |
+
|
8 |
+
## [1.5.14] - 2022-01-25
|
9 |
+
### Changed
|
10 |
+
- Updated package dependencies.
|
11 |
+
|
12 |
+
## [1.5.13] - 2022-01-04
|
13 |
+
### Changed
|
14 |
+
- Switch to pcov for code coverage.
|
15 |
+
- Updated package dependencies
|
16 |
+
|
17 |
+
## [1.5.12] - 2021-12-14
|
18 |
+
### Changed
|
19 |
+
- Updated package dependencies.
|
20 |
+
|
21 |
+
## [1.5.11] - 2021-11-30
|
22 |
+
### Changed
|
23 |
+
- Colors: update Jetpack Primary color to match latest brand book.
|
24 |
+
|
25 |
+
## [1.5.10] - 2021-11-02
|
26 |
+
### Changed
|
27 |
+
- Set `convertDeprecationsToExceptions` true in PHPUnit config.
|
28 |
+
- Update PHPUnit configs to include just what needs coverage rather than include everything then try to exclude stuff that doesn't.
|
29 |
+
|
30 |
+
## [1.5.9] - 2021-10-13
|
31 |
+
### Changed
|
32 |
+
- Updated package dependencies.
|
33 |
+
|
34 |
+
## [1.5.8] - 2021-10-07
|
35 |
+
### Changed
|
36 |
+
- Updated package dependencies
|
37 |
+
|
38 |
+
## [1.5.7] - 2021-09-28
|
39 |
+
### Changed
|
40 |
+
- Updated package dependencies.
|
41 |
+
|
42 |
+
## [1.5.6] - 2021-08-30
|
43 |
+
### Changed
|
44 |
+
- Run composer update on test-php command instead of phpunit
|
45 |
+
- Tests: update PHPUnit polyfills dependency (yoast/phpunit-polyfills).
|
46 |
+
- update annotations versions
|
47 |
+
|
48 |
+
## [1.5.5] - 2021-05-25
|
49 |
+
### Changed
|
50 |
+
- Updated package dependencies.
|
51 |
+
|
52 |
+
## [1.5.4] - 2021-04-27
|
53 |
+
### Changed
|
54 |
+
- Updated package dependencies.
|
55 |
+
|
56 |
+
## [1.5.3] - 2021-03-30
|
57 |
+
### Added
|
58 |
+
- Composer alias for dev-master, to improve dependencies
|
59 |
+
|
60 |
+
### Changed
|
61 |
+
- Update package dependencies.
|
62 |
+
|
63 |
+
### Fixed
|
64 |
+
- Use `composer update` rather than `install` in scripts, as composer.lock isn't checked in.
|
65 |
+
|
66 |
+
## [1.5.2] - 2021-02-05
|
67 |
+
|
68 |
+
- CI: Make tests more generic
|
69 |
+
|
70 |
+
## [1.5.1] - 2021-01-19
|
71 |
+
|
72 |
+
- Add mirror-repo information to all current composer packages
|
73 |
+
- Monorepo: Reorganize all projects
|
74 |
+
|
75 |
+
## [1.5.0] - 2020-12-07
|
76 |
+
|
77 |
+
- Pin dependencies
|
78 |
+
- Packages: Update for PHP 8 testing
|
79 |
+
|
80 |
+
## [1.4.0] - 2020-08-13
|
81 |
+
|
82 |
+
- CI: Try collect js coverage
|
83 |
+
|
84 |
+
## [1.3.0] - 2020-06-22
|
85 |
+
|
86 |
+
- PHPCS: Clean up the packages
|
87 |
+
- PHPCS Updates after WPCS 2.3
|
88 |
+
|
89 |
+
## [1.2.0] - 2020-03-27
|
90 |
+
|
91 |
+
- Use dynamic Jetpack logos on JITMs
|
92 |
+
|
93 |
+
## [1.1.4] - 2019-11-08
|
94 |
+
|
95 |
+
- Packages: Use classmap instead of PSR-4
|
96 |
+
|
97 |
+
## [1.1.2] - 2019-10-28
|
98 |
+
|
99 |
+
- Packages: Add gitattributes files to all packages that need th…
|
100 |
+
|
101 |
+
## [1.1.1] - 2019-09-20
|
102 |
+
|
103 |
+
- Docs: Unify usage of @package phpdoc tags
|
104 |
+
|
105 |
+
## [1.1.0] - 2019-06-11
|
106 |
+
|
107 |
+
- Feature/jetpack packages pt 1. (May 31 - June 6)
|
108 |
+
- Update/package logo add gray
|
109 |
+
- Packages: Move JITM tests to package and fix deps
|
110 |
+
- Update Jetpack to use new JITM package
|
111 |
+
- Packages: Make logo package tests independent
|
112 |
+
|
113 |
+
## 1.0.0 - 2019-05-29
|
114 |
+
|
115 |
+
- Packages: Add a basic Jetpack Logo package
|
116 |
+
|
117 |
+
[1.5.14]: https://github.com/Automattic/jetpack-logo/compare/v1.5.13...v1.5.14
|
118 |
+
[1.5.13]: https://github.com/Automattic/jetpack-logo/compare/v1.5.12...v1.5.13
|
119 |
+
[1.5.12]: https://github.com/Automattic/jetpack-logo/compare/v1.5.11...v1.5.12
|
120 |
+
[1.5.11]: https://github.com/Automattic/jetpack-logo/compare/v1.5.10...v1.5.11
|
121 |
+
[1.5.10]: https://github.com/Automattic/jetpack-logo/compare/v1.5.9...v1.5.10
|
122 |
+
[1.5.9]: https://github.com/Automattic/jetpack-logo/compare/v1.5.8...v1.5.9
|
123 |
+
[1.5.8]: https://github.com/Automattic/jetpack-logo/compare/v1.5.7...v1.5.8
|
124 |
+
[1.5.7]: https://github.com/Automattic/jetpack-logo/compare/v1.5.6...v1.5.7
|
125 |
+
[1.5.6]: https://github.com/Automattic/jetpack-logo/compare/v1.5.5...v1.5.6
|
126 |
+
[1.5.5]: https://github.com/Automattic/jetpack-logo/compare/v1.5.4...v1.5.5
|
127 |
+
[1.5.4]: https://github.com/Automattic/jetpack-logo/compare/v1.5.3...v1.5.4
|
128 |
+
[1.5.3]: https://github.com/Automattic/jetpack-logo/compare/v1.5.2...v1.5.3
|
129 |
+
[1.5.2]: https://github.com/Automattic/jetpack-logo/compare/v1.5.1...v1.5.2
|
130 |
+
[1.5.1]: https://github.com/Automattic/jetpack-logo/compare/v1.5.0...v1.5.1
|
131 |
+
[1.5.0]: https://github.com/Automattic/jetpack-logo/compare/v1.4.0...v1.5.0
|
132 |
+
[1.4.0]: https://github.com/Automattic/jetpack-logo/compare/v1.3.0...v1.4.0
|
133 |
+
[1.3.0]: https://github.com/Automattic/jetpack-logo/compare/v1.2.0...v1.3.0
|
134 |
+
[1.2.0]: https://github.com/Automattic/jetpack-logo/compare/v1.1.4...v1.2.0
|
135 |
+
[1.1.4]: https://github.com/Automattic/jetpack-logo/compare/v1.1.2...v1.1.4
|
136 |
+
[1.1.2]: https://github.com/Automattic/jetpack-logo/compare/v1.1.1...v1.1.2
|
137 |
+
[1.1.1]: https://github.com/Automattic/jetpack-logo/compare/v1.1.0...v1.1.1
|
138 |
+
[1.1.0]: https://github.com/Automattic/jetpack-logo/compare/v1.0.0...v1.1.0
|
vendor/automattic/jetpack-logo/LICENSE.txt
ADDED
@@ -0,0 +1,357 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
This program is free software; you can redistribute it and/or modify
|
2 |
+
it under the terms of the GNU General Public License as published by
|
3 |
+
the Free Software Foundation; either version 2 of the License, or
|
4 |
+
(at your option) any later version.
|
5 |
+
|
6 |
+
This program is distributed in the hope that it will be useful,
|
7 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
8 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
9 |
+
GNU General Public License for more details.
|
10 |
+
|
11 |
+
You should have received a copy of the GNU General Public License
|
12 |
+
along with this program; if not, write to the Free Software
|
13 |
+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
14 |
+
|
15 |
+
|
16 |
+
===================================
|
17 |
+
|
18 |
+
|
19 |
+
GNU GENERAL PUBLIC LICENSE
|
20 |
+
Version 2, June 1991
|
21 |
+
|
22 |
+
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
23 |
+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
24 |
+
Everyone is permitted to copy and distribute verbatim copies
|
25 |
+
of this license document, but changing it is not allowed.
|
26 |
+
|
27 |
+
Preamble
|
28 |
+
|
29 |
+
The licenses for most software are designed to take away your
|
30 |
+
freedom to share and change it. By contrast, the GNU General Public
|
31 |
+
License is intended to guarantee your freedom to share and change free
|
32 |
+
software--to make sure the software is free for all its users. This
|
33 |
+
General Public License applies to most of the Free Software
|
34 |
+
Foundation's software and to any other program whose authors commit to
|
35 |
+
using it. (Some other Free Software Foundation software is covered by
|
36 |
+
the GNU Lesser General Public License instead.) You can apply it to
|
37 |
+
your programs, too.
|
38 |
+
|
39 |
+
When we speak of free software, we are referring to freedom, not
|
40 |
+
price. Our General Public Licenses are designed to make sure that you
|
41 |
+
have the freedom to distribute copies of free software (and charge for
|
42 |
+
this service if you wish), that you receive source code or can get it
|
43 |
+
if you want it, that you can change the software or use pieces of it
|
44 |
+
in new free programs; and that you know you can do these things.
|
45 |
+
|
46 |
+
To protect your rights, we need to make restrictions that forbid
|
47 |
+
anyone to deny you these rights or to ask you to surrender the rights.
|
48 |
+
These restrictions translate to certain responsibilities for you if you
|
49 |
+
distribute copies of the software, or if you modify it.
|
50 |
+
|
51 |
+
For example, if you distribute copies of such a program, whether
|
52 |
+
gratis or for a fee, you must give the recipients all the rights that
|
53 |
+
you have. You must make sure that they, too, receive or can get the
|
54 |
+
source code. And you must show them these terms so they know their
|
55 |
+
rights.
|
56 |
+
|
57 |
+
We protect your rights with two steps: (1) copyright the software, and
|
58 |
+
(2) offer you this license which gives you legal permission to copy,
|
59 |
+
distribute and/or modify the software.
|
60 |
+
|
61 |
+
Also, for each author's protection and ours, we want to make certain
|
62 |
+
that everyone understands that there is no warranty for this free
|
63 |
+
software. If the software is modified by someone else and passed on, we
|
64 |
+
want its recipients to know that what they have is not the original, so
|
65 |
+
that any problems introduced by others will not reflect on the original
|
66 |
+
authors' reputations.
|
67 |
+
|
68 |
+
Finally, any free program is threatened constantly by software
|
69 |
+
patents. We wish to avoid the danger that redistributors of a free
|
70 |
+
program will individually obtain patent licenses, in effect making the
|
71 |
+
program proprietary. To prevent this, we have made it clear that any
|
72 |
+
patent must be licensed for everyone's free use or not licensed at all.
|
73 |
+
|
74 |
+
The precise terms and conditions for copying, distribution and
|
75 |
+
modification follow.
|
76 |
+
|
77 |
+
GNU GENERAL PUBLIC LICENSE
|
78 |
+
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
79 |
+
|
80 |
+
0. This License applies to any program or other work which contains
|
81 |
+
a notice placed by the copyright holder saying it may be distributed
|
82 |
+
under the terms of this General Public License. The "Program", below,
|
83 |
+
refers to any such program or work, and a "work based on the Program"
|
84 |
+
means either the Program or any derivative work under copyright law:
|
85 |
+
that is to say, a work containing the Program or a portion of it,
|
86 |
+
either verbatim or with modifications and/or translated into another
|
87 |
+
language. (Hereinafter, translation is included without limitation in
|
88 |
+
the term "modification".) Each licensee is addressed as "you".
|
89 |
+
|
90 |
+
Activities other than copying, distribution and modification are not
|
91 |
+
covered by this License; they are outside its scope. The act of
|
92 |
+
running the Program is not restricted, and the output from the Program
|
93 |
+
is covered only if its contents constitute a work based on the
|
94 |
+
Program (independent of having been made by running the Program).
|
95 |
+
Whether that is true depends on what the Program does.
|
96 |
+
|
97 |
+
1. You may copy and distribute verbatim copies of the Program's
|
98 |
+
source code as you receive it, in any medium, provided that you
|
99 |
+
conspicuously and appropriately publish on each copy an appropriate
|
100 |
+
copyright notice and disclaimer of warranty; keep intact all the
|
101 |
+
notices that refer to this License and to the absence of any warranty;
|
102 |
+
and give any other recipients of the Program a copy of this License
|
103 |
+
along with the Program.
|
104 |
+
|
105 |
+
You may charge a fee for the physical act of transferring a copy, and
|
106 |
+
you may at your option offer warranty protection in exchange for a fee.
|
107 |
+
|
108 |
+
2. You may modify your copy or copies of the Program or any portion
|
109 |
+
of it, thus forming a work based on the Program, and copy and
|
110 |
+
distribute such modifications or work under the terms of Section 1
|
111 |
+
above, provided that you also meet all of these conditions:
|
112 |
+
|
113 |
+
a) You must cause the modified files to carry prominent notices
|
114 |
+
stating that you changed the files and the date of any change.
|
115 |
+
|
116 |
+
b) You must cause any work that you distribute or publish, that in
|
117 |
+
whole or in part contains or is derived from the Program or any
|
118 |
+
part thereof, to be licensed as a whole at no charge to all third
|
119 |
+
parties under the terms of this License.
|
120 |
+
|
121 |
+
c) If the modified program normally reads commands interactively
|
122 |
+
when run, you must cause it, when started running for such
|
123 |
+
interactive use in the most ordinary way, to print or display an
|
124 |
+
announcement including an appropriate copyright notice and a
|
125 |
+
notice that there is no warranty (or else, saying that you provide
|
126 |
+
a warranty) and that users may redistribute the program under
|
127 |
+
these conditions, and telling the user how to view a copy of this
|
128 |
+
License. (Exception: if the Program itself is interactive but
|
129 |
+
does not normally print such an announcement, your work based on
|
130 |
+
the Program is not required to print an announcement.)
|
131 |
+
|
132 |
+
These requirements apply to the modified work as a whole. If
|
133 |
+
identifiable sections of that work are not derived from the Program,
|
134 |
+
and can be reasonably considered independent and separate works in
|
135 |
+
themselves, then this License, and its terms, do not apply to those
|
136 |
+
sections when you distribute them as separate works. But when you
|
137 |
+
distribute the same sections as part of a whole which is a work based
|
138 |
+
on the Program, the distribution of the whole must be on the terms of
|
139 |
+
this License, whose permissions for other licensees extend to the
|
140 |
+
entire whole, and thus to each and every part regardless of who wrote it.
|
141 |
+
|
142 |
+
Thus, it is not the intent of this section to claim rights or contest
|
143 |
+
your rights to work written entirely by you; rather, the intent is to
|
144 |
+
exercise the right to control the distribution of derivative or
|
145 |
+
collective works based on the Program.
|
146 |
+
|
147 |
+
In addition, mere aggregation of another work not based on the Program
|
148 |
+
with the Program (or with a work based on the Program) on a volume of
|
149 |
+
a storage or distribution medium does not bring the other work under
|
150 |
+
the scope of this License.
|
151 |
+
|
152 |
+
3. You may copy and distribute the Program (or a work based on it,
|
153 |
+
under Section 2) in object code or executable form under the terms of
|
154 |
+
Sections 1 and 2 above provided that you also do one of the following:
|
155 |
+
|
156 |
+
a) Accompany it with the complete corresponding machine-readable
|
157 |
+
source code, which must be distributed under the terms of Sections
|
158 |
+
1 and 2 above on a medium customarily used for software interchange; or,
|
159 |
+
|
160 |
+
b) Accompany it with a written offer, valid for at least three
|
161 |
+
years, to give any third party, for a charge no more than your
|
162 |
+
cost of physically performing source distribution, a complete
|
163 |
+
machine-readable copy of the corresponding source code, to be
|
164 |
+
distributed under the terms of Sections 1 and 2 above on a medium
|
165 |
+
customarily used for software interchange; or,
|
166 |
+
|
167 |
+
c) Accompany it with the information you received as to the offer
|
168 |
+
to distribute corresponding source code. (This alternative is
|
169 |
+
allowed only for noncommercial distribution and only if you
|
170 |
+
received the program in object code or executable form with such
|
171 |
+
an offer, in accord with Subsection b above.)
|
172 |
+
|
173 |
+
The source code for a work means the preferred form of the work for
|
174 |
+
making modifications to it. For an executable work, complete source
|
175 |
+
code means all the source code for all modules it contains, plus any
|
176 |
+
associated interface definition files, plus the scripts used to
|
177 |
+
control compilation and installation of the executable. However, as a
|
178 |
+
special exception, the source code distributed need not include
|
179 |
+
anything that is normally distributed (in either source or binary
|
180 |
+
form) with the major components (compiler, kernel, and so on) of the
|
181 |
+
operating system on which the executable runs, unless that component
|
182 |
+
itself accompanies the executable.
|
183 |
+
|
184 |
+
If distribution of executable or object code is made by offering
|
185 |
+
access to copy from a designated place, then offering equivalent
|
186 |
+
access to copy the source code from the same place counts as
|
187 |
+
distribution of the source code, even though third parties are not
|
188 |
+
compelled to copy the source along with the object code.
|
189 |
+
|
190 |
+
4. You may not copy, modify, sublicense, or distribute the Program
|
191 |
+
except as expressly provided under this License. Any attempt
|
192 |
+
otherwise to copy, modify, sublicense or distribute the Program is
|
193 |
+
void, and will automatically terminate your rights under this License.
|
194 |
+
However, parties who have received copies, or rights, from you under
|
195 |
+
this License will not have their licenses terminated so long as such
|
196 |
+
parties remain in full compliance.
|
197 |
+
|
198 |
+
5. You are not required to accept this License, since you have not
|
199 |
+
signed it. However, nothing else grants you permission to modify or
|
200 |
+
distribute the Program or its derivative works. These actions are
|
201 |
+
prohibited by law if you do not accept this License. Therefore, by
|
202 |
+
modifying or distributing the Program (or any work based on the
|
203 |
+
Program), you indicate your acceptance of this License to do so, and
|
204 |
+
all its terms and conditions for copying, distributing or modifying
|
205 |
+
the Program or works based on it.
|
206 |
+
|
207 |
+
6. Each time you redistribute the Program (or any work based on the
|
208 |
+
Program), the recipient automatically receives a license from the
|
209 |
+
original licensor to copy, distribute or modify the Program subject to
|
210 |
+
these terms and conditions. You may not impose any further
|
211 |
+
restrictions on the recipients' exercise of the rights granted herein.
|
212 |
+
You are not responsible for enforcing compliance by third parties to
|
213 |
+
this License.
|
214 |
+
|
215 |
+
7. If, as a consequence of a court judgment or allegation of patent
|
216 |
+
infringement or for any other reason (not limited to patent issues),
|
217 |
+
conditions are imposed on you (whether by court order, agreement or
|
218 |
+
otherwise) that contradict the conditions of this License, they do not
|
219 |
+
excuse you from the conditions of this License. If you cannot
|
220 |
+
distribute so as to satisfy simultaneously your obligations under this
|
221 |
+
License and any other pertinent obligations, then as a consequence you
|
222 |
+
may not distribute the Program at all. For example, if a patent
|
223 |
+
license would not permit royalty-free redistribution of the Program by
|
224 |
+
all those who receive copies directly or indirectly through you, then
|
225 |
+
the only way you could satisfy both it and this License would be to
|
226 |
+
refrain entirely from distribution of the Program.
|
227 |
+
|
228 |
+
If any portion of this section is held invalid or unenforceable under
|
229 |
+
any particular circumstance, the balance of the section is intended to
|
230 |
+
apply and the section as a whole is intended to apply in other
|
231 |
+
circumstances.
|
232 |
+
|
233 |
+
It is not the purpose of this section to induce you to infringe any
|
234 |
+
patents or other property right claims or to contest validity of any
|
235 |
+
such claims; this section has the sole purpose of protecting the
|
236 |
+
integrity of the free software distribution system, which is
|
237 |
+
implemented by public license practices. Many people have made
|
238 |
+
generous contributions to the wide range of software distributed
|
239 |
+
through that system in reliance on consistent application of that
|
240 |
+
system; it is up to the author/donor to decide if he or she is willing
|
241 |
+
to distribute software through any other system and a licensee cannot
|
242 |
+
impose that choice.
|
243 |
+
|
244 |
+
This section is intended to make thoroughly clear what is believed to
|
245 |
+
be a consequence of the rest of this License.
|
246 |
+
|
247 |
+
8. If the distribution and/or use of the Program is restricted in
|
248 |
+
certain countries either by patents or by copyrighted interfaces, the
|
249 |
+
original copyright holder who places the Program under this License
|
250 |
+
may add an explicit geographical distribution limitation excluding
|
251 |
+
those countries, so that distribution is permitted only in or among
|
252 |
+
countries not thus excluded. In such case, this License incorporates
|
253 |
+
the limitation as if written in the body of this License.
|
254 |
+
|
255 |
+
9. The Free Software Foundation may publish revised and/or new versions
|
256 |
+
of the General Public License from time to time. Such new versions will
|
257 |
+
be similar in spirit to the present version, but may differ in detail to
|
258 |
+
address new problems or concerns.
|
259 |
+
|
260 |
+
Each version is given a distinguishing version number. If the Program
|
261 |
+
specifies a version number of this License which applies to it and "any
|
262 |
+
later version", you have the option of following the terms and conditions
|
263 |
+
either of that version or of any later version published by the Free
|
264 |
+
Software Foundation. If the Program does not specify a version number of
|
265 |
+
this License, you may choose any version ever published by the Free Software
|
266 |
+
Foundation.
|
267 |
+
|
268 |
+
10. If you wish to incorporate parts of the Program into other free
|
269 |
+
programs whose distribution conditions are different, write to the author
|
270 |
+
to ask for permission. For software which is copyrighted by the Free
|
271 |
+
Software Foundation, write to the Free Software Foundation; we sometimes
|
272 |
+
make exceptions for this. Our decision will be guided by the two goals
|
273 |
+
of preserving the free status of all derivatives of our free software and
|
274 |
+
of promoting the sharing and reuse of software generally.
|
275 |
+
|
276 |
+
NO WARRANTY
|
277 |
+
|
278 |
+
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
279 |
+
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
280 |
+
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
281 |
+
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
282 |
+
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
283 |
+
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
284 |
+
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
285 |
+
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
286 |
+
REPAIR OR CORRECTION.
|
287 |
+
|
288 |
+
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
289 |
+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
290 |
+
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
291 |
+
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
292 |
+
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
293 |
+
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
294 |
+
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
295 |
+
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
296 |
+
POSSIBILITY OF SUCH DAMAGES.
|
297 |
+
|
298 |
+
END OF TERMS AND CONDITIONS
|
299 |
+
|
300 |
+
How to Apply These Terms to Your New Programs
|
301 |
+
|
302 |
+
If you develop a new program, and you want it to be of the greatest
|
303 |
+
possible use to the public, the best way to achieve this is to make it
|
304 |
+
free software which everyone can redistribute and change under these terms.
|
305 |
+
|
306 |
+
To do so, attach the following notices to the program. It is safest
|
307 |
+
to attach them to the start of each source file to most effectively
|
308 |
+
convey the exclusion of warranty; and each file should have at least
|
309 |
+
the "copyright" line and a pointer to where the full notice is found.
|
310 |
+
|
311 |
+
<one line to give the program's name and a brief idea of what it does.>
|
312 |
+
Copyright (C) <year> <name of author>
|
313 |
+
|
314 |
+
This program is free software; you can redistribute it and/or modify
|
315 |
+
it under the terms of the GNU General Public License as published by
|
316 |
+
the Free Software Foundation; either version 2 of the License, or
|
317 |
+
(at your option) any later version.
|
318 |
+
|
319 |
+
This program is distributed in the hope that it will be useful,
|
320 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
321 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
322 |
+
GNU General Public License for more details.
|
323 |
+
|
324 |
+
You should have received a copy of the GNU General Public License along
|
325 |
+
with this program; if not, write to the Free Software Foundation, Inc.,
|
326 |
+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
327 |
+
|
328 |
+
Also add information on how to contact you by electronic and paper mail.
|
329 |
+
|
330 |
+
If the program is interactive, make it output a short notice like this
|
331 |
+
when it starts in an interactive mode:
|
332 |
+
|
333 |
+
Gnomovision version 69, Copyright (C) year name of author
|
334 |
+
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
335 |
+
This is free software, and you are welcome to redistribute it
|
336 |
+
under certain conditions; type `show c' for details.
|
337 |
+
|
338 |
+
The hypothetical commands `show w' and `show c' should show the appropriate
|
339 |
+
parts of the General Public License. Of course, the commands you use may
|
340 |
+
be called something other than `show w' and `show c'; they could even be
|
341 |
+
mouse-clicks or menu items--whatever suits your program.
|
342 |
+
|
343 |
+
You should also get your employer (if you work as a programmer) or your
|
344 |
+
school, if any, to sign a "copyright disclaimer" for the program, if
|
345 |
+
necessary. Here is a sample; alter the names:
|
346 |
+
|
347 |
+
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
348 |
+
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
349 |
+
|
350 |
+
<signature of Ty Coon>, 1 April 1989
|
351 |
+
Ty Coon, President of Vice
|
352 |
+
|
353 |
+
This General Public License does not permit incorporating your program into
|
354 |
+
proprietary programs. If your program is a subroutine library, you may
|
355 |
+
consider it more useful to permit linking proprietary applications with the
|
356 |
+
library. If this is what you want to do, use the GNU Lesser General
|
357 |
+
Public License instead of this License.
|
vendor/automattic/jetpack-logo/SECURITY.md
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Security Policy
|
2 |
+
|
3 |
+
Full details of the Automattic Security Policy can be found on [automattic.com](https://automattic.com/security/).
|
4 |
+
|
5 |
+
## Supported Versions
|
6 |
+
|
7 |
+
Generally, only the latest version of Jetpack has continued support. If a critical vulnerability is found in the current version of Jetpack, we may opt to backport any patches to previous versions.
|
8 |
+
|
9 |
+
## Reporting a Vulnerability
|
10 |
+
|
11 |
+
[Jetpack](https://jetpack.com/) is an open-source plugin for WordPress. Our HackerOne program covers the plugin software, as well as a variety of related projects and infrastructure.
|
12 |
+
|
13 |
+
**For responsible disclosure of security issues and to be eligible for our bug bounty program, please submit your report via the [HackerOne](https://hackerone.com/automattic) portal.**
|
14 |
+
|
15 |
+
Our most critical targets are:
|
16 |
+
|
17 |
+
* Jetpack and the Jetpack composer packages (all within this repo)
|
18 |
+
* Jetpack.com -- the primary marketing site.
|
19 |
+
* cloud.jetpack.com -- a management site.
|
20 |
+
* wordpress.com -- the shared management site for both Jetpack and WordPress.com sites.
|
21 |
+
|
22 |
+
For more targets, see the `In Scope` section on [HackerOne](https://hackerone.com/automattic).
|
23 |
+
|
24 |
+
_Please note that the **WordPress software is a separate entity** from Automattic. Please report vulnerabilities for WordPress through [the WordPress Foundation's HackerOne page](https://hackerone.com/wordpress)._
|
25 |
+
|
26 |
+
## Guidelines
|
27 |
+
|
28 |
+
We're committed to working with security researchers to resolve the vulnerabilities they discover. You can help us by following these guidelines:
|
29 |
+
|
30 |
+
* Follow [HackerOne's disclosure guidelines](https://www.hackerone.com/disclosure-guidelines).
|
31 |
+
* Pen-testing Production:
|
32 |
+
* Please **setup a local environment** instead whenever possible. Most of our code is open source (see above).
|
33 |
+
* If that's not possible, **limit any data access/modification** to the bare minimum necessary to reproduce a PoC.
|
34 |
+
* **_Don't_ automate form submissions!** That's very annoying for us, because it adds extra work for the volunteers who manage those systems, and reduces the signal/noise ratio in our communication channels.
|
35 |
+
* To be eligible for a bounty, all of these guidelines must be followed.
|
36 |
+
* Be Patient - Give us a reasonable time to correct the issue before you disclose the vulnerability.
|
37 |
+
|
38 |
+
We also expect you to comply with all applicable laws. You're responsible to pay any taxes associated with your bounties.
|
vendor/automattic/jetpack-logo/composer.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
{
|
2 |
"name": "automattic/jetpack-logo",
|
3 |
"description": "A logo for Jetpack",
|
4 |
-
"type": "library",
|
5 |
"license": "GPL-2.0-or-later",
|
6 |
"require": {},
|
7 |
"require-dev": {
|
8 |
-
"yoast/phpunit-polyfills": "1.0.
|
9 |
-
"automattic/jetpack-changelogger": "^
|
10 |
},
|
11 |
"autoload": {
|
12 |
"classmap": [
|
@@ -18,11 +18,9 @@
|
|
18 |
"./vendor/phpunit/phpunit/phpunit --colors=always"
|
19 |
],
|
20 |
"test-coverage": [
|
21 |
-
"
|
22 |
-
"phpdbg -d memory_limit=2048M -d max_execution_time=900 -qrr ./vendor/bin/phpunit --coverage-clover \"$COVERAGE_DIR/clover.xml\""
|
23 |
],
|
24 |
"test-php": [
|
25 |
-
"@composer update",
|
26 |
"@composer phpunit"
|
27 |
]
|
28 |
},
|
1 |
{
|
2 |
"name": "automattic/jetpack-logo",
|
3 |
"description": "A logo for Jetpack",
|
4 |
+
"type": "jetpack-library",
|
5 |
"license": "GPL-2.0-or-later",
|
6 |
"require": {},
|
7 |
"require-dev": {
|
8 |
+
"yoast/phpunit-polyfills": "1.0.3",
|
9 |
+
"automattic/jetpack-changelogger": "^3.0"
|
10 |
},
|
11 |
"autoload": {
|
12 |
"classmap": [
|
18 |
"./vendor/phpunit/phpunit/phpunit --colors=always"
|
19 |
],
|
20 |
"test-coverage": [
|
21 |
+
"php -dpcov.directory=. ./vendor/bin/phpunit --coverage-clover \"$COVERAGE_DIR/clover.xml\""
|
|
|
22 |
],
|
23 |
"test-php": [
|
|
|
24 |
"@composer phpunit"
|
25 |
]
|
26 |
},
|
vendor/automattic/jetpack-logo/src/class-logo.php
CHANGED
@@ -21,7 +21,7 @@ namespace Automattic\Jetpack\Assets;
|
|
21 |
*/
|
22 |
const JETPACK_LOGO_SVG = <<<'EOSVG'
|
23 |
<svg xmlns="http://www.w3.org/2000/svg" height="32" class="jetpack-logo" viewBox="0 0 118 32">
|
24 |
-
<path class="jetpack-logo__icon-circle" d="M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z" fill="#
|
25 |
<polygon class="jetpack-logo__icon-triangle" points="15,19 7,19 15,3" fill="#fff" />
|
26 |
<polygon class="jetpack-logo__icon-triangle" points="17,29 17,13 25,13" fill="#fff" />
|
27 |
<path class="jetpack-logo__text" d="M41.3 26.6c-.5-.7-.9-1.4-1.3-2.1 2.3-1.4 3-2.5 3-4.6V8h-3V6h6v13.4C46 22.8 45 24.8 41.3 26.6zM58.5 21.3c-1.5.5-2.7.6-4.2.6-3.6 0-5.8-1.8-5.8-6 0-3.1 1.9-5.9 5.5-5.9s4.9 2.5 4.9 4.9c0 .8 0 1.5-.1 2h-7.3c.1 2.5 1.5 2.8 3.6 2.8 1.1 0 2.2-.3 3.4-.7C58.5 19 58.5 21.3 58.5 21.3zM56 15c0-1.4-.5-2.9-2-2.9-1.4 0-2.3 1.3-2.4 2.9C51.6 15 56 15 56 15zM65 18.4c0 1.1.8 1.3 1.4 1.3.5 0 2-.2 2.6-.4v2.1c-.9.3-2.5.5-3.7.5-1.5 0-3.2-.5-3.2-3.1V12H60v-2h2.1V7.1H65V10h4v2h-4V18.4zM71 10h3v1.3c1.1-.8 1.9-1.3 3.3-1.3 2.5 0 4.5 1.8 4.5 5.6s-2.2 6.3-5.8 6.3c-.9 0-1.3-.1-2-.3V28h-3V10zM76.5 12.3c-.8 0-1.6.4-2.5 1.2v5.9c.6.1.9.2 1.8.2 2 0 3.2-1.3 3.2-3.9C79 13.4 78.1 12.3 76.5 12.3zM93 22h-3v-1.5c-.9.7-1.9 1.5-3.5 1.5-1.5 0-3.1-1.1-3.1-3.2 0-2.9 2.5-3.4 4.2-3.7l2.4-.3v-.3c0-1.5-.5-2.3-2-2.3-.7 0-2.3.5-3.7 1.1L84 11c1.2-.4 3-1 4.4-1 2.7 0 4.6 1.4 4.6 4.7L93 22zM90 16.4l-2.2.4c-.7.1-1.4.5-1.4 1.6 0 .9.5 1.4 1.3 1.4s1.5-.5 2.3-1V16.4zM104.5 21.3c-1.1.4-2.2.6-3.5.6-4.2 0-5.9-2.4-5.9-5.9 0-3.7 2.3-6 6.1-6 1.4 0 2.3.2 3.2.5V13c-.8-.3-2-.6-3.2-.6-1.7 0-3.2.9-3.2 3.6 0 2.9 1.5 3.8 3.3 3.8.9 0 1.9-.2 3.2-.7V21.3zM110 15.2c.2-.3.2-.8 3.8-5.2h3.7l-4.6 5.7 5 6.3h-3.7l-4.2-5.8V22h-3V6h3V15.2z" />
|
@@ -78,7 +78,7 @@ class Logo {
|
|
78 |
*/
|
79 |
private function get_jp_logo_parts() {
|
80 |
return array(
|
81 |
-
'logo' => '<path fill="#
|
82 |
'text' => '<path d="M41.3,26.6c-0.5-0.7-0.9-1.4-1.3-2.1c2.3-1.4,3-2.5,3-4.6V8h-3V6h6v13.4C46,22.8,45,24.8,41.3,26.6z" />
|
83 |
<path d="M65,18.4c0,1.1,0.8,1.3,1.4,1.3c0.5,0,2-0.2,2.6-0.4v2.1c-0.9,0.3-2.5,0.5-3.7,0.5c-1.5,0-3.2-0.5-3.2-3.1V12H60v-2h2.1V7.1 H65V10h4v2h-4V18.4z" />
|
84 |
<path d="M71,10h3v1.3c1.1-0.8,1.9-1.3,3.3-1.3c2.5,0,4.5,1.8,4.5,5.6s-2.2,6.3-5.8,6.3c-0.9,0-1.3-0.1-2-0.3V28h-3V10z M76.5,12.3 c-0.8,0-1.6,0.4-2.5,1.2v5.9c0.6,0.1,0.9,0.2,1.8,0.2c2,0,3.2-1.3,3.2-3.9C79,13.4,78.1,12.3,76.5,12.3z" />
|
21 |
*/
|
22 |
const JETPACK_LOGO_SVG = <<<'EOSVG'
|
23 |
<svg xmlns="http://www.w3.org/2000/svg" height="32" class="jetpack-logo" viewBox="0 0 118 32">
|
24 |
+
<path class="jetpack-logo__icon-circle" d="M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z" fill="#069e08" />
|
25 |
<polygon class="jetpack-logo__icon-triangle" points="15,19 7,19 15,3" fill="#fff" />
|
26 |
<polygon class="jetpack-logo__icon-triangle" points="17,29 17,13 25,13" fill="#fff" />
|
27 |
<path class="jetpack-logo__text" d="M41.3 26.6c-.5-.7-.9-1.4-1.3-2.1 2.3-1.4 3-2.5 3-4.6V8h-3V6h6v13.4C46 22.8 45 24.8 41.3 26.6zM58.5 21.3c-1.5.5-2.7.6-4.2.6-3.6 0-5.8-1.8-5.8-6 0-3.1 1.9-5.9 5.5-5.9s4.9 2.5 4.9 4.9c0 .8 0 1.5-.1 2h-7.3c.1 2.5 1.5 2.8 3.6 2.8 1.1 0 2.2-.3 3.4-.7C58.5 19 58.5 21.3 58.5 21.3zM56 15c0-1.4-.5-2.9-2-2.9-1.4 0-2.3 1.3-2.4 2.9C51.6 15 56 15 56 15zM65 18.4c0 1.1.8 1.3 1.4 1.3.5 0 2-.2 2.6-.4v2.1c-.9.3-2.5.5-3.7.5-1.5 0-3.2-.5-3.2-3.1V12H60v-2h2.1V7.1H65V10h4v2h-4V18.4zM71 10h3v1.3c1.1-.8 1.9-1.3 3.3-1.3 2.5 0 4.5 1.8 4.5 5.6s-2.2 6.3-5.8 6.3c-.9 0-1.3-.1-2-.3V28h-3V10zM76.5 12.3c-.8 0-1.6.4-2.5 1.2v5.9c.6.1.9.2 1.8.2 2 0 3.2-1.3 3.2-3.9C79 13.4 78.1 12.3 76.5 12.3zM93 22h-3v-1.5c-.9.7-1.9 1.5-3.5 1.5-1.5 0-3.1-1.1-3.1-3.2 0-2.9 2.5-3.4 4.2-3.7l2.4-.3v-.3c0-1.5-.5-2.3-2-2.3-.7 0-2.3.5-3.7 1.1L84 11c1.2-.4 3-1 4.4-1 2.7 0 4.6 1.4 4.6 4.7L93 22zM90 16.4l-2.2.4c-.7.1-1.4.5-1.4 1.6 0 .9.5 1.4 1.3 1.4s1.5-.5 2.3-1V16.4zM104.5 21.3c-1.1.4-2.2.6-3.5.6-4.2 0-5.9-2.4-5.9-5.9 0-3.7 2.3-6 6.1-6 1.4 0 2.3.2 3.2.5V13c-.8-.3-2-.6-3.2-.6-1.7 0-3.2.9-3.2 3.6 0 2.9 1.5 3.8 3.3 3.8.9 0 1.9-.2 3.2-.7V21.3zM110 15.2c.2-.3.2-.8 3.8-5.2h3.7l-4.6 5.7 5 6.3h-3.7l-4.2-5.8V22h-3V6h3V15.2z" />
|
78 |
*/
|
79 |
private function get_jp_logo_parts() {
|
80 |
return array(
|
81 |
+
'logo' => '<path fill="#069e08" d="M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16c8.8,0,16-7.2,16-16S24.8,0,16,0z M15.2,18.7h-8l8-15.5V18.7z M16.8,28.8 V13.3h8L16.8,28.8z"/>',
|
82 |
'text' => '<path d="M41.3,26.6c-0.5-0.7-0.9-1.4-1.3-2.1c2.3-1.4,3-2.5,3-4.6V8h-3V6h6v13.4C46,22.8,45,24.8,41.3,26.6z" />
|
83 |
<path d="M65,18.4c0,1.1,0.8,1.3,1.4,1.3c0.5,0,2-0.2,2.6-0.4v2.1c-0.9,0.3-2.5,0.5-3.7,0.5c-1.5,0-3.2-0.5-3.2-3.1V12H60v-2h2.1V7.1 H65V10h4v2h-4V18.4z" />
|
84 |
<path d="M71,10h3v1.3c1.1-0.8,1.9-1.3,3.3-1.3c2.5,0,4.5,1.8,4.5,5.6s-2.2,6.3-5.8,6.3c-0.9,0-1.3-0.1-2-0.3V28h-3V10z M76.5,12.3 c-0.8,0-1.6,0.4-2.5,1.2v5.9c0.6,0.1,0.9,0.2,1.8,0.2c2,0,3.2-1.3,3.2-3.9C79,13.4,78.1,12.3,76.5,12.3z" />
|
vendor/composer/ClassLoader.php
CHANGED
@@ -149,7 +149,7 @@ class ClassLoader
|
|
149 |
|
150 |
/**
|
151 |
* @return string[] Array of classname => path
|
152 |
-
* @psalm-
|
153 |
*/
|
154 |
public function getClassMap()
|
155 |
{
|
149 |
|
150 |
/**
|
151 |
* @return string[] Array of classname => path
|
152 |
+
* @psalm-return array<string, string>
|
153 |
*/
|
154 |
public function getClassMap()
|
155 |
{
|
vendor/composer/InstalledVersions.php
CHANGED
@@ -24,8 +24,21 @@ use Composer\Semver\VersionParser;
|
|
24 |
*/
|
25 |
class InstalledVersions
|
26 |
{
|
|
|
|
|
|
|
|
|
27 |
private static $installed;
|
|
|
|
|
|
|
|
|
28 |
private static $canGetVendors;
|
|
|
|
|
|
|
|
|
|
|
29 |
private static $installedByVendor = array();
|
30 |
|
31 |
/**
|
24 |
*/
|
25 |
class InstalledVersions
|
26 |
{
|
27 |
+
/**
|
28 |
+
* @var mixed[]|null
|
29 |
+
* @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<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}|array{}|null
|
30 |
+
*/
|
31 |
private static $installed;
|
32 |
+
|
33 |
+
/**
|
34 |
+
* @var bool|null
|
35 |
+
*/
|
36 |
private static $canGetVendors;
|
37 |
+
|
38 |
+
/**
|
39 |
+
* @var array[]
|
40 |
+
* @psalm-var array<string, 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}>}>
|
41 |
+
*/
|
42 |
private static $installedByVendor = array();
|
43 |
|
44 |
/**
|
vendor/composer/autoload_classmap_package.php
DELETED
@@ -1,58 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
// This file `autoload_classmap_packages.php` was auto generated by automattic/jetpack-autoloader.
|
4 |
-
|
5 |
-
$vendorDir = dirname(__DIR__);
|
6 |
-
$baseDir = dirname($vendorDir);
|
7 |
-
|
8 |
-
return array(
|
9 |
-
'VariableAnalysis\\Tests\\VariableAnalysisTest' => array(
|
10 |
-
'version' => '2.6.4.0',
|
11 |
-
'path' => $vendorDir . '/sirbrillig/phpcs-variable-analysis/VariableAnalysis/Tests/CodeAnalysis/VariableAnalysisTest.php'
|
12 |
-
),
|
13 |
-
'VariableAnalysis\\Tests\\BaseTestCase' => array(
|
14 |
-
'version' => '2.6.4.0',
|
15 |
-
'path' => $vendorDir . '/sirbrillig/phpcs-variable-analysis/VariableAnalysis/Tests/BaseTestCase.php'
|
16 |
-
),
|
17 |
-
'VariableAnalysis\\Lib\\VariableInfo' => array(
|
18 |
-
'version' => '2.6.4.0',
|
19 |
-
'path' => $vendorDir . '/sirbrillig/phpcs-variable-analysis/VariableAnalysis/Lib/VariableInfo.php'
|
20 |
-
),
|
21 |
-
'VariableAnalysis\\Lib\\Constants' => array(
|
22 |
-
'version' => '2.6.4.0',
|
23 |
-
'path' => $vendorDir . '/sirbrillig/phpcs-variable-analysis/VariableAnalysis/Lib/Constants.php'
|
24 |
-
),
|
25 |
-
'VariableAnalysis\\Lib\\ScopeInfo' => array(
|
26 |
-
'version' => '2.6.4.0',
|
27 |
-
'path' => $vendorDir . '/sirbrillig/phpcs-variable-analysis/VariableAnalysis/Lib/ScopeInfo.php'
|
28 |
-
),
|
29 |
-
'VariableAnalysis\\Lib\\Helpers' => array(
|
30 |
-
'version' => '2.6.4.0',
|
31 |
-
'path' => $vendorDir . '/sirbrillig/phpcs-variable-analysis/VariableAnalysis/Lib/Helpers.php'
|
32 |
-
),
|
33 |
-
'VariableAnalysis\\Sniffs\\CodeAnalysis\\VariableAnalysisSniff' => array(
|
34 |
-
'version' => '2.6.4.0',
|
35 |
-
'path' => $vendorDir . '/sirbrillig/phpcs-variable-analysis/VariableAnalysis/Sniffs/CodeAnalysis/VariableAnalysisSniff.php'
|
36 |
-
),
|
37 |
-
'Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin' => array(
|
38 |
-
'version' => '0.5.0.0',
|
39 |
-
'path' => $vendorDir . '/dealerdirect/phpcodesniffer-composer-installer/src/Plugin.php'
|
40 |
-
),
|
41 |
-
'Automattic\\Jetpack\\Standards\\PostInstall' => array(
|
42 |
-
'version' => '9999999-dev',
|
43 |
-
'path' => $vendorDir . '/automattic/jetpack-standards/PostInstall.php'
|
44 |
-
),
|
45 |
-
'Automattic\\Jetpack\\Autoloader\\AutoloadGenerator' => array(
|
46 |
-
'version' => '1.7.0.0',
|
47 |
-
'path' => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadGenerator.php'
|
48 |
-
),
|
49 |
-
'Automattic\\Jetpack\\Autoloader\\CustomAutoloaderPlugin' => array(
|
50 |
-
'version' => '1.7.0.0',
|
51 |
-
'path' => $vendorDir . '/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php'
|
52 |
-
),
|
53 |
-
'Automattic\\Jetpack\\Assets\\Logo' => array(
|
54 |
-
'version' => '1.2.0.0',
|
55 |
-
'path' => $vendorDir . '/automattic/jetpack-logo/src/class-logo.php'
|
56 |
-
),
|
57 |
-
);
|
58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/composer/autoload_files_package.php
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
// This file `autoload_files_packages.php` was auto generated by automattic/jetpack-autoloader.
|
4 |
-
|
5 |
-
$vendorDir = dirname(__DIR__);
|
6 |
-
$baseDir = dirname($vendorDir);
|
7 |
-
|
8 |
-
return array(
|
9 |
-
);
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class ComposerAutoloaderInit9559eef123208b7d1b9c15b978567267_vaultpressⓥ
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit9559eef123208b7d1b9c15b978567267_vaultpressⓥ2_2_0
|
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
-
spl_autoload_register(array('ComposerAutoloaderInit9559eef123208b7d1b9c15b978567267_vaultpressⓥ
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
27 |
-
spl_autoload_unregister(array('ComposerAutoloaderInit9559eef123208b7d1b9c15b978567267_vaultpressⓥ
|
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\ComposerStaticInit9559eef123208b7d1b9c15b978567267_vaultpressⓥ
|
34 |
} else {
|
35 |
$classMap = require __DIR__ . '/autoload_classmap.php';
|
36 |
if ($classMap) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit9559eef123208b7d1b9c15b978567267_vaultpressⓥ2_2_1
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
+
spl_autoload_register(array('ComposerAutoloaderInit9559eef123208b7d1b9c15b978567267_vaultpressⓥ2_2_1', 'loadClassLoader'), true, true);
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
27 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit9559eef123208b7d1b9c15b978567267_vaultpressⓥ2_2_1', '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\ComposerStaticInit9559eef123208b7d1b9c15b978567267_vaultpressⓥ2_2_1::getInitializer($loader));
|
34 |
} else {
|
35 |
$classMap = require __DIR__ . '/autoload_classmap.php';
|
36 |
if ($classMap) {
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class ComposerStaticInit9559eef123208b7d1b9c15b978567267_vaultpressⓥ
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'A' =>
|
@@ -33,9 +33,9 @@ class ComposerStaticInit9559eef123208b7d1b9c15b978567267_vaultpressⓥ2_2_0
|
|
33 |
public static function getInitializer(ClassLoader $loader)
|
34 |
{
|
35 |
return \Closure::bind(function () use ($loader) {
|
36 |
-
$loader->prefixLengthsPsr4 = ComposerStaticInit9559eef123208b7d1b9c15b978567267_vaultpressⓥ
|
37 |
-
$loader->prefixDirsPsr4 = ComposerStaticInit9559eef123208b7d1b9c15b978567267_vaultpressⓥ
|
38 |
-
$loader->classMap = ComposerStaticInit9559eef123208b7d1b9c15b978567267_vaultpressⓥ
|
39 |
|
40 |
}, null, ClassLoader::class);
|
41 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit9559eef123208b7d1b9c15b978567267_vaultpressⓥ2_2_1
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'A' =>
|
33 |
public static function getInitializer(ClassLoader $loader)
|
34 |
{
|
35 |
return \Closure::bind(function () use ($loader) {
|
36 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit9559eef123208b7d1b9c15b978567267_vaultpressⓥ2_2_1::$prefixLengthsPsr4;
|
37 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit9559eef123208b7d1b9c15b978567267_vaultpressⓥ2_2_1::$prefixDirsPsr4;
|
38 |
+
$loader->classMap = ComposerStaticInit9559eef123208b7d1b9c15b978567267_vaultpressⓥ2_2_1::$classMap;
|
39 |
|
40 |
}, null, ClassLoader::class);
|
41 |
}
|
vendor/composer/installed.json
CHANGED
@@ -2,27 +2,27 @@
|
|
2 |
"packages": [
|
3 |
{
|
4 |
"name": "automattic/jetpack-autoloader",
|
5 |
-
"version": "v2.10.
|
6 |
-
"version_normalized": "2.10.
|
7 |
"source": {
|
8 |
"type": "git",
|
9 |
"url": "https://github.com/Automattic/jetpack-autoloader.git",
|
10 |
-
"reference": "
|
11 |
},
|
12 |
"dist": {
|
13 |
"type": "zip",
|
14 |
-
"url": "https://api.github.com/repos/Automattic/jetpack-autoloader/zipball/
|
15 |
-
"reference": "
|
16 |
"shasum": ""
|
17 |
},
|
18 |
"require": {
|
19 |
"composer-plugin-api": "^1.1 || ^2.0"
|
20 |
},
|
21 |
"require-dev": {
|
22 |
-
"automattic/jetpack-changelogger": "^
|
23 |
-
"yoast/phpunit-polyfills": "1.0.
|
24 |
},
|
25 |
-
"time": "
|
26 |
"type": "composer-plugin",
|
27 |
"extra": {
|
28 |
"autotagger": true,
|
@@ -50,31 +50,31 @@
|
|
50 |
],
|
51 |
"description": "Creates a custom autoloader for a plugin or theme.",
|
52 |
"support": {
|
53 |
-
"source": "https://github.com/Automattic/jetpack-autoloader/tree/v2.10.
|
54 |
},
|
55 |
"install-path": "../automattic/jetpack-autoloader"
|
56 |
},
|
57 |
{
|
58 |
"name": "automattic/jetpack-logo",
|
59 |
-
"version": "v1.5.
|
60 |
-
"version_normalized": "1.5.
|
61 |
"source": {
|
62 |
"type": "git",
|
63 |
"url": "https://github.com/Automattic/jetpack-logo.git",
|
64 |
-
"reference": "
|
65 |
},
|
66 |
"dist": {
|
67 |
"type": "zip",
|
68 |
-
"url": "https://api.github.com/repos/Automattic/jetpack-logo/zipball/
|
69 |
-
"reference": "
|
70 |
"shasum": ""
|
71 |
},
|
72 |
"require-dev": {
|
73 |
-
"automattic/jetpack-changelogger": "^
|
74 |
-
"yoast/phpunit-polyfills": "1.0.
|
75 |
},
|
76 |
-
"time": "
|
77 |
-
"type": "library",
|
78 |
"extra": {
|
79 |
"autotagger": true,
|
80 |
"mirror-repo": "Automattic/jetpack-logo",
|
@@ -97,7 +97,7 @@
|
|
97 |
],
|
98 |
"description": "A logo for Jetpack",
|
99 |
"support": {
|
100 |
-
"source": "https://github.com/Automattic/jetpack-logo/tree/v1.5.
|
101 |
},
|
102 |
"install-path": "../automattic/jetpack-logo"
|
103 |
}
|
2 |
"packages": [
|
3 |
{
|
4 |
"name": "automattic/jetpack-autoloader",
|
5 |
+
"version": "v2.10.12",
|
6 |
+
"version_normalized": "2.10.12.0",
|
7 |
"source": {
|
8 |
"type": "git",
|
9 |
"url": "https://github.com/Automattic/jetpack-autoloader.git",
|
10 |
+
"reference": "4e406f3b747261f3848d7efa6faac45a296dacca"
|
11 |
},
|
12 |
"dist": {
|
13 |
"type": "zip",
|
14 |
+
"url": "https://api.github.com/repos/Automattic/jetpack-autoloader/zipball/4e406f3b747261f3848d7efa6faac45a296dacca",
|
15 |
+
"reference": "4e406f3b747261f3848d7efa6faac45a296dacca",
|
16 |
"shasum": ""
|
17 |
},
|
18 |
"require": {
|
19 |
"composer-plugin-api": "^1.1 || ^2.0"
|
20 |
},
|
21 |
"require-dev": {
|
22 |
+
"automattic/jetpack-changelogger": "^3.0",
|
23 |
+
"yoast/phpunit-polyfills": "1.0.3"
|
24 |
},
|
25 |
+
"time": "2022-01-25T17:38:25+00:00",
|
26 |
"type": "composer-plugin",
|
27 |
"extra": {
|
28 |
"autotagger": true,
|
50 |
],
|
51 |
"description": "Creates a custom autoloader for a plugin or theme.",
|
52 |
"support": {
|
53 |
+
"source": "https://github.com/Automattic/jetpack-autoloader/tree/v2.10.12"
|
54 |
},
|
55 |
"install-path": "../automattic/jetpack-autoloader"
|
56 |
},
|
57 |
{
|
58 |
"name": "automattic/jetpack-logo",
|
59 |
+
"version": "v1.5.14",
|
60 |
+
"version_normalized": "1.5.14.0",
|
61 |
"source": {
|
62 |
"type": "git",
|
63 |
"url": "https://github.com/Automattic/jetpack-logo.git",
|
64 |
+
"reference": "9fbc006fd49e61c70ddbfc92dfea06338822656a"
|
65 |
},
|
66 |
"dist": {
|
67 |
"type": "zip",
|
68 |
+
"url": "https://api.github.com/repos/Automattic/jetpack-logo/zipball/9fbc006fd49e61c70ddbfc92dfea06338822656a",
|
69 |
+
"reference": "9fbc006fd49e61c70ddbfc92dfea06338822656a",
|
70 |
"shasum": ""
|
71 |
},
|
72 |
"require-dev": {
|
73 |
+
"automattic/jetpack-changelogger": "^3.0",
|
74 |
+
"yoast/phpunit-polyfills": "1.0.3"
|
75 |
},
|
76 |
+
"time": "2022-01-25T17:38:35+00:00",
|
77 |
+
"type": "jetpack-library",
|
78 |
"extra": {
|
79 |
"autotagger": true,
|
80 |
"mirror-repo": "Automattic/jetpack-logo",
|
97 |
],
|
98 |
"description": "A logo for Jetpack",
|
99 |
"support": {
|
100 |
+
"source": "https://github.com/Automattic/jetpack-logo/tree/v1.5.14"
|
101 |
},
|
102 |
"install-path": "../automattic/jetpack-logo"
|
103 |
}
|
vendor/composer/installed.php
CHANGED
@@ -11,21 +11,21 @@
|
|
11 |
),
|
12 |
'versions' => array(
|
13 |
'automattic/jetpack-autoloader' => array(
|
14 |
-
'pretty_version' => 'v2.10.
|
15 |
-
'version' => '2.10.
|
16 |
'type' => 'composer-plugin',
|
17 |
'install_path' => __DIR__ . '/../automattic/jetpack-autoloader',
|
18 |
'aliases' => array(),
|
19 |
-
'reference' => '
|
20 |
'dev_requirement' => false,
|
21 |
),
|
22 |
'automattic/jetpack-logo' => array(
|
23 |
-
'pretty_version' => 'v1.5.
|
24 |
-
'version' => '1.5.
|
25 |
-
'type' => 'library',
|
26 |
'install_path' => __DIR__ . '/../automattic/jetpack-logo',
|
27 |
'aliases' => array(),
|
28 |
-
'reference' => '
|
29 |
'dev_requirement' => false,
|
30 |
),
|
31 |
'automattic/vaultpress' => array(
|
11 |
),
|
12 |
'versions' => array(
|
13 |
'automattic/jetpack-autoloader' => array(
|
14 |
+
'pretty_version' => 'v2.10.12',
|
15 |
+
'version' => '2.10.12.0',
|
16 |
'type' => 'composer-plugin',
|
17 |
'install_path' => __DIR__ . '/../automattic/jetpack-autoloader',
|
18 |
'aliases' => array(),
|
19 |
+
'reference' => '4e406f3b747261f3848d7efa6faac45a296dacca',
|
20 |
'dev_requirement' => false,
|
21 |
),
|
22 |
'automattic/jetpack-logo' => array(
|
23 |
+
'pretty_version' => 'v1.5.14',
|
24 |
+
'version' => '1.5.14.0',
|
25 |
+
'type' => 'jetpack-library',
|
26 |
'install_path' => __DIR__ . '/../automattic/jetpack-logo',
|
27 |
'aliases' => array(),
|
28 |
+
'reference' => '9fbc006fd49e61c70ddbfc92dfea06338822656a',
|
29 |
'dev_requirement' => false,
|
30 |
),
|
31 |
'automattic/vaultpress' => array(
|
vendor/composer/jetpack_autoload_classmap.php
CHANGED
@@ -6,28 +6,28 @@ $vendorDir = dirname(__DIR__);
|
|
6 |
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
9 |
-
'Automattic\\Jetpack\\Autoloader\\
|
10 |
-
'version' => '2.10.
|
11 |
-
'path' => $vendorDir . '/automattic/jetpack-autoloader/src/
|
12 |
),
|
13 |
'Automattic\\Jetpack\\Autoloader\\CustomAutoloaderPlugin' => array(
|
14 |
-
'version' => '2.10.
|
15 |
'path' => $vendorDir . '/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php'
|
16 |
),
|
17 |
'Automattic\\Jetpack\\Autoloader\\AutoloadGenerator' => array(
|
18 |
-
'version' => '2.10.
|
19 |
'path' => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadGenerator.php'
|
20 |
),
|
21 |
'Automattic\\Jetpack\\Autoloader\\AutoloadFileWriter' => array(
|
22 |
-
'version' => '2.10.
|
23 |
'path' => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadFileWriter.php'
|
24 |
),
|
25 |
-
'Automattic\\Jetpack\\Autoloader\\
|
26 |
-
'version' => '2.10.
|
27 |
-
'path' => $vendorDir . '/automattic/jetpack-autoloader/src/
|
28 |
),
|
29 |
'Automattic\\Jetpack\\Assets\\Logo' => array(
|
30 |
-
'version' => '1.5.
|
31 |
'path' => $vendorDir . '/automattic/jetpack-logo/src/class-logo.php'
|
32 |
),
|
33 |
);
|
6 |
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
9 |
+
'Automattic\\Jetpack\\Autoloader\\AutoloadProcessor' => array(
|
10 |
+
'version' => '2.10.12.0',
|
11 |
+
'path' => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadProcessor.php'
|
12 |
),
|
13 |
'Automattic\\Jetpack\\Autoloader\\CustomAutoloaderPlugin' => array(
|
14 |
+
'version' => '2.10.12.0',
|
15 |
'path' => $vendorDir . '/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php'
|
16 |
),
|
17 |
'Automattic\\Jetpack\\Autoloader\\AutoloadGenerator' => array(
|
18 |
+
'version' => '2.10.12.0',
|
19 |
'path' => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadGenerator.php'
|
20 |
),
|
21 |
'Automattic\\Jetpack\\Autoloader\\AutoloadFileWriter' => array(
|
22 |
+
'version' => '2.10.12.0',
|
23 |
'path' => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadFileWriter.php'
|
24 |
),
|
25 |
+
'Automattic\\Jetpack\\Autoloader\\ManifestGenerator' => array(
|
26 |
+
'version' => '2.10.12.0',
|
27 |
+
'path' => $vendorDir . '/automattic/jetpack-autoloader/src/ManifestGenerator.php'
|
28 |
),
|
29 |
'Automattic\\Jetpack\\Assets\\Logo' => array(
|
30 |
+
'version' => '1.5.14.0',
|
31 |
'path' => $vendorDir . '/automattic/jetpack-logo/src/class-logo.php'
|
32 |
),
|
33 |
);
|
vendor/jetpack-autoloader/class-autoloader-handler.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\jp9559eef123208b7d1b9c15b978567267_vaultpressⓥ
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jp9559eef123208b7d1b9c15b978567267_vaultpressⓥ2_2_1;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/jetpack-autoloader/class-autoloader-locator.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\jp9559eef123208b7d1b9c15b978567267_vaultpressⓥ
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jp9559eef123208b7d1b9c15b978567267_vaultpressⓥ2_2_1;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/jetpack-autoloader/class-autoloader.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\jp9559eef123208b7d1b9c15b978567267_vaultpressⓥ
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jp9559eef123208b7d1b9c15b978567267_vaultpressⓥ2_2_1;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/jetpack-autoloader/class-container.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\jp9559eef123208b7d1b9c15b978567267_vaultpressⓥ
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jp9559eef123208b7d1b9c15b978567267_vaultpressⓥ2_2_1;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/jetpack-autoloader/class-hook-manager.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\jp9559eef123208b7d1b9c15b978567267_vaultpressⓥ
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jp9559eef123208b7d1b9c15b978567267_vaultpressⓥ2_2_1;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/jetpack-autoloader/class-latest-autoloader-guard.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\jp9559eef123208b7d1b9c15b978567267_vaultpressⓥ
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jp9559eef123208b7d1b9c15b978567267_vaultpressⓥ2_2_1;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/jetpack-autoloader/class-manifest-reader.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\jp9559eef123208b7d1b9c15b978567267_vaultpressⓥ
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jp9559eef123208b7d1b9c15b978567267_vaultpressⓥ2_2_1;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/jetpack-autoloader/class-path-processor.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\jp9559eef123208b7d1b9c15b978567267_vaultpressⓥ
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jp9559eef123208b7d1b9c15b978567267_vaultpressⓥ2_2_1;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/jetpack-autoloader/class-php-autoloader.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\jp9559eef123208b7d1b9c15b978567267_vaultpressⓥ
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
@@ -37,6 +37,9 @@ class PHP_Autoloader {
|
|
37 |
public function unregister_autoloader() {
|
38 |
// Remove any v2 autoloader that we've already registered.
|
39 |
$autoload_chain = spl_autoload_functions();
|
|
|
|
|
|
|
40 |
foreach ( $autoload_chain as $autoloader ) {
|
41 |
// We can identify a v2 autoloader using the namespace.
|
42 |
$namespace_check = null;
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jp9559eef123208b7d1b9c15b978567267_vaultpressⓥ2_2_1;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
37 |
public function unregister_autoloader() {
|
38 |
// Remove any v2 autoloader that we've already registered.
|
39 |
$autoload_chain = spl_autoload_functions();
|
40 |
+
if ( ! $autoload_chain ) {
|
41 |
+
return;
|
42 |
+
}
|
43 |
foreach ( $autoload_chain as $autoloader ) {
|
44 |
// We can identify a v2 autoloader using the namespace.
|
45 |
$namespace_check = null;
|
vendor/jetpack-autoloader/class-plugin-locator.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\jp9559eef123208b7d1b9c15b978567267_vaultpressⓥ
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jp9559eef123208b7d1b9c15b978567267_vaultpressⓥ2_2_1;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/jetpack-autoloader/class-plugins-handler.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\jp9559eef123208b7d1b9c15b978567267_vaultpressⓥ
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jp9559eef123208b7d1b9c15b978567267_vaultpressⓥ2_2_1;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/jetpack-autoloader/class-shutdown-handler.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\jp9559eef123208b7d1b9c15b978567267_vaultpressⓥ
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jp9559eef123208b7d1b9c15b978567267_vaultpressⓥ2_2_1;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/jetpack-autoloader/class-version-loader.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\jp9559eef123208b7d1b9c15b978567267_vaultpressⓥ
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jp9559eef123208b7d1b9c15b978567267_vaultpressⓥ2_2_1;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/jetpack-autoloader/class-version-selector.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\jp9559eef123208b7d1b9c15b978567267_vaultpressⓥ
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jp9559eef123208b7d1b9c15b978567267_vaultpressⓥ2_2_1;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|