auto-patch 638-dev-dev01-2024-05-14T20_44_36

This commit is contained in:
root
2024-05-14 20:44:36 +00:00
parent a941559057
commit 5dbb0b284e
1812 changed files with 29671 additions and 14588 deletions
+384
View File
@@ -0,0 +1,384 @@
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/
+97
View File
@@ -0,0 +1,97 @@
<!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 &#8250; 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">&#8212; 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 &#8220;Profile&#8221; 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&#8217;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&#8217;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://wordpress.org/documentation/article/importing-content/">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://secure.php.net/">PHP</a> version <strong>7.0</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://secure.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.4</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&#8217; 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&#8217;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&#8217;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&#8217;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&#8212;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&#233;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>
+56
View File
@@ -41,6 +41,62 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<a href="contribute.php" class="nav-tab"><?php _e( 'Get Involved' ); ?></a>
</nav>
<div class="about__section changelog has-subtle-background-color">
<div class="column">
<h2><?php _e( 'Maintenance and Security Release' ); ?></h2>
<p>
<?php
printf(
/* translators: 1: WordPress version number, 2: Plural number of bugs. */
_n(
'<strong>Version %1$s</strong> addressed %2$s bug.',
'<strong>Version %1$s</strong> addressed %2$s bugs.',
10
),
'6.5.3',
'21'
);
?>
<?php
printf(
/* translators: %s: HelpHub URL. */
__( 'For more information, see <a href="%s">the release notes</a>.' ),
sprintf(
/* translators: %s: WordPress version. */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
sanitize_title( '6.5.3' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: 1: WordPress version number, 2: Plural number of bugs. */
_n(
'<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
'<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.',
12
),
'6.5.2',
'12'
);
?>
<?php
printf(
/* translators: %s: HelpHub URL. */
__( 'For more information, see <a href="%s">the release notes</a>.' ),
sprintf(
/* translators: %s: WordPress version. */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
sanitize_title( '6.5.2' )
)
);
?>
</p>
</div>
</div>
<div class="about__section">
<div class="column">
<h2>
+19
View File
@@ -1514,6 +1514,25 @@ div.error {
margin-top: -5px;
}
#plugin-information-footer #plugin-activated-successfully {
margin-bottom: 0;
}
#plugin-information-footer #plugin-activated-successfully p {
display: flex;
gap: 1em;
align-items: center;
justify-content: space-between;
margin: 0;
}
#plugin-information-footer #plugin-activated-successfully .refresh-page {
flex-grow: 0;
line-height: 2.15384615;
min-height: 0;
margin-bottom: 0;
}
.update-message p:before,
.updating-message p:before,
.updated-message p:before,
+1 -1
View File
File diff suppressed because one or more lines are too long
+19
View File
@@ -1513,6 +1513,25 @@ div.error {
margin-top: -5px;
}
#plugin-information-footer #plugin-activated-successfully {
margin-bottom: 0;
}
#plugin-information-footer #plugin-activated-successfully p {
display: flex;
gap: 1em;
align-items: center;
justify-content: space-between;
margin: 0;
}
#plugin-information-footer #plugin-activated-successfully .refresh-page {
flex-grow: 0;
line-height: 2.15384615;
min-height: 0;
margin-bottom: 0;
}
.update-message p:before,
.updating-message p:before,
.updated-message p:before,
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1125,7 +1125,7 @@ border color while dragging a file over the uploader drop area */
.imgedit-panel-tools > .imgedit-menu {
display: flex;
column-gap: 4px;
align-items: start;
align-items: flex-start;
flex-wrap: wrap;
}
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1124,7 +1124,7 @@ border color while dragging a file over the uploader drop area */
.imgedit-panel-tools > .imgedit-menu {
display: flex;
column-gap: 4px;
align-items: start;
align-items: flex-start;
flex-wrap: wrap;
}
+1 -1
View File
File diff suppressed because one or more lines are too long
+56 -7
View File
@@ -1112,14 +1112,26 @@
*/
wp.updates.activatePluginSuccess = function( response ) {
var $message = $( '.plugin-card-' + response.slug + ', #plugin-information-footer' ).find( '.activating-message' ),
isInModal = 'plugin-information-footer' === $message.parent().attr( 'id' ),
buttonText = _x( 'Activated!', 'plugin' ),
ariaLabel = sprintf(
/* translators: %s: The plugin name. */
'%s activated successfully.',
response.pluginName
);
),
noticeData = {
id: 'plugin-activated-successfully',
className: 'notice-success',
message: sprintf(
/* translators: %s: The refresh link's attributes. */
__( 'Plugin activated. Some changes may not occur until you refresh the page. <a %s>Refresh Now</a>' ),
'href="#" class="button button-secondary refresh-page"'
),
slug: response.slug
},
noticeTarget;
wp.a11y.speak( __( 'Activation completed successfully.' ) );
wp.a11y.speak( __( 'Activation completed successfully. Some changes may not occur until you refresh the page.' ) );
$document.trigger( 'wp-plugin-activate-success', response );
$message
@@ -1128,7 +1140,7 @@
.attr( 'aria-label', ariaLabel )
.text( buttonText );
if ( 'plugin-information-footer' === $message.parent().attr( 'id' ) ) {
if ( isInModal ) {
wp.updates.setCardButtonStatus(
{
status: 'activated-plugin',
@@ -1139,13 +1151,26 @@
ariaLabel: ariaLabel
}
);
// Add a notice to the modal's footer.
$message.replaceWith( wp.updates.adminNotice( noticeData ) );
// Send notice information back to the parent screen.
noticeTarget = window.parent === window ? null : window.parent;
$.support.postMessage = !! window.postMessage;
if ( false !== $.support.postMessage && null !== noticeTarget && -1 === window.parent.location.pathname.indexOf( 'index.php' ) ) {
noticeTarget.postMessage(
JSON.stringify( noticeData ),
window.location.origin
);
}
} else {
// Add a notice to the top of the screen.
wp.updates.addAdminNotice( noticeData );
}
setTimeout( function() {
$message.removeClass( 'activated-message' )
.text( _x( 'Active', 'plugin' ) );
if ( 'plugin-information-footer' === $message.parent().attr( 'id' ) ) {
if ( isInModal ) {
wp.updates.setCardButtonStatus(
{
status: 'plugin-active',
@@ -1159,6 +1184,8 @@
)
}
);
} else {
$message.removeClass( 'activated-message' ).text( _x( 'Active', 'plugin' ) );
}
}, 1000 );
};
@@ -3226,6 +3253,11 @@
return;
}
if ( 'undefined' !== typeof message.id && 'plugin-activated-successfully' === message.id ) {
wp.updates.addAdminNotice( message );
return;
}
if (
'undefined' !== typeof message.status &&
'undefined' !== typeof message.slug &&
@@ -3458,5 +3490,22 @@
} );
}
);
/**
* Click handler for page refresh link.
*
* @since 6.5.3
*
* @param {Event} event Event interface.
*/
$document.on( 'click', '.refresh-page', function( event ) {
event.preventDefault();
if ( window.parent === window ) {
window.location.reload();
} else {
window.parent.location.reload();
}
} );
} );
})( jQuery, window.wp, window._wpUpdatesSettings );
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -206,7 +206,7 @@ if ( ! is_multisite() && current_user_can( 'update_themes' ) ) {
if ( wp_is_block_theme() ) {
$submenu['themes.php'][6] = array( _x( 'Editor', 'site editor menu item' ), 'edit_theme_options', 'site-editor.php' );
} else {
$submenu['themes.php'][6] = array( __( 'Patterns' ), 'edit_theme_options', 'edit.php?post_type=wp_block' );
$submenu['themes.php'][6] = array( _x( 'Patterns', 'patterns menu item' ), 'edit_theme_options', 'edit.php?post_type=wp_block' );
}
if ( ! wp_is_block_theme() && current_theme_supports( 'block-template-parts' ) ) {
@@ -1,2 +1,2 @@
/*! Do not edit, this file is generated automatically - 2024-03-18 16:03:44 EDT */
/*! Do not edit, this file is generated automatically - 2024-04-15 15:04:12 EDT */
window.$=window.$||jQuery.noConflict();var dtx={queue:[],init:function(){var e=$("input.dtx-pageload[data-dtx-value]");e.length&&(e.each(function(e,t){var r=$(t),a=r.attr("data-dtx-value"),o=decodeURIComponent(a).split(" ");if(o.length){var n=o[0],c={};if(1<o.length)for(var i=1;i<o.length;i++){var u=o[i].split("="),d;2===u.length&&(c[u[0]]=u[1].split("'").join(""))}var s="";switch(n){case"CF7_GET":s=dtx.get(c);break;case"CF7_referrer":s=dtx.referrer(c);break;case"CF7_URL":s=dtx.current_url(c);break;case"CF7_get_cookie":s=dtx.get_cookie(c);break;case"CF7_guid":s=dtx.guid();break;case"CF7_get_current_var":if(!dtx.validKey(c,"key")||"url"!=c.key)return;s=dtx.current_url(c);break;case"CF7_get_post_var":case"CF7_get_custom_field":case"CF7_get_taxonomy":case"CF7_get_attachment":case"CF7_bloginfo":case"CF7_get_theme_option":return;default:return void(n&&dtx.queue.push({value:a,multiline:r.is("textarea")}))}dtx.set(r,s)}}),dtx.queue.length)&&setTimeout(function(){$.ajax({type:"POST",url:dtx_obj.ajax_url,dataType:"json",data:{action:"wpcf7dtx",shortcodes:dtx.queue},cache:!1,error:function(e,t,r){},success:function(e,t,r){"object"==typeof e&&e.length&&$.each(e,function(e,t){var r=$('.wpcf7 form input.dtx-pageload[data-dtx-value="'+t.raw_value+'"]');r.length&&(r.addClass("dtx-ajax-loaded"),dtx.set(r,t.value))})}})},10)},validKey:function(e,t){return e.hasOwnProperty(t)&&"string"==typeof e[t]&&e[t].trim()},obfuscate:function(e,t){if(e=e.trim(),dtx.validKey(t,"obfuscate")&&t.obfuscate){for(var r="",a=0;a<e.length;a++)r+="&#"+e.codePointAt(a)+";";return r}return e},set:function(e,t){e.attr("value",t).addClass("dtx-loaded").trigger("dtx_init")},get:function(e){if(dtx.validKey(e,"key")){var t=window.location.search;if(t)return t=new URLSearchParams(t),dtx.obfuscate(t.get(e.key).trim(),e)}return""},referrer:function(e){return dtx.obfuscate(document.referrer,e)},current_url:function(e){if(!e.hasOwnProperty("part"))return dtx.obfuscate(window.location.href,e);var t;if(["scheme","host","port","path","query","fragment"].includes(e.part))switch(e.part){case"scheme":return dtx.obfuscate(window.location.protocol.replace(":",""),e);case"host":return dtx.obfuscate(window.location.host,e);case"port":return dtx.obfuscate(window.location.port,e);case"path":return dtx.obfuscate(window.location.pathname,e);case"query":return dtx.obfuscate(window.location.search.replace("?",""),e);case"fragment":return dtx.obfuscate(window.location.hash.replace("#",""),e)}return""},get_cookie:function(e){var t;return e.hasOwnProperty("key")&&"string"==typeof e.key&&""!=e.key.trim()&&(t=document.cookie.match("(^|;) ?"+e.key.trim()+"=([^;]*)(;|$)"))?dtx.obfuscate(t[2],e):""},guid:function(){var r,a;return(void 0!==window.crypto&&void 0!==window.crypto.getRandomValues?([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)):(r=(new Date).getTime(),a="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0,"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random();return 0<r?(t=(r+t)%16|0,r=Math.floor(r/16)):(t=(a+t)%16|0,a=Math.floor(a/16)),("x"===e?t:3&t|8).toString(16).toUpperCase()}))).toUpperCase()}};$(document).ready(dtx.init);
@@ -6,6 +6,14 @@
window.wpcf7dtx = window.wpcf7dtx || {};
wpcf7dtx.taggen = {};
$('input.dtx-insert-tag').click(function() {
var $form = $(this).closest('form.tag-generator-panel');
var tag = $form.find('.insert-box .tag').val();
wpcf7.taggen.insert(tag);
tb_remove(); // close thickbox
return false;
});
wpcf7dtx.taggen.escapeRegExp = function(str) {
return str.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1");
};
@@ -19,10 +27,59 @@
return input;
};
// Overwrite update function to allow the textarea display for advanced tags
wpcf7.taggen.update = function($form) {
var id = $form.attr('data-id');
var name = '';
var name_fields = $form.find('input[name="name"]');
if (name_fields.length) {
name = name_fields.val();
if ('' === name) {
name = id + '-' + Math.floor(Math.random() * 1000);
name_fields.val(name);
}
}
if ($.isFunction(wpcf7.taggen.update[id])) {
return wpcf7.taggen.update[id].call(this, $form);
}
let $display = $form.find('.insert-box .tag');
// if (!$display.length) {
// $display = $form.find('textarea.tag');
// }
$display.each(function() {
var tag_type = $(this).attr('name');
if ($form.find(':input[name="tagtype"]').length) {
tag_type = $form.find(':input[name="tagtype"]').val();
}
if ($form.find(':input[name="required"]').is(':checked')) {
tag_type += '*';
}
var components = wpcf7.taggen.compose(tag_type, $form);
$(this).val(components);
});
$form.find('span.mail-tag').text('[' + name + ']');
$form.find('input.mail-tag').each(function() {
$(this).val('[' + name + ']');
});
};
wpcf7dtx.taggen.updateOption = function(e) {
var $this = $(e.currentTarget),
value = encodeURIComponent(wpcf7dtx.taggen.replaceAll($this.val(), "'", '&#39;'));
$this.siblings('input[type="hidden"].option').val(value);
value = encodeURIComponent(wpcf7dtx.taggen.replaceAll($this.val(), "'", '&#39;')),
$option = $this.siblings('input[type="hidden"].option');
$option.val(value);
if (e.type != 'change') {
// DTX only listens for "change" so force the tag to rebuild for our other listeners
$option.trigger('change');
}
};
$(function() {
@@ -31,8 +88,13 @@
var $btn = $(this),
name = $btn.text();
$btn.addClass('dtx-form-tag');
if (name == 'dynamic drop-down menu' || name == 'dynamic checkboxes' || name == 'dynamic radio buttons') {
$btn.attr('href', $btn.attr('href').replace('height=500', 'height=750'));
if (
name.indexOf('dynamic ') === 0 && // Set size of tag generator to be larger for dynamic fields
name.indexOf('hidden') < 0 && // Except for this one because it doesn't have a lot of options
name.indexOf('label') < 0 && // Except for this one because it doesn't have a lot of options
name.indexOf('submit') < 0 // Except for this one because it doesn't have a lot of options
) {
$btn.attr('href', $btn.attr('href').replace('height=500', 'height=785'));
}
});
});
@@ -1,2 +1,2 @@
/*! Do not edit, this file is generated automatically - 2024-03-18 16:03:44 EDT */
!function(n){"use strict";"undefined"!=typeof wpcf7&&null!==wpcf7&&(window.wpcf7dtx=window.wpcf7dtx||{},wpcf7dtx.taggen={},wpcf7dtx.taggen.escapeRegExp=function(e){return e.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")},wpcf7dtx.taggen.replaceAll=function(e,t,n,a){var c;return null!=e&&"string"==typeof e&&""!==e.trim()&&-1<e.indexOf(t)?(c=new RegExp(wpcf7dtx.taggen.escapeRegExp(t),"g"),a&&(c=new RegExp(t,"g")),e.replace(c,n)):e},wpcf7dtx.taggen.updateOption=function(e){var e=n(e.currentTarget),t=encodeURIComponent(wpcf7dtx.taggen.replaceAll(e.val(),"'","&#39;"));e.siblings('input[type="hidden"].option').val(t)},n(function(){n("form.tag-generator-panel .dtx-option").on("change keyup click",wpcf7dtx.taggen.updateOption),n('.contact-form-editor-panel #tag-generator-list a.thickbox.button[href*="inlineId=tag-generator-panel-dynamic_"]').each(function(){var e=n(this),t=e.text();e.addClass("dtx-form-tag"),"dynamic drop-down menu"!=t&&"dynamic checkboxes"!=t&&"dynamic radio buttons"!=t||e.attr("href",e.attr("href").replace("height=500","height=750"))})}))}(jQuery);
/*! Do not edit, this file is generated automatically - 2024-04-15 15:04:12 EDT */
!function(g){"use strict";"undefined"!=typeof wpcf7&&null!==wpcf7&&(window.wpcf7dtx=window.wpcf7dtx||{},wpcf7dtx.taggen={},g("input.dtx-insert-tag").click(function(){var t,e=g(this).closest("form.tag-generator-panel").find(".insert-box .tag").val();return wpcf7.taggen.insert(e),tb_remove(),!1}),wpcf7dtx.taggen.escapeRegExp=function(t){return t.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")},wpcf7dtx.taggen.replaceAll=function(t,e,n,a){var i;return null!=t&&"string"==typeof t&&""!==t.trim()&&-1<t.indexOf(e)?(i=new RegExp(wpcf7dtx.taggen.escapeRegExp(e),"g"),a&&(i=new RegExp(e,"g")),t.replace(i,n)):t},wpcf7.taggen.update=function(e){var t=e.attr("data-id"),n="",a=e.find('input[name="name"]'),i;if(a.length&&""===(n=a.val())&&(n=t+"-"+Math.floor(1e3*Math.random()),a.val(n)),g.isFunction(wpcf7.taggen.update[t]))return wpcf7.taggen.update[t].call(this,e);e.find(".insert-box .tag").each(function(){var t=g(this).attr("name"),t=(e.find(':input[name="tagtype"]').length&&(t=e.find(':input[name="tagtype"]').val()),e.find(':input[name="required"]').is(":checked")&&(t+="*"),wpcf7.taggen.compose(t,e));g(this).val(t)}),e.find("span.mail-tag").text("["+n+"]"),e.find("input.mail-tag").each(function(){g(this).val("["+n+"]")})},wpcf7dtx.taggen.updateOption=function(t){var e=g(t.currentTarget),n=encodeURIComponent(wpcf7dtx.taggen.replaceAll(e.val(),"'","&#39;")),e=e.siblings('input[type="hidden"].option');e.val(n),"change"!=t.type&&e.trigger("change")},g(function(){g("form.tag-generator-panel .dtx-option").on("change keyup click",wpcf7dtx.taggen.updateOption),g('.contact-form-editor-panel #tag-generator-list a.thickbox.button[href*="inlineId=tag-generator-panel-dynamic_"]').each(function(){var t=g(this),e=t.text();t.addClass("dtx-form-tag"),0===e.indexOf("dynamic ")&&e.indexOf("hidden")<0&&e.indexOf("label")<0&&e.indexOf("submit")<0&&t.attr("href",t.attr("href").replace("height=500","height=785"))})}))}(jQuery);
@@ -1,7 +1,6 @@
.tag-generator-panel[data-id^="dynamic_select"],
.tag-generator-panel[data-id^="dynamic_checkbox"],
.tag-generator-panel[data-id^="dynamic_radio"] {
height: 740px;
.tag-generator-panel[data-id^="dynamic_"]:not([data-id*="hidden"]):not([data-id*="label"]):not([data-id*="submit"]) {
/* Set size of tag generator to be larger for dynamic fields, except for these because they don't have a lot of options */
height: 775px;
}
#tag-generator-list a.button.dtx-form-tag {
@@ -44,3 +43,25 @@
.tag-generator-panel .control-box textarea {
height: 3.5em;
}
.tag-generator-panel table.form-table td .wpcf7dtx-mini-att,
.tag-generator-panel table.form-table td .wpcf7dtx-mini-att label,
.tag-generator-panel table.form-table td .wpcf7dtx-mini-att input[type="text"] {
vertical-align: middle;
}
.tag-generator-panel .insert-box textarea.tag {
border-radius: 4px;
border: 1px solid #8c8f94;
color: #2c3338;
/* padding: 0 8px; */
/* line-height: 2; */
min-height: 30px;
width: 500px;
float: left;
background-color: transparent;
box-shadow: none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
@@ -1 +1 @@
.tag-generator-panel[data-id^=dynamic_checkbox],.tag-generator-panel[data-id^=dynamic_radio],.tag-generator-panel[data-id^=dynamic_select]{height:740px}#tag-generator-list a.button.dtx-form-tag{border-color:#765cb9;color:#765cb9}.tag-generator-panel table.form-table th{width:130px}.tag-generator-panel table.form-table td small{display:block;margin-top:.25em}.tag-generator-panel .control-box input.multiline,.tag-generator-panel .control-box input.oneline,.tag-generator-panel .control-box textarea{width:100%}.tag-generator-panel .control-box input.multiline,.tag-generator-panel .control-box input[list],.tag-generator-panel .control-box textarea{height:30px;min-height:30px}.tag-generator-panel .control-box input.multiline{display:inline-block;resize:vertical;overflow-x:hidden;overflow-y:scroll}.tag-generator-panel .control-box textarea{height:3.5em}
.tag-generator-panel[data-id^=dynamic_]:not([data-id*=hidden]):not([data-id*=label]):not([data-id*=submit]){height:775px}#tag-generator-list a.button.dtx-form-tag{border-color:#765cb9;color:#765cb9}.tag-generator-panel table.form-table th{width:130px}.tag-generator-panel table.form-table td small{display:block;margin-top:.25em}.tag-generator-panel .control-box input.multiline,.tag-generator-panel .control-box input.oneline,.tag-generator-panel .control-box textarea{width:100%}.tag-generator-panel .control-box input.multiline,.tag-generator-panel .control-box input[list],.tag-generator-panel .control-box textarea{height:30px;min-height:30px}.tag-generator-panel .control-box input.multiline{display:inline-block;resize:vertical;overflow-x:hidden;overflow-y:scroll}.tag-generator-panel .control-box textarea{height:3.5em}.tag-generator-panel table.form-table td .wpcf7dtx-mini-att,.tag-generator-panel table.form-table td .wpcf7dtx-mini-att input[type=text],.tag-generator-panel table.form-table td .wpcf7dtx-mini-att label{vertical-align:middle}.tag-generator-panel .insert-box textarea.tag{border-radius:4px;border:1px solid #8c8f94;color:#2c3338;min-height:30px;width:500px;float:left;background-color:transparent;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}
@@ -1,5 +1,24 @@
== Changelog ==
= 4.4.2 =
* Fix: Addressed PHP warning for undefined variable $default_placeholder introduced in version 4.4.0, [see support thread](https://wordpress.org/support/topic/php-warning-undefined-variable-default_placeholder/)
* Minor: Create preview link using WordPress Playground, [check it out](https://wordpress.org/plugins/contact-form-7-dynamic-text-extension/?preview=1)
= 4.4.1 =
* Fix: Addressed PHP warnings for undefined array keys introduced in version 4.4.0, [see support thread](https://wordpress.org/support/topic/tons-of-errors-in-error_log/)
= 4.4.0 =
* Update: Added *Contact Form 7* (CF7) as a requirement as introduced in WordPress version 6.5. This plugin cannot be activated until CF7 is installed and activated.
* Feature: introduced `dynamic_label` form tag. For usage details, see the [knowledge base](https://aurisecreative.com/docs/contact-form-7-dynamic-text-extension/form-tags/dynamic-label/?utm_source=wordpress.org&utm_medium=link&utm_campaign=contact-form-7-dynamic-text-extension&utm_content=readme)
* Feature: updated the following attributes to be dynamic: `autocapitalize`, `autocomplete`, `autofocus`, `cols`, `disabled`, `list`, `max`, `maxlength`, `min`, `minlength`, `pattern`, `readonly`, `size`, and `step`. For usage details, see the [knowledge base](https://aurisecreative.com/docs/contact-form-7-dynamic-text-extension/dynamic-attributes/?utm_source=wordpress.org&utm_medium=link&utm_campaign=contact-form-7-dynamic-text-extension&utm_content=readme)
* Update: Updated the form tag generator for checkboxes and radio buttons to include documentation for the `default` attribute.
* Update: Updated the form tag generator with fields for `min`, `max`, `step`, `minlength`, `maxlength`, and `autocomplete` for appropriate form tags. The `autocomplete` and `autocapitalize` are text fields that uses a `datalist` because I always forget those things...
* Update: Increased the tag generator size to accommodate the new attributes.
* Update: Some form tag generators display the generated form tag in a `textarea` to accommodate lengthy generated form tags.
= 4.3.1 =
* Fix: Resolved the PHP warning regarding `Undefined array key "value" in /.../contact-form-7-dynamic-text-extension/contact-form-7-dynamic-text-extension.php on line 391`, [see support thread](https://wordpress.org/support/topic/undefined-array-key-value-2/).
@@ -3,7 +3,8 @@
/**
* Plugin Name: Contact Form 7 - Dynamic Text Extension
* Description: Extends Contact Form 7 by adding dynamic form fields that accepts shortcodes to prepopulate form fields with default values and dynamic placeholders.
* Version: 4.3.1
* Version: 4.4.2
* Text Domain: contact-form-7-dynamic-text-extension
* Author: AuRise Creative, SevenSpark
* Author URI: https://aurisecreative.com
* Plugin URI: https://aurisecreative.com/products/wordpress-plugin/contact-form-7-dynamic-text-extension/
@@ -11,7 +12,7 @@
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
* Requires at least: 5.5
* Requires PHP: 7.4
* Text Domain: contact-form-7-dynamic-text-extension
* Requires Plugins: contact-form-7
*
* @copyright Copyright (c) 2010-2024 Chris Mavricos, SevenSpark <https://sevenspark.com>
* @copyright Copyright (c) 2022-2024 Tessa Watkins, AuRise Creative <https://aurisecreative.com>
@@ -31,7 +32,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
define('WPCF7DTX_VERSION', '4.3.1'); // Define current version of DTX
define('WPCF7DTX_VERSION', '4.4.2'); // Define current version of DTX
define('WPCF7DTX_MINVERSION', '5.7'); // The minimum version of CF7 required to use mail validator
defined('WPCF7DTX_DIR') || define('WPCF7DTX_DIR', __DIR__); // Define root directory
defined('WPCF7DTX_FILE') || define('WPCF7DTX_FILE', __FILE__); // Define root file
@@ -162,6 +163,11 @@ function wpcf7dtx_config()
'title' => __('dynamic submit', 'contact-form-7-dynamic-text-extension'), //title
'options' => array(),
'description' => __('a submit button', 'contact-form-7-dynamic-text-extension')
),
'dynamic_label' => array(
'title' => __('dynamic label', 'contact-form-7-dynamic-text-extension'), //title
'options' => array(),
'description' => __('a label element', 'contact-form-7-dynamic-text-extension')
)
);
}
@@ -195,6 +201,10 @@ function wpcf7dtx_add_shortcodes()
$callback = 'wpcf7dtx_button_shortcode_handler';
$features['name-attr'] = false;
break;
case 'label':
$callback = 'wpcf7dtx_label_shortcode_handler';
$features['name-attr'] = false;
break;
default:
break;
}
@@ -278,21 +288,6 @@ function wpcf7dtx_shortcode_handler($tag)
} else {
$atts['aria-invalid'] = 'false';
}
if ($tag->has_option('readonly')) {
$atts['readonly'] = 'readonly';
}
// Dynamically determine disabled attribute, remove if invalid
$atts['disabled'] = wpcf7dtx_get_dynamic(html_entity_decode(urldecode($tag->get_option('disabled', '', true)), ENT_QUOTES));
if ($atts['disabled'] != 'disabled') {
unset($atts['disabled']);
}
// Dynamically determine autofocus attribute, remove if invalid
$atts['autofocus'] = wpcf7dtx_get_dynamic(html_entity_decode(urldecode($tag->get_option('autofocus', '', true)), ENT_QUOTES));
if ($atts['autofocus'] != 'autofocus') {
unset($atts['autofocus']);
}
// Add required attribute to applicable input types
if ($tag->is_required() && !in_array($atts['type'], array('hidden', 'quiz'))) {
@@ -300,6 +295,30 @@ function wpcf7dtx_shortcode_handler($tag)
$atts['required'] = 'required';
}
/**
* Attributes for all fields
*
* Any attributes that are not allowed on specific elements will be stripped during escaping.
* See the `wpcf7dtx_get_allowed_field_properties()` for details.
*/
$dynamic_atts = array('autofocus', 'disabled', 'readonly');
foreach ($dynamic_atts as $dynamic_att) {
// Don't override existing attributes
if (!array_key_exists($dynamic_att, $atts) && $tag->has_option($dynamic_att)) {
switch ($dynamic_att) {
default:
$atts[$dynamic_att] = wpcf7dtx_get_dynamic(false, $tag, 'text', $dynamic_att); // Get dynamic attribute
if ($atts[$dynamic_att] === '') {
$atts[$dynamic_att] = $dynamic_att; // Empty values are valid since boolean values just need to exist
}
if ($atts[$dynamic_att] !== $dynamic_att) {
unset($atts[$dynamic_att]); // Remove attribute if it doesn't equal it's own name
}
break;
}
}
}
// Evaluate the dynamic value
$sanitize_type = $atts['type'] == 'textarea' ? $atts['type'] : 'auto';
$value = wpcf7dtx_get_dynamic(false, $tag, $sanitize_type);
@@ -363,38 +382,107 @@ function wpcf7dtx_shortcode_handler($tag)
$atts['placeholder'] = wpcf7dtx_array_has_key('placeholder', $atts, __('&#8212;Please choose an option&#8212;', 'contact-form-7-dynamic-text-extension'));
}
if ($atts['type'] == 'select') {
$atts['size'] = $tag->get_size_option('1');
$atts['size'] = wpcf7dtx_get_dynamic(false, $tag, 'text', 'size'); // Get dynamic attribute
if ($atts['size'] === '') {
$atts['size'] = $tag->get_size_option('1'); // Set default value
}
}
} else {
/**
* Configuration for text-based fields
* Attributes for text-based fields
*
* Any attributes that are not allowed on specific elements will be stripped during escaping.
* See the `wpcf7dtx_get_allowed_field_properties()` for details.
*/
$atts['size'] = $tag->get_size_option('40');
$atts['list'] = wpcf7dtx_get_dynamic(html_entity_decode(urldecode($tag->get_option('list', '', true)), ENT_QUOTES));
$atts['autocapitalize'] = wpcf7dtx_get_dynamic(html_entity_decode(urldecode($tag->get_option('autocapitalize', '', true)), ENT_QUOTES));
$atts['pattern'] = wpcf7dtx_get_dynamic(html_entity_decode(urldecode($tag->get_option('pattern', '', true)), ENT_QUOTES));
$atts['min'] = wpcf7dtx_get_dynamic(html_entity_decode(urldecode($tag->get_option('min', '', true)), ENT_QUOTES));
$atts['max'] = wpcf7dtx_get_dynamic(html_entity_decode(urldecode($tag->get_option('max', '', true)), ENT_QUOTES));
$atts['step'] = wpcf7dtx_get_dynamic(html_entity_decode(urldecode($tag->get_option('step', '', true)), ENT_QUOTES));
// Min and Max length attributes
$atts['maxlength'] = $tag->get_maxlength_option();
$atts['minlength'] = $tag->get_minlength_option();
if ($atts['maxlength'] && $atts['minlength'] && $atts['maxlength'] < $atts['minlength']) {
unset($atts['maxlength'], $atts['minlength']);
$dynamic_atts = array('autocapitalize', 'autocomplete', 'cols', 'list', 'max', 'maxlength', 'min', 'minlength', 'pattern', 'rows', 'size', 'step');
foreach ($dynamic_atts as $dynamic_att) {
// Don't override existing attributes
if (!array_key_exists($dynamic_att, $atts) && $tag->has_option($dynamic_att)) {
$atts[$dynamic_att] = wpcf7dtx_get_dynamic(false, $tag, 'text', $dynamic_att); // Get dynamic attribute
switch ($dynamic_att) {
case 'autocapitalize':
if (!in_array($atts[$dynamic_att], array('none', 'off', 'on', 'sentences', 'words', 'characters'))) {
unset($atts[$dynamic_att]); // Remove if invalid
}
break;
case 'autocomplete':
// Autocomplete attribute
if ($atts['type'] == 'hidden') {
$atts['autocomplete'] = 'off'; // Always disable for hidden fields
} else {
// Disable autocomplete for this field if a dynamic value has been specified
$atts['autocomplete'] = $atts['value'] ? 'off' : $tag->get_option('autocomplete', '[-0-9a-zA-Z]+', true);
// Disable autocomplete for this field if a value has been specified
$atts['autocomplete'] = $atts['value'] ? 'off' : $atts['autocomplete']; // Get dynamic attribute // Get dynamic attribute
}
break;
case 'maxlength':
if ($atts[$dynamic_att] === '' || !is_numeric($atts[$dynamic_att])) {
$atts[$dynamic_att] = $tag->get_maxlength_option(); // Set default if empty or invalid
}
break;
case 'minlength':
if ($atts[$dynamic_att] === '' || !is_numeric($atts[$dynamic_att])) {
$atts[$dynamic_att] = $tag->get_minlength_option(); // Set default if empty or invalid
}
break;
case 'cols':
if ($atts[$dynamic_att] === '' || !is_numeric($atts[$dynamic_att])) {
$atts[$dynamic_att] = $tag->get_cols_option('40'); // Set default if empty or invalid
}
break;
case 'rows':
if ($atts[$dynamic_att] === '' || !is_numeric($atts[$dynamic_att])) {
$atts[$dynamic_att] = $tag->get_rows_option('10'); // Set default if empty or invalid
}
break;
case 'size':
if ($atts[$dynamic_att] === '' || !is_numeric($atts[$dynamic_att])) {
$atts[$dynamic_att] = $tag->get_size_option('40'); // Set default if empty or invalid
}
break;
case 'wrap':
if (!in_array($atts[$dynamic_att], array('hard', 'soft'))) {
unset($atts[$dynamic_att]); // Remove if invalid
}
break;
default:
if ($atts[$dynamic_att] === '') {
unset($atts[$dynamic_att]); // Remove attribute if empty
}
break;
}
}
}
// Validate Min and Max length attributes (should always be numeric)
if (array_key_exists('maxlength', $atts) && $atts['maxlength'] && array_key_exists('minlength', $atts) && $atts['minlength'] && intval($atts['maxlength']) < intval($atts['minlength'])) {
unset($atts['maxlength'], $atts['minlength']);
} else {
/**
* The `maxlength` attribute must be an integer with a value of 0 or higher
*
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/maxlength
*/
if (array_key_exists('maxlength', $atts) && (!is_numeric($atts['maxlength']) || intval($atts['maxlength']) < 0)) {
unset($atts['maxlength']);
}
/**
* The `minlength` attribute must be an integer with a value of 0 or higher
*
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/minlength
*/
if (array_key_exists('minlength', $atts) && (!is_numeric($atts['minlength']) || intval($atts['minlength']) < 0)) {
unset($atts['minlength']);
}
}
// Validate Min and Max attributes if numeric
if (array_key_exists('max', $atts) && array_key_exists('min', $atts) && is_numeric($atts['max']) && is_numeric($atts['min']) && floatval($atts['max']) < floatval($atts['min'])) {
unset($atts['max'], $atts['min']);
}
// Client-side validation by type
switch ($atts['type']) {
case 'range':
// Client-side validation by type
$atts['class'][] = 'wpcf7-validates-as-number';
break;
case 'date':
@@ -402,18 +490,8 @@ function wpcf7dtx_shortcode_handler($tag)
case 'email':
case 'url':
case 'tel':
// Client-side validation by type
$atts['class'][] = sanitize_html_class('wpcf7-validates-as-' . $atts['type']);
break;
case 'textarea':
// Attributes unique to textareas
$atts['cols'] = $tag->get_cols_option('40');
$atts['rows'] = $tag->get_rows_option('10');
$atts['wrap'] = $tag->get_option('wrap', '', true);
if (!in_array($atts['wrap'], array('hard', 'soft'))) {
unset($atts['wrap']);
}
break;
}
}
@@ -538,6 +616,51 @@ function wpcf7dtx_button_shortcode_handler($tag)
);
}
/**
* Form Tag Handler for Dynamic Label
*
* @param WPCF7_FormTag $tag Current Contact Form 7 tag object
*
* @return string HTML output of the shortcode
*/
function wpcf7dtx_label_shortcode_handler($tag)
{
$atts = array();
$atts['id'] = strval($tag->get_id_option());
$atts['class'] = wpcf7_form_controls_class('wpcf7dtx wpcf7dtx-label');
$atts['for'] = wpcf7dtx_get_dynamic(html_entity_decode(urldecode($tag->get_option('for', '', true)), ENT_QUOTES)); // Get dynamic attribute
// Page load attribute
if ($tag->has_option('dtx_pageload') && is_array($tag->raw_values) && count($tag->raw_values)) {
$atts['data-dtx-value'] = rawurlencode(sanitize_text_field($tag->raw_values[0]));
$atts['class'] .= ' dtx-pageload';
if (wp_style_is('wpcf7dtx', 'registered') && !wp_script_is('wpcf7dtx', 'queue')) {
// If already registered, just enqueue it
wp_enqueue_script('wpcf7dtx');
} elseif (!wp_style_is('wpcf7dtx', 'registered')) {
// If not registered, do that first, then enqueue it
wpcf7dtx_enqueue_frontend_assets();
wp_enqueue_script('wpcf7dtx');
}
}
// Wrap up class attribute
$atts['class'] = $tag->get_class_option($atts['class']);
// Output the form field HTML
return wp_kses(
sprintf(
'<label %s>%s</label>',
wpcf7dtx_format_atts($atts),
wpcf7dtx_get_dynamic(false, $tag) // Evaluate the dynamic label text
),
array_merge(
wp_kses_allowed_html('data'), // Get allowed HTML for inline data
array('label' => wpcf7dtx_get_allowed_field_properties('label')) // Include our label field
)
);
}
/**
* AJAX Request Handler for After Page Loading
*
@@ -109,7 +109,7 @@ function wpcf7dtx_tag_generator($contact_form, $options = '')
);
// Input field - Required checkbox (not available for some fields)
if (!in_array($input_type, array('hidden', 'quiz', 'submit', 'reset'))) {
if (!in_array($input_type, array('hidden', 'quiz', 'submit', 'reset', 'label'))) {
printf(
'<tr><th scope="row"><label for="%s">%s</label></th><td><label><input %s />%s</label></td></tr>',
esc_attr($options['content'] . '-required'), // field id
@@ -124,7 +124,7 @@ function wpcf7dtx_tag_generator($contact_form, $options = '')
}
// Input field - Field Name (not available for some fields)
if (!in_array($input_type, array('submit', 'reset'))) {
if (!in_array($input_type, array('submit', 'reset', 'label'))) {
printf(
'<tr><th scope="row"><label for="%s">%s</label></th><td><input %s /></td></tr>',
esc_attr($options['content'] . '-name'), // field id
@@ -184,7 +184,29 @@ function wpcf7dtx_tag_generator($contact_form, $options = '')
esc_html__('View DTX shortcode syntax documentation', 'contact-form-7-dynamic-text-extension') // Link label
);
if ($input_type == 'select') {
if ($input_type == 'label') {
$placeholder_description = __('The id attribute of the element this label is for.', 'contact-form-7-dynamic-text-extension');
$placeholder_description .= __('Can be static text or a shortcode.', 'contact-form-7-dynamic-text-extension');
printf(
'<tr><th scope="row"><label for="%s">%s</label></th><td><input %s /><input %s /><br /><small>%s <a href="https://aurisecreative.com/docs/contact-form-7-dynamic-text-extension/dynamic-attributes/?utm_source=%s&utm_medium=link&utm_campaign=contact-form-7-dynamic-text-extension&utm_content=form-tag-generator-%s" target="_blank" rel="noopener">%s</a></small></td></tr>',
esc_attr($options['content'] . '-for'), // field id
esc_html__('For attribute'), // field label
wpcf7_format_atts(array(
'type' => 'hidden',
'name' => 'for',
'class' => 'option'
)),
wpcf7_format_atts(array(
'name' => 'dtx-for',
'id' => $options['content'] . '-for', // field id
'class' => 'multiline dtx-option'
)),
esc_html($placeholder_description), // Small note below input
esc_attr($utm_source), //UTM source
esc_attr($type), //UTM content
esc_html__('View documentation for Dynamic Attributes', 'contact-form-7-dynamic-text-extension') //Link label
);
} elseif ($input_type == 'select') {
// Input field - Multiple selections checkbox
printf(
'<tr><th scope="row"><label for="%s">%s</label></th><td><label><input %s />%s</label></td></tr>',
@@ -215,7 +237,7 @@ function wpcf7dtx_tag_generator($contact_form, $options = '')
}
// Input field - Dynamic placeholder (not available for some fields)
if (!in_array($input_type, array('hidden', 'radio', 'checkbox', 'quiz', 'submit', 'reset'))) {
if (!in_array($input_type, array('hidden', 'radio', 'checkbox', 'range', 'quiz', 'submit', 'reset', 'label'))) {
$placeholder_description = '';
if (in_array($input_type, array('select', 'checkbox', 'radio'))) {
$placeholder_label = __('First Option Label', 'contact-form-7-dynamic-text-extension');
@@ -335,14 +357,14 @@ function wpcf7dtx_tag_generator($contact_form, $options = '')
}
}
// Input field - Dynamic default value (not available for some fields)
if (in_array($input_type, array('select'))) {
// Input field - Dynamic default value (only available for selection-based fields)
if (in_array($input_type, array('select', 'checkbox', 'radio'))) {
$default_input_type = '<input %s />';
$default_placeholder = '';
if ($input_type == 'checkbox') {
$default_input_type = '<textarea %s></textarea>';
$default_description = __('Optionally define the default on/off status of the checkboxes by putting a 1 (checked) or 0 (not checked) on each line that corresponds with the options.', 'contact-form-7-dynamic-text-extension') . ' ';
$default_placeholder = '0' . PHP_EOL . '1';
//$default_input_type = '<textarea %s></textarea>';
$default_description = __('Optionally define which checkboxes are checked by default by defining the checked values using an underscore (_) delimited list.', 'contact-form-7-dynamic-text-extension') . ' ';
$default_placeholder = 'hello-world_Foo';
} else {
$default_description = __('Optionally define the option that is selected by default. This can be different than the first [blank] option. If options use key/value pairs, only define the key here.', 'contact-form-7-dynamic-text-extension') . ' ';
}
@@ -370,6 +392,75 @@ function wpcf7dtx_tag_generator($contact_form, $options = '')
);
}
// Input field - Range attributes (only available for numeric and date fields)
if (in_array($input_type, array('number', 'range', 'date'))) {
$default_input_type = 'number';
$default_placeholder = 'Foo';
$step_option = '';
if ($input_type == 'date') {
$default_input_type = 'date';
$default_description = __('Optionally define the minimum and/or maximum date values.', 'contact-form-7-dynamic-text-extension') . ' ';
$default_placeholder = 'hello-world_Foo';
} else {
$step_option = sprintf(
'&nbsp;<span class="wpcf7dtx-mini-att"><label for="%s">%s</label> <input %s /><input %s /></span>',
esc_attr($options['content'] . '-step'),
esc_html__('Step', 'contact-form-7-dynamic-text-extension'),
wpcf7_format_atts(array(
'type' => 'hidden',
'name' => 'step',
'class' => 'option'
)),
wpcf7_format_atts(array(
'type' => 'text',
'name' => 'dtx-step',
'id' => $options['content'] . '-step',
'class' => 'dtx-option',
'size' => 7
))
);
$default_description = __('Optionally define the minimum, maximum, and/or step values.', 'contact-form-7-dynamic-text-extension') . ' ';
}
$default_description .= __('Each can be static text or a shortcode.', 'contact-form-7-dynamic-text-extension');
printf(
'<tr><th scope="row"><label>%s</label></th><td><span class="wpcf7dtx-mini-att"><label for="%s">%s</label> <input %s /><input %s /></span> - <span class="wpcf7dtx-mini-att"><label for="%s">%s</label> <input %s /><input %s /></span>%s<br /><small>%s <a href="https://aurisecreative.com/docs/contact-form-7-dynamic-text-extension/dynamic-attributes/?utm_source=%s&utm_medium=link&utm_campaign=contact-form-7-dynamic-text-extension&utm_content=form-tag-generator-%s" target="_blank" rel="noopener">%s</a></small></td></tr>',
esc_html__('Range', 'contact-form-7-dynamic-text-extension'), // field label
esc_attr($options['content'] . '-min'),
esc_html__('Min', 'contact-form-7-dynamic-text-extension'),
wpcf7_format_atts(array(
'type' => 'hidden',
'name' => 'min',
'class' => 'option'
)),
wpcf7_format_atts(array(
'type' => 'text',
'name' => 'dtx-min',
'id' => $options['content'] . '-min',
'class' => 'dtx-option',
'size' => 7
)),
esc_attr($options['content'] . '-max'),
esc_html__('Max', 'contact-form-7-dynamic-text-extension'),
wpcf7_format_atts(array(
'type' => 'hidden',
'name' => 'max',
'class' => 'option'
)),
wpcf7_format_atts(array(
'type' => 'text',
'name' => 'dtx-max',
'id' => $options['content'] . '-max',
'class' => 'dtx-option',
'size' => 7
)),
$step_option, // Optional "step" option for numbers and ranges
esc_html($default_description), // Small note below input
esc_attr($utm_source), //UTM source
esc_attr($type), //UTM content
esc_html__('View documentation for Dynamic Attributes', 'contact-form-7-dynamic-text-extension') //Link label
);
}
//Input field - ID attribute
printf(
'<tr><th scope="row"><label for="%s">%s</label></th><td><input %s /></td></tr>',
@@ -396,8 +487,152 @@ function wpcf7dtx_tag_generator($contact_form, $options = '')
))
);
// Input field - Maxlenth & Minlength attributes (only available for visible text fields)
if (!in_array($input_type, array('hidden', 'quiz', 'submit', 'reset', 'label', 'number', 'range', 'date', 'select', 'checkbox', 'radio'))) {
$default_description = __('Optionally define the minimum and/or maximum character string length. Must be a positive whole number or integer.', 'contact-form-7-dynamic-text-extension') . ' ';
$default_description .= __('Each can be static text or a shortcode.', 'contact-form-7-dynamic-text-extension');
printf(
'<tr><th scope="row"><label>%s</label></th><td><span class="wpcf7dtx-mini-att"><label for="%s">%s</label> <input %s /><input %s /></span> - <span class="wpcf7dtx-mini-att"><label for="%s">%s</label> <input %s /><input %s /></span><br /><small>%s <a href="https://aurisecreative.com/docs/contact-form-7-dynamic-text-extension/dynamic-attributes/?utm_source=%s&utm_medium=link&utm_campaign=contact-form-7-dynamic-text-extension&utm_content=form-tag-generator-%s" target="_blank" rel="noopener">%s</a></small></td></tr>',
//esc_attr($options['content'] . '-default'), // field id
esc_html__('Character Length', 'contact-form-7-dynamic-text-extension'), // field label
esc_attr($options['content'] . '-minlength'),
esc_html__('Min', 'contact-form-7-dynamic-text-extension'),
wpcf7_format_atts(array(
'type' => 'hidden',
'name' => 'minlength',
'class' => 'option'
)),
wpcf7_format_atts(array(
'type' => 'text',
'name' => 'dtx-minlength',
'id' => $options['content'] . '-minlength',
'class' => 'dtx-option',
'size' => 10
)),
esc_attr($options['content'] . '-maxlength'),
esc_html__('Max', 'contact-form-7-dynamic-text-extension'),
wpcf7_format_atts(array(
'type' => 'hidden',
'name' => 'maxlength',
'class' => 'option'
)),
wpcf7_format_atts(array(
'type' => 'text',
'name' => 'dtx-maxlength',
'id' => $options['content'] . '-maxlength',
'class' => 'dtx-option',
'size' => 10
)),
esc_html($default_description), // Small note below input
esc_attr($utm_source), //UTM source
esc_attr($type), //UTM content
esc_html__('View documentation for Dynamic Attributes', 'contact-form-7-dynamic-text-extension') //Link label
);
}
// Input field - Maxlenth & Minlength attributes (only available for visible text fields)
if (in_array($input_type, array('text', 'email', 'phone', 'url', 'password', 'textarea'))) {
$default_description = __('Optionally define an autocomplete setting by the browser.', 'contact-form-7-dynamic-text-extension') . ' ';
$default_description .= __('Each can be static text or a shortcode.', 'contact-form-7-dynamic-text-extension');
$datalist = array(
'off' => __('Off', 'contact-form-7-dynamic-text-extension'),
'on' => __('On', 'contact-form-7-dynamic-text-extension'),
'name' => __('Full Name', 'contact-form-7-dynamic-text-extension'),
'given-name' => __('First Name', 'contact-form-7-dynamic-text-extension'),
'family-name' => __('Last Name', 'contact-form-7-dynamic-text-extension'),
'honorific-prefix' => __('Honorific prefix or title', 'contact-form-7-dynamic-text-extension'),
'honorific-suffix' => __('Honorific suffix or credentials', 'contact-form-7-dynamic-text-extension'),
'nickname' => __('Nickname', 'contact-form-7-dynamic-text-extension'),
'email' => __('Email Address', 'contact-form-7-dynamic-text-extension'),
'new-password' => __('A new password', 'contact-form-7-dynamic-text-extension'),
'current-password' => __('The current password', 'contact-form-7-dynamic-text-extension'),
'organization-title' => __('Job Title', 'contact-form-7-dynamic-text-extension'),
'organization' => __('Company/Organization Name', 'contact-form-7-dynamic-text-extension'),
'street-address' => __('Full Street Address', 'contact-form-7-dynamic-text-extension'),
'shipping' => __('Full Shipping Address', 'contact-form-7-dynamic-text-extension'),
'billing' => __('Full Billing Address', 'contact-form-7-dynamic-text-extension'),
'address-line1' => __('Address Line 1', 'contact-form-7-dynamic-text-extension'),
'address-line2' => __('Address Line 2', 'contact-form-7-dynamic-text-extension'),
'address-line3' => __('Address Line 3', 'contact-form-7-dynamic-text-extension'),
'address-level1' => __('State', 'contact-form-7-dynamic-text-extension'),
'address-level2' => __('City', 'contact-form-7-dynamic-text-extension'),
'country' => __('Country', 'contact-form-7-dynamic-text-extension'),
'postal-code' => __('Zip Code', 'contact-form-7-dynamic-text-extension'),
'sex' => __('Gender Identity', 'contact-form-7-dynamic-text-extension'),
'tel' => __('Phone Number', 'contact-form-7-dynamic-text-extension'),
'tel-country-code' => __('Country Code', 'contact-form-7-dynamic-text-extension'),
'tel-national' => __('Full phone number without the country code', 'contact-form-7-dynamic-text-extension'),
'tel-area-code' => __('Area code, with country code if applicable', 'contact-form-7-dynamic-text-extension'),
'tel-local' => __('Phone number without the country code or area code', 'contact-form-7-dynamic-text-extension'),
'tel-local-prefix' => __('First part of the local phone number', 'contact-form-7-dynamic-text-extension'),
'tel-local-suffix' => __('Last part of the local phone number', 'contact-form-7-dynamic-text-extension'),
'url' => __('Website URL', 'contact-form-7-dynamic-text-extension'),
'webauthn' => __('Passkeys generated by the Web Authentication API', 'contact-form-7-dynamic-text-extension')
);
$datalist_html = wpcf7dtx_options_html($datalist);
printf(
'<tr><th scope="row"><label for="%s">%s</label></th><td><datalist id="dtx-autocomplete-datalist">%s</datalist><input %s /><input %s /><br /><small>%s <a href="https://aurisecreative.com/docs/contact-form-7-dynamic-text-extension/dynamic-attributes/?utm_source=%s&utm_medium=link&utm_campaign=contact-form-7-dynamic-text-extension&utm_content=form-tag-generator-%s" target="_blank" rel="noopener">%s</a></small></td></tr>',
esc_attr($options['content'] . '-autocomplete'), // field id
esc_html__('Auto-complete', 'contact-form-7-dynamic-text-extension'), // field label
wp_kses($datalist_html, array('datalist' => array('id' => array()), 'option' => array('value' => array()))),
wpcf7_format_atts(array(
'type' => 'hidden',
'name' => 'autocomplete',
'class' => 'option'
)),
wpcf7_format_atts(array(
'type' => 'text',
'name' => 'dtx-autocomplete',
'id' => $options['content'] . '-autocomplete',
'class' => 'oneline dtx-option',
'list' => 'dtx-autocomplete-datalist'
)),
esc_html($default_description), // Small note below input
esc_attr($utm_source), //UTM source
esc_attr($type), //UTM content
esc_html__('View documentation for Dynamic Attributes', 'contact-form-7-dynamic-text-extension') //Link label
);
}
//Input field - Autocapitalize attribute (only available for some fields)
if (in_array($input_type, array('text', 'textarea'))) {
$default_description = __('Optionally define an autocapitalize attribute for input when entered via non-typing mechanisms such as virtual keyboards on mobile devices or voice-to-text.', 'contact-form-7-dynamic-text-extension') . ' ';
$default_description .= __('Each can be static text or a shortcode.', 'contact-form-7-dynamic-text-extension');
$datalist = array(
'none' => __('Do not automatically capitlize any text', 'contact-form-7-dynamic-text-extension'),
'off' => __('Do not automatically capitlize any text', 'contact-form-7-dynamic-text-extension'),
'on' => __('Automatically capitalize the first character of each sentence', 'contact-form-7-dynamic-text-extension'),
'sentences' => __('Automatically capitalize the first character of each sentence', 'contact-form-7-dynamic-text-extension'),
'words' => __('Automatically capitalize the first character of each word', 'contact-form-7-dynamic-text-extension'),
'characters' => __('Automatically capitalize every character', 'contact-form-7-dynamic-text-extension'),
);
$datalist_html = wpcf7dtx_options_html($datalist);
printf(
'<tr><th scope="row"><label for="%s">%s</label></th><td><datalist id="dtx-autocapitalize-datalist">%s</datalist><input %s /><input %s /><br /><small>%s <a href="https://aurisecreative.com/docs/contact-form-7-dynamic-text-extension/dynamic-attributes/?utm_source=%s&utm_medium=link&utm_campaign=contact-form-7-dynamic-text-extension&utm_content=form-tag-generator-%s" target="_blank" rel="noopener">%s</a></small></td></tr>',
esc_attr($options['content'] . '-autocapitalize'), // field id
esc_html__('Auto-capitalize'), // field label
wp_kses($datalist_html, array('datalist' => array('id' => array()), 'option' => array('value' => array()))),
wpcf7_format_atts(array(
'type' => 'hidden',
'name' => 'autocapitalize',
'class' => 'option'
)),
wpcf7_format_atts(array(
'type' => 'text',
'name' => 'dtx-autocapitalize',
'id' => $options['content'] . '-autocapitalize', // field id
'class' => 'oneline dtx-option',
'list' => 'dtx-autocapitalize-datalist'
)),
esc_html($default_description), // Small note below input
esc_attr($utm_source), //UTM source
esc_attr($type), //UTM content
esc_html__('View documentation for Dynamic Attributes', 'contact-form-7-dynamic-text-extension') //Link label
);
}
//Input field - Readonly attribute (not available for hidden, submit, or quiz fields)
if (!in_array($input_type, array('hidden', 'submit', 'quiz'))) {
if (!in_array($input_type, array('hidden', 'submit', 'label', 'quiz', 'select'))) {
printf(
'<tr><th scope="row"><label for="%s">%s</label></th><td><label><input %s />%s</label></td></tr>',
esc_attr($options['content'] . '-readonly'), // field id
@@ -412,6 +647,38 @@ function wpcf7dtx_tag_generator($contact_form, $options = '')
);
}
//Input field - Disabled attribute (not available for hidden, submit, or quiz fields)
// if (!in_array($input_type, array('hidden', 'submit', 'quiz'))) {
// printf(
// '<tr><th scope="row"><label for="%s">%s</label></th><td><label><input %s />%s</label></td></tr>',
// esc_attr($options['content'] . '-disabled'), // field id
// esc_html__('Disabled attribute', 'contact-form-7-dynamic-text-extension'), // field Label
// wpcf7_format_atts(array(
// 'type' => 'checkbox',
// 'name' => 'disabled',
// 'id' => $options['content'] . '-disabled',
// 'class' => 'disabledvalue option'
// )),
// esc_html__('Prevent this data from sending on submit', 'contact-form-7-dynamic-text-extension') // checkbox label
// );
// }
//Input field - Autofocus attribute (not available for hidden, submit, or quiz fields)
// if (!in_array($input_type, array('hidden', 'submit', 'quiz'))) {
// printf(
// '<tr><th scope="row"><label for="%s">%s</label></th><td><label><input %s />%s</label></td></tr>',
// esc_attr($options['content'] . '-autofocus'), // field id
// esc_html__('Autofocus attribute', 'contact-form-7-dynamic-text-extension'), // field Label
// wpcf7_format_atts(array(
// 'type' => 'checkbox',
// 'name' => 'autofocus',
// 'id' => $options['content'] . '-autofocus',
// 'class' => 'autofocusvalue option'
// )),
// wp_kses_post('Automatically focus on this field <small>Use careful consideration for accessibility.</small>', 'contact-form-7-dynamic-text-extension') // checkbox label
// );
// }
// Input field - Page load data attribute (triggers the loading of a frontend script)
printf(
'<tr><th scope="row"><label for="%s">%s</label></th><td><label><input %s />%s</label><br /><small>%s <a href="https://aurisecreative.com/docs/contact-form-7-dynamic-text-extension/form-tag-attribute-after-page-load/?utm_source=%s&utm_medium=link&utm_campaign=contact-form-7-dynamic-text-extension&utm_content=form-tag-generator-%s" target="_blank" rel="noopener">%s</a></small></td></tr>',
@@ -462,9 +729,27 @@ function wpcf7dtx_tag_generator($contact_form, $options = '')
}
//Close Form-Tag Generator
printf(
'</tbody></table></fieldset></div><div class="insert-box"><input type="text" name="%s" class="tag code" readonly="readonly" onfocus="this.select()" /><div class="submitbox"><input type="button" class="button button-primary insert-tag" value="%s" /></div><br class="clear" /></div>',
esc_attr($type),
esc_html__('Insert Tag', 'contact-form-7-dynamic-text-extension')
if (in_array($input_type, array('hidden', 'submit', 'label', 'reset'))) {
$demo_tag = '<input name="%s"class="tag code" readonly="readonly" onfocus="this.select()" type="text" />';
} else {
$demo_tag = '<textarea name="%s" class="tag code"readonly="readonly" onfocus="this.select()" rows="3" ></textarea>';
}
if (in_array($input_type, array('submit', 'reset', 'label'))) {
$mail_description = esc_html('This value is not submitted in the contact form and should not be used in the mail template.', 'contact-form-7-dynamic-text-extension');
} else {
$mail_description = sprintf(
'<label>%s<input type="text" class="mail-tag code hidden" readonly="readonly" /></label>',
sprintf(
esc_html__('To use the value input through this field in a mail field, you need to insert the corresponding mail-tag (%s) into the field on the Mail tab.', 'contact-form-7-dynamic-text-extension'),
'<strong><span class="mail-tag"></span></strong>'
)
);
}
printf(
'</tbody></table></fieldset></div><div class="insert-box">' . $demo_tag . '<div class="submitbox"><input type="button" class="button button-primary dtx-insert-tag" value="%s" /></div><br class="clear" />
<p class="description mail-tag">%s</p></div>',
esc_attr($type),
esc_html__('Insert Tag', 'contact-form-7-dynamic-text-extension'),
$mail_description
);
}
@@ -199,24 +199,32 @@ function wpcf7dtx_get_post_id($post_id, $context = 'dtx')
* @param string $value The form tag value.
* @param WPCF7_FormTag|false $tag Optional. Use to look up default value.
* @param string $sanitize Optional. Specify type of sanitization. Default is `auto`.
* @param string $option_name Optional. Specify an option from the $tag to retrieve and decode. Default is `value`.
* @param string $option_pattern Optional. A regular expression pattern or one of the keys of preset patterns. If specified, only options whose value part matches this pattern will be returned.
*
* @return string The dynamic output or the original value, not escaped or sanitized.
*/
function wpcf7dtx_get_dynamic($value, $tag = false, $sanitize = 'auto')
function wpcf7dtx_get_dynamic($value, $tag = false, $sanitize = 'auto', $option_name = 'value', $option_pattern = '')
{
if ($tag !== false) {
if (is_object($tag)) {
if ($option_name != 'value') {
$value = html_entity_decode(urldecode(strval($tag->get_option($option_name, $option_pattern, true))), ENT_QUOTES);
} else {
$default = $tag->get_option('defaultvalue', '', true);
if (!$default) {
$default = $tag->get_default_option(strval(reset($tag->values)));
}
$value = wpcf7_get_hangover($tag->name, $default);
}
}
$value = apply_filters('wpcf7dtx_sanitize', $value, $sanitize);
if (is_string($value) && !empty($value)) {
// If a shortcode was passed as the value, evaluate it and use the result
// If a shortcode was passed as the value, attempt to evaluate itevaluate it and use the result
$shortcode_tag = '[' . $value . ']';
//var_dump('Shortcode tag?', $shortcode_tag);
$shortcode_output = do_shortcode($shortcode_tag); //Shortcode value
if (is_string($shortcode_output) && $shortcode_output != $shortcode_tag) {
//var_dump('Shortcode value?', $shortcode_output);
if ($shortcode_output != $shortcode_tag) {
return apply_filters('wpcf7dtx_sanitize', $shortcode_output, $sanitize);
}
}
@@ -287,8 +295,20 @@ function wpcf7dtx_get_allowed_field_properties($type = 'text', $extra = array())
$allowed_properties['multiple'] = array();
$allowed_properties['dtx-default'] = array();
unset($allowed_properties['type'], $allowed_properties['value']); // Remove invalid select attributes
} elseif ($type == 'label') {
// Properties exclusive to label elements
$allowed_properties['for'] = array();
// Remove invalid label attributes
unset(
$allowed_properties['type'],
$allowed_properties['name'],
$allowed_properties['value'],
$allowed_properties['disabled'],
$allowed_properties['aria-invalid']
);
} else {
// Properties exclusive to text-based inputs
$allowed_properties['autocapitalize'] = array();
$allowed_properties['autocomplete'] = array();
$allowed_properties['list'] = array();
@@ -565,6 +585,33 @@ function wpcf7dtx_textarea_html($atts)
);
}
/**
* Create Options HTML
*
* @since 4.4.0
*
* @param array $options Accepts an associative array of key/value pairs to use as the
* select option's value/label pairs.
* @param bool $selected_value Optional. The value that should be selected by default.
*
* @return string HTML output of options
*/
function wpcf7dtx_options_html($options, $selected_value = '')
{
$html = '';
foreach ($options as $value => $label) {
$dynamic_value = wpcf7dtx_get_dynamic($value);
$dynamic_label = wpcf7dtx_get_dynamic($label);
$html .= sprintf(
'<option value="%1$s"%3$s>%2$s</option>',
esc_attr(apply_filters('wpcf7dtx_escape', $dynamic_value)),
esc_html(apply_filters('wpcf7dtx_escape', $dynamic_label)),
$selected_value == $dynamic_label ? ' selected' : ''
);
}
return $html;
}
/**
* Create Select Field HTML
*
@@ -3,7 +3,7 @@ Contributors: sevenspark, tessawatkinsllc
Donate link: https://just1voice.com/donate/
Tags: Contact Form 7, autofill, prepopulate, dynamic form, form field
Tested up to: 6.5
Stable tag: 4.3.1
Stable tag: 4.4.2
Extends Contact Form 7 by adding dynamic form fields that accepts shortcodes to prepopulate form fields with default values and dynamic placeholders.
@@ -25,6 +25,10 @@ Contact Form 7 is an excellent WordPress plugin and one of the top choices of fr
* Getting custom theme modifications
* Any value using custom shortcodes
The possibilities are endless!
(View Demo)[https://wordpress.org/plugins/contact-form-7-dynamic-text-extension/?preview=1]
For over 10 years, DTX only handled `<input type="text" />` and `<input type="hidden" />` form fields, but version 4 finally introduces more:
* email
@@ -39,8 +43,6 @@ For over 10 years, DTX only handled `<input type="text" />` and `<input type="hi
* date
* submit (yes, a submit button where you can have dynamic text!)
The possibilities are endless!
## WHAT DOES IT DO? ##
DTX provides flexibility to WordPress users in creating dynamic forms in Contact Form 7. DTX comes with several built-in shortcodes that will allow the contact form to be populated from HTTPS GET variable or any info from the `get_bloginfo()` function, among others. See below for included shortcodes.
@@ -320,6 +322,14 @@ Learn more and see examples from [the DTX Knowledge base](https://aurisecreative
== Installation ==
= Minimum Requirements =
To ensure your WordPress installation meets these requirements, you can login to your WordPress website and navigate to *Tools > Site Health* and click on the *Info* tab. Expand the *WordPress*, *Active Plugins*, and *Server* accordions and compare that information with the details below.
* WordPress version 5.5 or greater
* PHP version 7.4 or greater
* [Contact Form 7](https://wordpress.org/plugins/contact-form-7/) version 5.7 or greater
There are three (3) ways to install my plugin: automatically, upload, or manually.
= Install Method 1: Automatic Installation =
@@ -380,11 +390,32 @@ Please check out the [FAQ on our website](https://aurisecreative.com/docs/contac
== Upgrade Notice ==
= 4.3.1 =
Fixed user-reported bugs regarding `dynamic_checkbox` accepting multiple default values, mail template validator, and some PHP warnings. See [the changelog](https://plugins.trac.wordpress.org/browser/contact-form-7-dynamic-text-extension/trunk/changelog.txt) for more details.
= 4.4.2 =
Addressed another PHP warning introduced in version 4.4.0. See [the changelog](https://plugins.trac.wordpress.org/browser/contact-form-7-dynamic-text-extension/trunk/changelog.txt) for more details.
== Changelog ==
= 4.4.2 =
= 4.4.2 =
* Fix: Addressed PHP warning for undefined variable $default_placeholder introduced in version 4.4.0, [see support thread](https://wordpress.org/support/topic/php-warning-undefined-variable-default_placeholder/)
* Minor: Create preview link using WordPress Playground, [check it out](https://wordpress.org/plugins/contact-form-7-dynamic-text-extension/?preview=1)
= 4.4.1 =
* Fix: Addressed PHP warnings for undefined array keys introduced in version 4.4.0, [see support thread](https://wordpress.org/support/topic/tons-of-errors-in-error_log/)
= 4.4.0 =
* Update: Added *Contact Form 7* (CF7) as a requirement as introduced in WordPress version 6.5. This plugin cannot be activated until CF7 is installed and activated.
* Feature: introduced `dynamic_label` form tag. For usage details, see the [knowledge base](https://aurisecreative.com/docs/contact-form-7-dynamic-text-extension/form-tags/dynamic-label/?utm_source=wordpress.org&utm_medium=link&utm_campaign=contact-form-7-dynamic-text-extension&utm_content=readme)
* Feature: updated the following attributes to be dynamic: `autocapitalize`, `autocomplete`, `autofocus`, `cols`, `disabled`, `list`, `max`, `maxlength`, `min`, `minlength`, `pattern`, `readonly`, `size`, and `step`. For usage details, see the [knowledge base](https://aurisecreative.com/docs/contact-form-7-dynamic-text-extension/dynamic-attributes/?utm_source=wordpress.org&utm_medium=link&utm_campaign=contact-form-7-dynamic-text-extension&utm_content=readme)
* Update: Updated the form tag generator for checkboxes and radio buttons to include documentation for the `default` attribute.
* Update: Updated the form tag generator with fields for `min`, `max`, `step`, `minlength`, `maxlength`, and `autocomplete` for appropriate form tags. The `autocomplete` and `autocapitalize` are text fields that uses a `datalist` because I always forget those things...
* Update: Increased the tag generator size to accommodate the new attributes.
* Update: Some form tag generators display the generated form tag in a `textarea` to accommodate lengthy generated form tags.
= 4.3.1 =
* Fix: Resolved the PHP warning regarding `Undefined array key "value" in /.../contact-form-7-dynamic-text-extension/contact-form-7-dynamic-text-extension.php on line 391`, [see support thread](https://wordpress.org/support/topic/undefined-array-key-value-2/).
@@ -19,6 +19,7 @@ function wpcf7_init_block_editor_assets() {
$assets = wp_parse_args( $assets, array(
'dependencies' => array(
'react',
'wp-api-fetch',
'wp-block-editor',
'wp-blocks',
@@ -45,42 +46,7 @@ function wpcf7_init_block_editor_assets() {
register_block_type(
wpcf7_plugin_path( 'includes/block-editor' ),
array(
'editor_script' => 'contact-form-7-block-editor',
'editor_script_handles' => 'contact-form-7-block-editor',
)
);
}
add_action(
'enqueue_block_editor_assets',
'wpcf7_enqueue_block_editor_assets',
10, 0
);
function wpcf7_enqueue_block_editor_assets() {
$contact_forms = array_map(
static function ( $contact_form ) {
return array(
'id' => $contact_form->id(),
'hash' => $contact_form->hash(),
'slug' => $contact_form->name(),
'title' => $contact_form->title(),
'locale' => $contact_form->locale(),
);
},
WPCF7_ContactForm::find( array(
'posts_per_page' => 20,
'orderby' => 'modified',
'order' => 'DESC',
) )
);
wp_add_inline_script(
'contact-form-7-block-editor',
sprintf(
'window.wpcf7 = {contactForms:%s};',
wp_json_encode( $contact_forms )
),
'before'
);
}
File diff suppressed because one or more lines are too long
@@ -5,7 +5,7 @@ Tags: contact form, schema-woven validation
Requires at least: 6.3
Requires PHP: 7.4
Tested up to: 6.5
Stable tag: 5.9.3
Stable tag: 5.9.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -78,6 +78,10 @@ Do you have questions or issues with Contact Form 7? Use these support channels
For more information, see [Releases](https://contactform7.com/category/releases/).
= 5.9.4 =
[https://contactform7.com/contact-form-7-594/](https://contactform7.com/contact-form-7-594/)
= 5.9.3 =
[https://contactform7.com/contact-form-7-593/](https://contactform7.com/contact-form-7-593/)
@@ -7,12 +7,12 @@
* Author URI: https://ideasilo.wordpress.com/
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Version: 5.9.3
* Version: 5.9.4
* Requires at least: 6.3
* Requires PHP: 7.4
*/
define( 'WPCF7_VERSION', '5.9.3' );
define( 'WPCF7_VERSION', '5.9.4' );
define( 'WPCF7_REQUIRED_WP_VERSION', '6.3' );
@@ -908,6 +908,7 @@ p.imagify-section-title.imagify-section-title {
z-index: 2;
-webkit-transition: all .275s;
transition: all .275s;
cursor: pointer;
}
.imagify-inline-options input[type="radio"]:not(:checked) + label:first-of-type,
@@ -924,6 +925,12 @@ p.imagify-section-title.imagify-section-title {
background: #8BC34A
}
.imagify-inline-options input[type="radio"]:disabled + label {
background: #ccc;
color: #999;
cursor:not-allowed;
}
.imagify-inline-options .imagify-info {
margin-top: 15px;
}
File diff suppressed because one or more lines are too long
@@ -127,12 +127,22 @@ p.imagify-api-key-invite-title {
align-items: center;
}
.imagify-setting-optim-level {
padding: 8px 0 18px;
}
.imagify-setting-optim-level > p {
margin: 0;
}
.imagify-setting-optim-level .imagify-info {
margin-top: 10px;
}
.imagify-setting-optim-level .imagify-error {
margin: 10px 0 0 0;
}
.imagify-setting-optim-level .imagify-error a {
color: #fff;
}
.imagify-setting-optim-level .imagify-inline-options {
flex-basis: 60%;
flex-grow: 1;
@@ -141,6 +151,10 @@ p.imagify-api-key-invite-title {
background: #2E3243;
border-radius: 3px;
}
.imagify-setting-optim-level .imagify-inline-options-error {
background: #ccc;
}
.imagify-setting-optim-level .imagify-inline-options label {
display: block !important;
width: 100%;
File diff suppressed because one or more lines are too long
@@ -112,10 +112,10 @@ abstract class AbstractBulk implements BulkInterface {
* @return int The number of media.
*/
public function has_optimized_media_without_nextgen() {
$format = 'webp';
$format = get_imagify_option( 'optimization_format' );
if ( get_imagify_option( 'convert_to_avif' ) ) {
$format = 'avif';
if ( 'off' === $format ) {
return 0;
}
return count( $this->get_optimized_media_ids_without_format( $format )['ids'] );
@@ -586,11 +586,20 @@ class Bulk {
* @return void
*/
public function maybe_generate_missing_nextgen( $old_value, $value ) {
if ( empty( $old_value['convert_to_avif'] ) === empty( $value['convert_to_avif'] ) ) {
if ( ! isset( $old_value['optimization_format'], $value['optimization_format'] ) ) {
return;
}
if ( $old_value['optimization_format'] === $value['optimization_format'] ) {
// Old value = new value so do nothing.
return;
}
if ( 'off' === $value['optimization_format'] ) {
// No need to generate next-gen images.
return;
}
$contexts = $this->get_contexts();
$formats = imagify_nextgen_images_formats();
@@ -182,10 +182,10 @@ class Actions {
$bulk = Bulk::get_instance();
$format = 'webp';
$format = get_imagify_option( 'optimization_format' );
if ( get_imagify_option( 'convert_to_avif' ) ) {
$format = 'avif';
if ( 'off' === $format ) {
return $response;
}
foreach ( $data[ $imagifybeat_id ] as $context ) {
@@ -746,9 +746,8 @@ class File {
* Get the file extension.
*
* @since 1.9
* @author Grégory Viguier
*
* @return string|null
* @return string|false
*/
public function get_extension() {
return $this->get_file_type()->ext;
@@ -581,11 +581,21 @@ abstract class AbstractProcess implements ProcessInterface {
// This file type is not supported.
$extension = $file->get_extension();
if ( '' === $extension ) {
if ( ! $extension ) {
$response = new WP_Error(
'extension_not_mime',
__( 'This file has an extension that does not match a mime type.', 'imagify' )
);
} elseif ( '' === $extension ) {
$response = new WP_Error(
'no_extension',
__( 'With no extension, this file cannot be optimized.', 'imagify' )
);
} elseif ( ! $extension ) {
$response = new WP_Error(
'extension_not_mime',
__( 'This file has an extension that does not match a mime type.', 'imagify' )
);
} else {
$response = new WP_Error(
'extension_not_supported',
@@ -1532,7 +1542,9 @@ abstract class AbstractProcess implements ProcessInterface {
* @return string Current format we are targeting.
*/
public function get_current_format() {
return $this->get_option( 'convert_to_avif' ) ? static::AVIF_SUFFIX : static::WEBP_SUFFIX;
$format = get_imagify_option( 'optimization_format' );
return ( 'avif' === $format ) ? static::AVIF_SUFFIX : static::WEBP_SUFFIX;
}
/**
@@ -1551,7 +1563,7 @@ abstract class AbstractProcess implements ProcessInterface {
foreach ( $formats as $format ) {
$suffix = preg_quote( $this->get_suffix_from_format( $format ), '/' );
if ( preg_match( '/^(?<size>.+)' . $suffix . '$/', $size_name, $matches ) ) {
if ( preg_match( '/^(?<size>.+)' . $suffix . '$/', (string) $size_name, $matches ) ) {
return $matches['size'];
}
}
@@ -107,7 +107,7 @@ class OptimizedMediaWithoutNextGen implements StatInterface, SubscriberInterface
$new_sizes = array_intersect_key( $sizes, $new_sizes );
$size_name = 'full' . $process::WEBP_SUFFIX;
if ( get_imagify_option( 'convert_to_avif' ) ) {
if ( 'avif' === get_imagify_option( 'optimization_format' ) ) {
$size_name = 'full' . $process::AVIF_SUFFIX;
}
@@ -147,7 +147,7 @@ class OptimizedMediaWithoutNextGen implements StatInterface, SubscriberInterface
$sizes = isset( $data['sizes'] ) ? (array) $data['sizes'] : [];
$size_name = 'full' . $process::WEBP_SUFFIX;
if ( get_imagify_option( 'convert_to_avif' ) ) {
if ( 'avif' === get_imagify_option( 'optimization_format' ) ) {
$size_name = 'full' . $process::AVIF_SUFFIX;
}
@@ -175,7 +175,7 @@ class OptimizedMediaWithoutNextGen implements StatInterface, SubscriberInterface
$sizes = isset( $data['sizes'] ) ? (array) $data['sizes'] : [];
$size_name = 'full' . $process::WEBP_SUFFIX;
if ( get_imagify_option( 'convert_to_avif' ) ) {
if ( 'avif' === get_imagify_option( 'optimization_format' ) ) {
$size_name = 'full' . $process::AVIF_SUFFIX;
}
@@ -198,11 +198,11 @@ class OptimizedMediaWithoutNextGen implements StatInterface, SubscriberInterface
* @return void
*/
public function maybe_clear_stat_cache( $old_value, $value ) {
if ( isset( $old_value['convert_to_avif'] ) && isset( $value['convert_to_avif'] ) ) {
if ( ! isset( $old_value['optimization_format'], $value['optimization_format'] ) ) {
return;
}
if ( ! isset( $old_value['convert_to_avif'] ) && ! isset( $value['convert_to_avif'] ) ) {
if ( $old_value['optimization_format'] === $value['optimization_format'] ) {
return;
}
+2 -2
View File
@@ -3,7 +3,7 @@
* Plugin Name: Imagify
* Plugin URI: https://wordpress.org/plugins/imagify/
* Description: Dramatically reduce image file sizes without losing quality, make your website load faster, boost your SEO and save money on your bandwidth using Imagify, the new most advanced image optimization tool.
* Version: 2.2.1
* Version: 2.2.2
* Requires at least: 5.3
* Requires PHP: 7.3
* Author: Imagify Optimize Images & Convert WebP & Avif
@@ -19,7 +19,7 @@
defined( 'ABSPATH' ) || die( 'Cheatin uh?' );
// Imagify defines.
define( 'IMAGIFY_VERSION', '2.2.1' );
define( 'IMAGIFY_VERSION', '2.2.2' );
define( 'IMAGIFY_SLUG', 'imagify' );
define( 'IMAGIFY_FILE', __FILE__ );
define( 'IMAGIFY_PATH', realpath( plugin_dir_path( IMAGIFY_FILE ) ) . '/' );
@@ -124,7 +124,7 @@ class NGG extends AbstractBulk {
$data_table = DB::get_instance()->get_table_name();
$suffix = constant( imagify_get_optimization_process_class_name( 'ngg' ) . '::WEBP_SUFFIX' );
if ( get_imagify_option( 'convert_to_avif' ) ) {
if ( 'avif' === get_imagify_option( 'optimization_format' ) ) {
$suffix = constant( imagify_get_optimization_process_class_name( 'ngg' ) . '::AVIF_SUFFIX' );
}
@@ -194,7 +194,7 @@ class NGG extends AbstractBulk {
$data_table = DB::get_instance()->get_table_name();
$suffix = constant( imagify_get_optimization_process_class_name( 'ngg' ) . '::WEBP_SUFFIX' );
if ( get_imagify_option( 'convert_to_avif' ) ) {
if ( 'avif' === get_imagify_option( 'optimization_format' ) ) {
$suffix = constant( imagify_get_optimization_process_class_name( 'ngg' ) . '::AVIF_SUFFIX' );
}
@@ -291,7 +291,7 @@ function _imagify_new_upgrade( $network_version, $site_version ) {
// 1.8.2
if ( version_compare( $site_version, '1.8.2' ) < 0 ) {
Imagify_Options::get_instance()->set( 'partner_links', 1 );
$options->set( 'partner_links', 1 );
}
// 1.9.6
@@ -305,12 +305,20 @@ function _imagify_new_upgrade( $network_version, $site_version ) {
}
if ( version_compare( $site_version, '2.0' ) < 0 ) {
Imagify_Options::get_instance()->set( 'optimization_level', 2 );
$options->set( 'optimization_level', 2 );
}
if ( version_compare( $site_version, '2.2' ) < 0 ) {
Imagify_Options::get_instance()->set( 'display_nextgen', Imagify_Options::get_instance()->get( 'display_webp', 0 ) );
Imagify_Options::get_instance()->set( 'display_nextgen_method', Imagify_Options::get_instance()->get( 'display_webp_method' ) );
$options->set( 'display_nextgen', $options->get( 'display_webp', 0 ) );
$options->set( 'display_nextgen_method', $options->get( 'display_webp_method' ) );
}
if ( version_compare( $site_version, '2.2.2', '<' ) ) {
if ( $options->get( 'convert_to_avif' ) ) {
$options->set( 'optimization_format', 'avif' );
} else {
$options->set( 'optimization_format', 'webp' );
}
}
}
add_action( 'imagify_upgrade', '_imagify_new_upgrade', 10, 2 );
@@ -1,6 +1,10 @@
<?php
defined( 'ABSPATH' ) || die( 'Cheatin uh?' );
if ( ! class_exists( 'WP_List_Table' ) ) {
require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php';
}
/**
* Class that display the "custom folders" files.
*
@@ -44,6 +44,7 @@ class Imagify_Options extends Imagify_Abstract_Options {
'partner_links' => 0,
'convert_to_avif' => 0,
'convert_to_webp' => 0,
'optimization_format' => 'webp',
];
/**
@@ -96,10 +97,6 @@ class Imagify_Options extends Imagify_Abstract_Options {
parent::__construct();
}
/** ----------------------------------------------------------------------------------------- */
/** SANITIZATION, VALIDATION ================================================================ */
/** ----------------------------------------------------------------------------------------- */
/**
* Sanitize and validate an option value. Basic casts have been made.
*
@@ -127,7 +124,13 @@ class Imagify_Options extends Imagify_Abstract_Options {
return $reset_values[ $key ];
}
return $value;
case 'optimization_format':
if ( ! in_array( $value, [ 'off', 'webp', 'avif' ], true ) ) {
// For an invalid value, return the "reset" value.
$reset_values = $this->get_reset_values();
return $reset_values[ $key ];
}
return $value;
case 'auto_optimize':
case 'backup':
case 'lossless':
@@ -748,6 +748,74 @@ class Imagify_Settings {
<?php
}
/**
* Display styled radio list group.
*
* @param array $args Arguments:
* {option_name} string The option name. E.g. 'disallowed-sizes'. Mandatory.
* {values} array List of values to display, in the form of 'value' => 'Label'. Mandatory.
* {attributes} array A list of HTML attributes, as 'attribute' => 'value'.
* {current_value} int|bool USE ONLY WHEN DEALING WITH DATA THAT IS NOT SAVED IN THE PLUGIN OPTIONS. If not provided, the field will automatically get the value from the options.
*
* @return void
*/
public function field_inline_radio_list( $args ) {
$args = array_merge(
[
'option_name' => '',
'values' => [],
'info' => '',
'attributes' => [],
'current_value' => false,
],
$args
);
if ( ! $args['option_name'] || ! $args['values'] ) {
return;
}
if ( is_numeric( $args['current_value'] ) || is_string( $args['current_value'] ) ) {
$current_value = $args['current_value'];
} else {
$current_value = $this->options->get( $args['option_name'] );
}
$option_name_class = sanitize_html_class( $args['option_name'] );
$attributes = array_merge( [
'name' => $this->option_name . '[' . $args['option_name'] . ']',
'id' => 'imagify_' . $option_name_class . '_%s',
'class' => 'imagify-row-radio',
], $args['attributes'] );
$id_attribute = $attributes['id'];
unset( $attributes['id'] );
$args['attributes'] = self::build_attributes( $attributes );
?>
<div class="imagify-setting-optim-level">
<p class="imagify-inline-options imagify-inline-options-<?php echo esc_attr( $args['info_class'] ); ?>">
<?php
foreach ( $args['values'] as $value => $label ) {
$input_id = sprintf( $id_attribute, sanitize_html_class( $value ) );
?>
<input type="radio" value="<?php echo esc_attr( $value ); ?>" id="<?php echo $input_id; ?>"<?php echo $args['attributes']; ?> <?php checked( $current_value, $value ); ?> />
<label for="<?php echo $input_id; ?>" onclick=""><?php echo $label; ?></label>
<?php
}
?>
</p>
<span id="<?php
echo $attributes['aria-describedby'];
?>" class="imagify-<?php echo esc_attr( $args['info_class'] ); ?>">
<span class="dashicons dashicons-info"></span>
<?php
echo $args['info'];
?>
</span>
</div>
<?php
}
/**
* Display a text box.
*
@@ -75,14 +75,11 @@ add_filter( 'big_image_size_threshold', [ imagify_get_context( 'wp' ), 'get_resi
* @return array
*/
function imagify_nextgen_images_formats() {
$formats = [
'webp' => 'webp',
];
$value = get_imagify_option( 'optimization_format' );
$formats = [];
if ( get_imagify_option( 'convert_to_avif' ) ) {
$formats['avif'] = 'avif';
unset( $formats['webp'] );
if ( 'off' !== $value ) {
$formats[ $value ] = $value;
}
$default = $formats;
@@ -342,8 +342,10 @@ function get_imagify_attachment_generate_nextgen_versions_link( $process ) {
return '';
}
$format = get_imagify_option( 'optimization_format' );
if (
get_imagify_option( 'convert_to_avif' )
'avif' === $format
&&
'image/avif' === $media->get_mime_type()
) {
+7 -1
View File
@@ -2,7 +2,7 @@
Contributors: wp_rocket, imagify
Tags: optimize images, convert webp, webp converter, convert AVIF, webp to AVIF, AVIF plugin, AVIF converter, image optimization, compress images, image compressor, resize images, reduce image size, performance, image optimizer, core web vitals, best image optimization plugin
Tested up to: 6.5
Stable tag: 2.2.1
Stable tag: 2.2.2
Requires PHP: 7.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -262,6 +262,12 @@ You can report any security bugs found in the source code of the site-reviews pl
4. Other Media Page
== Changelog ==
= 2.2.2 =
- Enhancement: Allow to choose which Next-Gen images should be generated in UI
- Enhancement: Guard against image size thats not a string
- Enhancement: Guard against file type that doesnt match existing mime type
- Bugfix: Fix a fatal error related to “WP_List_Table”
= 2.2.1 =
- Enhancement: Prevent updating .htaccess when switching between AVIF and WEBP generation features
- Enhancement: Display the smallest size of the image in the Media Library image details section
@@ -1,9 +1,9 @@
<?php return array(
'root' => array(
'name' => 'wp-media/imagify-plugin',
'pretty_version' => 'v2.2.1',
'version' => '2.2.1.0',
'reference' => '4f51e4e733650db2daf440926fa9ff911bc1da27',
'pretty_version' => 'v2.2.2',
'version' => '2.2.2.0',
'reference' => '33e23dd026fd905ae6ae703be9456c84ae9ca591',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
@@ -29,9 +29,9 @@
'dev_requirement' => false,
),
'wp-media/imagify-plugin' => array(
'pretty_version' => 'v2.2.1',
'version' => '2.2.1.0',
'reference' => '4f51e4e733650db2daf440926fa9ff911bc1da27',
'pretty_version' => 'v2.2.2',
'version' => '2.2.2.0',
'reference' => '33e23dd026fd905ae6ae703be9456c84ae9ca591',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
@@ -12,18 +12,47 @@ $settings = Imagify_Settings::get_instance();
<div class="imagify-setting-line">
<?php
$settings->field_checkbox( [
'option_name' => 'convert_to_avif',
'label' => __( 'Create AVIF versions of images', 'imagify' ),
'attributes' => [
'aria-describedby' => 'describe-convert_to_avif',
$message = __( 'Select WebP for high compatibility, AVIF for superior compression. Please note that the generation process will start automatically after saving the settings.', 'imagify' );
$message_class = 'info';
$disabled = false;
if ( has_filter( 'imagify_nextgen_images_formats' ) ) {
$message = sprintf(
// translators: %1$s and %2$s are <code> tag opening and closing, %3$s and %4$s are <a> tag opening and closing.
__( 'Next-Gen Images format is currently defined by the %1$simagify_nextgen_images_format%2$s filter. %3$sRead more%4$s', 'imagify' ),
'<code>',
'</code>',
'<a href="https://imagify.io/documentation/how-to-use-the-next-gen-image-format-filter/" target="_blank">',
'</a>'
);
$message_class = 'error';
$disabled = true;
}
$attributes = [
'aria-describedby' => 'describe-optimization_format',
];
if ( $disabled ) {
$attributes['disabled'] = true;
}
$settings->field_inline_radio_list(
[
'option_name' => 'optimization_format',
'legend' => __( 'Next-gen image format', 'imagify' ),
'info' => $message,
'info_class' => $message_class,
'values' => [
'off' => __( 'Off', 'imagify' ),
'avif' => __( 'AVIF', 'imagify' ),
'webp' => __( 'WebP', 'imagify' ),
],
] );
'attributes' => $attributes,
]
);
?>
<div class="imagify-info">
<span class="dashicons dashicons-info"></span>
<?php esc_html_e( 'Enabling this option will start the process of creating AVIF version of your images automatically.', 'imagify' ); ?>
</div>
</div>
<div class="imagify-setting-line">
@@ -57,7 +57,7 @@ class FastCGI_Purger extends Purger {
$this->delete_cache_file_for( $_url_purge );
if ( $feed ) {
if ( $feed && ! empty( $nginx_helper_admin->options['purge_feeds'] ) ) {
$feed_url = rtrim( $_url_purge_base, '/' ) . '/feed/';
$this->delete_cache_file_for( $feed_url );
@@ -79,7 +79,7 @@ class FastCGI_Purger extends Purger {
$this->do_remote_get( $_url_purge );
if ( $feed ) {
if ( $feed && ! empty( $nginx_helper_admin->options['purge_feeds'] ) ) {
$feed_url = rtrim( $_url_purge_base, '/' ) . '/feed/';
$this->do_remote_get( $feed_url );
@@ -272,6 +272,7 @@ class Nginx_Helper_Admin {
'purge_page_on_mod' => 1,
'purge_page_on_new_comment' => 1,
'purge_page_on_deleted_comment' => 1,
'purge_feeds' => 1,
'redis_hostname' => '127.0.0.1',
'redis_port' => '6379',
'redis_prefix' => 'nginx-cache:',
@@ -38,6 +38,7 @@ $args = array(
'purge_page_on_mod',
'purge_page_on_new_comment',
'purge_page_on_deleted_comment',
'purge_feeds',
'smart_http_expire_form_nonce',
);
@@ -58,6 +59,25 @@ if ( isset( $all_inputs['smart_http_expire_save'] ) && wp_verify_nonce( $all_inp
$nginx_helper_admin->nginx_helper_default_settings()
);
$site_options = get_site_option( 'rt_wp_nginx_helper_options', array() );
foreach ( $nginx_helper_admin->nginx_helper_default_settings() as $default_setting_field => $default_setting_value ) {
// Uncheck checkbox fields whose default value is `1` but user has unchecked.
if ( 1 === $default_setting_value && isset( $site_options[ $default_setting_field ] ) && empty( $all_inputs[ $default_setting_field ] ) ) {
$nginx_settings[ $default_setting_field ] = 0;
}
// Populate the setting field with default value when it is empty.
if ( '' === $nginx_settings[ $default_setting_field ] ) {
$nginx_settings[ $default_setting_field ] = $default_setting_value;
}
}
if ( ( ! is_numeric( $nginx_settings['log_filesize'] ) ) || ( empty( $nginx_settings['log_filesize'] ) ) ) {
$error_log_filesize = __( 'Log file size must be a number.', 'nginx-helper' );
unset( $nginx_settings['log_filesize'] );
@@ -496,6 +516,38 @@ if ( is_multisite() ) {
</td>
</tr>
</table>
<table class="form-table rtnginx-table">
<tr valign="top">
<th scope="row">
<h4>
<?php esc_html_e( 'Purge Feeds:', 'nginx-helper' ); ?>
</h4>
</th>
<td>
<fieldset>
<legend class="screen-reader-text">
<span>
&nbsp;
<?php
esc_html_e( 'purge feeds', 'nginx-helper' );
?>
</span>
</legend>
<label for="purge_feeds">
<input type="checkbox" value="1" id="purge_feeds" name="purge_feeds" <?php checked( $nginx_helper_settings['purge_feeds'], 1 ); ?> />
&nbsp;
<?php
echo wp_kses(
__( 'purge <strong>feeds</strong> along with <strong>posts</strong> & <strong>pages</strong>.', 'nginx-helper' ),
array( 'strong' => array() )
);
?>
</label>
<br />
</fieldset>
</td>
</tr>
</table>
<table class="form-table rtnginx-table">
<tr valign="top">
<th scope="row">
@@ -77,7 +77,7 @@ class Nginx_Helper {
public function __construct() {
$this->plugin_name = 'nginx-helper';
$this->version = '2.2.4';
$this->version = '2.2.5';
$this->minimum_wp = '3.0';
if ( ! $this->required_wp_version() ) {
@@ -2,16 +2,16 @@
# This file is distributed under the same license as the Nginx Helper plugin.
msgid ""
msgstr ""
"Project-Id-Version: Nginx Helper 2.2.4\n"
"Project-Id-Version: Nginx Helper 2.2.5\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/nginx-helper\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2024-01-17T06:18:22+00:00\n"
"POT-Creation-Date: 2024-04-15T10:26:40+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.8.1\n"
"X-Generator: WP-CLI 2.9.0\n"
"X-Domain: nginx-helper\n"
#. Plugin Name of the plugin
@@ -58,19 +58,19 @@ msgstr ""
msgid "Purge Current Page"
msgstr ""
#: admin/class-nginx-helper-admin.php:341
#: admin/class-nginx-helper-admin.php:342
msgid "Settings"
msgstr ""
#: admin/class-nginx-helper-admin.php:425
#: admin/class-nginx-helper-admin.php:426
msgid "No items"
msgstr ""
#: admin/class-nginx-helper-admin.php:436
#: admin/class-nginx-helper-admin.php:437
msgid "Posted "
msgstr ""
#: admin/class-nginx-helper-admin.php:775
#: admin/class-nginx-helper-admin.php:776
msgid "Purge initiated"
msgstr ""
@@ -236,310 +236,322 @@ msgstr ""
msgid "Nginx Settings"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:62
#: admin/partials/nginx-helper-general-options.php:82
msgid "Log file size must be a number."
msgstr ""
#: admin/partials/nginx-helper-general-options.php:72
#: admin/partials/nginx-helper-general-options.php:92
msgid "Settings saved."
msgstr ""
#: admin/partials/nginx-helper-general-options.php:99
#: admin/partials/nginx-helper-general-options.php:119
msgid "Purging Options"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:106
#: admin/partials/nginx-helper-general-options.php:126
msgid "Enable Purge"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:116
#: admin/partials/nginx-helper-general-options.php:136
msgid "Caching Method"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:128
#: admin/partials/nginx-helper-general-options.php:148
msgid "nginx Fastcgi cache"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:130
#: admin/partials/nginx-helper-general-options.php:150
msgid "External settings for nginx"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:131
#: admin/partials/nginx-helper-general-options.php:151
msgid "requires external settings for nginx"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:141
#: admin/partials/nginx-helper-general-options.php:161
msgid "Redis cache"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:151
#: admin/partials/nginx-helper-general-options.php:171
msgid "Purge Method"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:161
#: admin/partials/nginx-helper-general-options.php:341
#: admin/partials/nginx-helper-general-options.php:181
#: admin/partials/nginx-helper-general-options.php:361
msgid "when a post/page/custom post is published."
msgstr ""
#: admin/partials/nginx-helper-general-options.php:171
#: admin/partials/nginx-helper-general-options.php:191
msgid "Using a GET request to"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:172
#: admin/partials/nginx-helper-general-options.php:192
msgid "(Default option)"
msgstr ""
#. translators: %s Nginx cache purge module link.
#: admin/partials/nginx-helper-general-options.php:183
#: admin/partials/nginx-helper-general-options.php:203
msgid "Uses the %s module."
msgstr ""
#: admin/partials/nginx-helper-general-options.php:201
#: admin/partials/nginx-helper-general-options.php:221
msgid "Delete local server cache files"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:207
#: admin/partials/nginx-helper-general-options.php:227
msgid "Checks for matching cache file in <strong>RT_WP_NGINX_HELPER_CACHE_PATH</strong>. Does not require any other modules. Requires that the cache be stored on the same server as WordPress. You must also be using the default nginx cache options (levels=1:2) and (fastcgi_cache_key \"$scheme$request_method$host$request_uri\")."
msgstr ""
#: admin/partials/nginx-helper-general-options.php:222
#: admin/partials/nginx-helper-general-options.php:242
msgid "Redis Settings"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:227
#: admin/partials/nginx-helper-general-options.php:247
msgid "Hostname"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:234
#: admin/partials/nginx-helper-general-options.php:249
#: admin/partials/nginx-helper-general-options.php:264
#: admin/partials/nginx-helper-general-options.php:254
#: admin/partials/nginx-helper-general-options.php:269
#: admin/partials/nginx-helper-general-options.php:284
msgid "Overridden by constant variables."
msgstr ""
#: admin/partials/nginx-helper-general-options.php:242
#: admin/partials/nginx-helper-general-options.php:262
msgid "Port"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:257
#: admin/partials/nginx-helper-general-options.php:277
msgid "Prefix"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:277
#: admin/partials/nginx-helper-general-options.php:297
msgid "Purging Conditions"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:282
#: admin/partials/nginx-helper-general-options.php:302
msgid "Purge Homepage:"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:289
#: admin/partials/nginx-helper-general-options.php:309
msgid "when a post/page/custom post is modified or added."
msgstr ""
#: admin/partials/nginx-helper-general-options.php:298
#: admin/partials/nginx-helper-general-options.php:425
#: admin/partials/nginx-helper-general-options.php:318
#: admin/partials/nginx-helper-general-options.php:445
msgid "when a <strong>post</strong> (or page/custom post) is <strong>modified</strong> or <strong>added</strong>."
msgstr ""
#: admin/partials/nginx-helper-general-options.php:310
#: admin/partials/nginx-helper-general-options.php:330
msgid "when an existing post/page/custom post is modified."
msgstr ""
#: admin/partials/nginx-helper-general-options.php:319
#: admin/partials/nginx-helper-general-options.php:339
msgid "when a <strong>published post</strong> (or page/custom post) is <strong>trashed</strong>"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:333
#: admin/partials/nginx-helper-general-options.php:353
msgid "Purge Post/Page/Custom Post Type:"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:350
#: admin/partials/nginx-helper-general-options.php:370
msgid "when a <strong>post</strong> is <strong>published</strong>."
msgstr ""
#: admin/partials/nginx-helper-general-options.php:362
#: admin/partials/nginx-helper-general-options.php:459
#: admin/partials/nginx-helper-general-options.php:382
#: admin/partials/nginx-helper-general-options.php:479
msgid "when a comment is approved/published."
msgstr ""
#: admin/partials/nginx-helper-general-options.php:371
#: admin/partials/nginx-helper-general-options.php:468
#: admin/partials/nginx-helper-general-options.php:391
#: admin/partials/nginx-helper-general-options.php:488
msgid "when a <strong>comment</strong> is <strong>approved/published</strong>."
msgstr ""
#: admin/partials/nginx-helper-general-options.php:383
#: admin/partials/nginx-helper-general-options.php:480
#: admin/partials/nginx-helper-general-options.php:403
#: admin/partials/nginx-helper-general-options.php:500
msgid "when a comment is unapproved/deleted."
msgstr ""
#: admin/partials/nginx-helper-general-options.php:392
#: admin/partials/nginx-helper-general-options.php:489
#: admin/partials/nginx-helper-general-options.php:412
#: admin/partials/nginx-helper-general-options.php:509
msgid "when a <strong>comment</strong> is <strong>unapproved/deleted</strong>."
msgstr ""
#: admin/partials/nginx-helper-general-options.php:406
#: admin/partials/nginx-helper-general-options.php:426
msgid "Purge Archives:"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:408
#: admin/partials/nginx-helper-general-options.php:428
msgid "(date, category, tag, author, custom taxonomies)"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:416
#: admin/partials/nginx-helper-general-options.php:436
msgid "when an post/page/custom post is modified or added"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:437
#: admin/partials/nginx-helper-general-options.php:457
msgid "when an existing post/page/custom post is trashed."
msgstr ""
#: admin/partials/nginx-helper-general-options.php:446
#: admin/partials/nginx-helper-general-options.php:466
msgid "when a <strong>published post</strong> (or page/custom post) is <strong>trashed</strong>."
msgstr ""
#: admin/partials/nginx-helper-general-options.php:502
msgid "Custom Purge URL:"
#: admin/partials/nginx-helper-general-options.php:523
msgid "Purge Feeds:"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:508
msgid "Add one URL per line. URL should not contain domain name."
#: admin/partials/nginx-helper-general-options.php:532
msgid "purge feeds"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:511
msgid "Eg: To purge http://example.com/sample-page/ add <strong>/sample-page/</strong> in above textarea."
msgstr ""
#: admin/partials/nginx-helper-general-options.php:515
msgid "'*' will only work with redis cache server."
msgstr ""
#: admin/partials/nginx-helper-general-options.php:525
msgid "Debug Options"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:535
msgid "Enable Nginx Map."
#: admin/partials/nginx-helper-general-options.php:541
msgid "purge <strong>feeds</strong> along with <strong>posts</strong> & <strong>pages</strong>."
msgstr ""
#: admin/partials/nginx-helper-general-options.php:554
msgid "Custom Purge URL:"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:560
msgid "Add one URL per line. URL should not contain domain name."
msgstr ""
#: admin/partials/nginx-helper-general-options.php:563
msgid "Eg: To purge http://example.com/sample-page/ add <strong>/sample-page/</strong> in above textarea."
msgstr ""
#: admin/partials/nginx-helper-general-options.php:567
msgid "'*' will only work with redis cache server."
msgstr ""
#: admin/partials/nginx-helper-general-options.php:577
msgid "Debug Options"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:587
msgid "Enable Nginx Map."
msgstr ""
#: admin/partials/nginx-helper-general-options.php:606
msgid "Enable Logging"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:559
#: admin/partials/nginx-helper-general-options.php:611
msgid "disable"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:565
#: admin/partials/nginx-helper-general-options.php:617
msgid "enable"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:572
#: admin/partials/nginx-helper-general-options.php:624
msgid "NOTE"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:573
#: admin/partials/nginx-helper-general-options.php:625
msgid "To"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:575
#: admin/partials/nginx-helper-general-options.php:627
msgid "the logging feature, you must define"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:576
#: admin/partials/nginx-helper-general-options.php:628
msgid "as"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:578
#: admin/partials/nginx-helper-general-options.php:630
msgid "in your"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:589
#: admin/partials/nginx-helper-general-options.php:641
msgid "Enable Nginx Timestamp in HTML"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:603
#: admin/partials/nginx-helper-general-options.php:655
msgid "Nginx Map"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:612
#: admin/partials/nginx-helper-general-options.php:664
msgid "Can't write on map file."
msgstr ""
#. translators: %s file url.
#: admin/partials/nginx-helper-general-options.php:617
#: admin/partials/nginx-helper-general-options.php:689
#: admin/partials/nginx-helper-general-options.php:669
#: admin/partials/nginx-helper-general-options.php:741
msgid "Check you have write permission on <strong>%s</strong>"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:634
#: admin/partials/nginx-helper-general-options.php:686
msgid "Nginx Map path to include in nginx settings"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:635
#: admin/partials/nginx-helper-general-options.php:687
msgid "(recommended)"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:648
#: admin/partials/nginx-helper-general-options.php:700
msgid "Or,"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:649
#: admin/partials/nginx-helper-general-options.php:701
msgid "Text to manually copy and paste in nginx settings"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:650
#: admin/partials/nginx-helper-general-options.php:702
msgid "(if your network is small and new sites are not added frequently)"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:668
#: admin/partials/nginx-helper-general-options.php:720
msgid "Logging Options"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:684
#: admin/partials/nginx-helper-general-options.php:736
msgid "Can't write on log file."
msgstr ""
#: admin/partials/nginx-helper-general-options.php:706
#: admin/partials/nginx-helper-general-options.php:758
msgid "Logs path"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:718
#: admin/partials/nginx-helper-general-options.php:770
msgid "View Log"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:723
#: admin/partials/nginx-helper-general-options.php:775
msgid "Log"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:730
#: admin/partials/nginx-helper-general-options.php:782
msgid "Log level"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:735
#: admin/partials/nginx-helper-general-options.php:787
msgid "None"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:736
#: admin/partials/nginx-helper-general-options.php:788
msgid "Info"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:737
#: admin/partials/nginx-helper-general-options.php:789
msgid "Warning"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:738
#: admin/partials/nginx-helper-general-options.php:790
msgid "Error"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:745
#: admin/partials/nginx-helper-general-options.php:797
msgid "Max log file size"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:751
#: admin/partials/nginx-helper-general-options.php:803
msgid "Mb"
msgstr ""
#: admin/partials/nginx-helper-general-options.php:768
#: admin/partials/nginx-helper-general-options.php:820
msgid "Save All Changes"
msgstr ""
@@ -3,7 +3,7 @@
* Plugin Name: Nginx Helper
* Plugin URI: https://rtcamp.com/nginx-helper/
* Description: Cleans nginx's fastcgi/proxy cache or redis-cache whenever a post is edited/published. Also does few more things.
* Version: 2.2.4
* Version: 2.2.5
* Author: rtCamp
* Author URI: https://rtcamp.com
* Text Domain: nginx-helper
@@ -1,12 +1,12 @@
=== Nginx Helper ===
Contributors: rtcamp, rahul286, saurabhshukla, manishsongirkar36, faishal, desaiuditd, darren-slatten, jk3us, daankortenbach, telofy, pjv, llonchj, jinnko, weskoop, bcole808, gungeekatx, rohanveer, chandrapatel, gagan0123, ravanh, michaelbeil, samedwards, niwreg, entr, nuvoPoint, iam404, rittesh.patel, vishalkakadiya, BhargavBhandari90, vincent-lu, murrayjbrown, bryant1410, 1gor, matt-h, pySilver, johan-chassaing, dotsam, sanketio, petenelson, nathanielks, rigagoogoo, dslatten, jinschoi, kelin1003, vaishuagola27, rahulsprajapati, Joel-James, utkarshpatel, gsayed786, shashwatmittal, sudhiryadav, thrijith, stayallive, jaredwsmith, abhijitrakas, umeshnevase, sid177, souptik, arafatkn, subscriptiongroup
Contributors: rtcamp, rahul286, saurabhshukla, manishsongirkar36, faishal, desaiuditd, darren-slatten, jk3us, daankortenbach, telofy, pjv, llonchj, jinnko, weskoop, bcole808, gungeekatx, rohanveer, chandrapatel, gagan0123, ravanh, michaelbeil, samedwards, niwreg, entr, nuvoPoint, iam404, rittesh.patel, vishalkakadiya, BhargavBhandari90, vincent-lu, murrayjbrown, bryant1410, 1gor, matt-h, pySilver, johan-chassaing, dotsam, sanketio, petenelson, nathanielks, rigagoogoo, dslatten, jinschoi, kelin1003, vaishuagola27, rahulsprajapati, Joel-James, utkarshpatel, gsayed786, shashwatmittal, sudhiryadav, thrijith, stayallive, jaredwsmith, abhijitrakas, umeshnevase, sid177, souptik, arafatkn, subscriptiongroup, akrocks
Donate Link: http://rt.cx/eedonate/
Tags: nginx, cache, purge, nginx map, nginx cache, maps, fastcgi, proxy, redis, redis-cache, rewrite, permalinks
License: GPLv2 or later (of-course)
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Requires at least: 3.0
Tested up to: 6.4.2
Stable tag: 2.2.4
Tested up to: 6.5
Stable tag: 2.2.5
Cleans nginx's fastcgi/proxy cache or redis-cache whenever a post is edited/published. Also does a few more things.
@@ -127,6 +127,10 @@ Please post your problem in [our free support forum](https://github.com/rtCamp/n
== Changelog ==
= 2.2.5 =
* Add the capability to enable/disable purging of feeds. [#281](https://github.com/rtCamp/nginx-helper/issues/281) - by [Amaan Khan](https://github.com/pathan-amaankhan)
* Fix undefined port error when Redis port is set to empty string. [#333](https://github.com/rtCamp/nginx-helper/issues/333) - by [Amaan Khan](https://github.com/pathan-amaankhan)
= 2.2.4 =
* Introduces the capability to specify the `NGINX_HELPER_LOG` constant, allowing users to activate the logging feature. [#318](https://github.com/rtCamp/nginx-helper/pull/318) - by [Vishal Kakadiya](https://github.com/vishalkakadiya)
* Existing users employing the nginx-helper plugin with logging enabled will experience no disruptions. However, if logging is disabled, users must define the `NGINX_HELPER_LOG` constant to re-enable the logging feature.
@@ -443,6 +443,12 @@ function relevanssi_admin_search_debugging_info( $query ) {
function relevanssi_update_counts() {
global $wpdb, $relevanssi_variables;
if ( ! current_user_can( 'manage_options' ) ) {
die();
}
check_admin_referer( 'update_counts', '_wpnonce' );
relevanssi_update_doc_count();
$terms_count = $wpdb->get_var( 'SELECT COUNT(*) FROM ' . $relevanssi_variables['relevanssi_table'] ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared,WordPress.DB.PreparedSQL.NotPrepared
@@ -77,6 +77,13 @@ function relevanssi_index_ninja_table( $table_id ) {
)
);
foreach ( $rows as $row ) {
if ( empty( $row->value ) ) {
continue;
}
$json_decoded = json_decode( $row->value );
if ( ! is_object( $json_decoded ) ) {
continue;
}
$array_values = array_map(
function ( $value ) {
if ( is_object( $value ) ) {
@@ -84,7 +91,7 @@ function relevanssi_index_ninja_table( $table_id ) {
}
return strval( $value );
},
array_values( get_object_vars( json_decode( $row->value ) ) )
array_values( get_object_vars( $json_decoded ) )
);
$table_contents .= ' ' . implode( ' ', $array_values );
@@ -10,25 +10,6 @@
* @see https://www.relevanssi.com/
*/
/**
* Enables TablePress shortcodes for Relevanssi indexing.
*
* @return null|object The TablePress controller.
*/
function relevanssi_enable_tablepress_shortcodes() {
$my_tablepress_controller = null;
if ( defined( 'TABLEPRESS_ABSPATH' ) ) {
if ( ! isset( TablePress::$model_options ) ) {
include_once TABLEPRESS_ABSPATH . 'classes/class-model.php';
include_once TABLEPRESS_ABSPATH . 'models/model-options.php';
TablePress::$model_options = new TablePress_Options_Model();
}
$my_tablepress_controller = TablePress::load_controller( 'frontend' );
$my_tablepress_controller->init_shortcodes();
}
return $my_tablepress_controller;
}
add_filter( 'relevanssi_post_content', 'relevanssi_table_filter' );
/**
@@ -13,6 +13,7 @@
add_filter( 'relevanssi_indexing_restriction', 'relevanssi_woocommerce_restriction' );
add_filter( 'relevanssi_admin_search_blocked_post_types', 'relevanssi_woocommerce_admin_search_blocked_post_types' );
add_filter( 'relevanssi_modify_wp_query', 'relevanssi_woocommerce_filters' );
add_filter( 'relevanssi_post_ok', 'relevanssi_variation_post_ok', 10, 2 );
/**
* This action solves the problems introduced by adjust_posts_count() in
@@ -280,3 +281,20 @@ function relevanssi_filtered_term_product_counts_query( $query ) {
return $query;
}
/**
* Checks the parent product status for product variations.
*
* @param bool $ok Whether the post is OK to return in search.
* @param int $post_id The post ID.
*
* @return bool
*/
function relevanssi_variation_post_ok( $ok, $post_id ) : bool {
$post_type = relevanssi_get_post_type( $post_id );
if ( 'product_variation' === $post_type ) {
$parent = get_post_parent( $post_id );
return apply_filters( 'relevanssi_post_ok', $ok, $parent->ID );
}
return $ok;
}
@@ -337,6 +337,16 @@ function relevanssi_output_exported_log( string $filename, array $data, string $
}
fputcsv( $df, array_keys( reset( $data ) ) );
foreach ( $data as $row ) {
if (
in_array(
substr( $row['query'], 0, 1 ),
array( '=', '-', '"', '@', '+' ),
true
)
) {
$row['query'] = ' ' . $row['query'];
$row['query'] = str_replace( "\t", '', $row['query'] );
}
fputcsv( $df, $row );
}
fclose( $df ); // phpcs:ignore WordPress.WP.AlternativeFunctions
@@ -270,7 +270,7 @@ function relevanssi_search( $args ) {
$total_hits += count( $matches );
$idf = log( $doc_count + 1 / ( 1 + $df ) );
$idf = log( ( $doc_count + 1 ) / ( 1 + $df ) );
$idf = $idf * $idf; // Adjustment to increase the value of IDF.
if ( $idf < 1 ) {
$idf = 1;
@@ -460,12 +460,12 @@ function relevanssi_search( $args ) {
if ( ! is_wp_error( $post_object ) ) {
$hits[ intval( $i ) ] = $post_object;
$hits[ intval( $i ) ]->relevance_score = round( $weight, 2 );
}
if ( isset( $missing_terms[ $doc ] ) ) {
$hits[ intval( $i ) ]->missing_terms = $missing_terms[ $doc ];
}
}
}
++$i;
}
}
@@ -206,11 +206,6 @@ function relevanssi_debug_echo( string $notice ) {
*/
function relevanssi_do_shortcode( string $content ): string {
if ( 'on' === get_option( 'relevanssi_expand_shortcodes' ) ) {
// TablePress support.
if ( function_exists( 'relevanssi_enable_tablepress_shortcodes' ) ) {
$tablepress_controller = relevanssi_enable_tablepress_shortcodes();
}
relevanssi_disable_shortcodes();
/**
@@ -4,8 +4,8 @@ Donate link: https://www.relevanssi.com/
Tags: search, relevance, better search
Requires at least: 4.9
Requires PHP: 7.0
Tested up to: 6.4
Stable tag: 2.25.1
Tested up to: 6.5
Stable tag: 2.25.2
Relevanssi Premium replaces the default search with a partial-match search that sorts results by relevance. It also indexes comments and shortcode content.
@@ -256,6 +256,13 @@ Each document database is full of useless words. All the little words that appea
* John Calahan for extensive 2.0 beta testing.
== Changelog ==
= 2.25.2 =
* Security fix: Prevent CSV injection attack in log export.
* Security fix: Restrict access to doc count updates.
* Minor fix: Product variations check the parent product for access restrictions, to avoid situations where variations of a draft product appear in the results.
* Minor fix: Improved TablePress compatibility.
* Minor fix: Added error handling to the Ninja Table compatibility code.
= 2.25.1 =
* Security fix: Relevanssi had a vulnerability where anyone could access the search logs and click logs. The log export is now protected.
* Minor fix: Relevanssi had problems with Polylang when a post or term didn't have language specified. Now Relevanssi handles those situations better.
@@ -381,6 +388,9 @@ Each document database is full of useless words. All the little words that appea
* Minor fix: Pinning phrases that had the same word more than once (e.g. 'word by word') didn't work. Now it works better.
== Upgrade notice ==
= 2.25.2 =
* Security hardening, improved WooCommerce, TablePress and Ninja Table compatibility.
= 2.25.1 =
* Security hardening, better Polylang support.
@@ -13,7 +13,7 @@
* Plugin Name: Relevanssi Premium
* Plugin URI: https://www.relevanssi.com/
* Description: This premium plugin replaces WordPress search with a relevance-sorting search.
* Version: 2.25.1
* Version: 2.25.2
* Author: Mikko Saari
* Author URI: https://www.mikkosaari.fi/
* Text Domain: relevanssi
@@ -83,7 +83,7 @@ $relevanssi_variables['title_boost_default'] = 5;
$relevanssi_variables['link_boost_default'] = 0.75;
$relevanssi_variables['comment_boost_default'] = 0.75;
$relevanssi_variables['database_version'] = 23;
$relevanssi_variables['plugin_version'] = '2.25.1';
$relevanssi_variables['plugin_version'] = '2.25.2';
$relevanssi_variables['plugin_dir'] = plugin_dir_path( __FILE__ );
$relevanssi_variables['plugin_basename'] = plugin_basename( __FILE__ );
$relevanssi_variables['file'] = __FILE__;
@@ -1 +0,0 @@
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}.woocommerce-layout__activity-panel-header{height:50px;background:#e0e0e0;padding:16px;display:flex;justify-content:space-between;align-items:center}@media(min-width:783px){.woocommerce-layout__activity-panel-header{padding:16px 24px}}.woocommerce-layout__activity-panel-header h3{font-size:13px;font-weight:600;line-height:16px;margin:0;padding:0}.woocommerce-layout__activity-panel-header .woocommerce-ellipsis-menu__toggle.components-button:not(:disabled):not([aria-disabled=true]):focus,.woocommerce-layout__activity-panel-header .woocommerce-ellipsis-menu__toggle.components-button:not(:disabled):not([aria-disabled=true]):hover{box-shadow:none;border-radius:10px;background:#ccc}.woocommerce-layout__inbox-title{color:#1e1e1e;display:flex;align-items:center}.woocommerce-layout__inbox-subtitle{color:#757575}.woocommerce-layout__inbox-badge{margin-right:6px;background-color:#757575;border-radius:13px;padding:0 6px;color:#fff;display:inline-block;text-align:center;vertical-align:top}
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
<?php return array('version' => '238b6a92509f1dcb889c');
@@ -1 +0,0 @@
.woocommerce-report-table__scroll-point{position:relative;top:-48px}@media(max-width:782px){.woocommerce-report-table__scroll-point{top:-62px}}.woocommerce-feature-enabled-activity-panels .woocommerce-report-table__scroll-point{top:-108px}@media(max-width:782px){.woocommerce-feature-enabled-activity-panels .woocommerce-report-table__scroll-point{top:-122px}}.woocommerce-report-table .woocommerce-search{flex-grow:1}.woocommerce-report-table .components-card__header{display:grid;grid-gap:12px;grid-template-columns:min-content 1fr min-content}.woocommerce-report-table .woocommerce-table__compare.components-button{padding:8px}.woocommerce-report-table .woocommerce-ellipsis-menu{justify-self:flex-end}button.woocommerce-table__download-button{padding:6px 12px;color:#000;text-decoration:none;align-items:center}button.woocommerce-table__download-button svg{margin-left:8px;height:24px;width:24px}@media(max-width:782px){button.woocommerce-table__download-button svg{margin-left:0}button.woocommerce-table__download-button .woocommerce-table__download-button__label{display:none}}:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}.woocommerce-table__product-categories>.woocommerce-table__breadcrumbs{display:inline-block;margin-left:12px}.woocommerce-table__product-categories .components-popover__content{padding:0 16px;text-align:right}.woocommerce-table__product-categories .components-popover__content .woocommerce-table__breadcrumbs{margin-top:12px;margin-bottom:12px}
@@ -1 +0,0 @@
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}.woocommerce-report-table__scroll-point{position:relative;top:-48px}@media(max-width:782px){.woocommerce-report-table__scroll-point{top:-62px}}.woocommerce-feature-enabled-activity-panels .woocommerce-report-table__scroll-point{top:-108px}@media(max-width:782px){.woocommerce-feature-enabled-activity-panels .woocommerce-report-table__scroll-point{top:-122px}}.woocommerce-report-table .woocommerce-search{flex-grow:1}.woocommerce-report-table .components-card__header{display:grid;grid-gap:12px;grid-template-columns:min-content 1fr min-content}.woocommerce-report-table .woocommerce-table__compare.components-button{padding:8px}.woocommerce-report-table .woocommerce-ellipsis-menu{justify-self:flex-end}button.woocommerce-table__download-button{padding:6px 12px;color:#000;text-decoration:none;align-items:center}button.woocommerce-table__download-button svg{margin-left:8px;height:24px;width:24px}@media(max-width:782px){button.woocommerce-table__download-button svg{margin-left:0}button.woocommerce-table__download-button .woocommerce-table__download-button__label{display:none}}
@@ -1 +0,0 @@
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}.woocommerce-report-table__scroll-point{position:relative;top:-48px}@media(max-width:782px){.woocommerce-report-table__scroll-point{top:-62px}}.woocommerce-feature-enabled-activity-panels .woocommerce-report-table__scroll-point{top:-108px}@media(max-width:782px){.woocommerce-feature-enabled-activity-panels .woocommerce-report-table__scroll-point{top:-122px}}.woocommerce-report-table .woocommerce-search{flex-grow:1}.woocommerce-report-table .components-card__header{display:grid;grid-gap:12px;grid-template-columns:min-content 1fr min-content}.woocommerce-report-table .woocommerce-table__compare.components-button{padding:8px}.woocommerce-report-table .woocommerce-ellipsis-menu{justify-self:flex-end}button.woocommerce-table__download-button{padding:6px 12px;color:#000;text-decoration:none;align-items:center}button.woocommerce-table__download-button svg{margin-left:8px;height:24px;width:24px}@media(max-width:782px){button.woocommerce-table__download-button svg{margin-left:0}button.woocommerce-table__download-button .woocommerce-table__download-button__label{display:none}}
@@ -1 +0,0 @@
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}.woocommerce-report-table__scroll-point{position:relative;top:-48px}@media(max-width:782px){.woocommerce-report-table__scroll-point{top:-62px}}.woocommerce-feature-enabled-activity-panels .woocommerce-report-table__scroll-point{top:-108px}@media(max-width:782px){.woocommerce-feature-enabled-activity-panels .woocommerce-report-table__scroll-point{top:-122px}}.woocommerce-report-table .woocommerce-search{flex-grow:1}.woocommerce-report-table .components-card__header{display:grid;grid-gap:12px;grid-template-columns:min-content 1fr min-content}.woocommerce-report-table .woocommerce-table__compare.components-button{padding:8px}.woocommerce-report-table .woocommerce-ellipsis-menu{justify-self:flex-end}button.woocommerce-table__download-button{padding:6px 12px;color:#000;text-decoration:none;align-items:center}button.woocommerce-table__download-button svg{margin-left:8px;height:24px;width:24px}@media(max-width:782px){button.woocommerce-table__download-button svg{margin-left:0}button.woocommerce-table__download-button .woocommerce-table__download-button__label{display:none}}
@@ -1 +0,0 @@
.woocommerce-report-table__scroll-point{position:relative;top:-48px}@media(max-width:782px){.woocommerce-report-table__scroll-point{top:-62px}}.woocommerce-feature-enabled-activity-panels .woocommerce-report-table__scroll-point{top:-108px}@media(max-width:782px){.woocommerce-feature-enabled-activity-panels .woocommerce-report-table__scroll-point{top:-122px}}.woocommerce-report-table .woocommerce-search{flex-grow:1}.woocommerce-report-table .components-card__header{display:grid;grid-gap:12px;grid-template-columns:min-content 1fr min-content}.woocommerce-report-table .woocommerce-table__compare.components-button{padding:8px}.woocommerce-report-table .woocommerce-ellipsis-menu{justify-self:flex-end}button.woocommerce-table__download-button{padding:6px 12px;color:#000;text-decoration:none;align-items:center}button.woocommerce-table__download-button svg{margin-left:8px;height:24px;width:24px}@media(max-width:782px){button.woocommerce-table__download-button svg{margin-left:0}button.woocommerce-table__download-button .woocommerce-table__download-button__label{display:none}}:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}.woocommerce-revenue-report-date-tour h2.woocommerce-tour-kit-step__heading{font-size:1.5em;line-height:1.5em;letter-spacing:.4px}
@@ -1 +0,0 @@
.woocommerce-report-table__scroll-point{position:relative;top:-48px}@media(max-width:782px){.woocommerce-report-table__scroll-point{top:-62px}}.woocommerce-feature-enabled-activity-panels .woocommerce-report-table__scroll-point{top:-108px}@media(max-width:782px){.woocommerce-feature-enabled-activity-panels .woocommerce-report-table__scroll-point{top:-122px}}.woocommerce-report-table .woocommerce-search{flex-grow:1}.woocommerce-report-table .components-card__header{display:grid;grid-gap:12px;grid-template-columns:min-content 1fr min-content}.woocommerce-report-table .woocommerce-table__compare.components-button{padding:8px}.woocommerce-report-table .woocommerce-ellipsis-menu{justify-self:flex-end}button.woocommerce-table__download-button{padding:6px 12px;color:#000;text-decoration:none;align-items:center}button.woocommerce-table__download-button svg{margin-left:8px;height:24px;width:24px}@media(max-width:782px){button.woocommerce-table__download-button svg{margin-left:0}button.woocommerce-table__download-button .woocommerce-table__download-button__label{display:none}}:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}.woocommerce-table__product-categories>.woocommerce-table__breadcrumbs{display:inline-block;margin-left:12px}.woocommerce-table__product-categories .components-popover__content{padding:0 16px;text-align:right}.woocommerce-table__product-categories .components-popover__content .woocommerce-table__breadcrumbs{margin-top:12px;margin-bottom:12px}
@@ -1 +0,0 @@
.woocommerce-report-table__scroll-point{position:relative;top:-48px}@media(max-width:782px){.woocommerce-report-table__scroll-point{top:-62px}}.woocommerce-feature-enabled-activity-panels .woocommerce-report-table__scroll-point{top:-108px}@media(max-width:782px){.woocommerce-feature-enabled-activity-panels .woocommerce-report-table__scroll-point{top:-122px}}.woocommerce-report-table .woocommerce-search{flex-grow:1}.woocommerce-report-table .components-card__header{display:grid;grid-gap:12px;grid-template-columns:min-content 1fr min-content}.woocommerce-report-table .woocommerce-table__compare.components-button{padding:8px}.woocommerce-report-table .woocommerce-ellipsis-menu{justify-self:flex-end}button.woocommerce-table__download-button{padding:6px 12px;color:#000;text-decoration:none;align-items:center}button.woocommerce-table__download-button svg{margin-left:8px;height:24px;width:24px}@media(max-width:782px){button.woocommerce-table__download-button svg{margin-left:0}button.woocommerce-table__download-button .woocommerce-table__download-button__label{display:none}}:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}.woocommerce-revenue-report-date-tour h2.woocommerce-tour-kit-step__heading{font-size:1.5em;line-height:1.5em;letter-spacing:.4px}
@@ -1 +0,0 @@
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}.woocommerce-report-table__scroll-point{position:relative;top:-48px}@media(max-width:782px){.woocommerce-report-table__scroll-point{top:-62px}}.woocommerce-feature-enabled-activity-panels .woocommerce-report-table__scroll-point{top:-108px}@media(max-width:782px){.woocommerce-feature-enabled-activity-panels .woocommerce-report-table__scroll-point{top:-122px}}.woocommerce-report-table .woocommerce-search{flex-grow:1}.woocommerce-report-table .components-card__header{display:grid;grid-gap:12px;grid-template-columns:min-content 1fr min-content}.woocommerce-report-table .woocommerce-table__compare.components-button{padding:8px}.woocommerce-report-table .woocommerce-ellipsis-menu{justify-self:flex-end}button.woocommerce-table__download-button{padding:6px 12px;color:#000;text-decoration:none;align-items:center}button.woocommerce-table__download-button svg{margin-left:8px;height:24px;width:24px}@media(max-width:782px){button.woocommerce-table__download-button svg{margin-left:0}button.woocommerce-table__download-button .woocommerce-table__download-button__label{display:none}}
@@ -1 +0,0 @@
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}.woocommerce-report-table__scroll-point{position:relative;top:-48px}@media(max-width:782px){.woocommerce-report-table__scroll-point{top:-62px}}.woocommerce-feature-enabled-activity-panels .woocommerce-report-table__scroll-point{top:-108px}@media(max-width:782px){.woocommerce-feature-enabled-activity-panels .woocommerce-report-table__scroll-point{top:-122px}}.woocommerce-report-table .woocommerce-search{flex-grow:1}.woocommerce-report-table .components-card__header{display:grid;grid-gap:12px;grid-template-columns:min-content 1fr min-content}.woocommerce-report-table .woocommerce-table__compare.components-button{padding:8px}.woocommerce-report-table .woocommerce-ellipsis-menu{justify-self:flex-end}button.woocommerce-table__download-button{padding:6px 12px;color:#000;text-decoration:none;align-items:center}button.woocommerce-table__download-button svg{margin-left:8px;height:24px;width:24px}@media(max-width:782px){button.woocommerce-table__download-button svg{margin-left:0}button.woocommerce-table__download-button .woocommerce-table__download-button__label{display:none}}
@@ -1 +0,0 @@
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}.woocommerce-report-table__scroll-point{position:relative;top:-48px}@media(max-width:782px){.woocommerce-report-table__scroll-point{top:-62px}}.woocommerce-feature-enabled-activity-panels .woocommerce-report-table__scroll-point{top:-108px}@media(max-width:782px){.woocommerce-feature-enabled-activity-panels .woocommerce-report-table__scroll-point{top:-122px}}.woocommerce-report-table .woocommerce-search{flex-grow:1}.woocommerce-report-table .components-card__header{display:grid;grid-gap:12px;grid-template-columns:min-content 1fr min-content}.woocommerce-report-table .woocommerce-table__compare.components-button{padding:8px}.woocommerce-report-table .woocommerce-ellipsis-menu{justify-self:flex-end}button.woocommerce-table__download-button{padding:6px 12px;color:#000;text-decoration:none;align-items:center}button.woocommerce-table__download-button svg{margin-left:8px;height:24px;width:24px}@media(max-width:782px){button.woocommerce-table__download-button svg{margin-left:0}button.woocommerce-table__download-button .woocommerce-table__download-button__label{display:none}}
@@ -1 +0,0 @@
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}.woocommerce-analytics__table-placeholder .woocommerce-card__body{padding:0}.woocommerce-analytics__table-placeholder .woocommerce-table__table{margin-bottom:0}.woocommerce-analytics__table-placeholder .woocommerce-table__table tr:last-child{border-bottom-style:none}
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wc-admin-layout', 'wc-components', 'wc-csv', 'wc-currency', 'wc-customer-effort-score', 'wc-date', 'wc-experimental', 'wc-explat', 'wc-navigation', 'wc-notices', 'wc-number', 'wc-product-editor', 'wc-settings', 'wc-store-data', 'wc-tracks', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-router', 'wp-url', 'wp-warning'), 'version' => 'e6b417c6d179b6215e74');
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wc-admin-layout', 'wc-components', 'wc-csv', 'wc-currency', 'wc-customer-effort-score', 'wc-date', 'wc-experimental', 'wc-explat', 'wc-navigation', 'wc-notices', 'wc-number', 'wc-product-editor', 'wc-settings', 'wc-store-data', 'wc-tracks', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-router', 'wp-url', 'wp-warning'), 'version' => '4763776e86e8a3932f56');
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
<?php return array('version' => 'ba9e4f4b2b2f3632c2e9');
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
<?php return array('version' => '1263ec42acdfd59a9ed7');
@@ -0,0 +1 @@
<?php return array('version' => '238b6a92509f1dcb889c');
@@ -0,0 +1 @@
"use strict";(globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[1090],{11090:(e,o,t)=>{t.r(o),t.d(o,{default:()=>_});var r=t(69307),s=t(65736),n=t(86020),c=t(51393),i=t(14599),l=t(40182),d=t(16686);const a=({shouldTourBeShown:e,dismissModal:o})=>{const{isNewUser:t,loadingPublishedProductsCount:a}=(0,d.E)();(0,r.useEffect)((()=>{e&&(0,i.recordEvent)("block_product_editor_spotlight_view")}),[e]);const[u,p]=(0,r.useState)(!1),{maybeShowFeedbackBar:m}=(0,c.__experimentalUseFeedbackBar)();if(a)return null;if(u)return(0,r.createElement)(l.Z,{isNewUser:t,onCloseGuide:(e,t)=>{o(),"finish"===t?(0,i.recordEvent)("block_product_editor_spotlight_tell_me_more_click"):(0,i.recordEvent)("block_product_editor_spotlight_dismissed",{current_page:e+1}),p(!1),m()}});if(e){const{heading:e,description:c}={heading:t?(0,s.__)("Meet the product editing form","woocommerce"):(0,s.__)("Welcome to the new product form!","woocommerce"),description:t?(0,s.__)("Discover the product form's unique features with a quick overview of what's included.","woocommerce"):(0,s.__)("Discover its new features and improvements with a quick overview of what's included.","woocommerce")};return(0,r.createElement)(n.TourKit,{config:{steps:[{meta:{name:"woocommerce-block-editor-tour",primaryButton:{text:(0,s.__)("View highlights","woocommerce")},descriptions:{desktop:c},heading:(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",null,e),(0,r.createElement)(n.Pill,null,(0,s.__)("Beta","woocommerce")))},referenceElements:{desktop:"#adminmenuback"}}],closeHandler:(e,t,r)=>{"done-btn"===r?((0,i.recordEvent)("block_product_editor_spotlight_view_highlights"),p(!0)):(o(),(0,i.recordEvent)("block_product_editor_spotlight_dismissed",{current_page:0}),m())},options:{effects:{arrowIndicator:!1,overlay:!1,liveResize:{rootElementSelector:"#adminmenuback",resize:!0}},portalParentElement:document.getElementById("wpbody"),popperModifiers:[{name:"bottom-left",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.top="auto",e.styles.popper.left="auto",e.styles.popper.bottom="10px",e.styles.popper.transform="translate3d(10px, 0px, 0px)"}}],classNames:"woocommerce-block-editor-tourkit"}}})}return null};var u=t(67221),p=t(9818);const m="woocommerce_block_product_tour_shown",_=()=>{const e=(()=>{const{updateOptions:e}=(0,p.useDispatch)(u.OPTIONS_STORE_NAME),{shouldTourBeShown:o}=(0,p.useSelect)((e=>{const{getOption:o,hasFinishedResolution:t}=e(u.OPTIONS_STORE_NAME);return{shouldTourBeShown:!("yes"===o(m)||!t("getOption",[m]))}}));return{dismissModal:()=>{e({[m]:"yes"})},shouldTourBeShown:o}})();return(0,r.createElement)(a,e)}}}]);
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1,2 @@
.woocommerce-report-table__scroll-point{position:relative;top:-48px}@media(max-width:782px){.woocommerce-report-table__scroll-point{top:-62px}}.woocommerce-feature-enabled-activity-panels .woocommerce-report-table__scroll-point{top:-108px}@media(max-width:782px){.woocommerce-feature-enabled-activity-panels .woocommerce-report-table__scroll-point{top:-122px}}.woocommerce-report-table .woocommerce-search{flex-grow:1}.woocommerce-report-table .components-card__header{display:grid;grid-gap:12px;grid-template-columns:min-content 1fr min-content}.woocommerce-report-table .woocommerce-table__compare.components-button{padding:8px}.woocommerce-report-table .woocommerce-ellipsis-menu{justify-self:flex-end}button.woocommerce-table__download-button{padding:6px 12px;color:#000;text-decoration:none;align-items:center}button.woocommerce-table__download-button svg{margin-right:8px;height:24px;width:24px}@media(max-width:782px){button.woocommerce-table__download-button svg{margin-right:0}button.woocommerce-table__download-button .woocommerce-table__download-button__label{display:none}}:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media(min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}.woocommerce-table__product-categories>.woocommerce-table__breadcrumbs{display:inline-block;margin-right:12px}.woocommerce-table__product-categories .components-popover__content{padding:0 16px;text-align:left}.woocommerce-table__product-categories .components-popover__content .woocommerce-table__breadcrumbs{margin-top:12px;margin-bottom:12px}
:root{--wp-admin-theme-color: #007cba;--wp-admin-theme-color--rgb: 0, 124, 186;--wp-admin-theme-color-darker-10: #006ba1;--wp-admin-theme-color-darker-10--rgb: 0, 107, 161;--wp-admin-theme-color-darker-20: #005a87;--wp-admin-theme-color-darker-20--rgb: 0, 90, 135;--wp-admin-border-width-focus: 2px}@media(min-resolution: 192dpi){:root{--wp-admin-border-width-focus: 1.5px}}body.admin-color-light{--wp-admin-theme-color: #0085ba;--wp-admin-theme-color--rgb: 0, 133, 186;--wp-admin-theme-color-darker-10: #0073a1;--wp-admin-theme-color-darker-10--rgb: 0, 115, 161;--wp-admin-theme-color-darker-20: #006187;--wp-admin-theme-color-darker-20--rgb: 0, 97, 135;--wp-admin-border-width-focus: 2px}@media(min-resolution: 192dpi){body.admin-color-light{--wp-admin-border-width-focus: 1.5px}}body.admin-color-modern{--wp-admin-theme-color: #3858e9;--wp-admin-theme-color--rgb: 56, 88, 233;--wp-admin-theme-color-darker-10: #2145e6;--wp-admin-theme-color-darker-10--rgb: 33, 69, 230;--wp-admin-theme-color-darker-20: #183ad6;--wp-admin-theme-color-darker-20--rgb: 24, 58, 214;--wp-admin-border-width-focus: 2px}@media(min-resolution: 192dpi){body.admin-color-modern{--wp-admin-border-width-focus: 1.5px}}body.admin-color-blue{--wp-admin-theme-color: #096484;--wp-admin-theme-color--rgb: 9, 100, 132;--wp-admin-theme-color-darker-10: #07526c;--wp-admin-theme-color-darker-10--rgb: 7, 82, 108;--wp-admin-theme-color-darker-20: #064054;--wp-admin-theme-color-darker-20--rgb: 6, 64, 84;--wp-admin-border-width-focus: 2px}@media(min-resolution: 192dpi){body.admin-color-blue{--wp-admin-border-width-focus: 1.5px}}body.admin-color-coffee{--wp-admin-theme-color: #46403c;--wp-admin-theme-color--rgb: 70, 64, 60;--wp-admin-theme-color-darker-10: #383330;--wp-admin-theme-color-darker-10--rgb: 56, 51, 48;--wp-admin-theme-color-darker-20: #2b2724;--wp-admin-theme-color-darker-20--rgb: 43, 39, 36;--wp-admin-border-width-focus: 2px}@media(min-resolution: 192dpi){body.admin-color-coffee{--wp-admin-border-width-focus: 1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color: #523f6d;--wp-admin-theme-color--rgb: 82, 63, 109;--wp-admin-theme-color-darker-10: #46365d;--wp-admin-theme-color-darker-10--rgb: 70, 54, 93;--wp-admin-theme-color-darker-20: #3a2c4d;--wp-admin-theme-color-darker-20--rgb: 58, 44, 77;--wp-admin-border-width-focus: 2px}@media(min-resolution: 192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus: 1.5px}}body.admin-color-midnight{--wp-admin-theme-color: #e14d43;--wp-admin-theme-color--rgb: 225, 77, 67;--wp-admin-theme-color-darker-10: #dd382d;--wp-admin-theme-color-darker-10--rgb: 221, 56, 45;--wp-admin-theme-color-darker-20: #d02c21;--wp-admin-theme-color-darker-20--rgb: 208, 44, 33;--wp-admin-border-width-focus: 2px}@media(min-resolution: 192dpi){body.admin-color-midnight{--wp-admin-border-width-focus: 1.5px}}body.admin-color-ocean{--wp-admin-theme-color: #627c83;--wp-admin-theme-color--rgb: 98, 124, 131;--wp-admin-theme-color-darker-10: #576e74;--wp-admin-theme-color-darker-10--rgb: 87, 110, 116;--wp-admin-theme-color-darker-20: #4c6066;--wp-admin-theme-color-darker-20--rgb: 76, 96, 102;--wp-admin-border-width-focus: 2px}@media(min-resolution: 192dpi){body.admin-color-ocean{--wp-admin-border-width-focus: 1.5px}}body.admin-color-sunrise{--wp-admin-theme-color: #dd823b;--wp-admin-theme-color--rgb: 221, 130, 59;--wp-admin-theme-color-darker-10: #d97426;--wp-admin-theme-color-darker-10--rgb: 217, 116, 38;--wp-admin-theme-color-darker-20: #c36922;--wp-admin-theme-color-darker-20--rgb: 195, 105, 34;--wp-admin-border-width-focus: 2px}@media(min-resolution: 192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus: 1.5px}}.woocommerce-report-table__scroll-point{position:relative;top:-48px}@media(max-width: 782px){.woocommerce-report-table__scroll-point{top:-62px}}.woocommerce-feature-enabled-activity-panels .woocommerce-report-table__scroll-point{top:-108px}@media(max-width: 782px){.woocommerce-feature-enabled-activity-panels .woocommerce-report-table__scroll-point{top:-122px}}.woocommerce-report-table .woocommerce-search{flex-grow:1}.woocommerce-report-table .components-card__header{display:grid;grid-gap:12px;grid-template-columns:min-content 1fr min-content}.woocommerce-report-table .woocommerce-table__compare.components-button{padding:8px}.woocommerce-report-table .woocommerce-ellipsis-menu{justify-self:flex-end}button.woocommerce-table__download-button{padding:6px 12px;color:#000;text-decoration:none;align-items:center}button.woocommerce-table__download-button svg{margin-right:8px;height:24px;width:24px}@media(max-width: 782px){button.woocommerce-table__download-button svg{margin-right:0}button.woocommerce-table__download-button .woocommerce-table__download-button__label{display:none}}
:root{--wp-admin-theme-color: #007cba;--wp-admin-theme-color--rgb: 0, 124, 186;--wp-admin-theme-color-darker-10: #006ba1;--wp-admin-theme-color-darker-10--rgb: 0, 107, 161;--wp-admin-theme-color-darker-20: #005a87;--wp-admin-theme-color-darker-20--rgb: 0, 90, 135;--wp-admin-border-width-focus: 2px}@media(min-resolution: 192dpi){:root{--wp-admin-border-width-focus: 1.5px}}body.admin-color-light{--wp-admin-theme-color: #0085ba;--wp-admin-theme-color--rgb: 0, 133, 186;--wp-admin-theme-color-darker-10: #0073a1;--wp-admin-theme-color-darker-10--rgb: 0, 115, 161;--wp-admin-theme-color-darker-20: #006187;--wp-admin-theme-color-darker-20--rgb: 0, 97, 135;--wp-admin-border-width-focus: 2px}@media(min-resolution: 192dpi){body.admin-color-light{--wp-admin-border-width-focus: 1.5px}}body.admin-color-modern{--wp-admin-theme-color: #3858e9;--wp-admin-theme-color--rgb: 56, 88, 233;--wp-admin-theme-color-darker-10: #2145e6;--wp-admin-theme-color-darker-10--rgb: 33, 69, 230;--wp-admin-theme-color-darker-20: #183ad6;--wp-admin-theme-color-darker-20--rgb: 24, 58, 214;--wp-admin-border-width-focus: 2px}@media(min-resolution: 192dpi){body.admin-color-modern{--wp-admin-border-width-focus: 1.5px}}body.admin-color-blue{--wp-admin-theme-color: #096484;--wp-admin-theme-color--rgb: 9, 100, 132;--wp-admin-theme-color-darker-10: #07526c;--wp-admin-theme-color-darker-10--rgb: 7, 82, 108;--wp-admin-theme-color-darker-20: #064054;--wp-admin-theme-color-darker-20--rgb: 6, 64, 84;--wp-admin-border-width-focus: 2px}@media(min-resolution: 192dpi){body.admin-color-blue{--wp-admin-border-width-focus: 1.5px}}body.admin-color-coffee{--wp-admin-theme-color: #46403c;--wp-admin-theme-color--rgb: 70, 64, 60;--wp-admin-theme-color-darker-10: #383330;--wp-admin-theme-color-darker-10--rgb: 56, 51, 48;--wp-admin-theme-color-darker-20: #2b2724;--wp-admin-theme-color-darker-20--rgb: 43, 39, 36;--wp-admin-border-width-focus: 2px}@media(min-resolution: 192dpi){body.admin-color-coffee{--wp-admin-border-width-focus: 1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color: #523f6d;--wp-admin-theme-color--rgb: 82, 63, 109;--wp-admin-theme-color-darker-10: #46365d;--wp-admin-theme-color-darker-10--rgb: 70, 54, 93;--wp-admin-theme-color-darker-20: #3a2c4d;--wp-admin-theme-color-darker-20--rgb: 58, 44, 77;--wp-admin-border-width-focus: 2px}@media(min-resolution: 192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus: 1.5px}}body.admin-color-midnight{--wp-admin-theme-color: #e14d43;--wp-admin-theme-color--rgb: 225, 77, 67;--wp-admin-theme-color-darker-10: #dd382d;--wp-admin-theme-color-darker-10--rgb: 221, 56, 45;--wp-admin-theme-color-darker-20: #d02c21;--wp-admin-theme-color-darker-20--rgb: 208, 44, 33;--wp-admin-border-width-focus: 2px}@media(min-resolution: 192dpi){body.admin-color-midnight{--wp-admin-border-width-focus: 1.5px}}body.admin-color-ocean{--wp-admin-theme-color: #627c83;--wp-admin-theme-color--rgb: 98, 124, 131;--wp-admin-theme-color-darker-10: #576e74;--wp-admin-theme-color-darker-10--rgb: 87, 110, 116;--wp-admin-theme-color-darker-20: #4c6066;--wp-admin-theme-color-darker-20--rgb: 76, 96, 102;--wp-admin-border-width-focus: 2px}@media(min-resolution: 192dpi){body.admin-color-ocean{--wp-admin-border-width-focus: 1.5px}}body.admin-color-sunrise{--wp-admin-theme-color: #dd823b;--wp-admin-theme-color--rgb: 221, 130, 59;--wp-admin-theme-color-darker-10: #d97426;--wp-admin-theme-color-darker-10--rgb: 217, 116, 38;--wp-admin-theme-color-darker-20: #c36922;--wp-admin-theme-color-darker-20--rgb: 195, 105, 34;--wp-admin-border-width-focus: 2px}@media(min-resolution: 192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus: 1.5px}}.woocommerce-table__product-categories>.woocommerce-table__breadcrumbs{display:inline-block;margin-right:12px}.woocommerce-table__product-categories .components-popover__content{padding:0 16px;text-align:left}.woocommerce-table__product-categories .components-popover__content .woocommerce-table__breadcrumbs{margin-top:12px;margin-bottom:12px}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,6 @@
/*!
* Reconnecting WebSocket
* by Pedro Ladaria <pedro.ladaria@gmail.com>
* https://github.com/pladaria/reconnecting-websocket
* License MIT
*/
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More