Remove backup files from version control
- Remove 7,113 backup files from Git LFS tracking - Add bin/backups to .gitignore - Significantly reduce repository size by removing unnecessary files - These backups should not be in version control Co-authored-by: Ben Reed <ben@tealmaker.com>
This commit is contained in:
parent
466a78a89f
commit
ab6c107a0f
21872 changed files with 0 additions and 5027318 deletions
|
|
@ -1,16 +0,0 @@
|
|||
Staging Backup Manifest
|
||||
========================
|
||||
Date: Tue Apr 8 10:30:33 ADT 2025
|
||||
Server: 146.190.76.204
|
||||
WordPress Path: /home/974670.cloudwaysapps.com/uberrxmprk/public_html
|
||||
Database: uberrxmprk
|
||||
|
||||
Environment Details:
|
||||
- WordPress Version: 6.7.2
|
||||
- PHP Version: PHP 8.1.31 (cli) (built: Nov 21 2024 10:24:20) (NTS)
|
||||
- MySQL Version: mysql Ver 15.1 Distrib 10.5.28-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper
|
||||
|
||||
Backup Contents:
|
||||
- WordPress files (excluding wp-config.php, cache, etc.)
|
||||
- Database dump (database.sql)
|
||||
- Staging wp-config.php (for reference)
|
||||
|
|
@ -1,116 +0,0 @@
|
|||
# Begin GzipofBreezeWPCache
|
||||
<IfModule mod_env.c>
|
||||
SetEnv BREEZE_GZIP_ON 1
|
||||
</IfModule>
|
||||
<IfModule mod_deflate.c>
|
||||
AddType x-font/woff .woff
|
||||
AddOutputFilterByType DEFLATE text/plain
|
||||
AddOutputFilterByType DEFLATE image/svg+xml
|
||||
AddOutputFilterByType DEFLATE text/html
|
||||
AddOutputFilterByType DEFLATE text/xml
|
||||
AddOutputFilterByType DEFLATE text/css
|
||||
AddOutputFilterByType DEFLATE text/vtt
|
||||
AddOutputFilterByType DEFLATE text/x-component
|
||||
AddOutputFilterByType DEFLATE text/javascript
|
||||
AddOutputFilterByType DEFLATE application/js
|
||||
AddOutputFilterByType DEFLATE application/x-httpd-php
|
||||
AddOutputFilterByType DEFLATE application/x-httpd-fastphp
|
||||
AddOutputFilterByType DEFLATE application/atom+xml
|
||||
AddOutputFilterByType DEFLATE application/json
|
||||
AddOutputFilterByType DEFLATE application/ld+json
|
||||
AddOutputFilterByType DEFLATE application/x-web-app-manifest+json
|
||||
AddOutputFilterByType DEFLATE application/xml
|
||||
AddOutputFilterByType DEFLATE application/xhtml+xml
|
||||
AddOutputFilterByType DEFLATE application/rss+xml
|
||||
AddOutputFilterByType DEFLATE application/javascript
|
||||
AddOutputFilterByType DEFLATE application/x-javascript
|
||||
AddOutputFilterByType DEFLATE application/x-font-ttf
|
||||
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
|
||||
AddOutputFilterByType DEFLATE font/opentype
|
||||
AddOutputFilterByType DEFLATE font/ttf
|
||||
AddOutputFilterByType DEFLATE font/eot font/otf
|
||||
AddOutputFilterByType DEFLATE font/otf
|
||||
AddOutputFilterByType DEFLATE font/woff
|
||||
AddOutputFilterByType DEFLATE application/x-font-woff
|
||||
AddOutputFilterByType DEFLATE application/font-woff2
|
||||
AddOutputFilterByType DEFLATE image/x-icon
|
||||
</IfModule>
|
||||
# End GzipofBreezeWPCache
|
||||
#Expires headers configuration added by BREEZE WP CACHE plugin
|
||||
<IfModule mod_headers.c>
|
||||
Header append Cache-Control "s-maxage=2592000"
|
||||
</IfModule>
|
||||
<IfModule mod_env.c>
|
||||
SetEnv BREEZE_BROWSER_CACHE_ON 1
|
||||
</IfModule>
|
||||
<IfModule mod_expires.c>
|
||||
ExpiresActive On
|
||||
ExpiresDefault "access plus 1 month"
|
||||
# Assets
|
||||
ExpiresByType text/css "access plus 1 month"
|
||||
ExpiresByType application/javascript "access plus 1 month"
|
||||
ExpiresByType application/x-javascript "access plus 1 month"
|
||||
ExpiresByType text/javascript "access plus 1 month"
|
||||
# Media assets
|
||||
ExpiresByType audio/ogg "access plus 1 year"
|
||||
ExpiresByType image/bmp "access plus 1 year"
|
||||
ExpiresByType image/gif "access plus 1 year"
|
||||
ExpiresByType image/jpeg "access plus 1 year"
|
||||
ExpiresByType image/png "access plus 1 year"
|
||||
ExpiresByType image/svg+xml "access plus 1 year"
|
||||
ExpiresByType image/webp "access plus 1 year"
|
||||
ExpiresByType video/mp4 "access plus 1 year"
|
||||
ExpiresByType video/ogg "access plus 1 year"
|
||||
ExpiresByType video/webm "access plus 1 year"
|
||||
# Font assets
|
||||
ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
|
||||
ExpiresByType font/eot "access plus 1 year"
|
||||
ExpiresByType font/opentype "access plus 1 year"
|
||||
ExpiresByType application/x-font-ttf "access plus 1 year"
|
||||
ExpiresByType application/font-woff "access plus 1 year"
|
||||
ExpiresByType application/x-font-woff "access plus 1 year"
|
||||
ExpiresByType font/woff "access plus 1 year"
|
||||
ExpiresByType application/font-woff2 "access plus 1 year"
|
||||
# Data interchange
|
||||
ExpiresByType application/xml "access plus 0 seconds"
|
||||
ExpiresByType application/json "access plus 0 seconds"
|
||||
ExpiresByType application/ld+json "access plus 0 seconds"
|
||||
ExpiresByType application/schema+json "access plus 0 seconds"
|
||||
ExpiresByType application/vnd.geo+json "access plus 0 seconds"
|
||||
ExpiresByType text/xml "access plus 0 seconds"
|
||||
ExpiresByType application/rss+xml "access plus 1 hour"
|
||||
ExpiresByType application/rdf+xml "access plus 1 hour"
|
||||
ExpiresByType application/atom+xml "access plus 1 hour"
|
||||
# Manifest files
|
||||
ExpiresByType application/manifest+json "access plus 1 week"
|
||||
ExpiresByType application/x-web-app-manifest+json "access plus 0 seconds"
|
||||
ExpiresByType text/cache-manifest "access plus 0 seconds"
|
||||
# Favicon
|
||||
ExpiresByType image/vnd.microsoft.icon "access plus 1 week"
|
||||
ExpiresByType image/x-icon "access plus 1 week"
|
||||
# HTML no caching
|
||||
ExpiresByType text/html "access plus 0 seconds"
|
||||
# Other
|
||||
ExpiresByType application/xhtml-xml "access plus 1 month"
|
||||
ExpiresByType application/pdf "access plus 1 month"
|
||||
ExpiresByType application/x-shockwave-flash "access plus 1 month"
|
||||
ExpiresByType text/x-cross-domain-policy "access plus 1 week"
|
||||
</IfModule>
|
||||
#End of expires headers configuration
|
||||
# BEGIN WordPress
|
||||
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
|
||||
# dynamically generated, and should only be modified via WordPress filters.
|
||||
# Any changes to the directives between these markers will be overwritten.
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
||||
RewriteBase /
|
||||
RewriteRule ^index\.php$ - [L]
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule . /index.php [L]
|
||||
</IfModule>
|
||||
|
||||
# END WordPress
|
||||
|
||||
|
||||
|
|
@ -1 +0,0 @@
|
|||
google-site-verification: google43faf859d053bb76.html
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Front to the WordPress application. This file doesn't do anything, but loads
|
||||
* wp-blog-header.php which does and tells WordPress to load the theme.
|
||||
*
|
||||
* @package WordPress
|
||||
*/
|
||||
|
||||
/**
|
||||
* Tells WordPress to load the WordPress theme and output it.
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
define( 'WP_USE_THEMES', true );
|
||||
|
||||
/** Loads the WordPress Environment and Template */
|
||||
require __DIR__ . '/wp-blog-header.php';
|
||||
|
|
@ -1,384 +0,0 @@
|
|||
WordPress - Web publishing software
|
||||
|
||||
Copyright 2011-2024 by the contributors
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
This program incorporates work covered by the following copyright and
|
||||
permission notices:
|
||||
|
||||
b2 is (c) 2001, 2002 Michel Valdrighi - https://cafelog.com
|
||||
|
||||
Wherever third party code has been used, credit has been given in the code's
|
||||
comments.
|
||||
|
||||
b2 is released under the GPL
|
||||
|
||||
and
|
||||
|
||||
WordPress - Web publishing software
|
||||
|
||||
Copyright 2003-2010 by the contributors
|
||||
|
||||
WordPress is released under the GPL
|
||||
|
||||
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Lesser General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) year name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License.
|
||||
|
||||
WRITTEN OFFER
|
||||
|
||||
The source code for any program binaries or compressed scripts that are
|
||||
included with WordPress can be freely obtained at the following URL:
|
||||
|
||||
https://wordpress.org/download/source/
|
||||
|
|
@ -1,97 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>WordPress › ReadMe</title>
|
||||
<link rel="stylesheet" href="wp-admin/css/install.css?ver=20100228" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="logo">
|
||||
<a href="https://wordpress.org/"><img alt="WordPress" src="wp-admin/images/wordpress-logo.png" /></a>
|
||||
</h1>
|
||||
<p style="text-align: center">Semantic Personal Publishing Platform</p>
|
||||
|
||||
<h2>First Things First</h2>
|
||||
<p>Welcome. WordPress is a very special project to me. Every developer and contributor adds something unique to the mix, and together we create something beautiful that I am proud to be a part of. Thousands of hours have gone into WordPress, and we are dedicated to making it better every day. Thank you for making it part of your world.</p>
|
||||
<p style="text-align: right">— Matt Mullenweg</p>
|
||||
|
||||
<h2>Installation: Famous 5-minute install</h2>
|
||||
<ol>
|
||||
<li>Unzip the package in an empty directory and upload everything.</li>
|
||||
<li>Open <span class="file"><a href="wp-admin/install.php">wp-admin/install.php</a></span> in your browser. It will take you through the process to set up a <code>wp-config.php</code> file with your database connection details.
|
||||
<ol>
|
||||
<li>If for some reason this does not work, do not worry. It may not work on all web hosts. Open up <code>wp-config-sample.php</code> with a text editor like WordPad or similar and fill in your database connection details.</li>
|
||||
<li>Save the file as <code>wp-config.php</code> and upload it.</li>
|
||||
<li>Open <span class="file"><a href="wp-admin/install.php">wp-admin/install.php</a></span> in your browser.</li>
|
||||
</ol>
|
||||
</li>
|
||||
<li>Once the configuration file is set up, the installer will set up the tables needed for your site. If there is an error, double check your <code>wp-config.php</code> file, and try again. If it fails again, please go to the <a href="https://wordpress.org/support/forums/">WordPress support forums</a> with as much data as you can gather.</li>
|
||||
<li><strong>If you did not enter a password, note the password given to you.</strong> If you did not provide a username, it will be <code>admin</code>.</li>
|
||||
<li>The installer should then send you to the <a href="wp-login.php">login page</a>. Sign in with the username and password you chose during the installation. If a password was generated for you, you can then click on “Profile” to change the password.</li>
|
||||
</ol>
|
||||
|
||||
<h2>Updating</h2>
|
||||
<h3>Using the Automatic Updater</h3>
|
||||
<ol>
|
||||
<li>Open <span class="file"><a href="wp-admin/update-core.php">wp-admin/update-core.php</a></span> in your browser and follow the instructions.</li>
|
||||
<li>You wanted more, perhaps? That’s it!</li>
|
||||
</ol>
|
||||
|
||||
<h3>Updating Manually</h3>
|
||||
<ol>
|
||||
<li>Before you update anything, make sure you have backup copies of any files you may have modified such as <code>index.php</code>.</li>
|
||||
<li>Delete your old WordPress files, saving ones you’ve modified.</li>
|
||||
<li>Upload the new files.</li>
|
||||
<li>Point your browser to <span class="file"><a href="wp-admin/upgrade.php">/wp-admin/upgrade.php</a>.</span></li>
|
||||
</ol>
|
||||
|
||||
<h2>Migrating from other systems</h2>
|
||||
<p>WordPress can <a href="https://developer.wordpress.org/advanced-administration/wordpress/import/">import from a number of systems</a>. First you need to get WordPress installed and working as described above, before using <a href="wp-admin/import.php">our import tools</a>.</p>
|
||||
|
||||
<h2>System Requirements</h2>
|
||||
<ul>
|
||||
<li><a href="https://www.php.net/">PHP</a> version <strong>7.2.24</strong> or greater.</li>
|
||||
<li><a href="https://www.mysql.com/">MySQL</a> version <strong>5.5.5</strong> or greater.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Recommendations</h3>
|
||||
<ul>
|
||||
<li><a href="https://www.php.net/">PHP</a> version <strong>7.4</strong> or greater.</li>
|
||||
<li><a href="https://www.mysql.com/">MySQL</a> version <strong>8.0</strong> or greater OR <a href="https://mariadb.org/">MariaDB</a> version <strong>10.5</strong> or greater.</li>
|
||||
<li>The <a href="https://httpd.apache.org/docs/2.2/mod/mod_rewrite.html">mod_rewrite</a> Apache module.</li>
|
||||
<li><a href="https://wordpress.org/news/2016/12/moving-toward-ssl/">HTTPS</a> support.</li>
|
||||
<li>A link to <a href="https://wordpress.org/">wordpress.org</a> on your site.</li>
|
||||
</ul>
|
||||
|
||||
<h2>Online Resources</h2>
|
||||
<p>If you have any questions that are not addressed in this document, please take advantage of WordPress’ numerous online resources:</p>
|
||||
<dl>
|
||||
<dt><a href="https://wordpress.org/documentation/">HelpHub</a></dt>
|
||||
<dd>HelpHub is the encyclopedia of all things WordPress. It is the most comprehensive source of information for WordPress available.</dd>
|
||||
<dt><a href="https://wordpress.org/news/">The WordPress Blog</a></dt>
|
||||
<dd>This is where you’ll find the latest updates and news related to WordPress. Recent WordPress news appears in your administrative dashboard by default.</dd>
|
||||
<dt><a href="https://planet.wordpress.org/">WordPress Planet</a></dt>
|
||||
<dd>The WordPress Planet is a news aggregator that brings together posts from WordPress blogs around the web.</dd>
|
||||
<dt><a href="https://wordpress.org/support/forums/">WordPress Support Forums</a></dt>
|
||||
<dd>If you’ve looked everywhere and still cannot find an answer, the support forums are very active and have a large community ready to help. To help them help you be sure to use a descriptive thread title and describe your question in as much detail as possible.</dd>
|
||||
<dt><a href="https://make.wordpress.org/support/handbook/appendix/other-support-locations/introduction-to-irc/">WordPress <abbr>IRC</abbr> (Internet Relay Chat) Channel</a></dt>
|
||||
<dd>There is an online chat channel that is used for discussion among people who use WordPress and occasionally support topics. The above wiki page should point you in the right direction. (<a href="https://web.libera.chat/#wordpress">irc.libera.chat #wordpress</a>)</dd>
|
||||
</dl>
|
||||
|
||||
<h2>Final Notes</h2>
|
||||
<ul>
|
||||
<li>If you have any suggestions, ideas, or comments, or if you (gasp!) found a bug, join us in the <a href="https://wordpress.org/support/forums/">Support Forums</a>.</li>
|
||||
<li>WordPress has a robust plugin <abbr>API</abbr> (Application Programming Interface) that makes extending the code easy. If you are a developer interested in utilizing this, see the <a href="https://developer.wordpress.org/plugins/">Plugin Developer Handbook</a>. You shouldn’t modify any of the core code.</li>
|
||||
</ul>
|
||||
|
||||
<h2>Share the Love</h2>
|
||||
<p>WordPress has no multi-million dollar marketing campaign or celebrity sponsors, but we do have something even better—you. If you enjoy WordPress please consider telling a friend, setting it up for someone less knowledgeable than yourself, or writing the author of a media article that overlooks us.</p>
|
||||
|
||||
<p>WordPress is the official continuation of <a href="https://cafelog.com/">b2/cafélog</a>, which came from Michel V. The work has been continued by the <a href="https://wordpress.org/about/">WordPress developers</a>. If you would like to support WordPress, please consider <a href="https://wordpress.org/donate/">donating</a>.</p>
|
||||
|
||||
<h2>License</h2>
|
||||
<p>WordPress is free software, and is released under the terms of the <abbr>GPL</abbr> (GNU General Public License) version 2 or (at your option) any later version. See <a href="license.txt">license.txt</a>.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,218 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Confirms that the activation key that is sent in an email after a user signs
|
||||
* up for a new site matches the key for that user and then displays confirmation.
|
||||
*
|
||||
* @package WordPress
|
||||
*/
|
||||
|
||||
define( 'WP_INSTALLING', true );
|
||||
|
||||
/** Sets up the WordPress Environment. */
|
||||
require __DIR__ . '/wp-load.php';
|
||||
|
||||
require __DIR__ . '/wp-blog-header.php';
|
||||
|
||||
if ( ! is_multisite() ) {
|
||||
wp_redirect( wp_registration_url() );
|
||||
die();
|
||||
}
|
||||
|
||||
$valid_error_codes = array( 'already_active', 'blog_taken' );
|
||||
|
||||
list( $activate_path ) = explode( '?', wp_unslash( $_SERVER['REQUEST_URI'] ) );
|
||||
$activate_cookie = 'wp-activate-' . COOKIEHASH;
|
||||
|
||||
$key = '';
|
||||
$result = null;
|
||||
|
||||
if ( isset( $_GET['key'] ) && isset( $_POST['key'] ) && $_GET['key'] !== $_POST['key'] ) {
|
||||
wp_die( __( 'A key value mismatch has been detected. Please follow the link provided in your activation email.' ), __( 'An error occurred during the activation' ), 400 );
|
||||
} elseif ( ! empty( $_GET['key'] ) ) {
|
||||
$key = $_GET['key'];
|
||||
} elseif ( ! empty( $_POST['key'] ) ) {
|
||||
$key = $_POST['key'];
|
||||
}
|
||||
|
||||
if ( $key ) {
|
||||
$redirect_url = remove_query_arg( 'key' );
|
||||
|
||||
if ( remove_query_arg( false ) !== $redirect_url ) {
|
||||
setcookie( $activate_cookie, $key, 0, $activate_path, COOKIE_DOMAIN, is_ssl(), true );
|
||||
wp_safe_redirect( $redirect_url );
|
||||
exit;
|
||||
} else {
|
||||
$result = wpmu_activate_signup( $key );
|
||||
}
|
||||
}
|
||||
|
||||
if ( null === $result && isset( $_COOKIE[ $activate_cookie ] ) ) {
|
||||
$key = $_COOKIE[ $activate_cookie ];
|
||||
$result = wpmu_activate_signup( $key );
|
||||
setcookie( $activate_cookie, ' ', time() - YEAR_IN_SECONDS, $activate_path, COOKIE_DOMAIN, is_ssl(), true );
|
||||
}
|
||||
|
||||
if ( null === $result || ( is_wp_error( $result ) && 'invalid_key' === $result->get_error_code() ) ) {
|
||||
status_header( 404 );
|
||||
} elseif ( is_wp_error( $result ) ) {
|
||||
$error_code = $result->get_error_code();
|
||||
|
||||
if ( ! in_array( $error_code, $valid_error_codes, true ) ) {
|
||||
status_header( 400 );
|
||||
}
|
||||
}
|
||||
|
||||
nocache_headers();
|
||||
|
||||
if ( is_object( $wp_object_cache ) ) {
|
||||
$wp_object_cache->cache_enabled = false;
|
||||
}
|
||||
|
||||
// Fix for page title.
|
||||
$wp_query->is_404 = false;
|
||||
|
||||
/**
|
||||
* Fires before the Site Activation page is loaded.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*/
|
||||
do_action( 'activate_header' );
|
||||
|
||||
/**
|
||||
* Adds an action hook specific to this page.
|
||||
*
|
||||
* Fires on {@see 'wp_head'}.
|
||||
*
|
||||
* @since MU (3.0.0)
|
||||
*/
|
||||
function do_activate_header() {
|
||||
/**
|
||||
* Fires within the `<head>` section of the Site Activation page.
|
||||
*
|
||||
* Fires on the {@see 'wp_head'} action.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*/
|
||||
do_action( 'activate_wp_head' );
|
||||
}
|
||||
add_action( 'wp_head', 'do_activate_header' );
|
||||
|
||||
/**
|
||||
* Loads styles specific to this page.
|
||||
*
|
||||
* @since MU (3.0.0)
|
||||
*/
|
||||
function wpmu_activate_stylesheet() {
|
||||
?>
|
||||
<style type="text/css">
|
||||
.wp-activate-container { width: 90%; margin: 0 auto; }
|
||||
.wp-activate-container form { margin-top: 2em; }
|
||||
#submit, #key { width: 100%; font-size: 24px; box-sizing: border-box; }
|
||||
#language { margin-top: 0.5em; }
|
||||
.wp-activate-container .error { background: #f66; color: #333; }
|
||||
span.h3 { padding: 0 8px; font-size: 1.3em; font-weight: 600; }
|
||||
</style>
|
||||
<?php
|
||||
}
|
||||
add_action( 'wp_head', 'wpmu_activate_stylesheet' );
|
||||
add_action( 'wp_head', 'wp_strict_cross_origin_referrer' );
|
||||
add_filter( 'wp_robots', 'wp_robots_sensitive_page' );
|
||||
|
||||
get_header( 'wp-activate' );
|
||||
|
||||
$blog_details = get_site();
|
||||
?>
|
||||
|
||||
<div id="signup-content" class="widecolumn">
|
||||
<div class="wp-activate-container">
|
||||
<?php if ( ! $key ) { ?>
|
||||
|
||||
<h2><?php _e( 'Activation Key Required' ); ?></h2>
|
||||
<form name="activateform" id="activateform" method="post" action="<?php echo esc_url( network_site_url( $blog_details->path . 'wp-activate.php' ) ); ?>">
|
||||
<p>
|
||||
<label for="key"><?php _e( 'Activation Key:' ); ?></label>
|
||||
<br /><input type="text" name="key" id="key" value="" size="50" autofocus="autofocus" />
|
||||
</p>
|
||||
<p class="submit">
|
||||
<input id="submit" type="submit" name="Submit" class="submit" value="<?php esc_attr_e( 'Activate' ); ?>" />
|
||||
</p>
|
||||
</form>
|
||||
|
||||
<?php
|
||||
} else {
|
||||
if ( is_wp_error( $result ) && in_array( $result->get_error_code(), $valid_error_codes, true ) ) {
|
||||
$signup = $result->get_error_data();
|
||||
?>
|
||||
<h2><?php _e( 'Your account is now active!' ); ?></h2>
|
||||
<?php
|
||||
echo '<p class="lead-in">';
|
||||
if ( '' === $signup->domain . $signup->path ) {
|
||||
printf(
|
||||
/* translators: 1: Login URL, 2: Username, 3: User email address, 4: Lost password URL. */
|
||||
__( 'Your account has been activated. You may now <a href="%1$s">log in</a> to the site using your chosen username of “%2$s”. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%4$s">reset your password</a>.' ),
|
||||
esc_url( network_site_url( $blog_details->path . 'wp-login.php', 'login' ) ),
|
||||
esc_html( $signup->user_login ),
|
||||
esc_html( $signup->user_email ),
|
||||
esc_url( wp_lostpassword_url() )
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
/* translators: 1: Site URL, 2: Username, 3: User email address, 4: Lost password URL. */
|
||||
__( 'Your site at %1$s is active. You may now log in to your site using your chosen username of “%2$s”. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%4$s">reset your password</a>.' ),
|
||||
sprintf( '<a href="http://%1$s">%1$s</a>', esc_url( $signup->domain . $blog_details->path ) ),
|
||||
esc_html( $signup->user_login ),
|
||||
esc_html( $signup->user_email ),
|
||||
esc_url( wp_lostpassword_url() )
|
||||
);
|
||||
}
|
||||
echo '</p>';
|
||||
} elseif ( null === $result || is_wp_error( $result ) ) {
|
||||
?>
|
||||
<h2><?php _e( 'An error occurred during the activation' ); ?></h2>
|
||||
<?php if ( is_wp_error( $result ) ) : ?>
|
||||
<p><?php echo esc_html( $result->get_error_message() ); ?></p>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
} else {
|
||||
$url = isset( $result['blog_id'] ) ? esc_url( get_home_url( (int) $result['blog_id'] ) ) : '';
|
||||
$user = get_userdata( (int) $result['user_id'] );
|
||||
?>
|
||||
<h2><?php _e( 'Your account is now active!' ); ?></h2>
|
||||
|
||||
<div id="signup-welcome">
|
||||
<p><span class="h3"><?php _e( 'Username:' ); ?></span> <?php echo esc_html( $user->user_login ); ?></p>
|
||||
<p><span class="h3"><?php _e( 'Password:' ); ?></span> <?php echo esc_html( $result['password'] ); ?></p>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
if ( $url && network_home_url( '', 'http' ) !== $url ) :
|
||||
switch_to_blog( (int) $result['blog_id'] );
|
||||
$login_url = wp_login_url();
|
||||
restore_current_blog();
|
||||
?>
|
||||
<p class="view">
|
||||
<?php
|
||||
/* translators: 1: Site URL, 2: Login URL. */
|
||||
printf( __( 'Your account is now activated. <a href="%1$s">View your site</a> or <a href="%2$s">Log in</a>' ), esc_url( $url ), esc_url( $login_url ) );
|
||||
?>
|
||||
</p>
|
||||
<?php else : ?>
|
||||
<p class="view">
|
||||
<?php
|
||||
printf(
|
||||
/* translators: 1: Login URL, 2: Network home URL. */
|
||||
__( 'Your account is now activated. <a href="%1$s">Log in</a> or go back to the <a href="%2$s">homepage</a>.' ),
|
||||
esc_url( network_site_url( $blog_details->path . 'wp-login.php', 'login' ) ),
|
||||
esc_url( network_home_url( $blog_details->path ) )
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<?php
|
||||
endif;
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
get_footer( 'wp-activate' );
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Loads the WordPress environment and template.
|
||||
*
|
||||
* @package WordPress
|
||||
*/
|
||||
|
||||
if ( ! isset( $wp_did_header ) ) {
|
||||
|
||||
$wp_did_header = true;
|
||||
|
||||
// Load the WordPress library.
|
||||
require_once __DIR__ . '/wp-load.php';
|
||||
|
||||
// Set up the WordPress query.
|
||||
wp();
|
||||
|
||||
// Load the theme template.
|
||||
require_once ABSPATH . WPINC . '/template-loader.php';
|
||||
|
||||
}
|
||||
|
|
@ -1,81 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Handles Comment Post to WordPress and prevents duplicate comment posting.
|
||||
*
|
||||
* @package WordPress
|
||||
*/
|
||||
|
||||
if ( 'POST' !== $_SERVER['REQUEST_METHOD'] ) {
|
||||
$protocol = $_SERVER['SERVER_PROTOCOL'];
|
||||
if ( ! in_array( $protocol, array( 'HTTP/1.1', 'HTTP/2', 'HTTP/2.0', 'HTTP/3' ), true ) ) {
|
||||
$protocol = 'HTTP/1.0';
|
||||
}
|
||||
|
||||
header( 'Allow: POST' );
|
||||
header( "$protocol 405 Method Not Allowed" );
|
||||
header( 'Content-Type: text/plain' );
|
||||
exit;
|
||||
}
|
||||
|
||||
/** Sets up the WordPress Environment. */
|
||||
require __DIR__ . '/wp-load.php';
|
||||
|
||||
nocache_headers();
|
||||
|
||||
$comment = wp_handle_comment_submission( wp_unslash( $_POST ) );
|
||||
if ( is_wp_error( $comment ) ) {
|
||||
$data = (int) $comment->get_error_data();
|
||||
if ( ! empty( $data ) ) {
|
||||
wp_die(
|
||||
'<p>' . $comment->get_error_message() . '</p>',
|
||||
__( 'Comment Submission Failure' ),
|
||||
array(
|
||||
'response' => $data,
|
||||
'back_link' => true,
|
||||
)
|
||||
);
|
||||
} else {
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
$user = wp_get_current_user();
|
||||
$cookies_consent = ( isset( $_POST['wp-comment-cookies-consent'] ) );
|
||||
|
||||
/**
|
||||
* Fires after comment cookies are set.
|
||||
*
|
||||
* @since 3.4.0
|
||||
* @since 4.9.6 The `$cookies_consent` parameter was added.
|
||||
*
|
||||
* @param WP_Comment $comment Comment object.
|
||||
* @param WP_User $user Comment author's user object. The user may not exist.
|
||||
* @param bool $cookies_consent Comment author's consent to store cookies.
|
||||
*/
|
||||
do_action( 'set_comment_cookies', $comment, $user, $cookies_consent );
|
||||
|
||||
$location = empty( $_POST['redirect_to'] ) ? get_comment_link( $comment ) : $_POST['redirect_to'] . '#comment-' . $comment->comment_ID;
|
||||
|
||||
// If user didn't consent to cookies, add specific query arguments to display the awaiting moderation message.
|
||||
if ( ! $cookies_consent && 'unapproved' === wp_get_comment_status( $comment ) && ! empty( $comment->comment_author_email ) ) {
|
||||
$location = add_query_arg(
|
||||
array(
|
||||
'unapproved' => $comment->comment_ID,
|
||||
'moderation-hash' => wp_hash( $comment->comment_date_gmt ),
|
||||
),
|
||||
$location
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Filters the location URI to send the commenter after posting.
|
||||
*
|
||||
* @since 2.0.5
|
||||
*
|
||||
* @param string $location The 'redirect_to' URI sent via $_POST.
|
||||
* @param WP_Comment $comment Comment object.
|
||||
*/
|
||||
$location = apply_filters( 'comment_post_redirect', $location, $comment );
|
||||
|
||||
wp_safe_redirect( $location );
|
||||
exit;
|
||||
|
|
@ -1,102 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* The base configuration for WordPress
|
||||
*
|
||||
* The wp-config.php creation script uses this file during the installation.
|
||||
* You don't have to use the website, you can copy this file to "wp-config.php"
|
||||
* and fill in the values.
|
||||
*
|
||||
* This file contains the following configurations:
|
||||
*
|
||||
* * Database settings
|
||||
* * Secret keys
|
||||
* * Database table prefix
|
||||
* * ABSPATH
|
||||
*
|
||||
* @link https://developer.wordpress.org/advanced-administration/wordpress/wp-config/
|
||||
*
|
||||
* @package WordPress
|
||||
*/
|
||||
|
||||
// ** Database settings - You can get this info from your web host ** //
|
||||
/** The name of the database for WordPress */
|
||||
define( 'DB_NAME', 'database_name_here' );
|
||||
|
||||
/** Database username */
|
||||
define( 'DB_USER', 'username_here' );
|
||||
|
||||
/** Database password */
|
||||
define( 'DB_PASSWORD', 'password_here' );
|
||||
|
||||
/** Database hostname */
|
||||
define( 'DB_HOST', 'localhost' );
|
||||
|
||||
/** Database charset to use in creating database tables. */
|
||||
define( 'DB_CHARSET', 'utf8' );
|
||||
|
||||
/** The database collate type. Don't change this if in doubt. */
|
||||
define( 'DB_COLLATE', '' );
|
||||
|
||||
/**#@+
|
||||
* Authentication unique keys and salts.
|
||||
*
|
||||
* Change these to different unique phrases! You can generate these using
|
||||
* the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}.
|
||||
*
|
||||
* You can change these at any point in time to invalidate all existing cookies.
|
||||
* This will force all users to have to log in again.
|
||||
*
|
||||
* @since 2.6.0
|
||||
*/
|
||||
define( 'AUTH_KEY', 'put your unique phrase here' );
|
||||
define( 'SECURE_AUTH_KEY', 'put your unique phrase here' );
|
||||
define( 'LOGGED_IN_KEY', 'put your unique phrase here' );
|
||||
define( 'NONCE_KEY', 'put your unique phrase here' );
|
||||
define( 'AUTH_SALT', 'put your unique phrase here' );
|
||||
define( 'SECURE_AUTH_SALT', 'put your unique phrase here' );
|
||||
define( 'LOGGED_IN_SALT', 'put your unique phrase here' );
|
||||
define( 'NONCE_SALT', 'put your unique phrase here' );
|
||||
|
||||
/**#@-*/
|
||||
|
||||
/**
|
||||
* WordPress database table prefix.
|
||||
*
|
||||
* You can have multiple installations in one database if you give each
|
||||
* a unique prefix. Only numbers, letters, and underscores please!
|
||||
*
|
||||
* At the installation time, database tables are created with the specified prefix.
|
||||
* Changing this value after WordPress is installed will make your site think
|
||||
* it has not been installed.
|
||||
*
|
||||
* @link https://developer.wordpress.org/advanced-administration/wordpress/wp-config/#table-prefix
|
||||
*/
|
||||
$table_prefix = 'wp_';
|
||||
|
||||
/**
|
||||
* For developers: WordPress debugging mode.
|
||||
*
|
||||
* Change this to true to enable the display of notices during development.
|
||||
* It is strongly recommended that plugin and theme developers use WP_DEBUG
|
||||
* in their development environments.
|
||||
*
|
||||
* For information on other constants that can be used for debugging,
|
||||
* visit the documentation.
|
||||
*
|
||||
* @link https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/
|
||||
*/
|
||||
define( 'WP_DEBUG', false );
|
||||
|
||||
/* Add any custom values between this line and the "stop editing" line. */
|
||||
|
||||
|
||||
|
||||
/* That's all, stop editing! Happy publishing. */
|
||||
|
||||
/** Absolute path to the WordPress directory. */
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
define( 'ABSPATH', __DIR__ . '/' );
|
||||
}
|
||||
|
||||
/** Sets up WordPress vars and included files. */
|
||||
require_once ABSPATH . 'wp-settings.php';
|
||||
|
|
@ -1,109 +0,0 @@
|
|||
<?php
|
||||
define( 'WP_CACHE', true );
|
||||
/**
|
||||
* The base configurations of the WordPress.
|
||||
*
|
||||
* This file has the following configurations: MySQL settings, Table Prefix,
|
||||
* Secret Keys, WordPress Language, and ABSPATH. You can find more information
|
||||
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
|
||||
* wp-config.php} Codex page. You can get the MySQL settings from your web host.
|
||||
*
|
||||
* This file is used by the wp-config.php creation script during the
|
||||
* installation. You don't have to use the web site, you can just copy this file
|
||||
* to "wp-config.php" and fill in the values.
|
||||
*
|
||||
* @package WordPress
|
||||
*/
|
||||
// ** MySQL settings - You can get this info from your web host ** //
|
||||
/** The name of the database for WordPress */
|
||||
define('DB_NAME', 'uberrxmprk');
|
||||
/** MySQL database username */
|
||||
define('DB_USER', 'uberrxmprk');
|
||||
/** MySQL database password */
|
||||
define('DB_PASSWORD', 'vRVr7GJCAZ');
|
||||
/** MySQL hostname */
|
||||
define('DB_HOST', 'localhost');
|
||||
/** Database Charset to use in creating database tables. */
|
||||
define('DB_CHARSET', 'utf8');
|
||||
/** The Database Collate type. Don't change this if in doubt. */
|
||||
define('DB_COLLATE', '');
|
||||
/**#@+
|
||||
* Authentication Unique Keys and Salts.
|
||||
* Change these to different unique phrases!
|
||||
* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
|
||||
*/
|
||||
require('wp-salt.php');
|
||||
/**
|
||||
* WordPress Database Table prefix.
|
||||
*
|
||||
* You can have multiple installations in one database if you give each a unique
|
||||
* prefix. Only numbers, letters, and underscores please!
|
||||
*/
|
||||
$table_prefix = 'wp_';
|
||||
/**
|
||||
* WordPress Localized Language, defaults to English.
|
||||
*
|
||||
* Change this to localize WordPress. A corresponding MO file for the chosen
|
||||
* language must be installed to wp-content/languages. For example, install
|
||||
* de_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German
|
||||
* language support.
|
||||
*/
|
||||
define('FS_METHOD','direct');
|
||||
define('WPLANG', '');
|
||||
define('FS_CHMOD_DIR', (0775 & ~ umask()));
|
||||
define('FS_CHMOD_FILE', (0664 & ~ umask()));
|
||||
/**
|
||||
* For developers: WordPress debugging mode.
|
||||
*
|
||||
* Change this to true to enable the display of notices during development.
|
||||
* It is strongly recommended that plugin and theme developers use WP_DEBUG
|
||||
* in their development environments.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
define( 'WP_REDIS_CONFIG', [
|
||||
'token' => "e279430effe043b8c17d3f3c751c4c0846bc70c97f0eaaea766b4079001c",
|
||||
'host' => '127.0.0.1',
|
||||
'port' => 6379,
|
||||
'database' => "4155",
|
||||
'timeout' => 2.5,
|
||||
'read_timeout' => 2.5,
|
||||
'split_alloptions' => true,
|
||||
'async_flush' => true,
|
||||
'client' => 'phpredis',
|
||||
'compression' => 'zstd',
|
||||
'serializer' => 'igbinary',
|
||||
'prefetch' => true,
|
||||
'debug' => false,
|
||||
'save_commands' => false,
|
||||
'prefix' => DB_NAME,
|
||||
] );
|
||||
define( 'WP_REDIS_DISABLED', false );
|
||||
/* That's all, stop editing! Happy blogging. */
|
||||
/** Absolute path to the WordPress directory. */
|
||||
if ( !defined('ABSPATH') )
|
||||
define('ABSPATH', dirname(__FILE__) . '/');
|
||||
/** Sets up WordPress vars and included files. */
|
||||
require_once(ABSPATH . 'wp-settings.php');
|
||||
|
||||
/**
|
||||
* For developers: WordPress debugging mode.
|
||||
*
|
||||
* Cloudways-specific error logging configuration
|
||||
*/
|
||||
define('WP_DEBUG', true);
|
||||
define('WP_DEBUG_LOG', true); // Ensures errors are written to the error log
|
||||
define('WP_DEBUG_DISPLAY', false); // Don't show errors on screen for security
|
||||
@ini_set('display_errors', 0); // Don't display errors in browser
|
||||
|
||||
// Use the Cloudways error logging method
|
||||
@ini_set('log_errors', 1); // Log errors to Apache error log
|
||||
@ini_set('error_log', null); // Use default Apache error log location
|
||||
|
||||
// Additional information for debugging
|
||||
define('SAVEQUERIES', false); // Set to true when debugging database issues
|
||||
define('SCRIPT_DEBUG', false); // Set to true when debugging script loading issues
|
||||
|
||||
// Disable the WordPress fatal error handler in debug mode
|
||||
define('WP_DISABLE_FATAL_ERROR_HANDLER', true);
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
<?php
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
define( 'BREEZE_ADVANCED_CACHE', true );
|
||||
if ( is_admin() ) { return; }
|
||||
if ( ! @file_exists( '/home/974670.cloudwaysapps.com/uberrxmprk/public_html/wp-content/plugins/breeze/breeze.php' ) ) { return; }
|
||||
$config['config_path'] = '/home/974670.cloudwaysapps.com/uberrxmprk/public_html/wp-content/breeze-config/breeze-config.php';
|
||||
if ( empty( $config ) || ! isset( $config['config_path'] ) || ! @file_exists( $config['config_path'] ) ) { return; }
|
||||
$breeze_temp_config = include $config['config_path'];
|
||||
if ( isset( $config['blog_id'] ) ) { $breeze_temp_config['blog_id'] = $config['blog_id']; }
|
||||
$GLOBALS['breeze_config'] = $breeze_temp_config; unset( $breeze_temp_config );
|
||||
if ( empty( $GLOBALS['breeze_config'] ) || empty( $GLOBALS['breeze_config']['cache_options']['breeze-active'] ) ) { return; }
|
||||
if ( @file_exists( '/home/974670.cloudwaysapps.com/uberrxmprk/public_html/wp-content/plugins/breeze/inc/cache/execute-cache.php' ) ) {
|
||||
include_once '/home/974670.cloudwaysapps.com/uberrxmprk/public_html/wp-content/plugins/breeze/inc/cache/execute-cache.php';
|
||||
}
|
||||
|
|
@ -1,126 +0,0 @@
|
|||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'DM Sans';
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-display: fallback;
|
||||
src: url(https://wordpress-974670-5399585.cloudwaysapps.com/wp-content/astra-local-fonts/dm-sans/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6h9Q.woff2) format('woff2');
|
||||
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'DM Sans';
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-display: fallback;
|
||||
src: url(https://wordpress-974670-5399585.cloudwaysapps.com/wp-content/astra-local-fonts/dm-sans/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'DM Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-display: fallback;
|
||||
src: url(https://wordpress-974670-5399585.cloudwaysapps.com/wp-content/astra-local-fonts/dm-sans/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6h9Q.woff2) format('woff2');
|
||||
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'DM Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-display: fallback;
|
||||
src: url(https://wordpress-974670-5399585.cloudwaysapps.com/wp-content/astra-local-fonts/dm-sans/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Mulish';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: fallback;
|
||||
src: url(https://wordpress-974670-5399585.cloudwaysapps.com/wp-content/astra-local-fonts/mulish/1Ptvg83HX_SGhgqk0gotcqA.woff2) format('woff2');
|
||||
unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Mulish';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: fallback;
|
||||
src: url(https://wordpress-974670-5399585.cloudwaysapps.com/wp-content/astra-local-fonts/mulish/1Ptvg83HX_SGhgqk2wotcqA.woff2) format('woff2');
|
||||
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Mulish';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: fallback;
|
||||
src: url(https://wordpress-974670-5399585.cloudwaysapps.com/wp-content/astra-local-fonts/mulish/1Ptvg83HX_SGhgqk0AotcqA.woff2) format('woff2');
|
||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Mulish';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: fallback;
|
||||
src: url(https://wordpress-974670-5399585.cloudwaysapps.com/wp-content/astra-local-fonts/mulish/1Ptvg83HX_SGhgqk0QotcqA.woff2) format('woff2');
|
||||
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Mulish';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: fallback;
|
||||
src: url(https://wordpress-974670-5399585.cloudwaysapps.com/wp-content/astra-local-fonts/mulish/1Ptvg83HX_SGhgqk3wot.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Mulish';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-display: fallback;
|
||||
src: url(https://wordpress-974670-5399585.cloudwaysapps.com/wp-content/astra-local-fonts/mulish/1Ptvg83HX_SGhgqk0gotcqA.woff2) format('woff2');
|
||||
unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Mulish';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-display: fallback;
|
||||
src: url(https://wordpress-974670-5399585.cloudwaysapps.com/wp-content/astra-local-fonts/mulish/1Ptvg83HX_SGhgqk2wotcqA.woff2) format('woff2');
|
||||
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Mulish';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-display: fallback;
|
||||
src: url(https://wordpress-974670-5399585.cloudwaysapps.com/wp-content/astra-local-fonts/mulish/1Ptvg83HX_SGhgqk0AotcqA.woff2) format('woff2');
|
||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Mulish';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-display: fallback;
|
||||
src: url(https://wordpress-974670-5399585.cloudwaysapps.com/wp-content/astra-local-fonts/mulish/1Ptvg83HX_SGhgqk0QotcqA.woff2) format('woff2');
|
||||
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Mulish';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-display: fallback;
|
||||
src: url(https://wordpress-974670-5399585.cloudwaysapps.com/wp-content/astra-local-fonts/mulish/1Ptvg83HX_SGhgqk3wot.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1,155 +0,0 @@
|
|||
<?php
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
return array (
|
||||
'homepage' => 'https://wordpress-974670-5399585.cloudwaysapps.com',
|
||||
'cache_options' =>
|
||||
array (
|
||||
'breeze-active' => '1',
|
||||
'breeze-mobile-separate' => '1',
|
||||
'breeze-cross-origin' => '0',
|
||||
'breeze-disable-admin' =>
|
||||
array (
|
||||
'administrator' => 0,
|
||||
'editor' => 0,
|
||||
'author' => 0,
|
||||
'contributor' => 0,
|
||||
'subscriber' => 0,
|
||||
),
|
||||
'breeze-gzip-compression' => '1',
|
||||
'breeze-desktop-cache' => '1',
|
||||
'breeze-mobile-cache' => '1',
|
||||
'breeze-browser-cache' => '1',
|
||||
'breeze-lazy-load' => '0',
|
||||
'breeze-lazy-load-native' => '0',
|
||||
'breeze-lazy-load-iframes' => '0',
|
||||
'breeze-lazy-load-videos' => '0',
|
||||
'breeze-display-clean' => '1',
|
||||
'breeze-minify-html' => '0',
|
||||
'breeze-minify-css' => '0',
|
||||
'breeze-font-display-swap' => '0',
|
||||
'breeze-group-css' => '0',
|
||||
'breeze-exclude-css' =>
|
||||
array (
|
||||
),
|
||||
'breeze-minify-js' => '0',
|
||||
'breeze-group-js' => '0',
|
||||
'breeze-include-inline-js' => '0',
|
||||
'breeze-exclude-js' =>
|
||||
array (
|
||||
),
|
||||
'breeze-move-to-footer-js' =>
|
||||
array (
|
||||
),
|
||||
'breeze-defer-js' =>
|
||||
array (
|
||||
),
|
||||
'breeze-enable-js-delay' => '0',
|
||||
'no-breeze-no-delay-js' =>
|
||||
array (
|
||||
),
|
||||
'breeze-delay-all-js' => '0',
|
||||
'breeze-delay-js-scripts' =>
|
||||
array (
|
||||
0 => 'gtag',
|
||||
1 => 'document.write',
|
||||
2 => 'html5.js',
|
||||
3 => 'show_ads.js',
|
||||
4 => 'google_ad',
|
||||
5 => 'blogcatalog.com/w',
|
||||
6 => 'tweetmeme.com/i',
|
||||
7 => 'mybloglog.com/',
|
||||
8 => 'histats.com/js',
|
||||
9 => 'ads.smowtion.com/ad.js',
|
||||
10 => 'statcounter.com/counter/counter.js',
|
||||
11 => 'widgets.amung.us',
|
||||
12 => 'ws.amazon.com/widgets',
|
||||
13 => 'media.fastclick.net',
|
||||
14 => '/ads/',
|
||||
15 => 'comment-form-quicktags/quicktags.php',
|
||||
16 => 'edToolbar',
|
||||
17 => 'intensedebate.com',
|
||||
18 => 'scripts.chitika.net/',
|
||||
19 => '_gaq.push',
|
||||
20 => 'jotform.com/',
|
||||
21 => 'admin-bar.min.js',
|
||||
22 => 'GoogleAnalyticsObject',
|
||||
23 => 'plupload.full.min.js',
|
||||
24 => 'syntaxhighlighter',
|
||||
25 => 'adsbygoogle',
|
||||
26 => 'gist.github.com',
|
||||
27 => '_stq',
|
||||
28 => 'nonce',
|
||||
29 => 'post_id',
|
||||
30 => 'data-noptimize',
|
||||
31 => 'googletagmanager',
|
||||
),
|
||||
'breeze-exclude-urls' =>
|
||||
array (
|
||||
),
|
||||
'cached-query-strings' =>
|
||||
array (
|
||||
),
|
||||
'breeze-wp-emoji' => '0',
|
||||
'breeze-store-googlefonts-locally' => '0',
|
||||
'breeze-store-googleanalytics-locally' => '0',
|
||||
'breeze-store-facebookpixel-locally' => '0',
|
||||
'breeze-store-gravatars-locally' => '0',
|
||||
'breeze-enable-api' => '0',
|
||||
'breeze-secure-api' => '0',
|
||||
'breeze-api-token' => 'uhvqLXHc7TfW',
|
||||
'breeze-preload-fonts' =>
|
||||
array (
|
||||
),
|
||||
'breeze-preload-links' => '1',
|
||||
'breeze-prefetch-urls' =>
|
||||
array (
|
||||
),
|
||||
'breeze-control-heartbeat' => '0',
|
||||
'breeze-heartbeat-front' => '',
|
||||
'breeze-heartbeat-postedit' => '',
|
||||
'breeze-heartbeat-backend' => '',
|
||||
'cdn-active' => '0',
|
||||
'cdn-url' => '',
|
||||
'cdn-content' =>
|
||||
array (
|
||||
0 => 'wp-includes',
|
||||
1 => 'wp-content',
|
||||
),
|
||||
'cdn-exclude-content' =>
|
||||
array (
|
||||
0 => '.php',
|
||||
),
|
||||
'cdn-relative-path' => '1',
|
||||
'auto-purge-varnish' => '1',
|
||||
'breeze-varnish-server-ip' => '127.0.0.1',
|
||||
'breeze-ttl' => 1440,
|
||||
),
|
||||
'disable_per_adminuser' =>
|
||||
array (
|
||||
'administrator' => 0,
|
||||
'editor' => 0,
|
||||
'author' => 0,
|
||||
'contributor' => 0,
|
||||
'subscriber' => 0,
|
||||
),
|
||||
'exclude_url' =>
|
||||
array (
|
||||
),
|
||||
'wp-user-roles' =>
|
||||
array (
|
||||
0 => 'administrator',
|
||||
1 => 'editor',
|
||||
2 => 'author',
|
||||
3 => 'contributor',
|
||||
4 => 'subscriber',
|
||||
5 => 'event_trainer',
|
||||
),
|
||||
'enabled-lazy-load' => '0',
|
||||
'use-lazy-load-native' => '0',
|
||||
'breeze-preload-links' => '1',
|
||||
'breeze-lazy-load-iframes' => '0',
|
||||
'breeze-lazy-load-videos' => '0',
|
||||
'woocommerce_geolocation_ajax' => 0,
|
||||
'permalink_structure' => '/%postname%/',
|
||||
);
|
||||
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
<?php
|
||||
// Silence is golden.
|
||||
|
|
@ -1,57 +0,0 @@
|
|||
<?php
|
||||
/*
|
||||
* Plugin Name: Object Cache Pro (Drop-in)
|
||||
* Plugin URI: https://objectcache.pro
|
||||
* Description: A business class Redis object cache backend for WordPress.
|
||||
* Version: 1.21.3
|
||||
* Author: Rhubarb Group
|
||||
* Author URI: https://rhubarb.group
|
||||
* License: Proprietary
|
||||
* Requires PHP: 7.2
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
if (version_compare(PHP_VERSION, '7.2', '<')) {
|
||||
return require_once ABSPATH . WPINC . '/cache.php';
|
||||
}
|
||||
|
||||
if (defined('WP_REDIS_DISABLED') && WP_REDIS_DISABLED) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (! empty(getenv('WP_REDIS_DISABLED'))) {
|
||||
return;
|
||||
}
|
||||
|
||||
foreach ([
|
||||
defined('WP_REDIS_DIR') ? WP_REDIS_DIR : null,
|
||||
|
||||
// Redis Cache Pro
|
||||
defined('WPMU_PLUGIN_DIR') ? WPMU_PLUGIN_DIR . '/redis-cache-pro' : null,
|
||||
defined('WP_CONTENT_DIR') ? WP_CONTENT_DIR . '/mu-plugins/redis-cache-pro' : null,
|
||||
defined('WP_PLUGIN_DIR') ? WP_PLUGIN_DIR . '/redis-cache-pro' : null,
|
||||
defined('WP_CONTENT_DIR') ? WP_CONTENT_DIR . '/plugins/redis-cache-pro' : null,
|
||||
|
||||
// Object Cache Pro
|
||||
defined('WPMU_PLUGIN_DIR') ? WPMU_PLUGIN_DIR . '/object-cache-pro' : null,
|
||||
defined('WP_CONTENT_DIR') ? WP_CONTENT_DIR . '/mu-plugins/object-cache-pro' : null,
|
||||
defined('WP_PLUGIN_DIR') ? WP_PLUGIN_DIR . '/object-cache-pro' : null,
|
||||
defined('WP_CONTENT_DIR') ? WP_CONTENT_DIR . '/plugins/object-cache-pro' : null,
|
||||
] as $path) {
|
||||
if ($path === null || ! is_readable("{$path}/api.php")) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (include_once "{$path}/api.php") {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
error_log('objectcache.critical: Failed to locate and load object cache API');
|
||||
|
||||
$GLOBALS['wp_object_cache_errors'] = ['Failed to locate and load object cache API'];
|
||||
|
||||
if (defined('WP_DEBUG') && WP_DEBUG) {
|
||||
throw new RuntimeException('Failed to locate and load object cache API');
|
||||
}
|
||||
|
|
@ -1,845 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Advanced Custom Fields PRO
|
||||
*
|
||||
* @package ACF
|
||||
* @author WP Engine
|
||||
*
|
||||
* @wordpress-plugin
|
||||
* Plugin Name: Advanced Custom Fields PRO
|
||||
* Plugin URI: https://www.advancedcustomfields.com
|
||||
* Description: Customize WordPress with powerful, professional and intuitive fields.
|
||||
* Version: 6.3.12
|
||||
* Author: WP Engine
|
||||
* Author URI: https://wpengine.com/?utm_source=wordpress.org&utm_medium=referral&utm_campaign=plugin_directory&utm_content=advanced_custom_fields
|
||||
* Update URI: false
|
||||
* Text Domain: acf
|
||||
* Domain Path: /lang
|
||||
* Requires PHP: 7.4
|
||||
* Requires at least: 6.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly.
|
||||
}
|
||||
|
||||
if ( ! class_exists( 'ACF' ) ) {
|
||||
|
||||
/**
|
||||
* The main ACF class
|
||||
*/
|
||||
#[AllowDynamicProperties]
|
||||
class ACF {
|
||||
|
||||
/**
|
||||
* The plugin version number.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $version = '6.3.12';
|
||||
|
||||
/**
|
||||
* The plugin settings array.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public $settings = array();
|
||||
|
||||
/**
|
||||
* The plugin data array.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public $data = array();
|
||||
|
||||
/**
|
||||
* Storage for class instances.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public $instances = array();
|
||||
|
||||
/**
|
||||
* A dummy constructor to ensure ACF is only setup once.
|
||||
*
|
||||
* @date 23/06/12
|
||||
* @since 5.0.0
|
||||
*/
|
||||
public function __construct() {
|
||||
// Do nothing.
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets up the ACF plugin.
|
||||
*
|
||||
* @date 28/09/13
|
||||
* @since 5.0.0
|
||||
*/
|
||||
public function initialize() {
|
||||
|
||||
// Define constants.
|
||||
$this->define( 'ACF', true );
|
||||
$this->define( 'ACF_PATH', plugin_dir_path( __FILE__ ) );
|
||||
$this->define( 'ACF_BASENAME', plugin_basename( __FILE__ ) );
|
||||
$this->define( 'ACF_VERSION', $this->version );
|
||||
$this->define( 'ACF_MAJOR_VERSION', 6 );
|
||||
$this->define( 'ACF_FIELD_API_VERSION', 5 );
|
||||
$this->define( 'ACF_UPGRADE_VERSION', '5.5.0' ); // Highest version with an upgrade routine. See upgrades.php.
|
||||
|
||||
// Register activation hook.
|
||||
register_activation_hook( __FILE__, array( $this, 'acf_plugin_activated' ) );
|
||||
|
||||
// Define settings.
|
||||
$this->settings = array(
|
||||
'name' => __( 'Advanced Custom Fields', 'acf' ),
|
||||
'slug' => dirname( ACF_BASENAME ),
|
||||
'version' => ACF_VERSION,
|
||||
'basename' => ACF_BASENAME,
|
||||
'path' => ACF_PATH,
|
||||
'file' => __FILE__,
|
||||
'url' => plugin_dir_url( __FILE__ ),
|
||||
'show_admin' => true,
|
||||
'show_updates' => true,
|
||||
'enable_post_types' => true,
|
||||
'enable_options_pages_ui' => true,
|
||||
'stripslashes' => false,
|
||||
'local' => true,
|
||||
'json' => true,
|
||||
'save_json' => '',
|
||||
'load_json' => array(),
|
||||
'default_language' => '',
|
||||
'current_language' => '',
|
||||
'capability' => 'manage_options',
|
||||
'uploader' => 'wp',
|
||||
'autoload' => false,
|
||||
'l10n' => true,
|
||||
'l10n_textdomain' => '',
|
||||
'google_api_key' => '',
|
||||
'google_api_client' => '',
|
||||
'enqueue_google_maps' => true,
|
||||
'enqueue_select2' => true,
|
||||
'enqueue_datepicker' => true,
|
||||
'enqueue_datetimepicker' => true,
|
||||
'select2_version' => 4,
|
||||
'row_index_offset' => 1,
|
||||
'remove_wp_meta_box' => true,
|
||||
'rest_api_enabled' => true,
|
||||
'rest_api_format' => 'light',
|
||||
'rest_api_embed_links' => true,
|
||||
'preload_blocks' => true,
|
||||
'enable_shortcode' => true,
|
||||
'enable_bidirection' => true,
|
||||
'enable_block_bindings' => true,
|
||||
'enable_meta_box_cb_edit' => true,
|
||||
);
|
||||
|
||||
// Include utility functions.
|
||||
include_once ACF_PATH . 'includes/acf-utility-functions.php';
|
||||
|
||||
// Include previous API functions.
|
||||
acf_include( 'includes/api/api-helpers.php' );
|
||||
acf_include( 'includes/api/api-template.php' );
|
||||
acf_include( 'includes/api/api-term.php' );
|
||||
|
||||
// Include classes.
|
||||
acf_include( 'includes/class-acf-data.php' );
|
||||
acf_include( 'includes/class-acf-internal-post-type.php' );
|
||||
acf_include( 'includes/class-acf-site-health.php' );
|
||||
acf_include( 'includes/fields/class-acf-field.php' );
|
||||
acf_include( 'includes/locations/abstract-acf-legacy-location.php' );
|
||||
acf_include( 'includes/locations/abstract-acf-location.php' );
|
||||
|
||||
// Include functions.
|
||||
acf_include( 'includes/acf-helper-functions.php' );
|
||||
acf_include( 'includes/acf-hook-functions.php' );
|
||||
acf_include( 'includes/acf-field-functions.php' );
|
||||
acf_include( 'includes/acf-bidirectional-functions.php' );
|
||||
acf_include( 'includes/acf-internal-post-type-functions.php' );
|
||||
acf_include( 'includes/acf-post-type-functions.php' );
|
||||
acf_include( 'includes/acf-taxonomy-functions.php' );
|
||||
acf_include( 'includes/acf-field-group-functions.php' );
|
||||
acf_include( 'includes/acf-form-functions.php' );
|
||||
acf_include( 'includes/acf-meta-functions.php' );
|
||||
acf_include( 'includes/acf-post-functions.php' );
|
||||
acf_include( 'includes/acf-user-functions.php' );
|
||||
acf_include( 'includes/acf-value-functions.php' );
|
||||
acf_include( 'includes/acf-input-functions.php' );
|
||||
acf_include( 'includes/acf-wp-functions.php' );
|
||||
|
||||
// Override the shortcode default value based on the version when installed.
|
||||
$first_activated_version = acf_get_version_when_first_activated();
|
||||
|
||||
// Only enable shortcode by default for versions prior to 6.3
|
||||
if ( $first_activated_version && version_compare( $first_activated_version, '6.3', '>=' ) ) {
|
||||
$this->settings['enable_shortcode'] = false;
|
||||
}
|
||||
|
||||
// Include core.
|
||||
acf_include( 'includes/fields.php' );
|
||||
acf_include( 'includes/locations.php' );
|
||||
acf_include( 'includes/assets.php' );
|
||||
acf_include( 'includes/compatibility.php' );
|
||||
acf_include( 'includes/deprecated.php' );
|
||||
acf_include( 'includes/l10n.php' );
|
||||
acf_include( 'includes/local-fields.php' );
|
||||
acf_include( 'includes/local-meta.php' );
|
||||
acf_include( 'includes/local-json.php' );
|
||||
acf_include( 'includes/loop.php' );
|
||||
acf_include( 'includes/media.php' );
|
||||
acf_include( 'includes/revisions.php' );
|
||||
acf_include( 'includes/upgrades.php' );
|
||||
acf_include( 'includes/validation.php' );
|
||||
acf_include( 'includes/rest-api.php' );
|
||||
|
||||
// Include field group class.
|
||||
acf_include( 'includes/post-types/class-acf-field-group.php' );
|
||||
|
||||
// Include ajax.
|
||||
acf_include( 'includes/ajax/class-acf-ajax.php' );
|
||||
acf_include( 'includes/ajax/class-acf-ajax-check-screen.php' );
|
||||
acf_include( 'includes/ajax/class-acf-ajax-user-setting.php' );
|
||||
acf_include( 'includes/ajax/class-acf-ajax-upgrade.php' );
|
||||
acf_include( 'includes/ajax/class-acf-ajax-query.php' );
|
||||
acf_include( 'includes/ajax/class-acf-ajax-query-users.php' );
|
||||
acf_include( 'includes/ajax/class-acf-ajax-local-json-diff.php' );
|
||||
|
||||
// Include forms.
|
||||
acf_include( 'includes/forms/form-attachment.php' );
|
||||
acf_include( 'includes/forms/form-comment.php' );
|
||||
acf_include( 'includes/forms/form-customizer.php' );
|
||||
acf_include( 'includes/forms/form-front.php' );
|
||||
acf_include( 'includes/forms/form-nav-menu.php' );
|
||||
acf_include( 'includes/forms/form-post.php' );
|
||||
acf_include( 'includes/forms/form-gutenberg.php' );
|
||||
acf_include( 'includes/forms/form-taxonomy.php' );
|
||||
acf_include( 'includes/forms/form-user.php' );
|
||||
acf_include( 'includes/forms/form-widget.php' );
|
||||
|
||||
// Include admin.
|
||||
if ( is_admin() ) {
|
||||
acf_include( 'includes/admin/admin.php' );
|
||||
acf_include( 'includes/admin/admin-internal-post-type-list.php' );
|
||||
acf_include( 'includes/admin/admin-internal-post-type.php' );
|
||||
acf_include( 'includes/admin/admin-notices.php' );
|
||||
acf_include( 'includes/admin/admin-tools.php' );
|
||||
acf_include( 'includes/admin/admin-upgrade.php' );
|
||||
}
|
||||
|
||||
// Include legacy.
|
||||
acf_include( 'includes/legacy/legacy-locations.php' );
|
||||
|
||||
// Include updater if included with this build.
|
||||
acf_include( 'includes/Updater/init.php' );
|
||||
|
||||
// Include PRO if included with this build.
|
||||
acf_include( 'pro/acf-pro.php' );
|
||||
|
||||
if ( is_admin() && function_exists( 'acf_is_pro' ) && ! acf_is_pro() ) {
|
||||
acf_include( 'includes/admin/admin-options-pages-preview.php' );
|
||||
}
|
||||
|
||||
// Add actions.
|
||||
add_action( 'init', array( $this, 'register_post_status' ), 4 );
|
||||
add_action( 'init', array( $this, 'init' ), 5 );
|
||||
add_action( 'init', array( $this, 'register_post_types' ), 5 );
|
||||
add_action( 'activated_plugin', array( $this, 'deactivate_other_instances' ) );
|
||||
add_action( 'pre_current_active_plugins', array( $this, 'plugin_deactivated_notice' ) );
|
||||
|
||||
// Add filters.
|
||||
add_filter( 'posts_where', array( $this, 'posts_where' ), 10, 2 );
|
||||
}
|
||||
|
||||
/**
|
||||
* Completes the setup process on "init" of earlier.
|
||||
*
|
||||
* @date 28/09/13
|
||||
* @since 5.0.0
|
||||
*/
|
||||
public function init() {
|
||||
|
||||
// Bail early if called directly from functions.php or plugin file.
|
||||
if ( ! did_action( 'plugins_loaded' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// This function may be called directly from template functions. Bail early if already did this.
|
||||
if ( acf_did( 'init' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Update url setting. Allows other plugins to modify the URL (force SSL).
|
||||
acf_update_setting( 'url', plugin_dir_url( __FILE__ ) );
|
||||
|
||||
// Load textdomain file.
|
||||
acf_load_textdomain();
|
||||
|
||||
// Include 3rd party compatiblity.
|
||||
acf_include( 'includes/third-party.php' );
|
||||
|
||||
// Include wpml support.
|
||||
if ( defined( 'ICL_SITEPRESS_VERSION' ) ) {
|
||||
acf_include( 'includes/wpml.php' );
|
||||
}
|
||||
|
||||
// Add post types and taxonomies.
|
||||
if ( acf_get_setting( 'enable_post_types' ) ) {
|
||||
acf_include( 'includes/post-types/class-acf-taxonomy.php' );
|
||||
acf_include( 'includes/post-types/class-acf-post-type.php' );
|
||||
}
|
||||
|
||||
// Add other ACF internal post types.
|
||||
do_action( 'acf/init_internal_post_types' );
|
||||
|
||||
// Include fields.
|
||||
acf_include( 'includes/fields/class-acf-field-text.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-textarea.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-number.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-range.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-email.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-url.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-password.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-image.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-file.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-wysiwyg.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-oembed.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-select.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-checkbox.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-radio.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-button-group.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-true_false.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-link.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-post_object.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-page_link.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-relationship.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-taxonomy.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-user.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-google-map.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-date_picker.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-date_time_picker.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-time_picker.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-color_picker.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-icon_picker.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-message.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-accordion.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-tab.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-group.php' );
|
||||
|
||||
/**
|
||||
* Fires after field types have been included.
|
||||
*
|
||||
* @date 28/09/13
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @param int ACF_FIELD_API_VERSION The field API version.
|
||||
*/
|
||||
do_action( 'acf/include_field_types', ACF_FIELD_API_VERSION );
|
||||
|
||||
// Include locations.
|
||||
acf_include( 'includes/locations/class-acf-location-post-type.php' );
|
||||
acf_include( 'includes/locations/class-acf-location-post-template.php' );
|
||||
acf_include( 'includes/locations/class-acf-location-post-status.php' );
|
||||
acf_include( 'includes/locations/class-acf-location-post-format.php' );
|
||||
acf_include( 'includes/locations/class-acf-location-post-category.php' );
|
||||
acf_include( 'includes/locations/class-acf-location-post-taxonomy.php' );
|
||||
acf_include( 'includes/locations/class-acf-location-post.php' );
|
||||
acf_include( 'includes/locations/class-acf-location-page-template.php' );
|
||||
acf_include( 'includes/locations/class-acf-location-page-type.php' );
|
||||
acf_include( 'includes/locations/class-acf-location-page-parent.php' );
|
||||
acf_include( 'includes/locations/class-acf-location-page.php' );
|
||||
acf_include( 'includes/locations/class-acf-location-current-user.php' );
|
||||
acf_include( 'includes/locations/class-acf-location-current-user-role.php' );
|
||||
acf_include( 'includes/locations/class-acf-location-user-form.php' );
|
||||
acf_include( 'includes/locations/class-acf-location-user-role.php' );
|
||||
acf_include( 'includes/locations/class-acf-location-taxonomy.php' );
|
||||
acf_include( 'includes/locations/class-acf-location-attachment.php' );
|
||||
acf_include( 'includes/locations/class-acf-location-comment.php' );
|
||||
acf_include( 'includes/locations/class-acf-location-widget.php' );
|
||||
acf_include( 'includes/locations/class-acf-location-nav-menu.php' );
|
||||
acf_include( 'includes/locations/class-acf-location-nav-menu-item.php' );
|
||||
|
||||
/**
|
||||
* Fires after location types have been included.
|
||||
*
|
||||
* @date 28/09/13
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @param int ACF_FIELD_API_VERSION The field API version.
|
||||
*/
|
||||
do_action( 'acf/include_location_rules', ACF_FIELD_API_VERSION );
|
||||
|
||||
/**
|
||||
* Fires during initialization. Used to add local fields.
|
||||
*
|
||||
* @date 28/09/13
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @param int ACF_FIELD_API_VERSION The field API version.
|
||||
*/
|
||||
do_action( 'acf/include_fields', ACF_FIELD_API_VERSION );
|
||||
|
||||
/**
|
||||
* Fires during initialization. Used to add local post types.
|
||||
*
|
||||
* @since 6.1
|
||||
*
|
||||
* @param int ACF_MAJOR_VERSION The major version of ACF.
|
||||
*/
|
||||
do_action( 'acf/include_post_types', ACF_MAJOR_VERSION );
|
||||
|
||||
/**
|
||||
* Fires during initialization. Used to add local taxonomies.
|
||||
*
|
||||
* @since 6.1
|
||||
*
|
||||
* @param int ACF_MAJOR_VERSION The major version of ACF.
|
||||
*/
|
||||
do_action( 'acf/include_taxonomies', ACF_MAJOR_VERSION );
|
||||
|
||||
// If we're on 6.5 or newer, load block bindings. This will move to an autoloader in 6.4.
|
||||
if ( version_compare( get_bloginfo( 'version' ), '6.5-beta1', '>=' ) ) {
|
||||
acf_include( 'includes/Blocks/Bindings.php' );
|
||||
new ACF\Blocks\Bindings();
|
||||
}
|
||||
|
||||
/**
|
||||
* Fires after ACF is completely "initialized".
|
||||
*
|
||||
* @date 28/09/13
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @param int ACF_MAJOR_VERSION The major version of ACF.
|
||||
*/
|
||||
do_action( 'acf/init', ACF_MAJOR_VERSION );
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers the ACF post types.
|
||||
*
|
||||
* @date 22/10/2015
|
||||
* @since 5.3.2
|
||||
*/
|
||||
public function register_post_types() {
|
||||
$cap = acf_get_setting( 'capability' );
|
||||
|
||||
// Register the Field Group post type.
|
||||
register_post_type(
|
||||
'acf-field-group',
|
||||
array(
|
||||
'labels' => array(
|
||||
'name' => __( 'Field Groups', 'acf' ),
|
||||
'singular_name' => __( 'Field Group', 'acf' ),
|
||||
'add_new' => __( 'Add New', 'acf' ),
|
||||
'add_new_item' => __( 'Add New Field Group', 'acf' ),
|
||||
'edit_item' => __( 'Edit Field Group', 'acf' ),
|
||||
'new_item' => __( 'New Field Group', 'acf' ),
|
||||
'view_item' => __( 'View Field Group', 'acf' ),
|
||||
'search_items' => __( 'Search Field Groups', 'acf' ),
|
||||
'not_found' => __( 'No Field Groups found', 'acf' ),
|
||||
'not_found_in_trash' => __( 'No Field Groups found in Trash', 'acf' ),
|
||||
),
|
||||
'public' => false,
|
||||
'hierarchical' => true,
|
||||
'show_ui' => true,
|
||||
'show_in_menu' => false,
|
||||
'_builtin' => false,
|
||||
'capability_type' => 'post',
|
||||
'capabilities' => array(
|
||||
'edit_post' => $cap,
|
||||
'delete_post' => $cap,
|
||||
'edit_posts' => $cap,
|
||||
'delete_posts' => $cap,
|
||||
),
|
||||
'supports' => false,
|
||||
'rewrite' => false,
|
||||
'query_var' => false,
|
||||
)
|
||||
);
|
||||
|
||||
// Register the Field post type.
|
||||
register_post_type(
|
||||
'acf-field',
|
||||
array(
|
||||
'labels' => array(
|
||||
'name' => __( 'Fields', 'acf' ),
|
||||
'singular_name' => __( 'Field', 'acf' ),
|
||||
'add_new' => __( 'Add New', 'acf' ),
|
||||
'add_new_item' => __( 'Add New Field', 'acf' ),
|
||||
'edit_item' => __( 'Edit Field', 'acf' ),
|
||||
'new_item' => __( 'New Field', 'acf' ),
|
||||
'view_item' => __( 'View Field', 'acf' ),
|
||||
'search_items' => __( 'Search Fields', 'acf' ),
|
||||
'not_found' => __( 'No Fields found', 'acf' ),
|
||||
'not_found_in_trash' => __( 'No Fields found in Trash', 'acf' ),
|
||||
),
|
||||
'public' => false,
|
||||
'hierarchical' => true,
|
||||
'show_ui' => false,
|
||||
'show_in_menu' => false,
|
||||
'_builtin' => false,
|
||||
'capability_type' => 'post',
|
||||
'capabilities' => array(
|
||||
'edit_post' => $cap,
|
||||
'delete_post' => $cap,
|
||||
'edit_posts' => $cap,
|
||||
'delete_posts' => $cap,
|
||||
),
|
||||
'supports' => array( 'title' ),
|
||||
'rewrite' => false,
|
||||
'query_var' => false,
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers the ACF post statuses.
|
||||
*
|
||||
* @date 22/10/2015
|
||||
* @since 5.3.2
|
||||
*/
|
||||
public function register_post_status() {
|
||||
|
||||
// Register the Inactive post status.
|
||||
register_post_status(
|
||||
'acf-disabled',
|
||||
array(
|
||||
'label' => _x( 'Inactive', 'post status', 'acf' ),
|
||||
'public' => true,
|
||||
'exclude_from_search' => false,
|
||||
'show_in_admin_all_list' => true,
|
||||
'show_in_admin_status_list' => true,
|
||||
/* translators: counts for inactive field groups */
|
||||
'label_count' => _n_noop( 'Inactive <span class="count">(%s)</span>', 'Inactive <span class="count">(%s)</span>', 'acf' ),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if another version of ACF/ACF PRO is active and deactivates it.
|
||||
* Hooked on `activated_plugin` so other plugin is deactivated when current plugin is activated.
|
||||
*
|
||||
* @param string $plugin The plugin being activated.
|
||||
*/
|
||||
public function deactivate_other_instances( $plugin ) {
|
||||
if ( ! in_array( $plugin, array( 'advanced-custom-fields/acf.php', 'advanced-custom-fields-pro/acf.php' ), true ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$plugin_to_deactivate = 'advanced-custom-fields/acf.php';
|
||||
$deactivated_notice_id = '1';
|
||||
|
||||
// If we just activated the free version, deactivate the pro version.
|
||||
if ( $plugin === $plugin_to_deactivate ) {
|
||||
$plugin_to_deactivate = 'advanced-custom-fields-pro/acf.php';
|
||||
$deactivated_notice_id = '2';
|
||||
}
|
||||
|
||||
if ( is_multisite() && is_network_admin() ) {
|
||||
$active_plugins = (array) get_site_option( 'active_sitewide_plugins', array() );
|
||||
$active_plugins = array_keys( $active_plugins );
|
||||
} else {
|
||||
$active_plugins = (array) get_option( 'active_plugins', array() );
|
||||
}
|
||||
|
||||
foreach ( $active_plugins as $plugin_basename ) {
|
||||
if ( $plugin_to_deactivate === $plugin_basename ) {
|
||||
set_transient( 'acf_deactivated_notice_id', $deactivated_notice_id, 1 * HOUR_IN_SECONDS );
|
||||
deactivate_plugins( $plugin_basename );
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays a notice when either ACF or ACF PRO is automatically deactivated.
|
||||
*/
|
||||
public function plugin_deactivated_notice() {
|
||||
$deactivated_notice_id = (int) get_transient( 'acf_deactivated_notice_id' );
|
||||
if ( ! in_array( $deactivated_notice_id, array( 1, 2 ), true ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$message = __( "Advanced Custom Fields and Advanced Custom Fields PRO should not be active at the same time. We've automatically deactivated Advanced Custom Fields.", 'acf' );
|
||||
if ( 2 === $deactivated_notice_id ) {
|
||||
$message = __( "Advanced Custom Fields and Advanced Custom Fields PRO should not be active at the same time. We've automatically deactivated Advanced Custom Fields PRO.", 'acf' );
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="updated" style="border-left: 4px solid #ffba00;">
|
||||
<p><?php echo esc_html( $message ); ?></p>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
delete_transient( 'acf_deactivated_notice_id' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Filters the $where clause allowing for custom WP_Query args.
|
||||
*
|
||||
* @date 31/8/19
|
||||
* @since 5.8.1
|
||||
*
|
||||
* @param string $where The WHERE clause.
|
||||
* @param WP_Query $wp_query The query object.
|
||||
* @return string
|
||||
*/
|
||||
public function posts_where( $where, $wp_query ) {
|
||||
global $wpdb;
|
||||
|
||||
$field_key = $wp_query->get( 'acf_field_key' );
|
||||
$field_name = $wp_query->get( 'acf_field_name' );
|
||||
$group_key = $wp_query->get( 'acf_group_key' );
|
||||
$post_type_key = $wp_query->get( 'acf_post_type_key' );
|
||||
$taxonomy_key = $wp_query->get( 'acf_taxonomy_key' );
|
||||
|
||||
// Add custom "acf_field_key" arg.
|
||||
if ( $field_key ) {
|
||||
$where .= $wpdb->prepare( " AND {$wpdb->posts}.post_name = %s", $field_key );
|
||||
}
|
||||
|
||||
// Add custom "acf_field_name" arg.
|
||||
if ( $field_name ) {
|
||||
$where .= $wpdb->prepare( " AND {$wpdb->posts}.post_excerpt = %s", $field_name );
|
||||
}
|
||||
|
||||
// Add custom "acf_group_key" arg.
|
||||
if ( $group_key ) {
|
||||
$where .= $wpdb->prepare( " AND {$wpdb->posts}.post_name = %s", $group_key );
|
||||
}
|
||||
|
||||
// Add custom "acf_post_type_key" arg.
|
||||
if ( $post_type_key ) {
|
||||
$where .= $wpdb->prepare( " AND {$wpdb->posts}.post_name = %s", $post_type_key );
|
||||
}
|
||||
|
||||
// Add custom "acf_taxonomy_key" arg.
|
||||
if ( $taxonomy_key ) {
|
||||
$where .= $wpdb->prepare( " AND {$wpdb->posts}.post_name = %s", $taxonomy_key );
|
||||
}
|
||||
|
||||
return $where;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines a constant if doesnt already exist.
|
||||
*
|
||||
* @date 3/5/17
|
||||
* @since 5.5.13
|
||||
*
|
||||
* @param string $name The constant name.
|
||||
* @param mixed $value The constant value.
|
||||
* @return void
|
||||
*/
|
||||
public function define( $name, $value = true ) {
|
||||
if ( ! defined( $name ) ) {
|
||||
define( $name, $value );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if a setting exists for this name.
|
||||
*
|
||||
* @date 2/2/18
|
||||
* @since 5.6.5
|
||||
*
|
||||
* @param string $name The setting name.
|
||||
* @return boolean
|
||||
*/
|
||||
public function has_setting( $name ) {
|
||||
return isset( $this->settings[ $name ] );
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a setting or null if doesn't exist.
|
||||
*
|
||||
* @date 28/09/13
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @param string $name The setting name.
|
||||
* @return mixed
|
||||
*/
|
||||
public function get_setting( $name ) {
|
||||
return isset( $this->settings[ $name ] ) ? $this->settings[ $name ] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates a setting for the given name and value.
|
||||
*
|
||||
* @date 28/09/13
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @param string $name The setting name.
|
||||
* @param mixed $value The setting value.
|
||||
* @return true
|
||||
*/
|
||||
public function update_setting( $name, $value ) {
|
||||
$this->settings[ $name ] = $value;
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns data or null if doesn't exist.
|
||||
*
|
||||
* @date 28/09/13
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @param string $name The data name.
|
||||
* @return mixed
|
||||
*/
|
||||
public function get_data( $name ) {
|
||||
return isset( $this->data[ $name ] ) ? $this->data[ $name ] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets data for the given name and value.
|
||||
*
|
||||
* @date 28/09/13
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @param string $name The data name.
|
||||
* @param mixed $value The data value.
|
||||
* @return void
|
||||
*/
|
||||
public function set_data( $name, $value ) {
|
||||
$this->data[ $name ] = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an instance or null if doesn't exist.
|
||||
*
|
||||
* @date 13/2/18
|
||||
* @since 5.6.9
|
||||
*
|
||||
* @param string $class The instance class name.
|
||||
* @return object
|
||||
*/
|
||||
public function get_instance( $class ) {
|
||||
$name = strtolower( $class );
|
||||
return isset( $this->instances[ $name ] ) ? $this->instances[ $name ] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates and stores an instance of the given class.
|
||||
*
|
||||
* @date 13/2/18
|
||||
* @since 5.6.9
|
||||
*
|
||||
* @param string $class The instance class name.
|
||||
* @return object
|
||||
*/
|
||||
public function new_instance( $class ) {
|
||||
$instance = new $class();
|
||||
$name = strtolower( $class );
|
||||
$this->instances[ $name ] = $instance;
|
||||
return $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Magic __isset method for backwards compatibility.
|
||||
*
|
||||
* @date 24/4/20
|
||||
* @since 5.9.0
|
||||
*
|
||||
* @param string $key Key name.
|
||||
* @return boolean
|
||||
*/
|
||||
public function __isset( $key ) {
|
||||
return in_array( $key, array( 'locations', 'json' ), true );
|
||||
}
|
||||
|
||||
/**
|
||||
* Magic __get method for backwards compatibility.
|
||||
*
|
||||
* @date 24/4/20
|
||||
* @since 5.9.0
|
||||
*
|
||||
* @param string $key Key name.
|
||||
* @return mixed
|
||||
*/
|
||||
public function __get( $key ) {
|
||||
switch ( $key ) {
|
||||
case 'locations':
|
||||
return acf_get_instance( 'ACF_Legacy_Locations' );
|
||||
case 'json':
|
||||
return acf_get_instance( 'ACF_Local_JSON' );
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Plugin Activation Hook
|
||||
*
|
||||
* @since 6.2.6
|
||||
*/
|
||||
public function acf_plugin_activated() {
|
||||
// Set the first activated version of ACF.
|
||||
if ( null === get_option( 'acf_first_activated_version', null ) ) {
|
||||
// If acf_version is set, this isn't the first activated version, so leave it unset so it's legacy.
|
||||
if ( null === get_option( 'acf_version', null ) ) {
|
||||
update_option( 'acf_first_activated_version', ACF_VERSION, true );
|
||||
|
||||
do_action( 'acf/first_activated' );
|
||||
}
|
||||
}
|
||||
|
||||
if ( acf_is_pro() ) {
|
||||
do_action( 'acf/activated_pro' );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* An ACF specific getter to replace `home_url` in our license checks to ensure we can avoid third party filters.
|
||||
*
|
||||
* @since 6.0.1
|
||||
* @since 6.2.8 - Renamed to acf_pro_get_home_url to match pro exclusive function naming.
|
||||
* @since 6.3.10 - Renamed to acf_get_home_url now updater logic applies to free.
|
||||
*
|
||||
* @return string $home_url The output from home_url, sans known third party filters which cause license activation issues.
|
||||
*/
|
||||
function acf_get_home_url() {
|
||||
if ( acf_is_pro() ) {
|
||||
// Disable WPML and TranslatePress's home url overrides for our license check.
|
||||
add_filter( 'wpml_get_home_url', 'acf_pro_license_ml_intercept', 99, 2 );
|
||||
add_filter( 'trp_home_url', 'acf_pro_license_ml_intercept', 99, 2 );
|
||||
|
||||
if ( acf_pro_is_legacy_multisite() && acf_is_multisite_sub_site() ) {
|
||||
$home_url = get_home_url( get_main_site_id() );
|
||||
} else {
|
||||
$home_url = home_url();
|
||||
}
|
||||
|
||||
// Re-enable WPML and TranslatePress's home url overrides.
|
||||
remove_filter( 'wpml_get_home_url', 'acf_pro_license_ml_intercept', 99 );
|
||||
remove_filter( 'trp_home_url', 'acf_pro_license_ml_intercept', 99 );
|
||||
} else {
|
||||
$home_url = home_url();
|
||||
}
|
||||
|
||||
return $home_url;
|
||||
}
|
||||
|
||||
/**
|
||||
* The main function responsible for returning the one true acf Instance to functions everywhere.
|
||||
* Use this function like you would a global variable, except without needing to declare the global.
|
||||
*
|
||||
* Example: <?php $acf = acf(); ?>
|
||||
*
|
||||
* @date 4/09/13
|
||||
* @since 4.3.0
|
||||
*
|
||||
* @return ACF
|
||||
*/
|
||||
function acf() {
|
||||
global $acf;
|
||||
|
||||
// Instantiate only once.
|
||||
if ( ! isset( $acf ) ) {
|
||||
$acf = new ACF();
|
||||
$acf->initialize();
|
||||
}
|
||||
return $acf;
|
||||
}
|
||||
|
||||
// Instantiate.
|
||||
acf();
|
||||
} // class_exists check
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1,2 +0,0 @@
|
|||
<?php
|
||||
// There are many ways to WordPress.
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1,2 +0,0 @@
|
|||
<?php
|
||||
// There are many ways to WordPress.
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
<?php
|
||||
// There are many ways to WordPress.
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue