This commit is contained in:
root 2020-05-06 15:23:38 +00:00
parent 355112a6a7
commit 87285e02c6
913 changed files with 158709 additions and 131195 deletions

View File

@ -14,4 +14,4 @@
define( 'WP_USE_THEMES', true ); define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */ /** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' ); require __DIR__ . '/wp-blog-header.php';

384
license.txt Normal file
View File

@ -0,0 +1,384 @@
WordPress - Web publishing software
Copyright 2011-2020 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/

102
readme.html Normal file
View File

@ -0,0 +1,102 @@
<!DOCTYPE html>
<html lang="sv">
<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">Semantisk personlig publiceringsplattform</p>
<h2>Först och främst</h2>
<p>Välkommen. För mig är WordPress ett mycket speciellt projekt. Varje utvecklare och bidragsgivare bidrar med något unikt i det hela och tillsammans skapar vi något mycket vackert, som jag är stolt att delta i. WordPress är resultatet av många tusentals timmars arbete, och vi försöker att göra det ännu bättre för var dag. Tack för att du låter det bli en del av din värld.</p>
<p style="text-align: right">&#8212; Matt Mullenweg</p>
<h2>Installation: Den berömda 5-minutersinstallationen</h2>
<ol>
<li>Packa upp zip-filen i en tom katalog och ladda upp hela filstrukturen till din webb-server.</li>
<li>Öppna sidan <span class="file"><a href="wp-admin/install.php">wp-admin/install.php</a></span> i webbläsaren. Detta kommer att ta dig genom processen för att skapa filen <code>wp-config.php</code> som innehåller den nödvändiga informationen för anslutning till webbplatsens underliggande databas.
<ol>
<li>Var inte orolig om den automatiska installationen av någon anledning inte fungerar. Sånt kan hända på vissa webbhotell. Öppna filen <code>wp-config-sample.php</code> i ett textredigeringsprogram, t.ex. WordPad eller liknande, och fyll i informationen om din databasanslutning.</li>
<li>Spara sedan filen under namnet <code>wp-config.php</code> och ladda upp den till webbhotellet.</li>
<li>Öppna <span class="file"><a href="wp-admin/install.php">wp-admin/install.php</a></span> i webbläsaren.</li>
</ol>
</li>
<li>När konfigurationsfilen är färdig kommer installationsproceduren att bygga de databastabeller som din blogg behöver. Om något blir fel bör du kontrollera filen <code>wp-config.php</code> en extra gång och försöka igen. Om det fortfarande inte skulle fungera är du välkommen att besöka <a href="https://sv.wordpress.org/support/" title="WordPress-supporten">support-forumet</a> och berätta om ditt problem. Förbered all information som kan vara till hjälp.</li>
<li><strong>Om du inte angav något lösenord kommer systemet att ge dig ett. Se till att spara det.</strong> Om du inte angav något användarnamn, kommer det att vara <code>admin</code>.</li>
<li>När allt är klart bör installationsprogrammet skicka dig vidare till <a href="wp-login.php">inloggningssidan</a>. Logga in med ditt användarnamn och lösenord som du skapade under installationen. Om systemet skapade ett lösenord åt dig kan du klicka på Användare Din profil för att ändra lösenordet.</li>
</ol>
<h2>Uppdateringar</h2>
<h3>Användning av den automatiska uppdateringen</h3>
<p>Om du uppdaterar från version 2.7 eller senare kan du använda den automatiska uppdateringen:</p>
<ol>
<li>Öppna <span class="file"><a href="wp-admin/update-core.php">wp-admin/update-core.php</a></span> i din webbläsare och följ instruktionerna.</li>
<li>Svårare än så är det inte!</li>
</ol>
<h3>Manuell uppdatering</h3>
<ol>
<li>Se först till att du har säkerhetskopior på alla filer som du eventuellt kan ha ändrat, t.ex. <code>index.php</code>.</li>
<li>Radera dina gamla WordPress-filer, men spara de du gjort ändringar i.</li>
<li>Ladda upp de nya filerna.</li>
<li>Öppna webbläsaren och gå till <span class="file"><a href="wp-admin/upgrade.php">/wp-admin/upgrade.php</a>.</span></li>
</ol>
<h2>Att flytta till WordPress från andra system</h2>
<p>WordPress kan <a href="https://codex.wordpress.org/Importing_Content">importera innehåll från en rad olika system</a>. Börja med att installera och konfigurera WordPress enligt beskrivningen ovan. Sedan kan du använda <a href="wp-admin/import.php" title="Import to WordPress">våra importverktyg</a>.</p>
<h2>Systemkrav</h2>
<ul>
<li><a href="https://secure.php.net/">PHP</a> version <strong>5.6.20</strong> eller senare.</li>
<li><a href="https://www.mysql.com/">MySQL</a> version <strong>5.0</strong> eller senare.</li>
</ul>
<h3>Rekommenderas</h3>
<ul>
<li><a href="https://secure.php.net/">PHP</a> version <strong>7.3</strong> eller senare.</li>
<li><a href="https://www.mysql.com/">MySQL</a> version <strong>5.6</strong> eller senare.</li>
<li>Apache-modulen <a href="https://httpd.apache.org/docs/2.2/mod/mod_rewrite.html">mod_rewrite</a>.</li>
<li>Stöd för <a href="https://wordpress.org/news/2016/12/moving-toward-ssl/">HTTPS</a>.</li>
<li>Länka gärna till <a href="https://wordpress.org/">wordpress.org</a> från din webbplats.</li>
</ul>
<h2>Online-resurser</h2>
<p>Om du undrar över något som inte besvaras i det här dokumentet kan du söka bland all online-information som finns för WordPress:</p>
<dl>
<dt><a href="https://codex.wordpress.org/">WordPress Codex</a></dt>
<dd>Codex är encyklopedin för allt som rör WordPress. Det är den mest omfattande informationskällan som finns för WordPress.</dd>
<dt><a href="https://sv.wordpress.org/news/">WordPress svenska blogg</a></dt>
<dd>Här publiceras bl.a. information om nya versioner av WordPress. Om du använder WordPress på svenska kan du hitta länkar hit från admin-panelen för din WordPress-webbplats.</dd>
<dt><a href="https://wpsv.se/">WPSV</a></dt>
<dd>WPSV är hemmabasen för den svenska communityn kring WordPress. Vi underhåller den svenska versionen av WordPress, ordnar WordPress-träffar, hjälper varandra med support o.s.v. Allt arbete sker på frivillig väg, och du är välkommen att också hjälpa till.</dd>
<dt><a href="https://wordpress.org/news/">Den officiella WordPress-bloggen</a></dt>
<dd>Här hittar du den senaste officiella informationen om WordPress och dess uppdateringar (på engelska). Om du använder WordPress på engelska kan du hitta denna information i din egen admin-panel.</dd>
<dt><a href="https://planet.wordpress.org/">WordPress Planet</a></dt>
<dd>WordPress Planet är en webbplats som samlar artiklar och inlägg om WordPress från en rad olika bloggar runtom i världen (på engelska).</dd>
<dt><a href="https://sv.wordpress.org/support/">WordPress Supportforum</a></dt>
<dd>Om du letat överallt men ändå inte hittat svar på din fråga kan du ställa din fråga till andra WordPress-användare i forumet. Du har störst chans att få hjälp om du ser till att sätta en tydlig, beskrivande rubrik på din fråga och inkludera så detaljerad information som möjligt och om vad du redan har provat. Länken ovan går till det svenska forumet. Det internationella forumet hittar du på <a href="https://wordpress.org/support/">https://wordpress.org/support/</a>.</dd>
<dt><a href="https://codex.wordpress.org/IRC">WordPress <abbr title="Internet Relay Chat">IRC</abbr>-kanal</a></dt>
<dd>Det finns även en chatt-kanal för diskussioner kring WordPress, där man ibland tar upp supportärenden. Länken här ovan leder till en sida med mer information om detta. (<a href="irc://irc.freenode.net/wordpress">irc.freenode.net #wordpress</a>)</dd>
</dl>
<h2>Några ord på vägen</h2>
<ul>
<li>Om du har några förslag, idéer eller kommentarer eller (Ajdå!) har hittat något fel är du välkommen till <a href="https://wordpress.org/support/">support-forumet</a>.</li>
<li>WordPress har ett rejält <abbr title="application programming interface">API</abbr> för tillägg, vilket gör det enkelt att utöka koden med nya funktioner. Om du är utvecklare och funderar på att använda detta rekommenderar vi att du läser <a href="https://developer.wordpress.org/plugins/">Plugin Developer Handbook</a>. Undvik att göra ändringar direkt i filerna i WordPress-kärnan.</li>
</ul>
<h2>Dela med dig</h2>
<p>WordPress har inga dollarmiljoner att spendera på reklam och marknadsföring, men det finns något ännu bättre, nämligen DU. Om du tycker om WordPress, berätta gärna om det för dina vänner. Hjälp någon att komma igång, om de inte klarar det på egen hand.</p>
<p>WordPress är den officiella uppföljaren till <a href="http://cafelog.com/">b2/caf&#233;log</a> som skapades av Michel V. Arbetet har fortsatts av <a href="https://wordpress.org/about/">WordPress-utvecklarna</a>. Om du vill stödja WordPress är du välkommen att göra en <a href="https://wordpress.org/donate/" title="Donera till WordPress">donation</a>.</p>
<h2>Licens</h2>
<p>WordPress är fri programvara som gjorts tillgänglig under villkoren i licensen <abbr title="GNU General Public License">GPL</abbr> version 2 eller (om du så önskar) någon senare version. Se <a href="license.txt">license.txt</a>.</p>
</body>
</html>

View File

@ -9,9 +9,9 @@
define( 'WP_INSTALLING', true ); define( 'WP_INSTALLING', true );
/** Sets up the WordPress Environment. */ /** Sets up the WordPress Environment. */
require( dirname( __FILE__ ) . '/wp-load.php' ); require __DIR__ . '/wp-load.php';
require( dirname( __FILE__ ) . '/wp-blog-header.php' ); require __DIR__ . '/wp-blog-header.php';
if ( ! is_multisite() ) { if ( ! is_multisite() ) {
wp_redirect( wp_registration_url() ); wp_redirect( wp_registration_url() );
@ -37,7 +37,7 @@ if ( isset( $_GET['key'] ) && isset( $_POST['key'] ) && $_GET['key'] !== $_POST[
if ( $key ) { if ( $key ) {
$redirect_url = remove_query_arg( 'key' ); $redirect_url = remove_query_arg( 'key' );
if ( $redirect_url !== remove_query_arg( false ) ) { if ( remove_query_arg( false ) !== $redirect_url ) {
setcookie( $activate_cookie, $key, 0, $activate_path, COOKIE_DOMAIN, is_ssl(), true ); setcookie( $activate_cookie, $key, 0, $activate_path, COOKIE_DOMAIN, is_ssl(), true );
wp_safe_redirect( $redirect_url ); wp_safe_redirect( $redirect_url );
exit; exit;
@ -46,13 +46,13 @@ if ( $key ) {
} }
} }
if ( $result === null && isset( $_COOKIE[ $activate_cookie ] ) ) { if ( null === $result && isset( $_COOKIE[ $activate_cookie ] ) ) {
$key = $_COOKIE[ $activate_cookie ]; $key = $_COOKIE[ $activate_cookie ];
$result = wpmu_activate_signup( $key ); $result = wpmu_activate_signup( $key );
setcookie( $activate_cookie, ' ', time() - YEAR_IN_SECONDS, $activate_path, COOKIE_DOMAIN, is_ssl(), true ); setcookie( $activate_cookie, ' ', time() - YEAR_IN_SECONDS, $activate_path, COOKIE_DOMAIN, is_ssl(), true );
} }
if ( $result === null || ( is_wp_error( $result ) && 'invalid_key' === $result->get_error_code() ) ) { if ( null === $result || ( is_wp_error( $result ) && 'invalid_key' === $result->get_error_code() ) ) {
status_header( 404 ); status_header( 404 );
} elseif ( is_wp_error( $result ) ) { } elseif ( is_wp_error( $result ) ) {
$error_code = $result->get_error_code(); $error_code = $result->get_error_code();
@ -68,7 +68,7 @@ if ( is_object( $wp_object_cache ) ) {
$wp_object_cache->cache_enabled = false; $wp_object_cache->cache_enabled = false;
} }
// Fix for page title // Fix for page title.
$wp_query->is_404 = false; $wp_query->is_404 = false;
/** /**
@ -142,7 +142,7 @@ get_header( 'wp-activate' );
<h2><?php _e( 'Your account is now active!' ); ?></h2> <h2><?php _e( 'Your account is now active!' ); ?></h2>
<?php <?php
echo '<p class="lead-in">'; echo '<p class="lead-in">';
if ( $signup->domain . $signup->path == '' ) { if ( '' === $signup->domain . $signup->path ) {
printf( printf(
/* translators: 1: Login URL, 2: Username, 3: User email address, 4: Lost password URL. */ /* translators: 1: Login URL, 2: Username, 3: User email address, 4: Lost password URL. */
__( 'Your account has been activated. You may now <a href="%1$s">log in</a> to the site using your chosen username of &#8220;%2$s&#8221;. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%4$s">reset your password</a>.' ), __( 'Your account has been activated. You may now <a href="%1$s">log in</a> to the site using your chosen username of &#8220;%2$s&#8221;. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%4$s">reset your password</a>.' ),
@ -162,7 +162,7 @@ get_header( 'wp-activate' );
); );
} }
echo '</p>'; echo '</p>';
} elseif ( $result === null || is_wp_error( $result ) ) { } elseif ( null === $result || is_wp_error( $result ) ) {
?> ?>
<h2><?php _e( 'An error occurred during the activation' ); ?></h2> <h2><?php _e( 'An error occurred during the activation' ); ?></h2>
<?php if ( is_wp_error( $result ) ) : ?> <?php if ( is_wp_error( $result ) ) : ?>
@ -181,7 +181,7 @@ get_header( 'wp-activate' );
</div> </div>
<?php <?php
if ( $url && $url != network_home_url( '', 'http' ) ) : if ( $url && network_home_url( '', 'http' ) !== $url ) :
switch_to_blog( (int) $result['blog_id'] ); switch_to_blog( (int) $result['blog_id'] );
$login_url = wp_login_url(); $login_url = wp_login_url();
restore_current_blog(); restore_current_blog();

View File

@ -7,36 +7,28 @@
*/ */
/** WordPress Administration Bootstrap */ /** WordPress Administration Bootstrap */
require_once( dirname( __FILE__ ) . '/admin.php' ); require_once __DIR__ . '/admin.php';
/* translators: Page title of the About WordPress page in the admin. */ /* translators: Page title of the About WordPress page in the admin. */
$title = _x( 'About', 'page title' ); $title = _x( 'About', 'page title' );
list( $display_version ) = explode( '-', get_bloginfo( 'version' ) ); list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
include( ABSPATH . 'wp-admin/admin-header.php' ); require_once ABSPATH . 'wp-admin/admin-header.php';
?> ?>
<div class="wrap about__container"> <div class="wrap about__container">
<div class="about__header"> <div class="about__header">
<div class="about__header-title"> <div class="about__header-title">
<h1> <p>
<span><?php echo $display_version; ?></span>
<?php _e( 'WordPress' ); ?> <?php _e( 'WordPress' ); ?>
</h1> <span><?php echo $display_version; ?></span>
</p>
</div> </div>
<div class="about__header-badge"></div>
<div class="about__header-text"> <div class="about__header-text">
<p> <p>
<?php <?php _e( 'Building more with blocks, faster and easier.' ); ?>
printf(
/* translators: %s: The current WordPress version number. */
__( 'Introducing our most refined user experience with the improved block editor in WordPress %s!' ),
$display_version
);
?>
</p> </p>
</div> </div>
@ -51,31 +43,6 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
<div class="about__section changelog"> <div class="about__section changelog">
<div class="column"> <div class="column">
<h2><?php _e( 'Maintenance and Security Releases' ); ?></h2> <h2><?php _e( 'Maintenance and Security Releases' ); ?></h2>
<p>
<?php
printf(
/* translators: 1: WordPress version number, 2: plural number of bugs. More than one security issue. */
_n(
'<strong>Version %1$s</strong> addressed %2$s bug.',
'<strong>Version %1$s</strong> addressed %2$s bugs.',
5
),
'5.3.2',
number_format_i18n( 5 )
);
?>
<?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( '5.3.2' )
)
);
?>
</p>
<p> <p>
<?php <?php
printf( printf(
@ -83,10 +50,10 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
_n( _n(
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.', '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.', '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.',
46 11
), ),
'5.3.1', '5.4.1',
number_format_i18n( 46 ) number_format_i18n( 11 )
); );
?> ?>
<?php <?php
@ -96,7 +63,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
sprintf( sprintf(
/* translators: %s: WordPress version */ /* translators: %s: WordPress version */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ), esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
sanitize_title( '5.3.1' ) sanitize_title( '5.4.1' )
) )
); );
?> ?>
@ -106,141 +73,166 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
<hr /> <hr />
<div class="about__section is-feature"> <div class="about__section is-feature has-accent-background-color">
<p> <h1><?php _e( 'Say hello to more and better.' ); ?></h1>
<?php _e( '5.3 expands and refines the block editor introduced in WordPress 5.0 with a new block, more intuitive interactions, and improved accessibility. New features in the editor increase design freedoms, provide additional layout options and style variations to allow designers complete control over the look of a site. This release also introduces the Twenty Twenty theme giving the user more design flexibility and integration with the block editor. Creating beautiful web pages and advanced layouts has never been easier.' ); ?>
</p> <p><?php _e( 'More ways to make your pages come alive. With easier ways to get it all done and looking better than ever&mdash;and boosts in speed you can feel.' ); ?></p>
</div>
<hr />
<div class="about__section has-2-columns has-subtle-background-color">
<h2 class="is-section-header">
<?php
printf(
/* translators: %s: The current WordPress version number. */
__( 'Welcome to WordPress %s.' ),
$display_version
);
?>
</h2>
<div class="column">
<p>
<?php _e( 'Every major release adds more to the block editor.' ); ?>
</p>
<p>
<?php _e( 'More ways to make posts and pages come alive with your best images.' ); ?>
<?php _e( 'More ways to bring your visitors in, and keep them engaged, with the richness of embedded media from the web&#8217;s top services.' ); ?>
</p>
</div>
<div class="column">
<p>
<?php _e( 'More ways to make your vision real, and put blocks in the perfect place&mdash;even if a particular kind of block is new to you. More efficient processes.' ); ?>
</p>
<p>
<?php _e( 'And more speed everywhere, so as you build sections or galleries, or just type in a line of prose, you can feel how much faster your work flows.' ); ?>
</p>
</div>
</div> </div>
<hr /> <hr />
<div class="about__section has-2-columns"> <div class="about__section has-2-columns">
<div class="column is-edge-to-edge has-accent-background-color"> <div class="column is-edge-to-edge">
<div class="about__image aligncenter"> <div class="about__image aligncenter">
<img src="data:image/svg+xml;charset=utf8,%3Csvg width='660' height='818' viewbox='0 0 660 818' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='99' y='178' width='132' height='132' fill='%23F4EFE1'/%3E%3Crect x='231' y='310' width='99' height='99' fill='%2344141E'/%3E%3Crect x='330' y='409' width='132' height='132' fill='%23F4EFE1'/%3E%3Crect x='462' y='541' width='99' height='99' fill='%2344141E'/%3E%3C/svg%3E" alt="" /> <img src="data:image/svg+xml;charset=utf8,%3Csvg width='500' height='500' viewbox='0 0 500 500' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23F3F4F5' d='M0 0h500v500H0z'/%3E%3Cpath d='M346.7 37.645s100.5-2.8 102.6 0c2.1 2.8 0 124.999 0 124.999l-106.9 2.8 4.3-127.8z' fill='%232CA8EB'/%3E%3Cpath d='M343.5 185.844s100.5-1.9 102.6 0c2.1 1.9 1.1 125.9 4.3 127.8 3.2 1.9-100.5 1.9-104.8 2.8-4.3.9-2.1-130.6-2.1-130.6z' fill='%237CAED2'/%3E%3Cpath d='M195.6 186.744s102.7 2.8 106.9 2.8c4.2 0 7.4 120.4 4.2 122.2-3.2 1.9-106.9 2.8-106.9 2.8s2.1-126.9-4.2-127.8z' fill='%2381A4D4'/%3E%3Cpath d='M152.8 192.344s2.1 124.1 4.3 126.9c2.1 2.7-109.1 1.8-109.1 1.8v-128.7h104.8z' fill='%235DC3D8'/%3E%3Cpath d='M152 464.544H56v-119.8l101-1.7s-8.9 118-5 121.5z' fill='%230574E2'/%3E%3Cpath d='M195 35.844h101.6s-8.6 119.4 0 125c8.6 5.6-101.6 3.7-101.6 3.7v-128.7z' fill='%23216BCE'/%3E%3Cpath d='M302.3 463.844s-102.9 2.8-105.1 0c-2.2-2.8 0-125 0-125l109.5-2.8-4.4 127.8z' fill='%231C99D1'/%3E%3Cpath d='M346.2 464.544s-2.1-124.1-4.3-126.9c-2.1-2.8 109.1-1.9 109.1-1.9v128.7H346.2v.1z' fill='%231B44DD'/%3E%3Cpath d='M50.2 35.844s100.5-1.9 102.6 0c2.1 1.9 1.1 125.9 4.3 127.8 3.2 1.9-100.5 1.9-104.8 2.8-4.3.9-2.1-130.6-2.1-130.6z' fill='%231B36BC'/%3E%3C/svg%3E" alt="" />
</div> </div>
</div> </div>
<div class="column is-vertically-aligned-center"> <div class="column is-vertically-aligned-center">
<h2><?php _e( 'Block Editor Improvements' ); ?></h2> <h2><?php _e( 'Two new blocks. And better blocks overall.' ); ?></h2>
<p>
<?php _e( 'This enhancement-focused update introduces over 150 new features and usability improvements, including improved large image support for uploading non-optimized, high-resolution pictures taken from your smartphone or other high-quality cameras. Combined with larger default image sizes, pictures always look their best.' ); ?>
</p>
<p>
<?php _e( 'Accessibility improvements include the integration of block editor styles in the admin interface. These improved styles fix many accessibility issues: color contrast on form fields and buttons, consistency between editor and admin interfaces, new snackbar notices, standardizing to the default WordPress color scheme, and the introduction of Motion to make interacting with your blocks feel swift and natural. For people who use a keyboard to navigate the dashboard, the block editor now has a Navigation mode. This lets you jump from block to block without tabbing through every part of the block controls.' ); ?>
</p>
</div>
</div>
<div class="about__section has-2-columns">
<div class="column is-vertically-aligned-center">
<h2><?php _e( 'Expanded Design Flexibility' ); ?></h2>
<p>
<?php
printf(
/* translators: %s: The current WordPress version number. */
__( 'WordPress %s adds even more robust tools for creating amazing designs.' ),
$display_version
);
?>
</p>
<ul> <ul>
<li><?php _e( 'The new Group block lets you easily divide your page into colorful sections' ); ?></li> <li><?php _e( 'Two brand-new blocks: Social Icons and Buttons make adding interactive features fast and easy.' ); ?></li>
<li><?php _e( 'The Columns block now supports fixed column widths' ); ?></li> <li><?php _e( 'New ways with color: Gradients in the Buttons and Cover block, toolbar access to color options in Rich Text blocks, and for the first time, color options in the Group and Columns blocks.' ); ?></li>
<li><?php _e( 'The new Predefined layouts make it a cinch to arrange content into advanced designs' ); ?></li> <li><?php _e( 'Guess a whole lot less! Version 5.4 streamlines the whole process for placing and replacing multimedia in every block. Now it works the same way in almost every block!' ); ?></li>
<li><?php _e( 'Heading blocks now offer controls for text color' ); ?></li> <li><?php _e( 'And if you&#8217;ve ever thought your image in the Media+Text block should link to something else&mdash;perhaps a picture of a brochure should download that brochure as a document? Well, now it can.' ); ?></li>
<li><?php _e( 'Additional style options allow you to set your preferred style for any block that supports this feature' ); ?></li>
</ul> </ul>
</div> </div>
<div class="column is-edge-to-edge has-accent-background-color">
<div class="about__image aligncenter">
<img src="data:image/svg+xml;charset=utf8,%3Csvg width='500' height='500' viewbox='0 0 500 500' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='75' y='200' width='150' height='75' fill='%2344141E'/%3E%3Crect x='175' y='75' width='50' height='100' fill='%2385273B'/%3E%3Crect x='75' y='75' width='75' height='100' fill='%23F4EFE1'/%3E%3Crect x='250' y='200' width='175' height='75' fill='%2344141E'/%3E%3Crect x='350' y='75' width='75' height='100' fill='%2385273B'/%3E%3Crect x='250' y='75' width='75' height='100' fill='%23F4EFE1'/%3E%3Crect x='75' y='375' width='150' height='50' fill='%2344141E'/%3E%3Crect x='175' y='300' width='50' height='50' fill='%2385273B'/%3E%3Crect x='75' y='300' width='75' height='50' fill='%23F4EFE1'/%3E%3Crect x='250' y='372.5' width='175' height='52.5' fill='%2344141E'/%3E%3Crect x='350' y='300' width='75' height='50' fill='%2385273B'/%3E%3Crect x='250' y='300' width='75' height='50' fill='%23F4EFE1'/%3E%3C/svg%3E%0A" alt="">
</div>
</div>
</div> </div>
<div class="about__section has-2-columns has-subtle-background-color"> <div class="about__section has-2-columns">
<div class="column is-vertically-aligned-center"> <div class="column is-vertically-aligned-center">
<h2><?php _e( 'Introducing Twenty Twenty' ); ?></h2> <h2><?php _e( 'Cleaner UI, clearer navigation—and easier tabbing!' ); ?></h2>
<p><?php _e( 'As the block editor celebrates its first birthday, we are proud that Twenty Twenty is designed with flexibility at its core. Show off your services or products with a combination of columns, groups, and media blocks. Set your content to wide or full alignment for dynamic and engaging layouts. Or let your thoughts be the star with a centered content column!' ); ?></p> <ul>
<li><?php _e( 'Clearer block navigation with block breadcrumbs. And easier selection once you get there.' ); ?></li>
<p> <li><?php _e( 'For when you need to navigate with the keyboard, better tabbing and focus. Plus, you can tab over to the sidebar of nearly any block.' ); ?></li>
<?php <li><?php _e( 'Speed! 14% faster loading of the editor, 51% faster time-to-type!' ); ?></li>
printf( <li><?php _e( 'Tips are gone. In their place, a Welcome Guide window you can bring up when you need it&mdash;and only when you need it&mdash;again and again.' ); ?></li>
/* translators: %s: Link to the Inter font website. */ <li><?php _e( 'Know at a glance whether you&#8217;re in a block&#8217;s Edit or Navigation mode. Or, if you have restricted vision, your screen reader will tell you which mode you&#8217;re in.' ); ?></li>
__( 'As befits a theme called Twenty Twenty, clarity and readability is also a big focus. The theme includes the typeface <a href="%s">Inter</a>, designed by Rasmus Andersson. Inter comes in a Variable Font version, a first for default themes, which keeps load times short by containing all weights and styles of Inter in just two font files.' ), </ul>
'https://rsms.me/inter/' <p><?php _e( 'Of course, if you want to work with the very latest tools and features, install the <a href="https://wordpress.org/plugins/gutenberg/">Gutenberg plugin</a>. You&#8217;ll get to be the first to use new and exciting features in the block editor, before anyone else has seen them!' ); ?></p>
);
?>
</p>
</div> </div>
<div class="column is-edge-to-edge"> <div class="column is-edge-to-edge">
<div class="about__image aligncenter"> <div class="about__image aligncenter">
<img src="https://s.w.org/images/core/5.3/twentytwenty-mobile.png" alt="" /> <img src="data:image/svg+xml;charset=utf8,%3Csvg width='500' height='500' viewbox='0 0 500 500' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23F3F4F5' d='M0 0h500v500H0z'/%3E%3Cg clip-path='url(%23clip0)'%3E%3Cpath d='M169.6 171.55l-.3 72.3 330.7-1v-72.6l-330.4 1.3z' fill='%230740B3'/%3E%3Cpath d='M291.2 97.85l-1.3-14.8-63.4-.7v76c0 3.6 176.7 4.1 273.5 4.1v-64.5H291.2v-.1z' fill='%230285D7'/%3E%3Cpath d='M500 27.75l-215.5-5.9 5.4 61.2 210.1 2.5v-57.8z' fill='%231730E5'/%3E%3Cpath d='M500 97.85v-12.3l-210.1-2.5 1.3 14.8H500z' fill='%230285D7'/%3E%3Cpath d='M500 97.85v-12.3l-210.1-2.5 1.3 14.8H500z' fill='%231730E5' style='mix-blend-mode:multiply'/%3E%3Cpath d='M255.2 379.75l-1-49.2-229.2.3-2 69.7 477-1.3v-24.3l-244.8 4.8z' fill='%230285D7'/%3E%3Cpath d='M500 424.35v-15l-430.8 1.2-4 51.5 134.6-.5v-34.4c.1-2.8 214.4-2.9 300.2-2.8z' fill='%230878FF'/%3E%3Cpath d='M500 290.05l-246.4 4.3.6 36.2 245.8-.3v-40.2z' fill='%23072CF0'/%3E%3Cpath d='M500 374.95v-44.7l-245.8.3 1 49.2 244.8-4.8z' fill='%230285D7'/%3E%3Cpath d='M500 374.95v-44.7l-245.8.3 1 49.2 244.8-4.8z' fill='%23072CF0' style='mix-blend-mode:multiply'/%3E%3Cpath d='M199.9 461.55v17.6l300.1-2.4v-16.3l-300.1 1.1z' fill='%230285D7'/%3E%3Cpath d='M500 424.35c-85.8-.1-300.1 0-300.1 2.8v34.4l300.1-1.1v-36.1z' fill='%230878FF'/%3E%3Cpath d='M500 424.35c-85.8-.1-300.1 0-300.1 2.8v34.4l300.1-1.1v-36.1z' fill='%230285D7' style='mix-blend-mode:multiply'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0'%3E%3Cpath transform='rotate(-90 23 479.15)' fill='%23fff' d='M23 479.15h457.3v477H23z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E" alt="">
</div> </div>
</div> </div>
</div> </div>
<div class="about__section has-subtle-background-color"> <div class="about__section has-2-columns">
<div class="column is-edge-to-edge"> <div class="column is-edge-to-edge">
<div class="about__image aligncenter"> <div class="about__image aligncenter">
<img src="https://s.w.org/images/core/5.3/twentytwenty-desktop.png" alt="" /> <img src="data:image/svg+xml;charset=utf8,%3Csvg width='500' height='500' viewbox='0 0 500 500' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23F3F4F5' d='M0 0h500v500H0z'/%3E%3Cpath d='M31.3 284.4c-2-.1 12.2-250.6 12.2-250.6s94.8 4.4 99.7 5.2c.3 21.8 4.1 250.1 4.1 250.1l-116-4.7z' fill='%231730E5'/%3E%3Cpath d='M346.8 467.4l-11.7-305.9 138.2 2.4-3 304.1-123.5-.6z' fill='%230840B3'/%3E%3Cpath d='M287.7 34.9c2.3 0 5.9 398.5 5.9 398.5s-109.6-2.2-115 .6c-5.4 2.8 10.6-400.5 10.6-400.5l98.5 1.4z' fill='%23018BDE'/%3E%3Cpath d='M372.3 138c32.585 0 59-26.415 59-59s-26.415-59-59-59-59 26.415-59 59 26.415 59 59 59z' fill='%23062EF7'/%3E%3Cpath d='M35.8 315c-12.8 0-24.9 2.9-35.8 8.1v148.7c10.8 5.2 22.9 8.1 35.8 8.1 45.6 0 82.5-36.9 82.5-82.5S81.3 315 35.8 315z' fill='%231C87C0'/%3E%3C/svg%3E" alt="" />
</div> </div>
</div> </div>
<div class="column is-vertically-aligned-center">
<h2><?php _e( 'Your fundamental right: privacy' ); ?></h2>
<p><?php _e( '5.4 helps with a variety of privacy issues around the world. So when users and stakeholders ask about regulatory compliance, or how your team handles user data, the answers should be a lot easier to get right.' ); ?></p>
<p><?php _e( 'Take a look:' ); ?></p>
<ul>
<li><?php _e( 'Now personal data exports include users session information and users location data from the community events widget. Plus, a table of contents!' ); ?></li>
<li><?php _e( 'See progress as you process export and erasure requests through the privacy tools.' ); ?></li>
<li><?php _e( 'Plus, little enhancements throughout give the privacy tools a little cleaner look. Your eyes will thank you!' ); ?></li>
</ul>
</div>
</div> </div>
<hr /> <hr />
<div class="about__section has-3-columns"> <div class="about__section ">
<h2 class="is-section-header"><?php _e( 'Improvements for Everyone' ); ?></h2> <div class="column has-subtle-background-color">
<h2 class="is-section-header"><?php _e( 'Just for developers' ); ?></h2>
<div class="column">
<h3><?php _e( 'Automatic Image Rotation' ); ?></h3>
<p><?php _e( 'Your images will be correctly rotated upon upload according to the embedded orientation data. This feature was first proposed nine years ago and made possible through the perserverance of many dedicated contributors.' ); ?></p>
</div>
<div class="column">
<h3><?php _e( 'Site Health Checks' ); ?></h3>
<p><?php _e( 'The improvements introduced in 5.3 make it even easier to identify issues. Expanded recommendations highlight areas that may need troubleshooting on your site from the Health Check screen.' ); ?></p>
</div>
<div class="column">
<h3><?php _e( 'Admin Email Verification' ); ?></h3>
<p><?php _e( 'Youll now be periodically asked to confirm that your admin email address is up to date when you log in as an administrator. This reduces the chance of getting locked out of your site if you change your email address.' ); ?></p>
</div> </div>
</div> </div>
<hr class="is-small" />
<div class="about__section"> <div class="about__section">
<div class="column is-edge-to-edge"> <div class="about__image aligncenter">
<div class="about__image aligncenter"> <img src="data:image/svg+xml;charset=utf8,%3Csvg width='1000' height='500' viewbox='0 0 1000 500' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M761 360.917H428v66.8h333v-66.8z' fill='%230574E2'/%3E%3Cpath d='M921 399.801H592.2v99.7H921v-99.7z' fill='%231C99D1'/%3E%3Cpath d='M288.1 378.963c46.392 0 84-37.496 84-83.749 0-46.253-37.608-83.748-84-83.748s-84 37.495-84 83.748c0 46.253 37.608 83.749 84 83.749z' fill='%230F7DEA'/%3E%3Cpath d='M553.3 191.426H272.5v85.742h280.8v-85.742z' fill='%231730E5'/%3E%3Cpath d='M785 151.545H499.4v77.169H785v-77.169z' fill='%231C99D1'/%3E%3Cpath d='M777.3 284.247c50.258 0 91-40.62 91-90.728 0-50.107-40.742-90.727-91-90.727s-91 40.62-91 90.727c0 50.108 40.742 90.728 91 90.728z' fill='%231826D3'/%3E%3Cpath d='M635 33.898H413v101.695h222V33.898zM1000 303.091H708v76.769h292v-76.769zM366 102.692H0v66.799h366v-66.799z' fill='%230574E2'/%3E%3Cpath d='M275 24.925H96v93.719h179V24.925z' fill='%231C99D1'/%3E%3Cpath d='M861 0H573v66.8h288V0z' fill='%231730E5'/%3E%3Cpath d='M436 440.678c35.346 0 64-28.568 64-63.809 0-35.24-28.654-63.808-64-63.808-35.346 0-64 28.568-64 63.808 0 35.241 28.654 63.809 64 63.809z' fill='%23236FE8'/%3E%3Cpath d='M428 449.651H171.4V500H428v-50.349z' fill='%231C99D1'/%3E%3Cpath d='M318 404.786H77v63.908h241v-63.908z' fill='%231826D3'/%3E%3Cpath d='M818 258.225H600v73.281h218v-73.281zM613 117.647H456v93.719h157v-93.719zM96.1 198.604c18.833 0 34.1-15.221 34.1-33.998 0-18.776-15.267-33.998-34.1-33.998-18.833 0-34.1 15.222-34.1 33.998 0 18.777 15.267 33.998 34.1 33.998z' fill='%231C99D1'/%3E%3C/svg%3E" alt="">
<img src="data:image/svg+xml;charset=utf8,%3Csvg width='1000' height='498' viewbox='0 0 1000 498' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='865.463' y='36.8596' width='133.8' height='132.326' fill='%23942F44'/%3E%3Crect x='865.463' y='180.98' width='133.8' height='132.326' fill='%23942F44'/%3E%3Crect x='866.2' y='328.05' width='133.8' height='132.694' fill='%23942F44'/%3E%3Crect y='331.736' width='405.455' height='134.169' fill='%234E1521'/%3E%3Crect y='36.8596' width='405.455' height='129.008' fill='%234E1521'/%3E%3Crect y='184.298' width='387.025' height='133.8' fill='%234E1521'/%3E%3Crect x='719.13' y='34.6479' width='133.8' height='428.677' fill='%23BD3854'/%3E%3Crect x='571.323' y='18.4297' width='133.8' height='423.885' fill='%23BD3854'/%3E%3Crect x='423.516' y='35.0164' width='133.8' height='425.728' fill='%23BD3854'/%3E%3C/svg%3E" alt="" />
</div>
</div> </div>
</div> </div>
<hr /> <hr class="is-small" />
<div class="about__section has-2-columns has-subtle-background-color">
<h2 class="is-section-header"><?php _e( 'For Developers' ); ?></h2>
<div class="about__section has-2-columns">
<div class="column"> <div class="column">
<h3><?php _e( 'Date/Time Component Fixes' ); ?></h3> <h3><?php _e( 'Add custom fields to menu items—natively' ); ?></h3>
<p>
<?php _e( 'Two new actions let you add custom fields to menu items&mdash;without a plugin and without writing custom walkers.' ); ?>
</p>
<p> <p>
<?php <?php
printf( printf(
/* translators: %s: Link to the date/time developer notes. */ /* translators: %s: 'wp_nav_menu_item_custom_fields' action name. */
__( 'Developers can now work with <a href="%s">dates and timezones</a> in a more reliable way. Date and time functionality has received a number of new API functions for unified timezone retrieval and PHP interoperability, as well as many bug fixes.' ), __( 'On the Menus admin screen, %s fires just before the move buttons of a nav menu item in the menu editor.' ),
'https://make.wordpress.org/core/2019/09/23/date-time-improvements-wp-5-3/' '<code>wp_nav_menu_item_custom_fields</code>'
); );
?> ?>
</p> </p>
</div>
<div class="column">
<h3><?php _e( 'PHP 7.4 Compatibility' ); ?></h3>
<p> <p>
<?php <?php
printf( printf(
/* translators: %s: Link to the PHP 7 developer notes. */ /* translators: %s: 'wp_nav_menu_item_custom_fields_customize_template' action name. */
__( 'WordPress 5.3 aims to fully support PHP 7.4. This release contains <a href="%s">multiple changes</a> to remove deprecated functionality and ensure compatibility. WordPress continues to encourage all users to run the latest and greatest versions of PHP.' ), __( 'In the Customizer, %s fires at the end of the menu-items form-fields template.' ),
'https://make.wordpress.org/core/2019/10/11/wordpress-and-php-7-4/' '<code>wp_nav_menu_item_custom_fields_customize_template</code>'
);
?>
</p>
<p>
<?php _e( 'Check your code and see where these new actions can replace your custom code, and if you&#8217;re concerned about duplication, add a check for the WordPress version.' ); ?>
</p>
</div>
<div class="column">
<h3><?php _e( 'Blocks! Simpler styling, new APIs and embeds' ); ?></h3>
<ul>
<li><?php _e( '<strong>Radically</strong> simpler block styling. Negative margins and default padding are gone! Now you can style blocks the way you need them. And, a refactor got rid of four redundant wrapper divs.' ); ?></li>
<li><?php _e( 'If you build plugins, now you can register collections of your blocks by namespace across categories—a great way to get more brand visibility.' ); ?></li>
<li><?php _e( 'Let users do more with two new APIs: block variations and gradients.' ); ?></li>
<li><?php _e( 'In embeds, now the block editor supports TikTok—and CollegeHumor is gone.' ); ?></li>
</ul>
</div>
</div>
<hr class="is-small" />
<div class="about__section">
<div class="column">
<p>
<?php
printf(
/* translators: %s: WordPress 5.4 Field Guide link. */
__( 'There&#8217;s lots more for developers to love in WordPress 5.4. To discover more and learn how to make these changes shine on your sites, themes, plugins and more, check the <a href="%s">WordPress 5.4 Field Guide</a>.' ),
'https://make.wordpress.org/core/2020/03/03/wordpress-5-4-field-guide/'
); );
?> ?>
</p> </p>
@ -260,7 +252,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
</div> </div>
<?php <?php
include( ABSPATH . 'wp-admin/admin-footer.php' ); require_once ABSPATH . 'wp-admin/admin-footer.php';
// These are strings we may use to describe maintenance/security releases, where we aim for no new strings. // These are strings we may use to describe maintenance/security releases, where we aim for no new strings.
return; return;

View File

@ -19,7 +19,7 @@ if ( ! defined( 'WP_ADMIN' ) ) {
} }
/** Load WordPress Bootstrap */ /** Load WordPress Bootstrap */
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' ); require_once dirname( __DIR__ ) . '/wp-load.php';
/** Allow for cross-domain requests (from the front end). */ /** Allow for cross-domain requests (from the front end). */
send_origin_headers(); send_origin_headers();
@ -27,16 +27,16 @@ send_origin_headers();
header( 'Content-Type: text/html; charset=' . get_option( 'blog_charset' ) ); header( 'Content-Type: text/html; charset=' . get_option( 'blog_charset' ) );
header( 'X-Robots-Tag: noindex' ); header( 'X-Robots-Tag: noindex' );
// Require an action parameter // Require an action parameter.
if ( empty( $_REQUEST['action'] ) ) { if ( empty( $_REQUEST['action'] ) ) {
wp_die( '0', 400 ); wp_die( '0', 400 );
} }
/** Load WordPress Administration APIs */ /** Load WordPress Administration APIs */
require_once( ABSPATH . 'wp-admin/includes/admin.php' ); require_once ABSPATH . 'wp-admin/includes/admin.php';
/** Load Ajax Handlers for WordPress Core */ /** Load Ajax Handlers for WordPress Core */
require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' ); require_once ABSPATH . 'wp-admin/includes/ajax-actions.php';
send_nosniff_header(); send_nosniff_header();
nocache_headers(); nocache_headers();
@ -141,7 +141,7 @@ $core_actions_post = array(
'health-check-get-sizes', 'health-check-get-sizes',
); );
// Deprecated // Deprecated.
$core_actions_post_deprecated = array( 'wp-fullscreen-save-post', 'press-this-save-post', 'press-this-add-category' ); $core_actions_post_deprecated = array( 'wp-fullscreen-save-post', 'press-this-save-post', 'press-this-add-category' );
$core_actions_post = array_merge( $core_actions_post, $core_actions_post_deprecated ); $core_actions_post = array_merge( $core_actions_post, $core_actions_post_deprecated );
@ -189,5 +189,5 @@ if ( is_user_logged_in() ) {
*/ */
do_action( "wp_ajax_nopriv_{$action}" ); do_action( "wp_ajax_nopriv_{$action}" );
} }
// Default status // Default status.
wp_die( '0' ); wp_die( '0' );

View File

@ -6,7 +6,7 @@
* @subpackage Administration * @subpackage Administration
*/ */
// don't load directly // Don't load directly.
if ( ! defined( 'ABSPATH' ) ) { if ( ! defined( 'ABSPATH' ) ) {
die( '-1' ); die( '-1' );
} }
@ -104,7 +104,7 @@ do_action( 'admin_print_footer_scripts' );
*/ */
do_action( "admin_footer-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores do_action( "admin_footer-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
// get_site_option() won't exist when auto upgrading from <= 2.7 // get_site_option() won't exist when auto upgrading from <= 2.7.
if ( function_exists( 'get_site_option' ) ) { if ( function_exists( 'get_site_option' ) ) {
if ( false === get_site_option( 'can_compress_scripts' ) ) { if ( false === get_site_option( 'can_compress_scripts' ) ) {
compression_test(); compression_test();

View File

@ -12,4 +12,4 @@
_deprecated_file( basename( __FILE__ ), '2.5.0', 'wp-admin/includes/admin.php' ); _deprecated_file( basename( __FILE__ ), '2.5.0', 'wp-admin/includes/admin.php' );
/** WordPress Administration API: Includes all Administration functions. */ /** WordPress Administration API: Includes all Administration functions. */
require_once( ABSPATH . 'wp-admin/includes/admin.php' ); require_once ABSPATH . 'wp-admin/includes/admin.php';

View File

@ -8,7 +8,7 @@
header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) ); header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) );
if ( ! defined( 'WP_ADMIN' ) ) { if ( ! defined( 'WP_ADMIN' ) ) {
require_once( dirname( __FILE__ ) . '/admin.php' ); require_once __DIR__ . '/admin.php';
} }
/** /**
@ -233,7 +233,7 @@ if ( current_user_can( 'customize' ) ) {
?> ?>
<div id="wpwrap"> <div id="wpwrap">
<?php require( ABSPATH . 'wp-admin/menu-header.php' ); ?> <?php require ABSPATH . 'wp-admin/menu-header.php'; ?>
<div id="wpcontent"> <div id="wpcontent">
<?php <?php
@ -288,6 +288,6 @@ if ( is_network_admin() ) {
*/ */
do_action( 'all_admin_notices' ); do_action( 'all_admin_notices' );
if ( $parent_file == 'options-general.php' ) { if ( 'options-general.php' === $parent_file ) {
require( ABSPATH . 'wp-admin/options-head.php' ); require ABSPATH . 'wp-admin/options-head.php';
} }

View File

@ -14,15 +14,15 @@ if ( ! defined( 'WP_ADMIN' ) ) {
} }
if ( defined( 'ABSPATH' ) ) { if ( defined( 'ABSPATH' ) ) {
require_once( ABSPATH . 'wp-load.php' ); require_once ABSPATH . 'wp-load.php';
} else { } else {
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' ); require_once dirname( __DIR__ ) . '/wp-load.php';
} }
/** Allow for cross-domain requests (from the front end). */ /** Allow for cross-domain requests (from the front end). */
send_origin_headers(); send_origin_headers();
require_once( ABSPATH . 'wp-admin/includes/admin.php' ); require_once ABSPATH . 'wp-admin/includes/admin.php';
nocache_headers(); nocache_headers();

View File

@ -31,7 +31,7 @@ if ( isset( $_GET['import'] ) && ! defined( 'WP_LOAD_IMPORTERS' ) ) {
define( 'WP_LOAD_IMPORTERS', true ); define( 'WP_LOAD_IMPORTERS', true );
} }
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' ); require_once dirname( __DIR__ ) . '/wp-load.php';
nocache_headers(); nocache_headers();
@ -72,8 +72,8 @@ if ( get_option( 'db_upgraded' ) ) {
* If there are 50 or fewer sites, run every time. Otherwise, throttle to reduce load: * If there are 50 or fewer sites, run every time. Otherwise, throttle to reduce load:
* attempt to do no more than threshold value, with some +/- allowed. * attempt to do no more than threshold value, with some +/- allowed.
*/ */
if ( $c <= 50 || ( $c > 50 && mt_rand( 0, (int) ( $c / 50 ) ) == 1 ) ) { if ( $c <= 50 || ( $c > 50 && mt_rand( 0, (int) ( $c / 50 ) ) === 1 ) ) {
require_once( ABSPATH . WPINC . '/http.php' ); require_once ABSPATH . WPINC . '/http.php';
$response = wp_remote_get( $response = wp_remote_get(
admin_url( 'upgrade.php?step=1' ), admin_url( 'upgrade.php?step=1' ),
array( array(
@ -89,16 +89,16 @@ if ( get_option( 'db_upgraded' ) ) {
} }
} }
require_once( ABSPATH . 'wp-admin/includes/admin.php' ); require_once ABSPATH . 'wp-admin/includes/admin.php';
auth_redirect(); auth_redirect();
// Schedule trash collection // Schedule Trash collection.
if ( ! wp_next_scheduled( 'wp_scheduled_delete' ) && ! wp_installing() ) { if ( ! wp_next_scheduled( 'wp_scheduled_delete' ) && ! wp_installing() ) {
wp_schedule_event( time(), 'daily', 'wp_scheduled_delete' ); wp_schedule_event( time(), 'daily', 'wp_scheduled_delete' );
} }
// Schedule Transient cleanup. // Schedule transient cleanup.
if ( ! wp_next_scheduled( 'delete_expired_transients' ) && ! wp_installing() ) { if ( ! wp_next_scheduled( 'delete_expired_transients' ) && ! wp_installing() ) {
wp_schedule_event( time(), 'daily', 'delete_expired_transients' ); wp_schedule_event( time(), 'daily', 'delete_expired_transients' );
} }
@ -146,11 +146,11 @@ if ( isset( $_REQUEST['taxonomy'] ) && taxonomy_exists( $_REQUEST['taxonomy'] )
} }
if ( WP_NETWORK_ADMIN ) { if ( WP_NETWORK_ADMIN ) {
require( ABSPATH . 'wp-admin/network/menu.php' ); require ABSPATH . 'wp-admin/network/menu.php';
} elseif ( WP_USER_ADMIN ) { } elseif ( WP_USER_ADMIN ) {
require( ABSPATH . 'wp-admin/user/menu.php' ); require ABSPATH . 'wp-admin/user/menu.php';
} else { } else {
require( ABSPATH . 'wp-admin/menu.php' ); require ABSPATH . 'wp-admin/menu.php';
} }
if ( current_user_can( 'manage_options' ) ) { if ( current_user_can( 'manage_options' ) ) {
@ -181,8 +181,8 @@ if ( isset( $plugin_page ) ) {
$page_hook = get_plugin_page_hook( $plugin_page, $plugin_page ); $page_hook = get_plugin_page_hook( $plugin_page, $plugin_page );
// Back-compat for plugins using add_management_page(). // Back-compat for plugins using add_management_page().
if ( empty( $page_hook ) && 'edit.php' == $pagenow && '' != get_plugin_page_hook( $plugin_page, 'tools.php' ) ) { if ( empty( $page_hook ) && 'edit.php' === $pagenow && get_plugin_page_hook( $plugin_page, 'tools.php' ) ) {
// There could be plugin specific params on the URL, so we need the whole query string // There could be plugin specific params on the URL, so we need the whole query string.
if ( ! empty( $_SERVER['QUERY_STRING'] ) ) { if ( ! empty( $_SERVER['QUERY_STRING'] ) ) {
$query_string = $_SERVER['QUERY_STRING']; $query_string = $_SERVER['QUERY_STRING'];
} else { } else {
@ -231,7 +231,7 @@ if ( isset( $plugin_page ) ) {
*/ */
do_action( "load-{$page_hook}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores do_action( "load-{$page_hook}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
if ( ! isset( $_GET['noheader'] ) ) { if ( ! isset( $_GET['noheader'] ) ) {
require_once( ABSPATH . 'wp-admin/admin-header.php' ); require_once ABSPATH . 'wp-admin/admin-header.php';
} }
/** /**
@ -277,17 +277,17 @@ if ( isset( $plugin_page ) ) {
do_action( "load-{$plugin_page}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores do_action( "load-{$plugin_page}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
if ( ! isset( $_GET['noheader'] ) ) { if ( ! isset( $_GET['noheader'] ) ) {
require_once( ABSPATH . 'wp-admin/admin-header.php' ); require_once ABSPATH . 'wp-admin/admin-header.php';
} }
if ( file_exists( WPMU_PLUGIN_DIR . "/$plugin_page" ) ) { if ( file_exists( WPMU_PLUGIN_DIR . "/$plugin_page" ) ) {
include( WPMU_PLUGIN_DIR . "/$plugin_page" ); include WPMU_PLUGIN_DIR . "/$plugin_page";
} else { } else {
include( WP_PLUGIN_DIR . "/$plugin_page" ); include WP_PLUGIN_DIR . "/$plugin_page";
} }
} }
include( ABSPATH . 'wp-admin/admin-footer.php' ); require_once ABSPATH . 'wp-admin/admin-footer.php';
exit(); exit();
} elseif ( isset( $_GET['import'] ) ) { } elseif ( isset( $_GET['import'] ) ) {
@ -322,10 +322,10 @@ if ( isset( $plugin_page ) ) {
$title = __( 'Import' ); $title = __( 'Import' );
if ( ! isset( $_GET['noheader'] ) ) { if ( ! isset( $_GET['noheader'] ) ) {
require_once( ABSPATH . 'wp-admin/admin-header.php' ); require_once ABSPATH . 'wp-admin/admin-header.php';
} }
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); require_once ABSPATH . 'wp-admin/includes/upgrade.php';
define( 'WP_IMPORTING', true ); define( 'WP_IMPORTING', true );
@ -345,9 +345,9 @@ if ( isset( $plugin_page ) ) {
call_user_func( $wp_importers[ $importer ][2] ); call_user_func( $wp_importers[ $importer ][2] );
include( ABSPATH . 'wp-admin/admin-footer.php' ); require_once ABSPATH . 'wp-admin/admin-footer.php';
// Make sure rules are flushed // Make sure rules are flushed.
flush_rewrite_rules( false ); flush_rewrite_rules( false );
exit(); exit();
@ -370,16 +370,16 @@ if ( isset( $plugin_page ) ) {
* The following hooks are fired to ensure backward compatibility. * The following hooks are fired to ensure backward compatibility.
* In all other cases, 'load-' . $pagenow should be used instead. * In all other cases, 'load-' . $pagenow should be used instead.
*/ */
if ( $typenow == 'page' ) { if ( 'page' === $typenow ) {
if ( $pagenow == 'post-new.php' ) { if ( 'post-new.php' === $pagenow ) {
do_action( 'load-page-new.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores do_action( 'load-page-new.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
} elseif ( $pagenow == 'post.php' ) { } elseif ( 'post.php' === $pagenow ) {
do_action( 'load-page.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores do_action( 'load-page.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
} }
} elseif ( $pagenow == 'edit-tags.php' ) { } elseif ( 'edit-tags.php' === $pagenow ) {
if ( $taxnow == 'category' ) { if ( 'category' === $taxnow ) {
do_action( 'load-categories.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores do_action( 'load-categories.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
} elseif ( $taxnow == 'link_category' ) { } elseif ( 'link_category' === $taxnow ) {
do_action( 'load-edit-link-categories.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores do_action( 'load-edit-link-categories.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
} }
} elseif ( 'term.php' === $pagenow ) { } elseif ( 'term.php' === $pagenow ) {

View File

@ -15,17 +15,17 @@ if ( ! defined( 'WP_ADMIN' ) ) {
} }
if ( defined( 'ABSPATH' ) ) { if ( defined( 'ABSPATH' ) ) {
require_once( ABSPATH . 'wp-load.php' ); require_once ABSPATH . 'wp-load.php';
} else { } else {
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' ); require_once dirname( __DIR__ ) . '/wp-load.php';
} }
require_once( ABSPATH . 'wp-admin/admin.php' ); require_once ABSPATH . 'wp-admin/admin.php';
header( 'Content-Type: text/plain; charset=' . get_option( 'blog_charset' ) ); header( 'Content-Type: text/plain; charset=' . get_option( 'blog_charset' ) );
if ( isset( $_REQUEST['action'] ) && 'upload-attachment' === $_REQUEST['action'] ) { if ( isset( $_REQUEST['action'] ) && 'upload-attachment' === $_REQUEST['action'] ) {
include( ABSPATH . 'wp-admin/includes/ajax-actions.php' ); require ABSPATH . 'wp-admin/includes/ajax-actions.php';
send_nosniff_header(); send_nosniff_header();
nocache_headers(); nocache_headers();
@ -38,7 +38,7 @@ if ( ! current_user_can( 'upload_files' ) ) {
wp_die( __( 'Sorry, you are not allowed to upload files.' ) ); wp_die( __( 'Sorry, you are not allowed to upload files.' ) );
} }
// just fetch the detail form for that attachment // Just fetch the detail form for that attachment.
if ( isset( $_REQUEST['attachment_id'] ) && intval( $_REQUEST['attachment_id'] ) && $_REQUEST['fetch'] ) { if ( isset( $_REQUEST['attachment_id'] ) && intval( $_REQUEST['attachment_id'] ) && $_REQUEST['fetch'] ) {
$id = intval( $_REQUEST['attachment_id'] ); $id = intval( $_REQUEST['attachment_id'] );
$post = get_post( $id ); $post = get_post( $id );
@ -112,7 +112,7 @@ if ( $_REQUEST['short'] ) {
// Short form response - attachment ID only. // Short form response - attachment ID only.
echo $id; echo $id;
} else { } else {
// Long form response - big chunk of html. // Long form response - big chunk of HTML.
$type = $_REQUEST['type']; $type = $_REQUEST['type'];
/** /**

View File

@ -7,7 +7,7 @@
*/ */
/** Load WordPress Bootstrap */ /** Load WordPress Bootstrap */
require_once( dirname( __FILE__ ) . '/admin.php' ); require_once __DIR__ . '/admin.php';
$parent_file = 'edit-comments.php'; $parent_file = 'edit-comments.php';
$submenu_file = 'edit-comments.php'; $submenu_file = 'edit-comments.php';
@ -58,7 +58,7 @@ switch ( $action ) {
); );
wp_enqueue_script( 'comment' ); wp_enqueue_script( 'comment' );
require_once( ABSPATH . 'wp-admin/admin-header.php' ); require_once ABSPATH . 'wp-admin/admin-header.php';
$comment_id = absint( $_GET['c'] ); $comment_id = absint( $_GET['c'] );
@ -77,7 +77,7 @@ switch ( $action ) {
$comment = get_comment_to_edit( $comment_id ); $comment = get_comment_to_edit( $comment_id );
include( ABSPATH . 'wp-admin/edit-form-comment.php' ); require ABSPATH . 'wp-admin/edit-form-comment.php';
break; break;
@ -101,12 +101,12 @@ switch ( $action ) {
} }
// No need to re-approve/re-trash/re-spam a comment. // No need to re-approve/re-trash/re-spam a comment.
if ( $action == str_replace( '1', 'approve', $comment->comment_approved ) ) { if ( str_replace( '1', 'approve', $comment->comment_approved ) == $action ) {
wp_redirect( admin_url( 'edit-comments.php?same=' . $comment_id ) ); wp_redirect( admin_url( 'edit-comments.php?same=' . $comment_id ) );
die(); die();
} }
require_once( ABSPATH . 'wp-admin/admin-header.php' ); require_once ABSPATH . 'wp-admin/admin-header.php';
$formaction = $action . 'comment'; $formaction = $action . 'comment';
$nonce_action = 'approve' == $action ? 'approve-comment_' : 'delete-comment_'; $nonce_action = 'approve' == $action ? 'approve-comment_' : 'delete-comment_';
@ -137,7 +137,7 @@ switch ( $action ) {
break; break;
} }
if ( $comment->comment_approved != '0' ) { // if not unapproved if ( '0' != $comment->comment_approved ) { // If not unapproved.
$message = ''; $message = '';
switch ( $comment->comment_approved ) { switch ( $comment->comment_approved ) {
case '1': case '1':
@ -207,9 +207,9 @@ switch ( $action ) {
$submitted = sprintf( $submitted = sprintf(
/* translators: 1: Comment date, 2: Comment time. */ /* translators: 1: Comment date, 2: Comment time. */
__( '%1$s at %2$s' ), __( '%1$s at %2$s' ),
/* translators: Comment date format. See https://secure.php.net/date */ /* translators: Comment date format. See https://www.php.net/date */
get_comment_date( __( 'Y/m/d' ), $comment ), get_comment_date( __( 'Y/m/d' ), $comment ),
/* translators: Comment time format. See https://secure.php.net/date */ /* translators: Comment time format. See https://www.php.net/date */
get_comment_date( __( 'g:i a' ), $comment ) get_comment_date( __( 'g:i a' ), $comment )
); );
if ( 'approved' === wp_get_comment_status( $comment ) && ! empty( $comment->comment_post_ID ) ) { if ( 'approved' === wp_get_comment_status( $comment ) && ! empty( $comment->comment_post_ID ) ) {
@ -355,6 +355,6 @@ switch ( $action ) {
default: default:
wp_die( __( 'Unknown action.' ) ); wp_die( __( 'Unknown action.' ) );
} // end switch } // End switch.
include( ABSPATH . 'wp-admin/admin-footer.php' ); require_once ABSPATH . 'wp-admin/admin-footer.php';

View File

@ -7,14 +7,14 @@
*/ */
/** WordPress Administration Bootstrap */ /** WordPress Administration Bootstrap */
require_once( dirname( __FILE__ ) . '/admin.php' ); require_once __DIR__ . '/admin.php';
require_once( dirname( __FILE__ ) . '/includes/credits.php' ); require_once __DIR__ . '/includes/credits.php';
$title = __( 'Credits' ); $title = __( 'Credits' );
list( $display_version ) = explode( '-', get_bloginfo( 'version' ) ); list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
include( ABSPATH . 'wp-admin/admin-header.php' ); require_once ABSPATH . 'wp-admin/admin-header.php';
$credits = wp_credits(); $credits = wp_credits();
?> ?>
@ -22,23 +22,15 @@ $credits = wp_credits();
<div class="about__header"> <div class="about__header">
<div class="about__header-title"> <div class="about__header-title">
<h1> <p>
<span><?php echo $display_version; ?></span>
<?php _e( 'WordPress' ); ?> <?php _e( 'WordPress' ); ?>
</h1> <span><?php echo $display_version; ?></span>
</p>
</div> </div>
<div class="about__header-badge"></div>
<div class="about__header-text"> <div class="about__header-text">
<p> <p>
<?php <?php _e( 'Building more with blocks, faster and easier.' ); ?>
printf(
/* translators: %s: The current WordPress version number. */
__( 'Introducing our most refined user experience with the improved block editor in WordPress %s!' ),
$display_version
);
?>
</p> </p>
</div> </div>
@ -50,39 +42,50 @@ $credits = wp_credits();
</nav> </nav>
</div> </div>
<div class="about__section"> <div class="about__section is-feature">
<div class="column"> <div class="column">
<h2><?php _e( 'WordPress is created by a worldwide team of passionate individuals.' ); ?></h2> <h1><?php _e( 'Credits' ); ?></h1>
<?php if ( ! $credits ) : ?>
<p> <p>
<?php <?php
if ( ! $credits ) { printf(
printf( /* translators: 1: https://wordpress.org/about/, 2: https://make.wordpress.org/ */
/* translators: 1: https://wordpress.org/about/, 2: https://make.wordpress.org/ */ __( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ),
__( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ), __( 'https://wordpress.org/about/' ),
__( 'https://wordpress.org/about/' ), __( 'https://make.wordpress.org/' )
__( 'https://make.wordpress.org/' ) );
);
} else {
printf(
/* translators: %s: https://make.wordpress.org/ */
__( 'Want to see your name in lights on this page? <a href="%s">Get involved in WordPress</a>.' ),
__( 'https://make.wordpress.org/' )
);
}
?> ?>
</p> </p>
<?php else : ?>
<p>
<?php _e( 'WordPress is created by a worldwide team of passionate individuals.' ); ?>
</p>
<p>
<?php
printf(
/* translators: %s: https://make.wordpress.org/ */
__( 'Want to see your name in lights on this page? <a href="%s">Get involved in WordPress</a>.' ),
__( 'https://make.wordpress.org/' )
);
?>
</p>
<?php endif; ?>
</div> </div>
<div class="about__image aligncenter"> <div class="about__image aligncenter">
<img src="data:image/svg+xml;charset=utf8,%3Csvg width='1320' height='350' viewbox='0 0 1320 350' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='72' height='220' transform='matrix(1 0 0 -1 61 220)' fill='%23321017'/%3E%3Crect width='72' height='250' transform='matrix(1 0 0 -1 166 300)' fill='%23BD3854'/%3E%3Crect width='72' height='220' transform='matrix(1 0 0 -1 272 220)' fill='%23321017'/%3E%3Crect width='71' height='220' transform='matrix(1 0 0 -1 378 220)' fill='%235F1B29'/%3E%3Crect width='71' height='220' transform='matrix(1 0 0 -1 483 220)' fill='%23321017'/%3E%3Crect width='71' height='220' transform='matrix(1 0 0 -1 587 220)' fill='%235F1B29'/%3E%3Crect width='71.28' height='250' transform='matrix(1 0 0 -1 689 300)' fill='%23BD3854'/%3E%3Crect width='72' height='220' transform='matrix(1 0 0 -1 884 220)' fill='%235F1B29'/%3E%3Crect width='72' height='220' transform='matrix(1 0 0 -1 789 220)' fill='%23321017'/%3E%3Crect width='71' height='220' transform='matrix(1 0 0 -1 985 220)' fill='%23321017'/%3E%3Crect width='72' height='220' transform='matrix(1 0 0 -1 1084 220)' fill='%235F1B29'/%3E%3Crect width='72' height='220' transform='matrix(1 0 0 -1 1179 220)' fill='%233D0F19'/%3E%3C/svg%3E%0A" alt="" /> <img src="data:image/svg+xml;charset=utf8,%3Csvg width='1000' height='300' viewbox='0 0 1000 300' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23F3F4F5' d='M0 0h1000v300H0z'/%3E%3Cpath style='mix-blend-mode:multiply' d='M39.6 140.22l931.1 3.36.8 76.5-929.5 6.6-2.4-86.46z' fill='%23216DD2'/%3E%3Cpath style='mix-blend-mode:multiply' d='M963.7 275.14s-.9-59.58-1-64.14c-.1-4.2-932.3 1.74-932.3 1.74L29 268.48v8.4' fill='%237FCDE6'/%3E%3Cpath style='mix-blend-mode:multiply' d='M958 73.32L47.8 70.26l1.2 78.66 907.3 4.26 1.7-79.86z' fill='%23072CF0'/%3E%3Cpath style='mix-blend-mode:multiply' d='M34 91.32l910.4-2.16L939.2 21 33.3 23.82l.7 67.5z' fill='%230188D9'/%3E%3C/svg%3E" alt="" />
</div> </div>
</div> </div>
<?php <?php
if ( ! $credits ) { if ( ! $credits ) {
echo '</div>'; echo '</div>';
include( ABSPATH . 'wp-admin/admin-footer.php' ); require_once ABSPATH . 'wp-admin/admin-footer.php';
exit; exit;
} }
?> ?>
@ -129,11 +132,11 @@ if ( ! $credits ) {
</div> </div>
<?php <?php
include( ABSPATH . 'wp-admin/admin-footer.php' ); require_once ABSPATH . 'wp-admin/admin-footer.php';
return; return;
// These are strings returned by the API that we want to be translatable // These are strings returned by the API that we want to be translatable.
__( 'Project Leaders' ); __( 'Project Leaders' );
/* translators: %s: The current WordPress version number. */ /* translators: %s: The current WordPress version number. */
__( 'Core Contributors to WordPress %s' ); __( 'Core Contributors to WordPress %s' );

View File

@ -1,3 +1,4 @@
/*! This file is auto-generated */
/*------------------------------------------------------------------------------ /*------------------------------------------------------------------------------
22.0 - About Pages 22.0 - About Pages
@ -20,17 +21,19 @@
.about__container { .about__container {
/* Section backgrounds */ /* Section backgrounds */
--background: #f4efe1; --background: #f3f4f5;
--subtle-background: #d7d2c5; --subtle-background: #bde7f0;
/* Main text color */ /* Main text color */
--text: #413e38; --text: #32373c;
--text-light: #f3f4f5;
/* Navigation colors. */ /* Navigation colors. */
--nav-background: #fefcf7; --nav-background: #216bce;
--nav-color: #716d64; --nav-border: #1730e5;
--nav-color: #f3f4f5;
/* Reds, used as accents & in header. */ /* Reds, used as accents & in header. */
--accent-1: #bd3854; --accent-1: #1730e5;
--accent-2: #5f1b29; --accent-2: #216bce;
--accent-3: #321017; --accent-3: #bde7f0;
} }
/*------------------------------------------------------------------------------ /*------------------------------------------------------------------------------
@ -95,17 +98,20 @@
} }
.about__section { .about__section {
background: #F4EFE1; background: #f3f4f5;
background: var(--background); background: var(--background);
clear: both;
} }
.about__container .has-accent-background-color { .about__container .has-accent-background-color {
background-color: #BD3854; color: #f3f4f5;
color: var(--text-light);
background-color: #1730e5;
background-color: var(--accent-1); background-color: var(--accent-1);
} }
.about__container .has-subtle-background-color { .about__container .has-subtle-background-color {
background-color: #D7D2C5; background-color: #bde7f0;
background-color: var(--subtle-background); background-color: var(--subtle-background);
} }
@ -123,6 +129,10 @@
padding: 0; padding: 0;
} }
.about__section .column p:first-of-type {
margin-top: 0;
}
.about__section .column p:last-of-type { .about__section .column p:last-of-type {
margin-bottom: 0; margin-bottom: 0;
} }
@ -132,6 +142,11 @@
padding: 32px 32px 0; padding: 32px 32px 0;
} }
/* Section header is alone in a container. */
.about__section .is-section-header:first-child:last-child {
padding: 0;
}
.about__section.is-feature { .about__section.is-feature {
padding: 32px; padding: 32px;
} }
@ -140,6 +155,10 @@
margin: 0; margin: 0;
} }
.about__section.is-feature p + p {
margin-top: 1rem;
}
.about__section.has-2-columns, .about__section.has-2-columns,
.about__section.has-3-columns, .about__section.has-3-columns,
.about__section.has-4-columns { .about__section.has-4-columns {
@ -286,16 +305,21 @@
} }
.about__container h1 { .about__container h1 {
font-size: 5em; margin: 0 0 1em;
line-height: 1; padding: 0;
font-weight: 600;
color: inherit;
} }
.about__container h1,
.about__container h2 { .about__container h2 {
margin-top: 0; margin-top: 0;
font-size: 1.4em; font-size: 1.4em;
line-height: 1.4;
} }
.about__container h3 { .about__container h3,
.about__container h2.is-smaller-heading {
margin-top: 0; margin-top: 0;
font-size: 1em; font-size: 1em;
} }
@ -306,7 +330,8 @@
} }
.about__section a { .about__section a {
color: #5f1b29; color: #1730e5;
color: var(--accent-1);
text-decoration: underline; text-decoration: underline;
} }
@ -342,6 +367,7 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
height: 100%; height: 100%;
overflow: hidden;
} }
.about__container .about__image img { .about__container .about__image img {
@ -356,6 +382,10 @@
border: none; border: none;
} }
.about__container hr.is-small {
height: 8px;
}
.about__container div.updated, .about__container div.updated,
.about__container div.error, .about__container div.error,
.about__container .notice { .about__container .notice {
@ -369,19 +399,10 @@
.about__section.is-feature { .about__section.is-feature {
font-size: 1.6em; font-size: 1.6em;
font-weight: 600; font-weight: 600;
} text-align: center;
@media screen and (max-width: 782px) {
.about__container h1 {
font-size: 4em;
}
} }
@media screen and (max-width: 480px) { @media screen and (max-width: 480px) {
.about__container h1 {
font-size: 3.2em;
}
.about__section.is-feature { .about__section.is-feature {
font-size: 1.4em; font-size: 1.4em;
font-weight: 500; font-weight: 500;
@ -391,16 +412,17 @@
/* 1.3 - Header */ /* 1.3 - Header */
.about__header { .about__header {
display: -ms-grid;
display: grid;
-ms-grid-columns: 1fr 1fr;
grid-template-columns: 1fr 1fr;
-ms-grid-rows: 1fr 1fr;
grid-template-rows: 1fr 1fr;
min-height: 28em;
max-height: 36em;
height: 90vh;
margin-bottom: 32px; margin-bottom: 32px;
background-color: #f3f4f5;
background-color: var(--background);
background-repeat: no-repeat;
background-position: top left;
background-size: contain;
background-image: url('https://s.w.org/images/core/5.4/header-diagonal.svg');
}
.rtl .about__header {
background-image: url('https://s.w.org/images/core/5.4/header-diagonal-rtl.svg');
} }
.about__header > div { .about__header > div {
@ -412,56 +434,30 @@
} }
.about__header-title { .about__header-title {
-ms-grid-column: 1; min-height: 24em;
grid-column: 1; max-height: 32em;
-ms-grid-row: 1; height: 80vh;
-ms-grid-row-span: 2; padding: 0 32px;
grid-row: 1/span 2;
padding: 32px;
background-color: #BD3854;
background-color: var(--accent-1);
color: white;
padding: 32px;
} }
.about__header-title h1 { .about__header-title p {
padding: 0;
color: inherit;
}
.about__header-title h1 span {
display: block;
font-weight: 600;
font-size: 1.2em;
line-height: 1;
}
.about__header-badge {
-ms-grid-column: 2;
grid-column: 2;
-ms-grid-row: 1;
grid-row: 1;
background-color: #5f1b29;
background-color: var(--accent-2);
margin: 0; margin: 0;
padding: 32px; padding: 0;
justify-content: flex-end; font-size: 4em;
line-height: 1;
font-weight: 500;
color: #1730e5;
color: var(--accent-1);
} }
.about__header-badge img { .about__header-title p span {
align-self: flex-start; display: inline-block;
max-width: 100%; color: #216bce;
color: var(--accent-2);
} }
.about__header-text { .about__header-text {
-ms-grid-column: 2; padding: 16px 32px 32px;
grid-column: 2;
-ms-grid-row: 2;
grid-row: 2;
padding: 32px;
background-color: #321017;
background-color: var(--accent-3);
color: white;
font-size: 1.5em; font-size: 1.5em;
line-height: 1.4; line-height: 1.4;
} }
@ -471,17 +467,13 @@
} }
.about__header-navigation { .about__header-navigation {
-ms-grid-column: 1;
-ms-grid-column-span: 2;
grid-column: 1/span 2;
-ms-grid-row: 3;
grid-row: 3;
padding-top: 0; padding-top: 0;
background: #FEFCF7; background: #216bce;
background: var(--nav-background); background: var(--nav-background);
color: #716d64; color: #f3f4f5;
color: var(--nav-color); color: var(--nav-color);
border-bottom: 3px solid currentColor; border-bottom: 3px solid #1730e5;
border-bottom: 3px solid var(--nav-border);
} }
.about__header-navigation .nav-tab { .about__header-navigation .nav-tab {
@ -498,40 +490,39 @@
.about__header-navigation .nav-tab:hover, .about__header-navigation .nav-tab:hover,
.about__header-navigation .nav-tab:active { .about__header-navigation .nav-tab:active {
background-color: #F4EFE1; background-color: #1730e5;
background-color: var(--background); background-color: var(--accent-1);
} }
.about__header-navigation .nav-tab-active { .about__header-navigation .nav-tab-active {
margin-bottom: -3px; margin-bottom: -3px;
border-width: 0 0 6px; border-width: 0 0 6px;
color: #BD3854; border-color: #bde7f0;
color: var(--accent-1); border-color: var(--accent-3);
border-color: currentColor;
} }
.about__header-navigation .nav-tab-active:hover, .about__header-navigation .nav-tab-active:hover,
.about__header-navigation .nav-tab-active:active { .about__header-navigation .nav-tab-active:active {
background-color: transparent; background-color: #1730e5;
border-color: currentColor; background-color: var(--accent-1);
border-color: #bde7f0;
border-color: var(--accent-3);
} }
@media screen and (max-width: 782px) { @media screen and (max-width: 782px) {
.about__container .about__header-text { .about__container .about__header-text {
font-size: 1.4em; font-size: 1.4em;
} }
}
@media screen and (max-width: 600px) { .about__header-title {
.about__header { min-height: 0;
display: block; max-height: none;
min-height: unset;
max-height: unset;
height: auto; height: auto;
} /*
* 60% is a "magic" number to create a top offset approx-equal to the height of the background image,
.about__header-badge { * which scales to match the container width.
justify-content: flex-start; */
padding-top: 60%;
} }
.about__header-navigation .nav-tab { .about__header-navigation .nav-tab {
@ -542,20 +533,22 @@
} }
@media screen and (max-width: 480px) { @media screen and (max-width: 480px) {
.about__header-title p {
font-size: 3.2em;
}
.about__header-navigation .nav-tab { .about__header-navigation .nav-tab {
float: none; float: none;
display: block; display: block;
margin-bottom: 0; margin-bottom: 0;
padding: 16px 16px; padding: 16px 16px;
border-right-width: 3px; border-right-width: 6px;
border-bottom: none; border-bottom: none;
} }
.about__header-navigation .nav-tab-active { .about__header-navigation .nav-tab-active {
border-bottom: none; border-bottom: none;
border-right-width: 3px; border-right-width: 6px;
background: #F4EFE1;
background: var(--background);
} }
} }
@ -603,7 +596,7 @@
font-size: 1.4em; font-size: 1.4em;
font-weight: 600; font-weight: 600;
text-decoration: none; text-decoration: none;
color: #413E38; color: #32373c;
color: var(--text); color: var(--text);
} }
@ -1089,10 +1082,6 @@
margin: 0.6em 0; margin: 0.6em 0;
} }
.freedoms-php .has-4-columns {
margin-bottom: 40px;
}
.freedoms-php .column .freedoms-image { .freedoms-php .column .freedoms-image {
background-image: url('https://s.w.org/wp-content/themes/pub/wporg-main/images/freedoms-2x.png'); background-image: url('https://s.w.org/wp-content/themes/pub/wporg-main/images/freedoms-2x.png');
background-size: 100%; background-size: 100%;

File diff suppressed because one or more lines are too long

View File

@ -20,17 +20,19 @@
.about__container { .about__container {
/* Section backgrounds */ /* Section backgrounds */
--background: #f4efe1; --background: #f3f4f5;
--subtle-background: #d7d2c5; --subtle-background: #bde7f0;
/* Main text color */ /* Main text color */
--text: #413e38; --text: #32373c;
--text-light: #f3f4f5;
/* Navigation colors. */ /* Navigation colors. */
--nav-background: #fefcf7; --nav-background: #216bce;
--nav-color: #716d64; --nav-border: #1730e5;
--nav-color: #f3f4f5;
/* Reds, used as accents & in header. */ /* Reds, used as accents & in header. */
--accent-1: #bd3854; --accent-1: #1730e5;
--accent-2: #5f1b29; --accent-2: #216bce;
--accent-3: #321017; --accent-3: #bde7f0;
} }
/*------------------------------------------------------------------------------ /*------------------------------------------------------------------------------
@ -95,17 +97,20 @@
} }
.about__section { .about__section {
background: #F4EFE1; background: #f3f4f5;
background: var(--background); background: var(--background);
clear: both;
} }
.about__container .has-accent-background-color { .about__container .has-accent-background-color {
background-color: #BD3854; color: #f3f4f5;
color: var(--text-light);
background-color: #1730e5;
background-color: var(--accent-1); background-color: var(--accent-1);
} }
.about__container .has-subtle-background-color { .about__container .has-subtle-background-color {
background-color: #D7D2C5; background-color: #bde7f0;
background-color: var(--subtle-background); background-color: var(--subtle-background);
} }
@ -123,6 +128,10 @@
padding: 0; padding: 0;
} }
.about__section .column p:first-of-type {
margin-top: 0;
}
.about__section .column p:last-of-type { .about__section .column p:last-of-type {
margin-bottom: 0; margin-bottom: 0;
} }
@ -132,6 +141,11 @@
padding: 32px 32px 0; padding: 32px 32px 0;
} }
/* Section header is alone in a container. */
.about__section .is-section-header:first-child:last-child {
padding: 0;
}
.about__section.is-feature { .about__section.is-feature {
padding: 32px; padding: 32px;
} }
@ -140,6 +154,10 @@
margin: 0; margin: 0;
} }
.about__section.is-feature p + p {
margin-top: 1rem;
}
.about__section.has-2-columns, .about__section.has-2-columns,
.about__section.has-3-columns, .about__section.has-3-columns,
.about__section.has-4-columns { .about__section.has-4-columns {
@ -286,16 +304,21 @@
} }
.about__container h1 { .about__container h1 {
font-size: 5em; margin: 0 0 1em;
line-height: 1; padding: 0;
font-weight: 600;
color: inherit;
} }
.about__container h1,
.about__container h2 { .about__container h2 {
margin-top: 0; margin-top: 0;
font-size: 1.4em; font-size: 1.4em;
line-height: 1.4;
} }
.about__container h3 { .about__container h3,
.about__container h2.is-smaller-heading {
margin-top: 0; margin-top: 0;
font-size: 1em; font-size: 1em;
} }
@ -306,7 +329,8 @@
} }
.about__section a { .about__section a {
color: #5f1b29; color: #1730e5;
color: var(--accent-1);
text-decoration: underline; text-decoration: underline;
} }
@ -342,6 +366,7 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
height: 100%; height: 100%;
overflow: hidden;
} }
.about__container .about__image img { .about__container .about__image img {
@ -356,6 +381,10 @@
border: none; border: none;
} }
.about__container hr.is-small {
height: 8px;
}
.about__container div.updated, .about__container div.updated,
.about__container div.error, .about__container div.error,
.about__container .notice { .about__container .notice {
@ -369,19 +398,10 @@
.about__section.is-feature { .about__section.is-feature {
font-size: 1.6em; font-size: 1.6em;
font-weight: 600; font-weight: 600;
} text-align: center;
@media screen and (max-width: 782px) {
.about__container h1 {
font-size: 4em;
}
} }
@media screen and (max-width: 480px) { @media screen and (max-width: 480px) {
.about__container h1 {
font-size: 3.2em;
}
.about__section.is-feature { .about__section.is-feature {
font-size: 1.4em; font-size: 1.4em;
font-weight: 500; font-weight: 500;
@ -391,16 +411,17 @@
/* 1.3 - Header */ /* 1.3 - Header */
.about__header { .about__header {
display: -ms-grid;
display: grid;
-ms-grid-columns: 1fr 1fr;
grid-template-columns: 1fr 1fr;
-ms-grid-rows: 1fr 1fr;
grid-template-rows: 1fr 1fr;
min-height: 28em;
max-height: 36em;
height: 90vh;
margin-bottom: 32px; margin-bottom: 32px;
background-color: #f3f4f5;
background-color: var(--background);
background-repeat: no-repeat;
background-position: top right;
background-size: contain;
background-image: url('https://s.w.org/images/core/5.4/header-diagonal.svg');
}
.rtl .about__header {
background-image: url('https://s.w.org/images/core/5.4/header-diagonal-rtl.svg');
} }
.about__header > div { .about__header > div {
@ -412,56 +433,30 @@
} }
.about__header-title { .about__header-title {
-ms-grid-column: 1; min-height: 24em;
grid-column: 1; max-height: 32em;
-ms-grid-row: 1; height: 80vh;
-ms-grid-row-span: 2; padding: 0 32px;
grid-row: 1/span 2;
padding: 32px;
background-color: #BD3854;
background-color: var(--accent-1);
color: white;
padding: 32px;
} }
.about__header-title h1 { .about__header-title p {
padding: 0;
color: inherit;
}
.about__header-title h1 span {
display: block;
font-weight: 600;
font-size: 1.2em;
line-height: 1;
}
.about__header-badge {
-ms-grid-column: 2;
grid-column: 2;
-ms-grid-row: 1;
grid-row: 1;
background-color: #5f1b29;
background-color: var(--accent-2);
margin: 0; margin: 0;
padding: 32px; padding: 0;
justify-content: flex-end; font-size: 4em;
line-height: 1;
font-weight: 500;
color: #1730e5;
color: var(--accent-1);
} }
.about__header-badge img { .about__header-title p span {
align-self: flex-start; display: inline-block;
max-width: 100%; color: #216bce;
color: var(--accent-2);
} }
.about__header-text { .about__header-text {
-ms-grid-column: 2; padding: 16px 32px 32px;
grid-column: 2;
-ms-grid-row: 2;
grid-row: 2;
padding: 32px;
background-color: #321017;
background-color: var(--accent-3);
color: white;
font-size: 1.5em; font-size: 1.5em;
line-height: 1.4; line-height: 1.4;
} }
@ -471,17 +466,13 @@
} }
.about__header-navigation { .about__header-navigation {
-ms-grid-column: 1;
-ms-grid-column-span: 2;
grid-column: 1/span 2;
-ms-grid-row: 3;
grid-row: 3;
padding-top: 0; padding-top: 0;
background: #FEFCF7; background: #216bce;
background: var(--nav-background); background: var(--nav-background);
color: #716d64; color: #f3f4f5;
color: var(--nav-color); color: var(--nav-color);
border-bottom: 3px solid currentColor; border-bottom: 3px solid #1730e5;
border-bottom: 3px solid var(--nav-border);
} }
.about__header-navigation .nav-tab { .about__header-navigation .nav-tab {
@ -498,40 +489,39 @@
.about__header-navigation .nav-tab:hover, .about__header-navigation .nav-tab:hover,
.about__header-navigation .nav-tab:active { .about__header-navigation .nav-tab:active {
background-color: #F4EFE1; background-color: #1730e5;
background-color: var(--background); background-color: var(--accent-1);
} }
.about__header-navigation .nav-tab-active { .about__header-navigation .nav-tab-active {
margin-bottom: -3px; margin-bottom: -3px;
border-width: 0 0 6px; border-width: 0 0 6px;
color: #BD3854; border-color: #bde7f0;
color: var(--accent-1); border-color: var(--accent-3);
border-color: currentColor;
} }
.about__header-navigation .nav-tab-active:hover, .about__header-navigation .nav-tab-active:hover,
.about__header-navigation .nav-tab-active:active { .about__header-navigation .nav-tab-active:active {
background-color: transparent; background-color: #1730e5;
border-color: currentColor; background-color: var(--accent-1);
border-color: #bde7f0;
border-color: var(--accent-3);
} }
@media screen and (max-width: 782px) { @media screen and (max-width: 782px) {
.about__container .about__header-text { .about__container .about__header-text {
font-size: 1.4em; font-size: 1.4em;
} }
}
@media screen and (max-width: 600px) { .about__header-title {
.about__header { min-height: 0;
display: block; max-height: none;
min-height: unset;
max-height: unset;
height: auto; height: auto;
} /*
* 60% is a "magic" number to create a top offset approx-equal to the height of the background image,
.about__header-badge { * which scales to match the container width.
justify-content: flex-start; */
padding-top: 60%;
} }
.about__header-navigation .nav-tab { .about__header-navigation .nav-tab {
@ -542,20 +532,22 @@
} }
@media screen and (max-width: 480px) { @media screen and (max-width: 480px) {
.about__header-title p {
font-size: 3.2em;
}
.about__header-navigation .nav-tab { .about__header-navigation .nav-tab {
float: none; float: none;
display: block; display: block;
margin-bottom: 0; margin-bottom: 0;
padding: 16px 16px; padding: 16px 16px;
border-left-width: 3px; border-left-width: 6px;
border-bottom: none; border-bottom: none;
} }
.about__header-navigation .nav-tab-active { .about__header-navigation .nav-tab-active {
border-bottom: none; border-bottom: none;
border-left-width: 3px; border-left-width: 6px;
background: #F4EFE1;
background: var(--background);
} }
} }
@ -603,7 +595,7 @@
font-size: 1.4em; font-size: 1.4em;
font-weight: 600; font-weight: 600;
text-decoration: none; text-decoration: none;
color: #413E38; color: #32373c;
color: var(--text); color: var(--text);
} }
@ -1089,10 +1081,6 @@
margin: 0.6em 0; margin: 0.6em 0;
} }
.freedoms-php .has-4-columns {
margin-bottom: 40px;
}
.freedoms-php .column .freedoms-image { .freedoms-php .column .freedoms-image {
background-image: url('https://s.w.org/wp-content/themes/pub/wporg-main/images/freedoms-2x.png'); background-image: url('https://s.w.org/wp-content/themes/pub/wporg-main/images/freedoms-2x.png');
background-size: 100%; background-size: 100%;

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,4 @@
/*! This file is auto-generated */
#adminmenuback, #adminmenuback,
#adminmenuwrap, #adminmenuwrap,
#adminmenu, #adminmenu,

View File

@ -1,3 +1,4 @@
/*! This file is auto-generated */
.wrap [class*="CodeMirror-lint-marker"], .wrap [class*="CodeMirror-lint-marker"],
.wp-core-ui [class*="CodeMirror-lint-message"], .wp-core-ui [class*="CodeMirror-lint-message"],
.wrap .CodeMirror-lint-marker-multiple { .wrap .CodeMirror-lint-marker-multiple {

View File

@ -1,3 +1,4 @@
/*! This file is auto-generated */
/* rtl:ignore */ /* rtl:ignore */
.wp-color-picker { .wp-color-picker {
width: 80px; width: 80px;
@ -120,16 +121,14 @@
.iris-picker .ui-square-handle:focus, .iris-picker .ui-square-handle:focus,
.iris-picker .iris-strip .ui-slider-handle:focus { .iris-picker .iris-strip .ui-slider-handle:focus {
box-shadow: border-color: #007cba;
0 0 0 1px #5b9dd9, border-style: solid;
0 0 2px 1px rgba(30, 140, 190, 0.8); box-shadow: 0 0 0 1px #007cba;
outline: 2px solid transparent;
} }
.iris-picker .iris-palette:focus { .iris-picker .iris-palette:focus {
box-shadow: box-shadow: 0 0 0 2px #007cba;
inset 0 0 5px rgba(0, 0, 0, 0.4),
0 0 0 1px #5b9dd9,
0 0 2px 1px rgba(30, 140, 190, 0.8);
} }
@media screen and (max-width: 782px) { @media screen and (max-width: 782px) {

View File

@ -1,2 +1,2 @@
/*! This file is auto-generated */ /*! This file is auto-generated */
.wp-color-picker{width:80px;direction:ltr}.wp-picker-container .hidden{display:none}.wp-picker-container .wp-color-result.button{min-height:30px;margin:0 0 6px 6px;padding:0 30px 0 0;font-size:11px}.wp-color-result-text{background:#f7f7f7;border-radius:2px 0 0 2px;border-right:1px solid #ccc;color:#555;display:block;line-height:2.54545455;padding:0 6px;text-align:center}.wp-color-result:focus,.wp-color-result:hover{background:#fafafa;border-color:#999;color:#23282d}.wp-color-result:focus:after,.wp-color-result:hover:after{color:#23282d;border-color:#a0a5aa;border-right:1px solid #999}.wp-picker-container{display:inline-block}.wp-color-result:focus{border-color:#5b9dd9;box-shadow:0 0 3px rgba(0,115,170,.8)}.wp-color-result:active{transform:none!important}.wp-picker-open+.wp-picker-input-wrap{display:inline-block;vertical-align:top}.wp-picker-input-wrap label{display:inline-block;vertical-align:top}.form-table .wp-picker-input-wrap label{margin:0!important}.wp-customizer .wp-picker-input-wrap .button.wp-picker-default,.wp-picker-input-wrap .button.wp-picker-default{margin-right:6px;padding:0 8px;line-height:2.54545455;min-height:30px}.wp-picker-container .iris-square-slider .ui-slider-handle:focus{background-color:#555}.wp-picker-container .iris-picker{border-radius:0;border-color:#ddd;margin-top:6px}.wp-picker-container input[type=text].wp-color-picker{width:4rem;font-size:12px;font-family:monospace;line-height:2.33333333;margin:0;padding:0 5px;vertical-align:top;min-height:30px}.wp-color-picker::-webkit-input-placeholder{color:#72777c}.wp-color-picker::-moz-placeholder{color:#72777c;opacity:1}.wp-color-picker:-ms-input-placeholder{color:#72777c}.wp-picker-container input[type=text].iris-error{background-color:#ffebe8;border-color:#c00;color:#000}.iris-picker .iris-strip .ui-slider-handle:focus,.iris-picker .ui-square-handle:focus{box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.iris-picker .iris-palette:focus{box-shadow:inset 0 0 5px rgba(0,0,0,.4),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}@media screen and (max-width:782px){.wp-picker-container input[type=text].wp-color-picker{width:5rem;font-size:16px;line-height:1.875;min-height:32px}.wp-customizer .wp-picker-container input[type=text].wp-color-picker{padding:0 5px}.wp-picker-input-wrap .button.wp-picker-default{padding:0 8px;line-height:2.14285714;min-height:32px}.wp-customizer .wp-picker-input-wrap .button.wp-picker-default{padding:0 8px;font-size:14px;line-height:2.14285714;min-height:32px}.wp-picker-container .wp-color-result.button{padding:0 40px 0 0;font-size:14px;line-height:2.14285714}.wp-customizer .wp-picker-container .wp-color-result.button{font-size:14px;line-height:2.14285714}.wp-picker-container .wp-color-result-text{padding:0 14px;font-size:inherit;line-height:inherit}.wp-customizer .wp-picker-container .wp-color-result-text{padding:0 10px}} .wp-color-picker{width:80px;direction:ltr}.wp-picker-container .hidden{display:none}.wp-picker-container .wp-color-result.button{min-height:30px;margin:0 0 6px 6px;padding:0 30px 0 0;font-size:11px}.wp-color-result-text{background:#f7f7f7;border-radius:2px 0 0 2px;border-right:1px solid #ccc;color:#555;display:block;line-height:2.54545455;padding:0 6px;text-align:center}.wp-color-result:focus,.wp-color-result:hover{background:#fafafa;border-color:#999;color:#23282d}.wp-color-result:focus:after,.wp-color-result:hover:after{color:#23282d;border-color:#a0a5aa;border-right:1px solid #999}.wp-picker-container{display:inline-block}.wp-color-result:focus{border-color:#5b9dd9;box-shadow:0 0 3px rgba(0,115,170,.8)}.wp-color-result:active{transform:none!important}.wp-picker-open+.wp-picker-input-wrap{display:inline-block;vertical-align:top}.wp-picker-input-wrap label{display:inline-block;vertical-align:top}.form-table .wp-picker-input-wrap label{margin:0!important}.wp-customizer .wp-picker-input-wrap .button.wp-picker-default,.wp-picker-input-wrap .button.wp-picker-default{margin-right:6px;padding:0 8px;line-height:2.54545455;min-height:30px}.wp-picker-container .iris-square-slider .ui-slider-handle:focus{background-color:#555}.wp-picker-container .iris-picker{border-radius:0;border-color:#ddd;margin-top:6px}.wp-picker-container input[type=text].wp-color-picker{width:4rem;font-size:12px;font-family:monospace;line-height:2.33333333;margin:0;padding:0 5px;vertical-align:top;min-height:30px}.wp-color-picker::-webkit-input-placeholder{color:#72777c}.wp-color-picker::-moz-placeholder{color:#72777c;opacity:1}.wp-color-picker:-ms-input-placeholder{color:#72777c}.wp-picker-container input[type=text].iris-error{background-color:#ffebe8;border-color:#c00;color:#000}.iris-picker .iris-strip .ui-slider-handle:focus,.iris-picker .ui-square-handle:focus{border-color:#007cba;border-style:solid;box-shadow:0 0 0 1px #007cba;outline:2px solid transparent}.iris-picker .iris-palette:focus{box-shadow:0 0 0 2px #007cba}@media screen and (max-width:782px){.wp-picker-container input[type=text].wp-color-picker{width:5rem;font-size:16px;line-height:1.875;min-height:32px}.wp-customizer .wp-picker-container input[type=text].wp-color-picker{padding:0 5px}.wp-picker-input-wrap .button.wp-picker-default{padding:0 8px;line-height:2.14285714;min-height:32px}.wp-customizer .wp-picker-input-wrap .button.wp-picker-default{padding:0 8px;font-size:14px;line-height:2.14285714;min-height:32px}.wp-picker-container .wp-color-result.button{padding:0 40px 0 0;font-size:14px;line-height:2.14285714}.wp-customizer .wp-picker-container .wp-color-result.button{font-size:14px;line-height:2.14285714}.wp-picker-container .wp-color-result-text{padding:0 14px;font-size:inherit;line-height:inherit}.wp-customizer .wp-picker-container .wp-color-result-text{padding:0 10px}}

View File

@ -120,16 +120,14 @@
.iris-picker .ui-square-handle:focus, .iris-picker .ui-square-handle:focus,
.iris-picker .iris-strip .ui-slider-handle:focus { .iris-picker .iris-strip .ui-slider-handle:focus {
box-shadow: border-color: #007cba;
0 0 0 1px #5b9dd9, border-style: solid;
0 0 2px 1px rgba(30, 140, 190, 0.8); box-shadow: 0 0 0 1px #007cba;
outline: 2px solid transparent;
} }
.iris-picker .iris-palette:focus { .iris-picker .iris-palette:focus {
box-shadow: box-shadow: 0 0 0 2px #007cba;
inset 0 0 5px rgba(0, 0, 0, 0.4),
0 0 0 1px #5b9dd9,
0 0 2px 1px rgba(30, 140, 190, 0.8);
} }
@media screen and (max-width: 782px) { @media screen and (max-width: 782px) {

View File

@ -1,2 +1,2 @@
/*! This file is auto-generated */ /*! This file is auto-generated */
.wp-color-picker{width:80px;direction:ltr}.wp-picker-container .hidden{display:none}.wp-picker-container .wp-color-result.button{min-height:30px;margin:0 6px 6px 0;padding:0 0 0 30px;font-size:11px}.wp-color-result-text{background:#f7f7f7;border-radius:0 2px 2px 0;border-left:1px solid #ccc;color:#555;display:block;line-height:2.54545455;padding:0 6px;text-align:center}.wp-color-result:focus,.wp-color-result:hover{background:#fafafa;border-color:#999;color:#23282d}.wp-color-result:focus:after,.wp-color-result:hover:after{color:#23282d;border-color:#a0a5aa;border-left:1px solid #999}.wp-picker-container{display:inline-block}.wp-color-result:focus{border-color:#5b9dd9;box-shadow:0 0 3px rgba(0,115,170,.8)}.wp-color-result:active{transform:none!important}.wp-picker-open+.wp-picker-input-wrap{display:inline-block;vertical-align:top}.wp-picker-input-wrap label{display:inline-block;vertical-align:top}.form-table .wp-picker-input-wrap label{margin:0!important}.wp-customizer .wp-picker-input-wrap .button.wp-picker-default,.wp-picker-input-wrap .button.wp-picker-default{margin-left:6px;padding:0 8px;line-height:2.54545455;min-height:30px}.wp-picker-container .iris-square-slider .ui-slider-handle:focus{background-color:#555}.wp-picker-container .iris-picker{border-radius:0;border-color:#ddd;margin-top:6px}.wp-picker-container input[type=text].wp-color-picker{width:4rem;font-size:12px;font-family:monospace;line-height:2.33333333;margin:0;padding:0 5px;vertical-align:top;min-height:30px}.wp-color-picker::-webkit-input-placeholder{color:#72777c}.wp-color-picker::-moz-placeholder{color:#72777c;opacity:1}.wp-color-picker:-ms-input-placeholder{color:#72777c}.wp-picker-container input[type=text].iris-error{background-color:#ffebe8;border-color:#c00;color:#000}.iris-picker .iris-strip .ui-slider-handle:focus,.iris-picker .ui-square-handle:focus{box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.iris-picker .iris-palette:focus{box-shadow:inset 0 0 5px rgba(0,0,0,.4),0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}@media screen and (max-width:782px){.wp-picker-container input[type=text].wp-color-picker{width:5rem;font-size:16px;line-height:1.875;min-height:32px}.wp-customizer .wp-picker-container input[type=text].wp-color-picker{padding:0 5px}.wp-picker-input-wrap .button.wp-picker-default{padding:0 8px;line-height:2.14285714;min-height:32px}.wp-customizer .wp-picker-input-wrap .button.wp-picker-default{padding:0 8px;font-size:14px;line-height:2.14285714;min-height:32px}.wp-picker-container .wp-color-result.button{padding:0 0 0 40px;font-size:14px;line-height:2.14285714}.wp-customizer .wp-picker-container .wp-color-result.button{font-size:14px;line-height:2.14285714}.wp-picker-container .wp-color-result-text{padding:0 14px;font-size:inherit;line-height:inherit}.wp-customizer .wp-picker-container .wp-color-result-text{padding:0 10px}} .wp-color-picker{width:80px;direction:ltr}.wp-picker-container .hidden{display:none}.wp-picker-container .wp-color-result.button{min-height:30px;margin:0 6px 6px 0;padding:0 0 0 30px;font-size:11px}.wp-color-result-text{background:#f7f7f7;border-radius:0 2px 2px 0;border-left:1px solid #ccc;color:#555;display:block;line-height:2.54545455;padding:0 6px;text-align:center}.wp-color-result:focus,.wp-color-result:hover{background:#fafafa;border-color:#999;color:#23282d}.wp-color-result:focus:after,.wp-color-result:hover:after{color:#23282d;border-color:#a0a5aa;border-left:1px solid #999}.wp-picker-container{display:inline-block}.wp-color-result:focus{border-color:#5b9dd9;box-shadow:0 0 3px rgba(0,115,170,.8)}.wp-color-result:active{transform:none!important}.wp-picker-open+.wp-picker-input-wrap{display:inline-block;vertical-align:top}.wp-picker-input-wrap label{display:inline-block;vertical-align:top}.form-table .wp-picker-input-wrap label{margin:0!important}.wp-customizer .wp-picker-input-wrap .button.wp-picker-default,.wp-picker-input-wrap .button.wp-picker-default{margin-left:6px;padding:0 8px;line-height:2.54545455;min-height:30px}.wp-picker-container .iris-square-slider .ui-slider-handle:focus{background-color:#555}.wp-picker-container .iris-picker{border-radius:0;border-color:#ddd;margin-top:6px}.wp-picker-container input[type=text].wp-color-picker{width:4rem;font-size:12px;font-family:monospace;line-height:2.33333333;margin:0;padding:0 5px;vertical-align:top;min-height:30px}.wp-color-picker::-webkit-input-placeholder{color:#72777c}.wp-color-picker::-moz-placeholder{color:#72777c;opacity:1}.wp-color-picker:-ms-input-placeholder{color:#72777c}.wp-picker-container input[type=text].iris-error{background-color:#ffebe8;border-color:#c00;color:#000}.iris-picker .iris-strip .ui-slider-handle:focus,.iris-picker .ui-square-handle:focus{border-color:#007cba;border-style:solid;box-shadow:0 0 0 1px #007cba;outline:2px solid transparent}.iris-picker .iris-palette:focus{box-shadow:0 0 0 2px #007cba}@media screen and (max-width:782px){.wp-picker-container input[type=text].wp-color-picker{width:5rem;font-size:16px;line-height:1.875;min-height:32px}.wp-customizer .wp-picker-container input[type=text].wp-color-picker{padding:0 5px}.wp-picker-input-wrap .button.wp-picker-default{padding:0 8px;line-height:2.14285714;min-height:32px}.wp-customizer .wp-picker-input-wrap .button.wp-picker-default{padding:0 8px;font-size:14px;line-height:2.14285714;min-height:32px}.wp-picker-container .wp-color-result.button{padding:0 0 0 40px;font-size:14px;line-height:2.14285714}.wp-customizer .wp-picker-container .wp-color-result.button{font-size:14px;line-height:2.14285714}.wp-picker-container .wp-color-result-text{padding:0 14px;font-size:inherit;line-height:inherit}.wp-customizer .wp-picker-container .wp-color-result-text{padding:0 10px}}

View File

@ -1,3 +1,4 @@
/*! This file is auto-generated */
/* 2 column liquid layout */ /* 2 column liquid layout */
#wpwrap { #wpwrap {
height: auto; height: auto;
@ -2151,7 +2152,8 @@ html.wp-toolbar {
#pass-strength-result.short, #pass-strength-result.short,
#ed_reply_toolbar #ed_reply_strong, #ed_reply_toolbar #ed_reply_strong,
.item-controls .item-order a, .item-controls .item-order a,
.feature-filter .feature-name { .feature-filter .feature-name,
#comment-status-display {
font-weight: 600; font-weight: 600;
} }
@ -3922,7 +3924,7 @@ img {
.fileedit-sub input[type="submit"] { .fileedit-sub input[type="submit"] {
margin-bottom: 0px; margin-bottom: 0px;
padding: 4px 18px; padding: 0px 18px;
} }
#documentation label[for="docs-list"] { #documentation label[for="docs-list"] {

File diff suppressed because one or more lines are too long

View File

@ -2151,7 +2151,8 @@ html.wp-toolbar {
#pass-strength-result.short, #pass-strength-result.short,
#ed_reply_toolbar #ed_reply_strong, #ed_reply_toolbar #ed_reply_strong,
.item-controls .item-order a, .item-controls .item-order a,
.feature-filter .feature-name { .feature-filter .feature-name,
#comment-status-display {
font-weight: 600; font-weight: 600;
} }
@ -3922,7 +3923,7 @@ img {
.fileedit-sub input[type="submit"] { .fileedit-sub input[type="submit"] {
margin-bottom: 0px; margin-bottom: 0px;
padding: 4px 18px; padding: 0px 18px;
} }
#documentation label[for="docs-list"] { #documentation label[for="docs-list"] {

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,4 @@
/*! This file is auto-generated */
body { body {
overflow: hidden; overflow: hidden;
-webkit-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;
@ -1392,12 +1393,10 @@ p.customize-section-description {
.customize-control .attachment-media-view .button-add-media:focus { .customize-control .attachment-media-view .button-add-media:focus {
background-color: #fbfbfc; background-color: #fbfbfc;
border-color: #007cba;
border-style: solid; border-style: solid;
border-color: #5b9dd9; box-shadow: 0 0 0 1px #007cba;
box-shadow: 0 0 3px rgba( 0, 115, 170, .8 );
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent; outline: 2px solid transparent;
outline-offset: -2px;
} }
.customize-control-header .inner { .customize-control-header .inner {
@ -1633,7 +1632,7 @@ p.customize-section-description {
.theme-browser .theme.active .theme-actions, .theme-browser .theme.active .theme-actions,
.wp-customizer .theme-browser .theme .theme-actions { .wp-customizer .theme-browser .theme .theme-actions {
padding: 10px 15px; padding: 9px 15px;
box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1); box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1);
} }
@ -2939,21 +2938,9 @@ body.adding-widget .add-new-widget:before,
.wp-core-ui .themes-filter-bar .feature-filter-toggle { .wp-core-ui .themes-filter-bar .feature-filter-toggle {
margin: 0; margin: 0;
} }
.theme-browser .theme.active .theme-actions,
.wp-customizer .theme-browser .theme .theme-actions {
padding: 9px 15px;
box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1);
}
} }
@media screen and (max-width: 600px) { @media screen and (max-width: 600px) {
.theme-browser .theme.active .theme-actions,
.wp-customizer .theme-browser .theme .theme-actions {
padding: 8px 15px;
box-shadow: none;
}
.wp-full-overlay.expanded { .wp-full-overlay.expanded {
margin-right: 0; margin-right: 0;
} }

File diff suppressed because one or more lines are too long

View File

@ -1392,12 +1392,10 @@ p.customize-section-description {
.customize-control .attachment-media-view .button-add-media:focus { .customize-control .attachment-media-view .button-add-media:focus {
background-color: #fbfbfc; background-color: #fbfbfc;
border-color: #007cba;
border-style: solid; border-style: solid;
border-color: #5b9dd9; box-shadow: 0 0 0 1px #007cba;
box-shadow: 0 0 3px rgba( 0, 115, 170, .8 );
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent; outline: 2px solid transparent;
outline-offset: -2px;
} }
.customize-control-header .inner { .customize-control-header .inner {
@ -1633,7 +1631,7 @@ p.customize-section-description {
.theme-browser .theme.active .theme-actions, .theme-browser .theme.active .theme-actions,
.wp-customizer .theme-browser .theme .theme-actions { .wp-customizer .theme-browser .theme .theme-actions {
padding: 10px 15px; padding: 9px 15px;
box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1); box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1);
} }
@ -2939,21 +2937,9 @@ body.adding-widget .add-new-widget:before,
.wp-core-ui .themes-filter-bar .feature-filter-toggle { .wp-core-ui .themes-filter-bar .feature-filter-toggle {
margin: 0; margin: 0;
} }
.theme-browser .theme.active .theme-actions,
.wp-customizer .theme-browser .theme .theme-actions {
padding: 9px 15px;
box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1);
}
} }
@media screen and (max-width: 600px) { @media screen and (max-width: 600px) {
.theme-browser .theme.active .theme-actions,
.wp-customizer .theme-browser .theme .theme-actions {
padding: 8px 15px;
box-shadow: none;
}
.wp-full-overlay.expanded { .wp-full-overlay.expanded {
margin-left: 0; margin-left: 0;
} }

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,4 @@
/*! This file is auto-generated */
#customize-theme-controls #accordion-section-menu_locations { #customize-theme-controls #accordion-section-menu_locations {
position: relative; position: relative;
margin-top: 30px; margin-top: 30px;

View File

@ -1,3 +1,4 @@
/*! This file is auto-generated */
.wp-full-overlay-sidebar { .wp-full-overlay-sidebar {
overflow: visible; overflow: visible;
} }
@ -310,76 +311,76 @@ body.adding-widget #customize-preview {
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
/* smiley */ /* dashicons-smiley */
#available-widgets [class*="easy"] .widget-title:before { content: "\f328"; top: -4px; } #available-widgets [class*="easy"] .widget-title:before { content: "\f328"; top: -4px; }
/* star-filled */ /* dashicons-star-filled */
#available-widgets [class*="super"] .widget-title:before, #available-widgets [class*="super"] .widget-title:before,
#available-widgets [class*="like"] .widget-title:before { content: "\f155"; top: -4px; } #available-widgets [class*="like"] .widget-title:before { content: "\f155"; top: -4px; }
/* wordpress */ /* dashicons-wordpress */
#available-widgets [class*="meta"] .widget-title:before { content: "\f120"; } #available-widgets [class*="meta"] .widget-title:before { content: "\f120"; }
/* archive-box */ /* dashicons-archive */
#available-widgets [class*="archives"] .widget-title:before { content: "\f480"; top: -4px; } #available-widgets [class*="archives"] .widget-title:before { content: "\f480"; top: -4px; }
/* category */ /* dashicons-category */
#available-widgets [class*="categor"] .widget-title:before { content: "\f318"; top: -4px; } #available-widgets [class*="categor"] .widget-title:before { content: "\f318"; top: -4px; }
/* comments */ /* dashicons-admin-comments */
#available-widgets [class*="comment"] .widget-title:before, #available-widgets [class*="comment"] .widget-title:before,
#available-widgets [class*="testimonial"] .widget-title:before, #available-widgets [class*="testimonial"] .widget-title:before,
#available-widgets [class*="chat"] .widget-title:before { content: "\f101"; } #available-widgets [class*="chat"] .widget-title:before { content: "\f101"; }
/* post */ /* dashicons-admin-post */
#available-widgets [class*="post"] .widget-title:before { content: "\f109"; } #available-widgets [class*="post"] .widget-title:before { content: "\f109"; }
/* admin-page */ /* dashicons-admin-page */
#available-widgets [class*="page"] .widget-title:before { content: "\f105"; } #available-widgets [class*="page"] .widget-title:before { content: "\f105"; }
/* text */ /* dashicons-text */
#available-widgets [class*="text"] .widget-title:before { content: "\f478"; } #available-widgets [class*="text"] .widget-title:before { content: "\f478"; }
/* links */ /* dashicons-admin-links */
#available-widgets [class*="link"] .widget-title:before { content: "\f103"; } #available-widgets [class*="link"] .widget-title:before { content: "\f103"; }
/* search */ /* dashicons-search */
#available-widgets [class*="search"] .widget-title:before { content: "\f179"; } #available-widgets [class*="search"] .widget-title:before { content: "\f179"; }
/* menu */ /* dashicons-menu */
#available-widgets [class*="menu"] .widget-title:before, #available-widgets [class*="menu"] .widget-title:before,
#available-widgets [class*="nav"] .widget-title:before { content: "\f333"; } #available-widgets [class*="nav"] .widget-title:before { content: "\f333"; }
/* tag-cloud */ /* dashicons-tagcloud */
#available-widgets [class*="tag"] .widget-title:before { content: "\f479"; } #available-widgets [class*="tag"] .widget-title:before { content: "\f479"; }
/* rss */ /* dashicons-rss */
#available-widgets [class*="rss"] .widget-title:before { content: "\f303"; top: -6px; } #available-widgets [class*="rss"] .widget-title:before { content: "\f303"; top: -6px; }
/* calendar */ /* dashicons-calendar */
#available-widgets [class*="event"] .widget-title:before, #available-widgets [class*="event"] .widget-title:before,
#available-widgets [class*="calendar"] .widget-title:before { content: "\f145"; top: -4px;} #available-widgets [class*="calendar"] .widget-title:before { content: "\f145"; top: -4px;}
/* format-image */ /* dashicons-format-image */
#available-widgets [class*="image"] .widget-title:before, #available-widgets [class*="image"] .widget-title:before,
#available-widgets [class*="photo"] .widget-title:before, #available-widgets [class*="photo"] .widget-title:before,
#available-widgets [class*="slide"] .widget-title:before, #available-widgets [class*="slide"] .widget-title:before,
#available-widgets [class*="instagram"] .widget-title:before { content: "\f128"; } #available-widgets [class*="instagram"] .widget-title:before { content: "\f128"; }
/* format-gallery */ /* dashicons-format-gallery */
#available-widgets [class*="album"] .widget-title:before, #available-widgets [class*="album"] .widget-title:before,
#available-widgets [class*="galler"] .widget-title:before { content: "\f161"; } #available-widgets [class*="galler"] .widget-title:before { content: "\f161"; }
/* format-video */ /* dashicons-format-video */
#available-widgets [class*="video"] .widget-title:before, #available-widgets [class*="video"] .widget-title:before,
#available-widgets [class*="tube"] .widget-title:before { content: "\f126"; } #available-widgets [class*="tube"] .widget-title:before { content: "\f126"; }
/* format-audio */ /* dashicons-format-audio */
#available-widgets [class*="music"] .widget-title:before, #available-widgets [class*="music"] .widget-title:before,
#available-widgets [class*="radio"] .widget-title:before, #available-widgets [class*="radio"] .widget-title:before,
#available-widgets [class*="audio"] .widget-title:before { content: "\f127"; } #available-widgets [class*="audio"] .widget-title:before { content: "\f127"; }
/* admin-users */ /* dashicons-admin-users */
#available-widgets [class*="login"] .widget-title:before, #available-widgets [class*="login"] .widget-title:before,
#available-widgets [class*="user"] .widget-title:before, #available-widgets [class*="user"] .widget-title:before,
#available-widgets [class*="member"] .widget-title:before, #available-widgets [class*="member"] .widget-title:before,
@ -388,51 +389,51 @@ body.adding-widget #customize-preview {
#available-widgets [class*="profile"] .widget-title:before, #available-widgets [class*="profile"] .widget-title:before,
#available-widgets [class*="grofile"] .widget-title:before { content: "\f110"; } #available-widgets [class*="grofile"] .widget-title:before { content: "\f110"; }
/* cart */ /* dashicons-cart */
#available-widgets [class*="commerce"] .widget-title:before, #available-widgets [class*="commerce"] .widget-title:before,
#available-widgets [class*="shop"] .widget-title:before, #available-widgets [class*="shop"] .widget-title:before,
#available-widgets [class*="cart"] .widget-title:before { content: "\f174"; top: -4px; } #available-widgets [class*="cart"] .widget-title:before { content: "\f174"; top: -4px; }
/* shield */ /* dashicons-shield */
#available-widgets [class*="secur"] .widget-title:before, #available-widgets [class*="secur"] .widget-title:before,
#available-widgets [class*="firewall"] .widget-title:before { content: "\f332"; } #available-widgets [class*="firewall"] .widget-title:before { content: "\f332"; }
/* chart-bar */ /* dashicons-chart-bar */
#available-widgets [class*="analytic"] .widget-title:before, #available-widgets [class*="analytic"] .widget-title:before,
#available-widgets [class*="stat"] .widget-title:before, #available-widgets [class*="stat"] .widget-title:before,
#available-widgets [class*="poll"] .widget-title:before { content: "\f185"; } #available-widgets [class*="poll"] .widget-title:before { content: "\f185"; }
/* feedback */ /* dashicons-feedback */
#available-widgets [class*="form"] .widget-title:before { content: "\f175"; } #available-widgets [class*="form"] .widget-title:before { content: "\f175"; }
/* email-alt */ /* dashicons-email-alt */
#available-widgets [class*="subscribe"] .widget-title:before, #available-widgets [class*="subscribe"] .widget-title:before,
#available-widgets [class*="news"] .widget-title:before, #available-widgets [class*="news"] .widget-title:before,
#available-widgets [class*="contact"] .widget-title:before, #available-widgets [class*="contact"] .widget-title:before,
#available-widgets [class*="mail"] .widget-title:before { content: "\f466"; } #available-widgets [class*="mail"] .widget-title:before { content: "\f466"; }
/* share */ /* dashicons-share */
#available-widgets [class*="share"] .widget-title:before, #available-widgets [class*="share"] .widget-title:before,
#available-widgets [class*="socia"] .widget-title:before { content: "\f237"; } #available-widgets [class*="socia"] .widget-title:before { content: "\f237"; }
/* translation */ /* dashicons-translation */
#available-widgets [class*="lang"] .widget-title:before, #available-widgets [class*="lang"] .widget-title:before,
#available-widgets [class*="translat"] .widget-title:before { content: "\f326"; } #available-widgets [class*="translat"] .widget-title:before { content: "\f326"; }
/* location-alt */ /* dashicons-location-alt */
#available-widgets [class*="locat"] .widget-title:before, #available-widgets [class*="locat"] .widget-title:before,
#available-widgets [class*="map"] .widget-title:before { content: "\f231"; } #available-widgets [class*="map"] .widget-title:before { content: "\f231"; }
/* download */ /* dashicons-download */
#available-widgets [class*="download"] .widget-title:before { content: "\f316"; } #available-widgets [class*="download"] .widget-title:before { content: "\f316"; }
/* cloud */ /* dashicons-cloud */
#available-widgets [class*="weather"] .widget-title:before { content: "\f176"; top: -4px;} #available-widgets [class*="weather"] .widget-title:before { content: "\f176"; top: -4px;}
/* facebook */ /* dashicons-facebook */
#available-widgets [class*="facebook"] .widget-title:before { content: "\f304"; } #available-widgets [class*="facebook"] .widget-title:before { content: "\f304"; }
/* twitter */ /* dashicons-twitter */
#available-widgets [class*="tweet"] .widget-title:before, #available-widgets [class*="tweet"] .widget-title:before,
#available-widgets [class*="twitter"] .widget-title:before { content: "\f301"; } #available-widgets [class*="twitter"] .widget-title:before { content: "\f301"; }

View File

@ -310,76 +310,76 @@ body.adding-widget #customize-preview {
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
/* smiley */ /* dashicons-smiley */
#available-widgets [class*="easy"] .widget-title:before { content: "\f328"; top: -4px; } #available-widgets [class*="easy"] .widget-title:before { content: "\f328"; top: -4px; }
/* star-filled */ /* dashicons-star-filled */
#available-widgets [class*="super"] .widget-title:before, #available-widgets [class*="super"] .widget-title:before,
#available-widgets [class*="like"] .widget-title:before { content: "\f155"; top: -4px; } #available-widgets [class*="like"] .widget-title:before { content: "\f155"; top: -4px; }
/* wordpress */ /* dashicons-wordpress */
#available-widgets [class*="meta"] .widget-title:before { content: "\f120"; } #available-widgets [class*="meta"] .widget-title:before { content: "\f120"; }
/* archive-box */ /* dashicons-archive */
#available-widgets [class*="archives"] .widget-title:before { content: "\f480"; top: -4px; } #available-widgets [class*="archives"] .widget-title:before { content: "\f480"; top: -4px; }
/* category */ /* dashicons-category */
#available-widgets [class*="categor"] .widget-title:before { content: "\f318"; top: -4px; } #available-widgets [class*="categor"] .widget-title:before { content: "\f318"; top: -4px; }
/* comments */ /* dashicons-admin-comments */
#available-widgets [class*="comment"] .widget-title:before, #available-widgets [class*="comment"] .widget-title:before,
#available-widgets [class*="testimonial"] .widget-title:before, #available-widgets [class*="testimonial"] .widget-title:before,
#available-widgets [class*="chat"] .widget-title:before { content: "\f101"; } #available-widgets [class*="chat"] .widget-title:before { content: "\f101"; }
/* post */ /* dashicons-admin-post */
#available-widgets [class*="post"] .widget-title:before { content: "\f109"; } #available-widgets [class*="post"] .widget-title:before { content: "\f109"; }
/* admin-page */ /* dashicons-admin-page */
#available-widgets [class*="page"] .widget-title:before { content: "\f105"; } #available-widgets [class*="page"] .widget-title:before { content: "\f105"; }
/* text */ /* dashicons-text */
#available-widgets [class*="text"] .widget-title:before { content: "\f478"; } #available-widgets [class*="text"] .widget-title:before { content: "\f478"; }
/* links */ /* dashicons-admin-links */
#available-widgets [class*="link"] .widget-title:before { content: "\f103"; } #available-widgets [class*="link"] .widget-title:before { content: "\f103"; }
/* search */ /* dashicons-search */
#available-widgets [class*="search"] .widget-title:before { content: "\f179"; } #available-widgets [class*="search"] .widget-title:before { content: "\f179"; }
/* menu */ /* dashicons-menu */
#available-widgets [class*="menu"] .widget-title:before, #available-widgets [class*="menu"] .widget-title:before,
#available-widgets [class*="nav"] .widget-title:before { content: "\f333"; } #available-widgets [class*="nav"] .widget-title:before { content: "\f333"; }
/* tag-cloud */ /* dashicons-tagcloud */
#available-widgets [class*="tag"] .widget-title:before { content: "\f479"; } #available-widgets [class*="tag"] .widget-title:before { content: "\f479"; }
/* rss */ /* dashicons-rss */
#available-widgets [class*="rss"] .widget-title:before { content: "\f303"; top: -6px; } #available-widgets [class*="rss"] .widget-title:before { content: "\f303"; top: -6px; }
/* calendar */ /* dashicons-calendar */
#available-widgets [class*="event"] .widget-title:before, #available-widgets [class*="event"] .widget-title:before,
#available-widgets [class*="calendar"] .widget-title:before { content: "\f145"; top: -4px;} #available-widgets [class*="calendar"] .widget-title:before { content: "\f145"; top: -4px;}
/* format-image */ /* dashicons-format-image */
#available-widgets [class*="image"] .widget-title:before, #available-widgets [class*="image"] .widget-title:before,
#available-widgets [class*="photo"] .widget-title:before, #available-widgets [class*="photo"] .widget-title:before,
#available-widgets [class*="slide"] .widget-title:before, #available-widgets [class*="slide"] .widget-title:before,
#available-widgets [class*="instagram"] .widget-title:before { content: "\f128"; } #available-widgets [class*="instagram"] .widget-title:before { content: "\f128"; }
/* format-gallery */ /* dashicons-format-gallery */
#available-widgets [class*="album"] .widget-title:before, #available-widgets [class*="album"] .widget-title:before,
#available-widgets [class*="galler"] .widget-title:before { content: "\f161"; } #available-widgets [class*="galler"] .widget-title:before { content: "\f161"; }
/* format-video */ /* dashicons-format-video */
#available-widgets [class*="video"] .widget-title:before, #available-widgets [class*="video"] .widget-title:before,
#available-widgets [class*="tube"] .widget-title:before { content: "\f126"; } #available-widgets [class*="tube"] .widget-title:before { content: "\f126"; }
/* format-audio */ /* dashicons-format-audio */
#available-widgets [class*="music"] .widget-title:before, #available-widgets [class*="music"] .widget-title:before,
#available-widgets [class*="radio"] .widget-title:before, #available-widgets [class*="radio"] .widget-title:before,
#available-widgets [class*="audio"] .widget-title:before { content: "\f127"; } #available-widgets [class*="audio"] .widget-title:before { content: "\f127"; }
/* admin-users */ /* dashicons-admin-users */
#available-widgets [class*="login"] .widget-title:before, #available-widgets [class*="login"] .widget-title:before,
#available-widgets [class*="user"] .widget-title:before, #available-widgets [class*="user"] .widget-title:before,
#available-widgets [class*="member"] .widget-title:before, #available-widgets [class*="member"] .widget-title:before,
@ -388,51 +388,51 @@ body.adding-widget #customize-preview {
#available-widgets [class*="profile"] .widget-title:before, #available-widgets [class*="profile"] .widget-title:before,
#available-widgets [class*="grofile"] .widget-title:before { content: "\f110"; } #available-widgets [class*="grofile"] .widget-title:before { content: "\f110"; }
/* cart */ /* dashicons-cart */
#available-widgets [class*="commerce"] .widget-title:before, #available-widgets [class*="commerce"] .widget-title:before,
#available-widgets [class*="shop"] .widget-title:before, #available-widgets [class*="shop"] .widget-title:before,
#available-widgets [class*="cart"] .widget-title:before { content: "\f174"; top: -4px; } #available-widgets [class*="cart"] .widget-title:before { content: "\f174"; top: -4px; }
/* shield */ /* dashicons-shield */
#available-widgets [class*="secur"] .widget-title:before, #available-widgets [class*="secur"] .widget-title:before,
#available-widgets [class*="firewall"] .widget-title:before { content: "\f332"; } #available-widgets [class*="firewall"] .widget-title:before { content: "\f332"; }
/* chart-bar */ /* dashicons-chart-bar */
#available-widgets [class*="analytic"] .widget-title:before, #available-widgets [class*="analytic"] .widget-title:before,
#available-widgets [class*="stat"] .widget-title:before, #available-widgets [class*="stat"] .widget-title:before,
#available-widgets [class*="poll"] .widget-title:before { content: "\f185"; } #available-widgets [class*="poll"] .widget-title:before { content: "\f185"; }
/* feedback */ /* dashicons-feedback */
#available-widgets [class*="form"] .widget-title:before { content: "\f175"; } #available-widgets [class*="form"] .widget-title:before { content: "\f175"; }
/* email-alt */ /* dashicons-email-alt */
#available-widgets [class*="subscribe"] .widget-title:before, #available-widgets [class*="subscribe"] .widget-title:before,
#available-widgets [class*="news"] .widget-title:before, #available-widgets [class*="news"] .widget-title:before,
#available-widgets [class*="contact"] .widget-title:before, #available-widgets [class*="contact"] .widget-title:before,
#available-widgets [class*="mail"] .widget-title:before { content: "\f466"; } #available-widgets [class*="mail"] .widget-title:before { content: "\f466"; }
/* share */ /* dashicons-share */
#available-widgets [class*="share"] .widget-title:before, #available-widgets [class*="share"] .widget-title:before,
#available-widgets [class*="socia"] .widget-title:before { content: "\f237"; } #available-widgets [class*="socia"] .widget-title:before { content: "\f237"; }
/* translation */ /* dashicons-translation */
#available-widgets [class*="lang"] .widget-title:before, #available-widgets [class*="lang"] .widget-title:before,
#available-widgets [class*="translat"] .widget-title:before { content: "\f326"; } #available-widgets [class*="translat"] .widget-title:before { content: "\f326"; }
/* location-alt */ /* dashicons-location-alt */
#available-widgets [class*="locat"] .widget-title:before, #available-widgets [class*="locat"] .widget-title:before,
#available-widgets [class*="map"] .widget-title:before { content: "\f231"; } #available-widgets [class*="map"] .widget-title:before { content: "\f231"; }
/* download */ /* dashicons-download */
#available-widgets [class*="download"] .widget-title:before { content: "\f316"; } #available-widgets [class*="download"] .widget-title:before { content: "\f316"; }
/* cloud */ /* dashicons-cloud */
#available-widgets [class*="weather"] .widget-title:before { content: "\f176"; top: -4px;} #available-widgets [class*="weather"] .widget-title:before { content: "\f176"; top: -4px;}
/* facebook */ /* dashicons-facebook */
#available-widgets [class*="facebook"] .widget-title:before { content: "\f304"; } #available-widgets [class*="facebook"] .widget-title:before { content: "\f304"; }
/* twitter */ /* dashicons-twitter */
#available-widgets [class*="tweet"] .widget-title:before, #available-widgets [class*="tweet"] .widget-title:before,
#available-widgets [class*="twitter"] .widget-title:before { content: "\f301"; } #available-widgets [class*="twitter"] .widget-title:before { content: "\f301"; }

View File

@ -1,3 +1,4 @@
/*! This file is auto-generated */
#wpbody-content #dashboard-widgets.columns-1 .postbox-container { #wpbody-content #dashboard-widgets.columns-1 .postbox-container {
width: 100%; width: 100%;
} }
@ -821,7 +822,7 @@ body #dashboard-widgets .postbox form .submit {
top: 12px; top: 12px;
} }
#activity-widget #the-comment-list .dashboard-comment-wrap { #activity-widget #the-comment-list .dashboard-comment-wrap.has-avatar {
padding-right: 63px; padding-right: 63px;
} }

File diff suppressed because one or more lines are too long

View File

@ -821,7 +821,7 @@ body #dashboard-widgets .postbox form .submit {
top: 12px; top: 12px;
} }
#activity-widget #the-comment-list .dashboard-comment-wrap { #activity-widget #the-comment-list .dashboard-comment-wrap.has-avatar {
padding-left: 63px; padding-left: 63px;
} }

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,4 @@
/*! This file is auto-generated */
/* Styles for the media library iframe (not used on the Library screen) */ /* Styles for the media library iframe (not used on the Library screen) */
div#media-upload-header { div#media-upload-header {

View File

@ -1,3 +1,4 @@
/*! This file is auto-generated */
#poststuff { #poststuff {
padding-top: 10px; padding-top: 10px;
min-width: 763px; min-width: 763px;
@ -421,7 +422,7 @@ form#tags-filter {
#timestampdiv select { #timestampdiv select {
vertical-align: top; vertical-align: top;
font-size: 12px; font-size: 12px;
line-height: 1.5; /* 18px */ line-height: 2.33333333; /* 28px */
} }
#aa, #jj, #hh, #mn { #aa, #jj, #hh, #mn {
@ -447,14 +448,18 @@ form#tags-filter {
#post-body .misc-pub-post-status:before, #post-body .misc-pub-post-status:before,
#post-body #visibility:before, #post-body #visibility:before,
.curtime #timestamp:before, .curtime #timestamp:before,
#post-body .misc-pub-revisions:before { #post-body .misc-pub-revisions:before,
#post-body .misc-pub-response-to:before,
#post-body .misc-pub-comment-status:before {
color: #82878c; color: #82878c;
} }
#post-body .misc-pub-post-status:before, #post-body .misc-pub-post-status:before,
#post-body #visibility:before, #post-body #visibility:before,
.curtime #timestamp:before, .curtime #timestamp:before,
#post-body .misc-pub-revisions:before { #post-body .misc-pub-revisions:before,
#post-body .misc-pub-response-to:before,
#post-body .misc-pub-comment-status:before {
font: normal 20px/1 dashicons; font: normal 20px/1 dashicons;
speak: none; speak: none;
display: inline-block; display: inline-block;
@ -465,7 +470,8 @@ form#tags-filter {
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
#post-body .misc-pub-post-status:before { #post-body .misc-pub-post-status:before,
#post-body .misc-pub-comment-status:before {
content: "\f173"; content: "\f173";
} }
@ -483,6 +489,10 @@ form#tags-filter {
content: "\f321"; content: "\f321";
} }
#post-body .misc-pub-response-to:before {
content: "\f101";
}
#timestampdiv { #timestampdiv {
padding-top: 5px; padding-top: 5px;
line-height: 1.76923076; line-height: 1.76923076;
@ -609,6 +619,10 @@ form#tags-filter {
padding: 8px 10px; padding: 8px 10px;
} }
#poststuff .stuffbox > h2 {
border-bottom: 1px solid #eee;
}
#poststuff .inside { #poststuff .inside {
margin: 6px 0 0 0; margin: 6px 0 0 0;
} }
@ -636,7 +650,8 @@ form#tags-filter {
font-weight: 600; font-weight: 600;
} }
#post-visibility-select { #post-visibility-select,
#comment-status-radio {
line-height: 1.5; line-height: 1.5;
margin-top: 3px; margin-top: 3px;
} }
@ -729,16 +744,49 @@ form#tags-filter {
margin-top: 6px; margin-top: 6px;
} }
.hide-privacy-policy-tutorial {
background-color: #fff;
}
.hide-privacy-policy-tutorial .wp-policy-help, /* For back-compat, see #49282 */
.hide-privacy-policy-tutorial .privacy-policy-tutorial { .hide-privacy-policy-tutorial .privacy-policy-tutorial {
visibility: hidden; display: none;
} }
.wp-suggested-text p { .policy-text {
font-style: italic; margin-bottom: 1em;
} }
.wp-suggested-text p.privacy-policy-tutorial { .policy-text > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help),
font-style: normal; .policy-text div > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help) {
background-color: #fff;
margin: 0;
padding: 1em;
}
.policy-text > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help) + *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help),
.policy-text div > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help) + *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help) {
padding-top: 0;
}
.hide-privacy-policy-tutorial > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help) {
margin: 1em 0;
padding: 0;
}
.policy-text ul li,
.policy-text ol li {
margin-right: 2em;
}
.policy-text ul {
list-style: disc;
}
strong.wp-policy-help, /* For back-compat, see #49282 */
strong.privacy-policy-tutorial {
display: block;
margin: 0 0 1em;
} }
.notice.wp-pp-notice { .notice.wp-pp-notice {
@ -979,6 +1027,11 @@ div.tabs-panel-inactive {
display: none; display: none;
} }
div.tabs-panel-active:focus {
box-shadow: inset 0 0 0 1px #5b9dd9, inset 0 0 2px 1px rgba(30, 140, 190, 0.8);
outline: 0 none;
}
#front-page-warning, #front-page-warning,
#front-static-pages ul, #front-static-pages ul,
ul.export-filters, ul.export-filters,
@ -1387,6 +1440,40 @@ table.links-table {
} }
} }
/* one column on the attachment editor screen */
@media only screen and (max-width: 1200px) {
.post-type-attachment #poststuff {
min-width: 0;
}
.post-type-attachment #wpbody-content #poststuff #post-body {
margin: 0;
}
.post-type-attachment #wpbody-content #post-body.columns-2 #postbox-container-1 {
margin-left: 0;
width: 100%;
}
.post-type-attachment #poststuff #postbox-container-1 .empty-container,
.post-type-attachment #poststuff #postbox-container-1 #side-sortables:empty {
border: 0 none;
height: 0;
min-height: 0;
}
.post-type-attachment #poststuff #post-body.columns-2 #side-sortables {
min-height: 0;
width: auto;
}
/* hide the radio buttons for column prefs */
.post-type-attachment .screen-layout,
.post-type-attachment .columns-prefs {
display: none;
}
}
/* one column on the post write/edit screen */ /* one column on the post write/edit screen */
@media only screen and (max-width: 850px) { @media only screen and (max-width: 850px) {
#poststuff { #poststuff {

File diff suppressed because one or more lines are too long

View File

@ -421,7 +421,7 @@ form#tags-filter {
#timestampdiv select { #timestampdiv select {
vertical-align: top; vertical-align: top;
font-size: 12px; font-size: 12px;
line-height: 1.5; /* 18px */ line-height: 2.33333333; /* 28px */
} }
#aa, #jj, #hh, #mn { #aa, #jj, #hh, #mn {
@ -447,14 +447,18 @@ form#tags-filter {
#post-body .misc-pub-post-status:before, #post-body .misc-pub-post-status:before,
#post-body #visibility:before, #post-body #visibility:before,
.curtime #timestamp:before, .curtime #timestamp:before,
#post-body .misc-pub-revisions:before { #post-body .misc-pub-revisions:before,
#post-body .misc-pub-response-to:before,
#post-body .misc-pub-comment-status:before {
color: #82878c; color: #82878c;
} }
#post-body .misc-pub-post-status:before, #post-body .misc-pub-post-status:before,
#post-body #visibility:before, #post-body #visibility:before,
.curtime #timestamp:before, .curtime #timestamp:before,
#post-body .misc-pub-revisions:before { #post-body .misc-pub-revisions:before,
#post-body .misc-pub-response-to:before,
#post-body .misc-pub-comment-status:before {
font: normal 20px/1 dashicons; font: normal 20px/1 dashicons;
speak: none; speak: none;
display: inline-block; display: inline-block;
@ -465,7 +469,8 @@ form#tags-filter {
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
#post-body .misc-pub-post-status:before { #post-body .misc-pub-post-status:before,
#post-body .misc-pub-comment-status:before {
content: "\f173"; content: "\f173";
} }
@ -483,6 +488,10 @@ form#tags-filter {
content: "\f321"; content: "\f321";
} }
#post-body .misc-pub-response-to:before {
content: "\f101";
}
#timestampdiv { #timestampdiv {
padding-top: 5px; padding-top: 5px;
line-height: 1.76923076; line-height: 1.76923076;
@ -609,6 +618,10 @@ form#tags-filter {
padding: 8px 10px; padding: 8px 10px;
} }
#poststuff .stuffbox > h2 {
border-bottom: 1px solid #eee;
}
#poststuff .inside { #poststuff .inside {
margin: 6px 0 0 0; margin: 6px 0 0 0;
} }
@ -636,7 +649,8 @@ form#tags-filter {
font-weight: 600; font-weight: 600;
} }
#post-visibility-select { #post-visibility-select,
#comment-status-radio {
line-height: 1.5; line-height: 1.5;
margin-top: 3px; margin-top: 3px;
} }
@ -729,16 +743,49 @@ form#tags-filter {
margin-top: 6px; margin-top: 6px;
} }
.hide-privacy-policy-tutorial {
background-color: #fff;
}
.hide-privacy-policy-tutorial .wp-policy-help, /* For back-compat, see #49282 */
.hide-privacy-policy-tutorial .privacy-policy-tutorial { .hide-privacy-policy-tutorial .privacy-policy-tutorial {
visibility: hidden; display: none;
} }
.wp-suggested-text p { .policy-text {
font-style: italic; margin-bottom: 1em;
} }
.wp-suggested-text p.privacy-policy-tutorial { .policy-text > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help),
font-style: normal; .policy-text div > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help) {
background-color: #fff;
margin: 0;
padding: 1em;
}
.policy-text > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help) + *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help),
.policy-text div > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help) + *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help) {
padding-top: 0;
}
.hide-privacy-policy-tutorial > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help) {
margin: 1em 0;
padding: 0;
}
.policy-text ul li,
.policy-text ol li {
margin-left: 2em;
}
.policy-text ul {
list-style: disc;
}
strong.wp-policy-help, /* For back-compat, see #49282 */
strong.privacy-policy-tutorial {
display: block;
margin: 0 0 1em;
} }
.notice.wp-pp-notice { .notice.wp-pp-notice {
@ -979,6 +1026,11 @@ div.tabs-panel-inactive {
display: none; display: none;
} }
div.tabs-panel-active:focus {
box-shadow: inset 0 0 0 1px #5b9dd9, inset 0 0 2px 1px rgba(30, 140, 190, 0.8);
outline: 0 none;
}
#front-page-warning, #front-page-warning,
#front-static-pages ul, #front-static-pages ul,
ul.export-filters, ul.export-filters,
@ -1387,6 +1439,40 @@ table.links-table {
} }
} }
/* one column on the attachment editor screen */
@media only screen and (max-width: 1200px) {
.post-type-attachment #poststuff {
min-width: 0;
}
.post-type-attachment #wpbody-content #poststuff #post-body {
margin: 0;
}
.post-type-attachment #wpbody-content #post-body.columns-2 #postbox-container-1 {
margin-right: 0;
width: 100%;
}
.post-type-attachment #poststuff #postbox-container-1 .empty-container,
.post-type-attachment #poststuff #postbox-container-1 #side-sortables:empty {
border: 0 none;
height: 0;
min-height: 0;
}
.post-type-attachment #poststuff #post-body.columns-2 #side-sortables {
min-height: 0;
width: auto;
}
/* hide the radio buttons for column prefs */
.post-type-attachment .screen-layout,
.post-type-attachment .columns-prefs {
display: none;
}
}
/* one column on the post write/edit screen */ /* one column on the post write/edit screen */
@media only screen and (max-width: 850px) { @media only screen and (max-width: 850px) {
#poststuff { #poststuff {

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,4 @@
/*! This file is auto-generated */
.farbtastic { .farbtastic {
position: relative; position: relative;

View File

@ -1,3 +1,4 @@
/*! This file is auto-generated */
/* Include margin and padding in the width calculation of input and textarea. */ /* Include margin and padding in the width calculation of input and textarea. */
input, input,
select, select,
@ -396,6 +397,10 @@ input[type="radio"].disabled:checked:before {
max-width: 100%; max-width: 100%;
} }
.meta-box-sortables input {
vertical-align: middle;
}
.misc-pub-post-status select { .misc-pub-post-status select {
margin-top: 0; margin-top: 0;
} }
@ -464,6 +469,7 @@ input.small-text {
input[type="number"].small-text { input[type="number"].small-text {
width: 65px; width: 65px;
padding-left: 0;
} }
input.tiny-text { input.tiny-text {
@ -472,6 +478,7 @@ input.tiny-text {
input[type="number"].tiny-text { input[type="number"].tiny-text {
width: 45px; width: 45px;
padding-left: 0;
} }
#doaction, #doaction,
@ -1032,7 +1039,7 @@ table.form-table td .updated p {
#search-users, #search-users,
#search-sites { #search-sites {
max-width: 100%; max-width: 60%;
} }
/*------------------------------------------------------------------------------ /*------------------------------------------------------------------------------
@ -1200,6 +1207,10 @@ table.form-table td .updated p {
color: #72777c; color: #72777c;
} }
.privacy_requests .row-actions.processing {
position: static;
}
.privacy_requests tbody .has-request-results th { .privacy_requests tbody .has-request-results th {
box-shadow: none; box-shadow: none;
} }
@ -1218,8 +1229,8 @@ table.form-table td .updated p {
} }
.privacy_requests .next_steps .button { .privacy_requests .next_steps .button {
word-break: break-all; word-wrap: break-word;
white-space: unset; white-space: normal;
} }
.privacy_requests .status-request-confirmed th, .privacy_requests .status-request-confirmed th,
@ -1627,6 +1638,13 @@ table.form-table td .updated p {
.wp-list-table.privacy_requests.widefat thead td input { .wp-list-table.privacy_requests.widefat thead td input {
margin-right: 5px; margin-right: 5px;
} }
.wp-privacy-request-form-field input[type="text"] {
width: 100%;
margin-bottom: 10px;
vertical-align: middle;
}
.regular-text { .regular-text {
max-width: 100%; max-width: 100%;
} }

File diff suppressed because one or more lines are too long

View File

@ -396,6 +396,10 @@ input[type="radio"].disabled:checked:before {
max-width: 100%; max-width: 100%;
} }
.meta-box-sortables input {
vertical-align: middle;
}
.misc-pub-post-status select { .misc-pub-post-status select {
margin-top: 0; margin-top: 0;
} }
@ -464,6 +468,7 @@ input.small-text {
input[type="number"].small-text { input[type="number"].small-text {
width: 65px; width: 65px;
padding-right: 0;
} }
input.tiny-text { input.tiny-text {
@ -472,6 +477,7 @@ input.tiny-text {
input[type="number"].tiny-text { input[type="number"].tiny-text {
width: 45px; width: 45px;
padding-right: 0;
} }
#doaction, #doaction,
@ -1032,7 +1038,7 @@ table.form-table td .updated p {
#search-users, #search-users,
#search-sites { #search-sites {
max-width: 100%; max-width: 60%;
} }
/*------------------------------------------------------------------------------ /*------------------------------------------------------------------------------
@ -1200,6 +1206,10 @@ table.form-table td .updated p {
color: #72777c; color: #72777c;
} }
.privacy_requests .row-actions.processing {
position: static;
}
.privacy_requests tbody .has-request-results th { .privacy_requests tbody .has-request-results th {
box-shadow: none; box-shadow: none;
} }
@ -1218,8 +1228,8 @@ table.form-table td .updated p {
} }
.privacy_requests .next_steps .button { .privacy_requests .next_steps .button {
word-break: break-all; word-wrap: break-word;
white-space: unset; white-space: normal;
} }
.privacy_requests .status-request-confirmed th, .privacy_requests .status-request-confirmed th,
@ -1627,6 +1637,13 @@ table.form-table td .updated p {
.wp-list-table.privacy_requests.widefat thead td input { .wp-list-table.privacy_requests.widefat thead td input {
margin-left: 5px; margin-left: 5px;
} }
.wp-privacy-request-form-field input[type="text"] {
width: 100%;
margin-bottom: 10px;
vertical-align: middle;
}
.regular-text { .regular-text {
max-width: 100%; max-width: 100%;
} }

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,4 @@
/*! This file is auto-generated */
/* Fixes for IE 7 bugs */ /* Fixes for IE 7 bugs */
#dashboard-widgets form .input-text-wrap input, #dashboard-widgets form .input-text-wrap input,

View File

@ -1,3 +1,4 @@
/*! This file is auto-generated */
html { html {
background: #f1f1f1; background: #f1f1f1;
margin: 0 20px; margin: 0 20px;
@ -115,10 +116,7 @@ label {
padding: 0; padding: 0;
} }
.language-chooser.wp-core-ui .step .button.button-large { .language-chooser.wp-core-ui .step .button.button-large {
height: 36px;
font-size: 14px; font-size: 14px;
line-height: 2.35714285;
vertical-align: middle;
} }
textarea { textarea {
border: 1px solid #ddd; border: 1px solid #ddd;

File diff suppressed because one or more lines are too long

View File

@ -115,10 +115,7 @@ label {
padding: 0; padding: 0;
} }
.language-chooser.wp-core-ui .step .button.button-large { .language-chooser.wp-core-ui .step .button.button-large {
height: 36px;
font-size: 14px; font-size: 14px;
line-height: 2.35714285;
vertical-align: middle;
} }
textarea { textarea {
border: 1px solid #ddd; border: 1px solid #ddd;

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,4 @@
/*! This file is auto-generated */
/*------------------------------------------------------------------------------ /*------------------------------------------------------------------------------
27.0 - Localization 27.0 - Localization
------------------------------------------------------------------------------*/ ------------------------------------------------------------------------------*/

View File

@ -1,3 +1,4 @@
/*! This file is auto-generated */
.response-links { .response-links {
display: block; display: block;
margin-bottom: 1em; margin-bottom: 1em;
@ -436,7 +437,6 @@ table.media .column-title .filename {
#commentsdiv .comments-box thead td { #commentsdiv .comments-box thead td {
background: transparent; background: transparent;
padding: 0 7px 4px; padding: 0 7px 4px;
font-style: italic;
} }
#commentsdiv .comments-box tr:last-child td { #commentsdiv .comments-box tr:last-child td {
@ -1020,11 +1020,6 @@ tr.inline-edit-row td,
text-transform: uppercase; text-transform: uppercase;
} }
.inline-edit-row fieldset span.title,
.inline-edit-row fieldset span.checkbox-title {
font-style: italic;
}
/* Specific Elements */ /* Specific Elements */
.inline-edit-row fieldset .inline-edit-date { .inline-edit-row fieldset .inline-edit-date {
float: right; float: right;
@ -1318,8 +1313,7 @@ ul.cat-checklist {
.plugins .paused .error-display p, .plugins .paused .error-display p,
.plugins .paused .error-display code { .plugins .paused .error-display code {
font-size: 90%; font-size: 90%;
font-style: italic; color: rgba( 0, 0, 0, 0.7 );
color: rgb( 0, 0, 0, 0.7 );
} }
.plugins .resume-link { .plugins .resume-link {
@ -1749,10 +1743,6 @@ div.action-links,
display: none; display: none;
} }
.comment-count {
font-size: 14px;
}
.wp-list-table th.column-primary ~ th, .wp-list-table th.column-primary ~ th,
.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary ~ td:not(.check-column) { .wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary ~ td:not(.check-column) {
display: none; display: none;
@ -1778,7 +1768,6 @@ div.action-links,
.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column) { .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column) {
position: relative; position: relative;
clear: both; clear: both;
display: block;
width: auto !important; /* needs to override some columns that are more specifically targeted */ width: auto !important; /* needs to override some columns that are more specifically targeted */
} }
@ -1899,10 +1888,6 @@ div.action-links,
padding-top: 10px; padding-top: 10px;
} }
.widefat * {
word-wrap: normal;
}
/* Make row actions more easy to select on mobile */ /* Make row actions more easy to select on mobile */
body:not(.plugins-php) .row-actions { body:not(.plugins-php) .row-actions {
display: -ms-grid; display: -ms-grid;

File diff suppressed because one or more lines are too long

View File

@ -436,7 +436,6 @@ table.media .column-title .filename {
#commentsdiv .comments-box thead td { #commentsdiv .comments-box thead td {
background: transparent; background: transparent;
padding: 0 7px 4px; padding: 0 7px 4px;
font-style: italic;
} }
#commentsdiv .comments-box tr:last-child td { #commentsdiv .comments-box tr:last-child td {
@ -1020,11 +1019,6 @@ tr.inline-edit-row td,
text-transform: uppercase; text-transform: uppercase;
} }
.inline-edit-row fieldset span.title,
.inline-edit-row fieldset span.checkbox-title {
font-style: italic;
}
/* Specific Elements */ /* Specific Elements */
.inline-edit-row fieldset .inline-edit-date { .inline-edit-row fieldset .inline-edit-date {
float: left; float: left;
@ -1318,8 +1312,7 @@ ul.cat-checklist {
.plugins .paused .error-display p, .plugins .paused .error-display p,
.plugins .paused .error-display code { .plugins .paused .error-display code {
font-size: 90%; font-size: 90%;
font-style: italic; color: rgba( 0, 0, 0, 0.7 );
color: rgb( 0, 0, 0, 0.7 );
} }
.plugins .resume-link { .plugins .resume-link {
@ -1749,10 +1742,6 @@ div.action-links,
display: none; display: none;
} }
.comment-count {
font-size: 14px;
}
.wp-list-table th.column-primary ~ th, .wp-list-table th.column-primary ~ th,
.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary ~ td:not(.check-column) { .wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary ~ td:not(.check-column) {
display: none; display: none;
@ -1778,7 +1767,6 @@ div.action-links,
.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column) { .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column) {
position: relative; position: relative;
clear: both; clear: both;
display: block;
width: auto !important; /* needs to override some columns that are more specifically targeted */ width: auto !important; /* needs to override some columns that are more specifically targeted */
} }
@ -1899,10 +1887,6 @@ div.action-links,
padding-top: 10px; padding-top: 10px;
} }
.widefat * {
word-wrap: normal;
}
/* Make row actions more easy to select on mobile */ /* Make row actions more easy to select on mobile */
body:not(.plugins-php) .row-actions { body:not(.plugins-php) .row-actions {
display: -ms-grid; display: -ms-grid;

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,4 @@
/*! This file is auto-generated */
html, html,
body { body {
height: 100%; height: 100%;
@ -139,6 +140,24 @@ p {
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
} }
.login form.shake {
animation: shake 0.2s cubic-bezier(.19,.49,.38,.79) both;
animation-iteration-count: 3;
transform: translateX(0);
}
@keyframes shake {
25% {
transform: translateX(20px);
}
75% {
transform: translateX(-20px);
}
100% {
transform: translateX(0);
}
}
.login-action-confirm_admin_email #login { .login-action-confirm_admin_email #login {
width: 60vw; width: 60vw;
margin-top: -2vh; margin-top: -2vh;

File diff suppressed because one or more lines are too long

View File

@ -139,6 +139,24 @@ p {
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
} }
.login form.shake {
animation: shake 0.2s cubic-bezier(.19,.49,.38,.79) both;
animation-iteration-count: 3;
transform: translateX(0);
}
@keyframes shake {
25% {
transform: translateX(-20px);
}
75% {
transform: translateX(20px);
}
100% {
transform: translateX(0);
}
}
.login-action-confirm_admin_email #login { .login-action-confirm_admin_email #login {
width: 60vw; width: 60vw;
margin-top: -2vh; margin-top: -2vh;

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,4 @@
/*! This file is auto-generated */
/*------------------------------------------------------------------------------ /*------------------------------------------------------------------------------
14.0 - Media Screen 14.0 - Media Screen
------------------------------------------------------------------------------*/ ------------------------------------------------------------------------------*/
@ -852,6 +853,8 @@ border color while dragging a file over the uploader drop area */
.wp_attachment_holder .imgedit-wrap .imgedit-panel-content { .wp_attachment_holder .imgedit-wrap .imgedit-panel-content {
float: right; float: right;
padding: 3px 0 0 16px; padding: 3px 0 0 16px;
min-width: 400px;
max-width: calc( 100% - 266px );
} }
.wp_attachment_holder .imgedit-wrap .imgedit-settings { .wp_attachment_holder .imgedit-wrap .imgedit-settings {
@ -1053,7 +1056,11 @@ border color while dragging a file over the uploader drop area */
.imgedit-help { .imgedit-help {
display: none; display: none;
font-style: italic; padding-bottom: 8px;
}
.imgedit-help.imgedit-restore {
padding-bottom: 0;
} }
/* higher specificity than buttons */ /* higher specificity than buttons */
@ -1207,6 +1214,7 @@ audio, video {
.wp_attachment_holder .imgedit-wrap .imgedit-settings { .wp_attachment_holder .imgedit-wrap .imgedit-settings {
float: none; float: none;
width: auto; width: auto;
max-width: none;
} }
} }

File diff suppressed because one or more lines are too long

View File

@ -852,6 +852,8 @@ border color while dragging a file over the uploader drop area */
.wp_attachment_holder .imgedit-wrap .imgedit-panel-content { .wp_attachment_holder .imgedit-wrap .imgedit-panel-content {
float: left; float: left;
padding: 3px 16px 0 0; padding: 3px 16px 0 0;
min-width: 400px;
max-width: calc( 100% - 266px );
} }
.wp_attachment_holder .imgedit-wrap .imgedit-settings { .wp_attachment_holder .imgedit-wrap .imgedit-settings {
@ -1053,7 +1055,11 @@ border color while dragging a file over the uploader drop area */
.imgedit-help { .imgedit-help {
display: none; display: none;
font-style: italic; padding-bottom: 8px;
}
.imgedit-help.imgedit-restore {
padding-bottom: 0;
} }
/* higher specificity than buttons */ /* higher specificity than buttons */
@ -1207,6 +1213,7 @@ audio, video {
.wp_attachment_holder .imgedit-wrap .imgedit-settings { .wp_attachment_holder .imgedit-wrap .imgedit-settings {
float: none; float: none;
width: auto; width: auto;
max-width: none;
} }
} }

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,4 @@
/*! This file is auto-generated */
/* nav-menu */ /* nav-menu */
/* @todo: determine if this is truly for nav menus only */ /* @todo: determine if this is truly for nav menus only */

View File

@ -1,3 +1,4 @@
/*! This file is auto-generated */
/*------------------------------------------------------------------------------ /*------------------------------------------------------------------------------
11.2 - Post Revisions 11.2 - Post Revisions
------------------------------------------------------------------------------*/ ------------------------------------------------------------------------------*/

View File

@ -1,3 +1,4 @@
/*! This file is auto-generated */
.site-health #wpcontent, .site-health #wpcontent,
.site-health.auto-fold #wpcontent { .site-health.auto-fold #wpcontent {
padding-right: 0; padding-right: 0;
@ -215,8 +216,8 @@
.site-health-copy-buttons .success.visible { .site-health-copy-buttons .success.visible {
display: inline-block; display: inline-block;
height: 28px; height: 30px;
line-height: 2.2; line-height: 2.30769231;
} }
.site-status-has-issues.hide { .site-status-has-issues.hide {
@ -321,8 +322,9 @@
color: #191e23; color: #191e23;
border: none; border: none;
box-shadow: none; box-shadow: none;
outline-offset: -2px; outline-offset: -1px;
outline: 1px dotted #555d66; outline: 2px solid #0071a1;
background-color: #f8f9f9;
} }
.health-check-accordion-trigger .title { .health-check-accordion-trigger .title {

File diff suppressed because one or more lines are too long

View File

@ -215,8 +215,8 @@
.site-health-copy-buttons .success.visible { .site-health-copy-buttons .success.visible {
display: inline-block; display: inline-block;
height: 28px; height: 30px;
line-height: 2.2; line-height: 2.30769231;
} }
.site-status-has-issues.hide { .site-status-has-issues.hide {
@ -321,8 +321,9 @@
color: #191e23; color: #191e23;
border: none; border: none;
box-shadow: none; box-shadow: none;
outline-offset: -2px; outline-offset: -1px;
outline: 1px dotted #555d66; outline: 2px solid #0071a1;
background-color: #f8f9f9;
} }
.health-check-accordion-trigger .title { .health-check-accordion-trigger .title {

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,4 @@
/*! This file is auto-generated */
/*------------------------------------------------------------------------------ /*------------------------------------------------------------------------------
28.0 - Site Icon 28.0 - Site Icon
------------------------------------------------------------------------------*/ ------------------------------------------------------------------------------*/

View File

@ -1,3 +1,4 @@
/*! This file is auto-generated */
/*------------------------------------------------------------------------------ /*------------------------------------------------------------------------------
16.0 - Themes 16.0 - Themes
------------------------------------------------------------------------------*/ ------------------------------------------------------------------------------*/
@ -229,7 +230,7 @@ body.js .theme-browser.search-loading {
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
left: 0; left: 0;
padding: 10px 15px; padding: 9px 15px;
box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1); box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1);
} }
@ -1049,7 +1050,14 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
padding: 30px; padding: 30px;
margin: 30px auto; margin: 30px auto;
max-width: 380px; max-width: 380px;
display: flex;
} }
.upload-theme .wp-upload-form > input[type="file"],
.upload-plugin .wp-upload-form > input[type="file"] {
padding: 5px 0 0 1em;
}
.upload-theme .install-help, .upload-theme .install-help,
.upload-plugin .install-help { .upload-plugin .install-help {
color: #555d66; /* #f1f1f1 background */ color: #555d66; /* #f1f1f1 background */
@ -1903,8 +1911,8 @@ body.full-overlay-active {
.theme-browser .theme.active .theme-actions, .theme-browser .theme.active .theme-actions,
.theme-browser .theme .theme-actions { .theme-browser .theme .theme-actions {
padding-top: 8px; padding-top: 4px;
padding-bottom: 8px; padding-bottom: 4px;
} }
} }

File diff suppressed because one or more lines are too long

View File

@ -229,7 +229,7 @@ body.js .theme-browser.search-loading {
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
right: 0; right: 0;
padding: 10px 15px; padding: 9px 15px;
box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1); box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1);
} }
@ -1049,7 +1049,14 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
padding: 30px; padding: 30px;
margin: 30px auto; margin: 30px auto;
max-width: 380px; max-width: 380px;
display: flex;
} }
.upload-theme .wp-upload-form > input[type="file"],
.upload-plugin .wp-upload-form > input[type="file"] {
padding: 5px 1em 0 0;
}
.upload-theme .install-help, .upload-theme .install-help,
.upload-plugin .install-help { .upload-plugin .install-help {
color: #555d66; /* #f1f1f1 background */ color: #555d66; /* #f1f1f1 background */
@ -1903,8 +1910,8 @@ body.full-overlay-active {
.theme-browser .theme.active .theme-actions, .theme-browser .theme.active .theme-actions,
.theme-browser .theme .theme-actions { .theme-browser .theme .theme-actions {
padding-top: 8px; padding-top: 4px;
padding-bottom: 8px; padding-bottom: 4px;
} }
} }

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,4 @@
/*! This file is auto-generated */
/* General Widgets Styles */ /* General Widgets Styles */
.widget { .widget {
@ -6,6 +7,13 @@
box-sizing: border-box; box-sizing: border-box;
} }
.widget.open {
z-index: 99;
}
.widget.open:focus-within {
z-index: 100;
}
.widget-top { .widget-top {
font-size: 13px; font-size: 13px;
font-weight: 600; font-weight: 600;
@ -133,6 +141,9 @@
.media-widget-control .media-widget-preview img { .media-widget-control .media-widget-preview img {
max-width: 100%; max-width: 100%;
vertical-align: middle; vertical-align: middle;
background-image: linear-gradient(-45deg, #c4c4c4 25%, transparent 25%, transparent 75%, #c4c4c4 75%, #c4c4c4), linear-gradient(-45deg, #c4c4c4 25%, transparent 25%, transparent 75%, #c4c4c4 75%, #c4c4c4);
background-position: 100% 0, 10px 10px;
background-size: 20px 20px;
} }
.media-widget-control .media-widget-preview .wp-video-shortcode { .media-widget-control .media-widget-preview .wp-video-shortcode {
background: #000; background: #000;
@ -145,6 +156,7 @@
.media-frame.media-widget .image-details .embed-media-settings .setting.align, .media-frame.media-widget .image-details .embed-media-settings .setting.align,
.media-frame.media-widget .attachment-display-settings .setting.align, .media-frame.media-widget .attachment-display-settings .setting.align,
.media-frame.media-widget .embed-media-settings .setting.align, .media-frame.media-widget .embed-media-settings .setting.align,
.media-frame.media-widget .embed-media-settings .legend-inline,
.media-frame.media-widget .embed-link-settings .setting.link-text, .media-frame.media-widget .embed-link-settings .setting.link-text,
.media-frame.media-widget .replace-attachment, .media-frame.media-widget .replace-attachment,
.media-frame.media-widget .checkbox-setting.autoplay { .media-frame.media-widget .checkbox-setting.autoplay {
@ -596,6 +608,10 @@ div#widgets-right .closed .widgets-sortables {
background: #fff; background: #fff;
} }
.widget-inside select {
max-width: 100%;
}
/* Dragging widgets over the available widget area show's a "Deactivate" message */ /* Dragging widgets over the available widget area show's a "Deactivate" message */
#removing-widget { #removing-widget {
display: none; display: none;

File diff suppressed because one or more lines are too long

View File

@ -6,6 +6,13 @@
box-sizing: border-box; box-sizing: border-box;
} }
.widget.open {
z-index: 99;
}
.widget.open:focus-within {
z-index: 100;
}
.widget-top { .widget-top {
font-size: 13px; font-size: 13px;
font-weight: 600; font-weight: 600;
@ -133,6 +140,9 @@
.media-widget-control .media-widget-preview img { .media-widget-control .media-widget-preview img {
max-width: 100%; max-width: 100%;
vertical-align: middle; vertical-align: middle;
background-image: linear-gradient(45deg, #c4c4c4 25%, transparent 25%, transparent 75%, #c4c4c4 75%, #c4c4c4), linear-gradient(45deg, #c4c4c4 25%, transparent 25%, transparent 75%, #c4c4c4 75%, #c4c4c4);
background-position: 0 0, 10px 10px;
background-size: 20px 20px;
} }
.media-widget-control .media-widget-preview .wp-video-shortcode { .media-widget-control .media-widget-preview .wp-video-shortcode {
background: #000; background: #000;
@ -145,6 +155,7 @@
.media-frame.media-widget .image-details .embed-media-settings .setting.align, .media-frame.media-widget .image-details .embed-media-settings .setting.align,
.media-frame.media-widget .attachment-display-settings .setting.align, .media-frame.media-widget .attachment-display-settings .setting.align,
.media-frame.media-widget .embed-media-settings .setting.align, .media-frame.media-widget .embed-media-settings .setting.align,
.media-frame.media-widget .embed-media-settings .legend-inline,
.media-frame.media-widget .embed-link-settings .setting.link-text, .media-frame.media-widget .embed-link-settings .setting.link-text,
.media-frame.media-widget .replace-attachment, .media-frame.media-widget .replace-attachment,
.media-frame.media-widget .checkbox-setting.autoplay { .media-frame.media-widget .checkbox-setting.autoplay {
@ -596,6 +607,10 @@ div#widgets-right .closed .widgets-sortables {
background: #fff; background: #fff;
} }
.widget-inside select {
max-width: 100%;
}
/* Dragging widgets over the available widget area show's a "Deactivate" message */ /* Dragging widgets over the available widget area show's a "Deactivate" message */
#removing-widget { #removing-widget {
display: none; display: none;

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,4 @@
/*! This file is auto-generated */
@import url(common-rtl.css); @import url(common-rtl.css);
@import url(forms-rtl.css); @import url(forms-rtl.css);
@import url(admin-menu-rtl.css); @import url(admin-menu-rtl.css);

View File

@ -12,4 +12,4 @@
_deprecated_file( basename( __FILE__ ), '5.3.0', 'wp-admin/includes/class-custom-background.php' ); _deprecated_file( basename( __FILE__ ), '5.3.0', 'wp-admin/includes/class-custom-background.php' );
/** Custom_Background class */ /** Custom_Background class */
require_once( ABSPATH . 'wp-admin/includes/class-custom-background.php' ); require_once ABSPATH . 'wp-admin/includes/class-custom-background.php';

View File

@ -12,4 +12,4 @@
_deprecated_file( basename( __FILE__ ), '5.3.0', 'wp-admin/includes/class-custom-image-header.php' ); _deprecated_file( basename( __FILE__ ), '5.3.0', 'wp-admin/includes/class-custom-image-header.php' );
/** Custom_Image_Header class */ /** Custom_Image_Header class */
require_once( ABSPATH . 'wp-admin/includes/class-custom-image-header.php' ); require_once ABSPATH . 'wp-admin/includes/class-custom-image-header.php';

View File

@ -10,7 +10,7 @@
define( 'IFRAME_REQUEST', true ); define( 'IFRAME_REQUEST', true );
/** Load WordPress Administration Bootstrap */ /** Load WordPress Administration Bootstrap */
require_once( dirname( __FILE__ ) . '/admin.php' ); require_once __DIR__ . '/admin.php';
if ( ! current_user_can( 'customize' ) ) { if ( ! current_user_can( 'customize' ) ) {
wp_die( wp_die(

View File

@ -7,7 +7,7 @@
*/ */
/** WordPress Administration Bootstrap */ /** WordPress Administration Bootstrap */
require_once( dirname( __FILE__ ) . '/admin.php' ); require_once __DIR__ . '/admin.php';
if ( ! current_user_can( 'edit_posts' ) ) { if ( ! current_user_can( 'edit_posts' ) ) {
wp_die( wp_die(
'<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' . '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' .
@ -31,7 +31,7 @@ if ( $doaction ) {
$doaction = 'delete'; $doaction = 'delete';
} elseif ( isset( $_REQUEST['delete_comments'] ) ) { } elseif ( isset( $_REQUEST['delete_comments'] ) ) {
$comment_ids = $_REQUEST['delete_comments']; $comment_ids = $_REQUEST['delete_comments'];
$doaction = ( $_REQUEST['action'] != -1 ) ? $_REQUEST['action'] : $_REQUEST['action2']; $doaction = ( -1 != $_REQUEST['action'] ) ? $_REQUEST['action'] : $_REQUEST['action2'];
} elseif ( isset( $_REQUEST['ids'] ) ) { } elseif ( isset( $_REQUEST['ids'] ) ) {
$comment_ids = array_map( 'absint', explode( ',', $_REQUEST['ids'] ) ); $comment_ids = array_map( 'absint', explode( ',', $_REQUEST['ids'] ) );
} elseif ( wp_get_referer() ) { } elseif ( wp_get_referer() ) {
@ -52,7 +52,7 @@ if ( $doaction ) {
wp_defer_comment_counting( true ); wp_defer_comment_counting( true );
foreach ( $comment_ids as $comment_id ) { // Check the permissions on each foreach ( $comment_ids as $comment_id ) { // Check the permissions on each.
if ( ! current_user_can( 'edit_comment', $comment_id ) ) { if ( ! current_user_can( 'edit_comment', $comment_id ) ) {
continue; continue;
} }
@ -92,20 +92,7 @@ if ( $doaction ) {
if ( ! in_array( $doaction, array( 'approve', 'unapprove', 'spam', 'unspam', 'trash', 'delete' ), true ) ) { if ( ! in_array( $doaction, array( 'approve', 'unapprove', 'spam', 'unspam', 'trash', 'delete' ), true ) ) {
$screen = get_current_screen()->id; $screen = get_current_screen()->id;
/** /** This action is documented in wp-admin/edit.php */
* Fires when a custom bulk action should be handled.
*
* The redirect link should be modified with success or failure feedback
* from the action to be used to display feedback to the user.
*
* The dynamic portion of the hook name, `$screen`, refers to the current screen ID.
*
* @since 4.7.0
*
* @param string $redirect_url The redirect URL.
* @param string $doaction The action being taken.
* @param array $items The items to take the action on.
*/
$redirect_to = apply_filters( "handle_bulk_actions-{$screen}", $redirect_to, $doaction, $comment_ids ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores $redirect_to = apply_filters( "handle_bulk_actions-{$screen}", $redirect_to, $doaction, $comment_ids ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
} }
@ -218,7 +205,7 @@ get_current_screen()->set_screen_reader_content(
) )
); );
require_once( ABSPATH . 'wp-admin/admin-header.php' ); require_once ABSPATH . 'wp-admin/admin-header.php';
?> ?>
<div class="wrap"> <div class="wrap">
@ -283,7 +270,7 @@ if ( isset( $_REQUEST['approved'] ) || isset( $_REQUEST['deleted'] ) || isset( $
if ( $approved > 0 || $deleted > 0 || $trashed > 0 || $untrashed > 0 || $spammed > 0 || $unspammed > 0 || $same > 0 ) { if ( $approved > 0 || $deleted > 0 || $trashed > 0 || $untrashed > 0 || $spammed > 0 || $unspammed > 0 || $same > 0 ) {
if ( $approved > 0 ) { if ( $approved > 0 ) {
/* translators: %s: Number of comments. */ /* translators: %s: Number of comments. */
$messages[] = sprintf( _n( '%s comment approved', '%s comments approved', $approved ), $approved ); $messages[] = sprintf( _n( '%s comment approved.', '%s comments approved.', $approved ), $approved );
} }
if ( $spammed > 0 ) { if ( $spammed > 0 ) {
@ -294,7 +281,7 @@ if ( isset( $_REQUEST['approved'] ) || isset( $_REQUEST['deleted'] ) || isset( $
if ( $unspammed > 0 ) { if ( $unspammed > 0 ) {
/* translators: %s: Number of comments. */ /* translators: %s: Number of comments. */
$messages[] = sprintf( _n( '%s comment restored from the spam', '%s comments restored from the spam', $unspammed ), $unspammed ); $messages[] = sprintf( _n( '%s comment restored from the spam.', '%s comments restored from the spam.', $unspammed ), $unspammed );
} }
if ( $trashed > 0 ) { if ( $trashed > 0 ) {
@ -305,12 +292,12 @@ if ( isset( $_REQUEST['approved'] ) || isset( $_REQUEST['deleted'] ) || isset( $
if ( $untrashed > 0 ) { if ( $untrashed > 0 ) {
/* translators: %s: Number of comments. */ /* translators: %s: Number of comments. */
$messages[] = sprintf( _n( '%s comment restored from the Trash', '%s comments restored from the Trash', $untrashed ), $untrashed ); $messages[] = sprintf( _n( '%s comment restored from the Trash.', '%s comments restored from the Trash.', $untrashed ), $untrashed );
} }
if ( $deleted > 0 ) { if ( $deleted > 0 ) {
/* translators: %s: Number of comments. */ /* translators: %s: Number of comments. */
$messages[] = sprintf( _n( '%s comment permanently deleted', '%s comments permanently deleted', $deleted ), $deleted ); $messages[] = sprintf( _n( '%s comment permanently deleted.', '%s comments permanently deleted.', $deleted ), $deleted );
} }
if ( $same > 0 ) { if ( $same > 0 ) {
@ -364,4 +351,4 @@ if ( isset( $_REQUEST['approved'] ) || isset( $_REQUEST['deleted'] ) || isset( $
<?php <?php
wp_comment_reply( '-1', true, 'detail' ); wp_comment_reply( '-1', true, 'detail' );
wp_comment_trashnotice(); wp_comment_trashnotice();
include( ABSPATH . 'wp-admin/admin-footer.php' ); ?> require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>

View File

@ -6,7 +6,7 @@
* @subpackage Administration * @subpackage Administration
*/ */
// don't load directly // Don't load directly.
if ( ! defined( 'ABSPATH' ) ) { if ( ! defined( 'ABSPATH' ) ) {
die( '-1' ); die( '-1' );
} }
@ -76,7 +76,7 @@ $post_ID = isset( $post_ID ) ? (int) $post_ID : 0;
$user_ID = isset( $user_ID ) ? (int) $user_ID : 0; $user_ID = isset( $user_ID ) ? (int) $user_ID : 0;
$action = isset( $action ) ? $action : ''; $action = isset( $action ) ? $action : '';
if ( $post_ID == get_option( 'page_for_posts' ) && empty( $post->post_content ) ) { if ( get_option( 'page_for_posts' ) == $post_ID && empty( $post->post_content ) ) {
add_action( 'edit_form_after_title', '_wp_posts_page_notice' ); add_action( 'edit_form_after_title', '_wp_posts_page_notice' );
remove_post_type_support( $post_type, 'editor' ); remove_post_type_support( $post_type, 'editor' );
} }
@ -95,7 +95,7 @@ if ( $thumbnail_support ) {
wp_enqueue_media( array( 'post' => $post_ID ) ); wp_enqueue_media( array( 'post' => $post_ID ) );
} }
// Add the local autosave notice HTML // Add the local autosave notice HTML.
add_action( 'admin_footer', '_local_storage_notice' ); add_action( 'admin_footer', '_local_storage_notice' );
/* /*
@ -169,9 +169,9 @@ if ( $viewable ) {
$scheduled_date = sprintf( $scheduled_date = sprintf(
/* translators: Publish box date string. 1: Date, 2: Time. */ /* translators: Publish box date string. 1: Date, 2: Time. */
__( '%1$s at %2$s' ), __( '%1$s at %2$s' ),
/* translators: Publish box date format, see https://secure.php.net/date */ /* translators: Publish box date format, see https://www.php.net/date */
date_i18n( _x( 'M j, Y', 'publish box date format' ), strtotime( $post->post_date ) ), date_i18n( _x( 'M j, Y', 'publish box date format' ), strtotime( $post->post_date ) ),
/* translators: Publish box time format, see https://secure.php.net/date */ /* translators: Publish box time format, see https://www.php.net/date */
date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $post->post_date ) ) date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $post->post_date ) )
); );
@ -242,10 +242,10 @@ $form_action = 'editpost';
$nonce_action = 'update-post_' . $post_ID; $nonce_action = 'update-post_' . $post_ID;
$form_extra .= "<input type='hidden' id='post_ID' name='post_ID' value='" . esc_attr( $post_ID ) . "' />"; $form_extra .= "<input type='hidden' id='post_ID' name='post_ID' value='" . esc_attr( $post_ID ) . "' />";
// Detect if there exists an autosave newer than the post and if that autosave is different than the post // Detect if there exists an autosave newer than the post and if that autosave is different than the post.
if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt, false ) > mysql2date( 'U', $post->post_modified_gmt, false ) ) { if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt, false ) > mysql2date( 'U', $post->post_modified_gmt, false ) ) {
foreach ( _wp_post_revision_fields( $post ) as $autosave_field => $_autosave_field ) { foreach ( _wp_post_revision_fields( $post ) as $autosave_field => $_autosave_field ) {
if ( normalize_whitespace( $autosave->$autosave_field ) != normalize_whitespace( $post->$autosave_field ) ) { if ( normalize_whitespace( $autosave->$autosave_field ) !== normalize_whitespace( $post->$autosave_field ) ) {
$notice = sprintf( $notice = sprintf(
/* translators: %s: URL to view the autosave. */ /* translators: %s: URL to view the autosave. */
__( 'There is an autosave of this post that is more recent than the version below. <a href="%s">View the autosave</a>' ), __( 'There is an autosave of this post that is more recent than the version below. <a href="%s">View the autosave</a>' ),
@ -264,7 +264,7 @@ if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt, false ) > mysql
$post_type_object = get_post_type_object( $post_type ); $post_type_object = get_post_type_object( $post_type );
// All meta boxes should be defined and added before the first do_meta_boxes() call (or potentially during the do_meta_boxes action). // All meta boxes should be defined and added before the first do_meta_boxes() call (or potentially during the do_meta_boxes action).
require_once( ABSPATH . 'wp-admin/includes/meta-boxes.php' ); require_once ABSPATH . 'wp-admin/includes/meta-boxes.php';
register_and_do_post_meta_boxes( $post ); register_and_do_post_meta_boxes( $post );
@ -376,7 +376,7 @@ if ( 'post' == $post_type ) {
if ( current_theme_supports( 'post-thumbnails' ) && post_type_supports( 'post', 'thumbnail' ) ) { if ( current_theme_supports( 'post-thumbnails' ) && post_type_supports( 'post', 'thumbnail' ) ) {
$publish_box .= '<li>' . sprintf( $publish_box .= '<li>' . sprintf(
/* translators: %s: Featured Image. */ /* translators: %s: Featured image. */
__( '<strong>%s</strong> &mdash; This allows you to associate an image with your post without inserting it. This is usually useful only if your theme makes use of the image as a post thumbnail on the home page, a custom header, etc.' ), __( '<strong>%s</strong> &mdash; This allows you to associate an image with your post without inserting it. This is usually useful only if your theme makes use of the image as a post thumbnail on the home page, a custom header, etc.' ),
esc_html( $post_type_object->labels->featured_image ) esc_html( $post_type_object->labels->featured_image )
) . '</li>'; ) . '</li>';
@ -416,7 +416,7 @@ if ( 'post' == $post_type ) {
); );
} }
require_once( ABSPATH . 'wp-admin/admin-header.php' ); require_once ABSPATH . 'wp-admin/admin-header.php';
?> ?>
<div class="wrap"> <div class="wrap">
@ -534,7 +534,7 @@ do_action( 'edit_form_top', $post );
if ( has_filter( 'pre_get_shortlink' ) || has_filter( 'get_shortlink' ) ) { if ( has_filter( 'pre_get_shortlink' ) || has_filter( 'get_shortlink' ) ) {
$shortlink = wp_get_shortlink( $post->ID, 'post' ); $shortlink = wp_get_shortlink( $post->ID, 'post' );
if ( ! empty( $shortlink ) && $shortlink !== $permalink && $permalink !== home_url( '?page_id=' . $post->ID ) ) { if ( ! empty( $shortlink ) && $shortlink !== $permalink && home_url( '?page_id=' . $post->ID ) !== $permalink ) {
$sample_permalink_html .= '<input id="shortlink" type="hidden" value="' . esc_attr( $shortlink ) . '" /><button type="button" class="button button-small" onclick="prompt(&#39;URL:&#39;, jQuery(\'#shortlink\').val());">' . __( 'Get Shortlink' ) . '</button>'; $sample_permalink_html .= '<input id="shortlink" type="hidden" value="' . esc_attr( $shortlink ) . '" /><button type="button" class="button button-small" onclick="prompt(&#39;URL:&#39;, jQuery(\'#shortlink\').val());">' . __( 'Get Shortlink' ) . '</button>';
} }
} }

View File

@ -8,7 +8,7 @@
* @subpackage Administration * @subpackage Administration
*/ */
// don't load directly // Don't load directly.
if ( ! defined( 'ABSPATH' ) ) { if ( ! defined( 'ABSPATH' ) ) {
die( '-1' ); die( '-1' );
} }
@ -59,8 +59,8 @@ $preload_paths = array(
* *
* @since 5.0.0 * @since 5.0.0
* *
* @param array $preload_paths Array of paths to preload. * @param string[] $preload_paths Array of paths to preload.
* @param object $post The post resource data. * @param WP_Post $post Post being edited.
*/ */
$preload_paths = apply_filters( 'block_editor_preload_paths', $preload_paths, $post ); $preload_paths = apply_filters( 'block_editor_preload_paths', $preload_paths, $post );
@ -132,9 +132,10 @@ wp_localize_script( 'wp-editor', '_wpMetaBoxUrl', $meta_box_url );
* Initialize the editor. * Initialize the editor.
*/ */
$align_wide = get_theme_support( 'align-wide' ); $align_wide = get_theme_support( 'align-wide' );
$color_palette = current( (array) get_theme_support( 'editor-color-palette' ) ); $color_palette = current( (array) get_theme_support( 'editor-color-palette' ) );
$font_sizes = current( (array) get_theme_support( 'editor-font-sizes' ) ); $font_sizes = current( (array) get_theme_support( 'editor-font-sizes' ) );
$gradient_presets = current( (array) get_theme_support( 'editor-gradient-presets' ) );
/** /**
* Filters the allowed block types for the editor, defaulting to true (all * Filters the allowed block types for the editor, defaulting to true (all
@ -144,14 +145,16 @@ $font_sizes = current( (array) get_theme_support( 'editor-font-sizes' ) );
* *
* @param bool|array $allowed_block_types Array of block type slugs, or * @param bool|array $allowed_block_types Array of block type slugs, or
* boolean to enable/disable all. * boolean to enable/disable all.
* @param object $post The post resource data. * @param WP_Post $post The post resource data.
*/ */
$allowed_block_types = apply_filters( 'allowed_block_types', true, $post ); $allowed_block_types = apply_filters( 'allowed_block_types', true, $post );
// Get all available templates for the post/page attributes meta-box. /*
// The "Default template" array element should only be added if the array is * Get all available templates for the post/page attributes meta-box.
// not empty so we do not trigger the template select element without any options * The "Default template" array element should only be added if the array is
// besides the default value. * not empty so we do not trigger the template select element without any options
* besides the default value.
*/
$available_templates = wp_get_theme()->get_page_templates( get_post( $post->ID ) ); $available_templates = wp_get_theme()->get_page_templates( get_post( $post->ID ) );
$available_templates = ! empty( $available_templates ) ? array_merge( $available_templates = ! empty( $available_templates ) ? array_merge(
array( array(
@ -224,6 +227,15 @@ foreach ( $image_size_names as $image_size_slug => $image_size_name ) {
); );
} }
$image_dimensions = array();
$all_sizes = wp_get_registered_image_subsizes();
foreach ( $available_image_sizes as $size ) {
$key = $size['slug'];
if ( isset( $all_sizes[ $key ] ) ) {
$image_dimensions[ $key ] = $all_sizes[ $key ];
}
}
// Lock settings. // Lock settings.
$user_id = wp_check_post_lock( $post->ID ); $user_id = wp_check_post_lock( $post->ID );
if ( $user_id ) { if ( $user_id ) {
@ -276,6 +288,7 @@ $editor_settings = array(
'allowedBlockTypes' => $allowed_block_types, 'allowedBlockTypes' => $allowed_block_types,
'disableCustomColors' => get_theme_support( 'disable-custom-colors' ), 'disableCustomColors' => get_theme_support( 'disable-custom-colors' ),
'disableCustomFontSizes' => get_theme_support( 'disable-custom-font-sizes' ), 'disableCustomFontSizes' => get_theme_support( 'disable-custom-font-sizes' ),
'disableCustomGradients' => get_theme_support( 'disable-custom-gradients' ),
'disablePostFormats' => ! current_theme_supports( 'post-formats' ), 'disablePostFormats' => ! current_theme_supports( 'post-formats' ),
/** This filter is documented in wp-admin/edit-form-advanced.php */ /** This filter is documented in wp-admin/edit-form-advanced.php */
'titlePlaceholder' => apply_filters( 'enter_title_here', __( 'Add title' ), $post ), 'titlePlaceholder' => apply_filters( 'enter_title_here', __( 'Add title' ), $post ),
@ -286,6 +299,7 @@ $editor_settings = array(
'allowedMimeTypes' => get_allowed_mime_types(), 'allowedMimeTypes' => get_allowed_mime_types(),
'styles' => $styles, 'styles' => $styles,
'imageSizes' => $available_image_sizes, 'imageSizes' => $available_image_sizes,
'imageDimensions' => $image_dimensions,
'richEditingEnabled' => user_can_richedit(), 'richEditingEnabled' => user_can_richedit(),
'postLock' => $lock_details, 'postLock' => $lock_details,
'postLockUtils' => array( 'postLockUtils' => array(
@ -318,6 +332,10 @@ if ( false !== $font_sizes ) {
$editor_settings['fontSizes'] = $font_sizes; $editor_settings['fontSizes'] = $font_sizes;
} }
if ( false !== $gradient_presets ) {
$editor_settings['gradients'] = $gradient_presets;
}
if ( ! empty( $post_type_object->template ) ) { if ( ! empty( $post_type_object->template ) ) {
$editor_settings['template'] = $post_type_object->template; $editor_settings['template'] = $post_type_object->template;
$editor_settings['templateLock'] = ! empty( $post_type_object->template_lock ) ? $post_type_object->template_lock : false; $editor_settings['templateLock'] = ! empty( $post_type_object->template_lock ) ? $post_type_object->template_lock : false;
@ -361,7 +379,7 @@ wp_enqueue_style( 'wp-format-library' );
do_action( 'enqueue_block_editor_assets' ); do_action( 'enqueue_block_editor_assets' );
// In order to duplicate classic meta box behaviour, we need to run the classic meta box actions. // In order to duplicate classic meta box behaviour, we need to run the classic meta box actions.
require_once( ABSPATH . 'wp-admin/includes/meta-boxes.php' ); require_once ABSPATH . 'wp-admin/includes/meta-boxes.php';
register_and_do_post_meta_boxes( $post ); register_and_do_post_meta_boxes( $post );
// Check if the Custom Fields meta box has been removed at some point. // Check if the Custom Fields meta box has been removed at some point.
@ -399,7 +417,7 @@ $script = sprintf(
); );
wp_add_inline_script( 'wp-edit-post', $script ); wp_add_inline_script( 'wp-edit-post', $script );
require_once( ABSPATH . 'wp-admin/admin-header.php' ); require_once ABSPATH . 'wp-admin/admin-header.php';
?> ?>
<div class="block-editor"> <div class="block-editor">

View File

@ -6,7 +6,7 @@
* @subpackage Administration * @subpackage Administration
*/ */
// don't load directly // Don't load directly.
if ( ! defined( 'ABSPATH' ) ) { if ( ! defined( 'ABSPATH' ) ) {
die( '-1' ); die( '-1' );
} }
@ -87,28 +87,46 @@ if ( 'approved' === wp_get_comment_status( $comment ) && $comment->comment_post_
<div id="postbox-container-1" class="postbox-container"> <div id="postbox-container-1" class="postbox-container">
<div id="submitdiv" class="stuffbox" > <div id="submitdiv" class="stuffbox" >
<h2><?php _e( 'Status' ); ?></h2> <h2><?php _e( 'Save' ); ?></h2>
<div class="inside"> <div class="inside">
<div class="submitbox" id="submitcomment"> <div class="submitbox" id="submitcomment">
<div id="minor-publishing"> <div id="minor-publishing">
<div id="misc-publishing-actions"> <div id="misc-publishing-actions">
<fieldset class="misc-pub-section misc-pub-comment-status" id="comment-status-radio"> <div class="misc-pub-section misc-pub-comment-status" id="comment-status">
<?php _e( 'Status:' ); ?> <span id="comment-status-display">
<?php
switch ( $comment->comment_approved ) {
case '1':
_e( 'Approved' );
break;
case '0':
_e( 'Pending' );
break;
case 'spam':
_e( 'Spam' );
break;
}
?>
</span>
<fieldset id="comment-status-radio">
<legend class="screen-reader-text"><?php _e( 'Comment status' ); ?></legend> <legend class="screen-reader-text"><?php _e( 'Comment status' ); ?></legend>
<label><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php _ex( 'Approved', 'comment status' ); ?></label><br /> <label><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php _ex( 'Approved', 'comment status' ); ?></label><br />
<label><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php _ex( 'Pending', 'comment status' ); ?></label><br /> <label><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php _ex( 'Pending', 'comment status' ); ?></label><br />
<label><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php _ex( 'Spam', 'comment status' ); ?></label> <label><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php _ex( 'Spam', 'comment status' ); ?></label>
</fieldset> </fieldset>
</div><!-- .misc-pub-section -->
<div class="misc-pub-section curtime misc-pub-curtime"> <div class="misc-pub-section curtime misc-pub-curtime">
<?php <?php
$submitted = sprintf( $submitted = sprintf(
/* translators: 1: Comment date, 2: Comment time. */ /* translators: 1: Comment date, 2: Comment time. */
__( '%1$s at %2$s' ), __( '%1$s at %2$s' ),
/* translators: Publish box date format, see https://secure.php.net/date */ /* translators: Publish box date format, see https://www.php.net/date */
date_i18n( _x( 'M j, Y', 'publish box date format' ), strtotime( $comment->comment_date ) ), date_i18n( _x( 'M j, Y', 'publish box date format' ), strtotime( $comment->comment_date ) ),
/* translators: Publish box time format, see https://secure.php.net/date */ /* translators: Publish box time format, see https://www.php.net/date */
date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $comment->comment_date ) ) date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $comment->comment_date ) )
); );
?> ?>
@ -172,8 +190,8 @@ endif;
* *
* @since 4.3.0 * @since 4.3.0
* *
* @param string $html Output HTML to display miscellaneous action. * @param string $html Output HTML to display miscellaneous action.
* @param object $comment Current comment object. * @param WP_Comment $comment Current comment object.
*/ */
echo apply_filters( 'edit_comment_misc_actions', '', $comment ); echo apply_filters( 'edit_comment_misc_actions', '', $comment );
?> ?>

View File

@ -6,7 +6,7 @@
* @subpackage Administration * @subpackage Administration
*/ */
// don't load directly // Don't load directly.
if ( ! defined( 'ABSPATH' ) ) { if ( ! defined( 'ABSPATH' ) ) {
die( '-1' ); die( '-1' );
} }
@ -25,7 +25,7 @@ if ( ! empty( $link_id ) ) {
$nonce_action = 'add-bookmark'; $nonce_action = 'add-bookmark';
} }
require_once( ABSPATH . 'wp-admin/includes/meta-boxes.php' ); require_once ABSPATH . 'wp-admin/includes/meta-boxes.php';
add_meta_box( 'linksubmitdiv', __( 'Save' ), 'link_submit_meta_box', null, 'side', 'core' ); add_meta_box( 'linksubmitdiv', __( 'Save' ), 'link_submit_meta_box', null, 'side', 'core' );
add_meta_box( 'linkcategorydiv', __( 'Categories' ), 'link_categories_meta_box', null, 'normal', 'core' ); add_meta_box( 'linkcategorydiv', __( 'Categories' ), 'link_categories_meta_box', null, 'normal', 'core' );
@ -77,7 +77,7 @@ get_current_screen()->set_help_sidebar(
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
); );
require_once( ABSPATH . 'wp-admin/admin-header.php' ); require_once ABSPATH . 'wp-admin/admin-header.php';
?> ?>
<div class="wrap"> <div class="wrap">

View File

@ -6,42 +6,42 @@
* @subpackage Administration * @subpackage Administration
*/ */
// don't load directly // Don't load directly.
if ( ! defined( 'ABSPATH' ) ) { if ( ! defined( 'ABSPATH' ) ) {
die( '-1' ); die( '-1' );
} }
// Back compat hooks // Back compat hooks.
if ( 'category' == $taxonomy ) { if ( 'category' == $taxonomy ) {
/** /**
* Fires before the Edit Category form. * Fires before the Edit Category form.
* *
* @since 2.1.0 * @since 2.1.0
* @deprecated 3.0.0 Use {$taxonomy}_pre_edit_form instead. * @deprecated 3.0.0 Use {@see '{$taxonomy}_pre_edit_form'} instead.
* *
* @param WP_Term $tag Current category term object. * @param WP_Term $tag Current category term object.
*/ */
do_action( 'edit_category_form_pre', $tag ); do_action_deprecated( 'edit_category_form_pre', array( $tag ), '3.0.0', '{$taxonomy}_pre_edit_form' );
} elseif ( 'link_category' == $taxonomy ) { } elseif ( 'link_category' == $taxonomy ) {
/** /**
* Fires before the Edit Link Category form. * Fires before the Edit Link Category form.
* *
* @since 2.3.0 * @since 2.3.0
* @deprecated 3.0.0 Use {$taxonomy}_pre_edit_form instead. * @deprecated 3.0.0 Use {@see '{$taxonomy}_pre_edit_form'} instead.
* *
* @param WP_Term $tag Current link category term object. * @param WP_Term $tag Current link category term object.
*/ */
do_action( 'edit_link_category_form_pre', $tag ); do_action_deprecated( 'edit_link_category_form_pre', array( $tag ), '3.0.0', '{$taxonomy}_pre_edit_form' );
} else { } else {
/** /**
* Fires before the Edit Tag form. * Fires before the Edit Tag form.
* *
* @since 2.5.0 * @since 2.5.0
* @deprecated 3.0.0 Use {$taxonomy}_pre_edit_form instead. * @deprecated 3.0.0 Use {@see '{$taxonomy}_pre_edit_form'} instead.
* *
* @param WP_Term $tag Current tag term object. * @param WP_Term $tag Current tag term object.
*/ */
do_action( 'edit_tag_form_pre', $tag ); do_action_deprecated( 'edit_tag_form_pre', array( $tag ), '3.0.0', '{$taxonomy}_pre_edit_form' );
} }
/** /**
@ -52,7 +52,7 @@ wp_reset_vars( array( 'wp_http_referer' ) );
$wp_http_referer = remove_query_arg( array( 'action', 'message', 'tag_ID' ), $wp_http_referer ); $wp_http_referer = remove_query_arg( array( 'action', 'message', 'tag_ID' ), $wp_http_referer );
/** Also used by Edit Tags */ /** Also used by Edit Tags */
require_once( ABSPATH . 'wp-admin/includes/edit-tag-messages.php' ); require_once ABSPATH . 'wp-admin/includes/edit-tag-messages.php';
/** /**
* Fires before the Edit Term form for all taxonomies. * Fires before the Edit Term form for all taxonomies.
@ -191,37 +191,37 @@ if ( isset( $tag->name ) ) {
<p class="description"><?php _e( 'The description is not prominent by default; however, some themes may show it.' ); ?></p></td> <p class="description"><?php _e( 'The description is not prominent by default; however, some themes may show it.' ); ?></p></td>
</tr> </tr>
<?php <?php
// Back compat hooks // Back compat hooks.
if ( 'category' == $taxonomy ) { if ( 'category' == $taxonomy ) {
/** /**
* Fires after the Edit Category form fields are displayed. * Fires after the Edit Category form fields are displayed.
* *
* @since 2.9.0 * @since 2.9.0
* @deprecated 3.0.0 Use {$taxonomy}_edit_form_fields instead. * @deprecated 3.0.0 Use {@see '{$taxonomy}_edit_form_fields'} instead.
* *
* @param WP_Term $tag Current category term object. * @param WP_Term $tag Current category term object.
*/ */
do_action( 'edit_category_form_fields', $tag ); do_action_deprecated( 'edit_category_form_fields', array( $tag ), '3.0.0', '{$taxonomy}_edit_form_fields' );
} elseif ( 'link_category' == $taxonomy ) { } elseif ( 'link_category' == $taxonomy ) {
/** /**
* Fires after the Edit Link Category form fields are displayed. * Fires after the Edit Link Category form fields are displayed.
* *
* @since 2.9.0 * @since 2.9.0
* @deprecated 3.0.0 Use {$taxonomy}_edit_form_fields instead. * @deprecated 3.0.0 Use {@see '{$taxonomy}_edit_form_fields'} instead.
* *
* @param WP_Term $tag Current link category term object. * @param WP_Term $tag Current link category term object.
*/ */
do_action( 'edit_link_category_form_fields', $tag ); do_action_deprecated( 'edit_link_category_form_fields', array( $tag ), '3.0.0', '{$taxonomy}_edit_form_fields' );
} else { } else {
/** /**
* Fires after the Edit Tag form fields are displayed. * Fires after the Edit Tag form fields are displayed.
* *
* @since 2.9.0 * @since 2.9.0
* @deprecated 3.0.0 Use {$taxonomy}_edit_form_fields instead. * @deprecated 3.0.0 Use {@see '{$taxonomy}_edit_form_fields'} instead.
* *
* @param WP_Term $tag Current tag term object. * @param WP_Term $tag Current tag term object.
*/ */
do_action( 'edit_tag_form_fields', $tag ); do_action_deprecated( 'edit_tag_form_fields', array( $tag ), '3.0.0', '{$taxonomy}_edit_form_fields' );
} }
/** /**
* Fires after the Edit Term form fields are displayed. * Fires after the Edit Term form fields are displayed.
@ -238,23 +238,23 @@ if ( isset( $tag->name ) ) {
?> ?>
</table> </table>
<?php <?php
// Back compat hooks // Back compat hooks.
if ( 'category' == $taxonomy ) { if ( 'category' == $taxonomy ) {
/** This action is documented in wp-admin/edit-tags.php */ /** This action is documented in wp-admin/edit-tags.php */
do_action( 'edit_category_form', $tag ); do_action_deprecated( 'edit_category_form', array( $tag ), '3.0.0', '{$taxonomy}_add_form' );
} elseif ( 'link_category' == $taxonomy ) { } elseif ( 'link_category' == $taxonomy ) {
/** This action is documented in wp-admin/edit-tags.php */ /** This action is documented in wp-admin/edit-tags.php */
do_action( 'edit_link_category_form', $tag ); do_action_deprecated( 'edit_link_category_form', array( $tag ), '3.0.0', '{$taxonomy}_add_form' );
} else { } else {
/** /**
* Fires at the end of the Edit Term form. * Fires at the end of the Edit Term form.
* *
* @since 2.5.0 * @since 2.5.0
* @deprecated 3.0.0 Use {$taxonomy}_edit_form instead. * @deprecated 3.0.0 Use {@see '{$taxonomy}_edit_form'} instead.
* *
* @param WP_Term $tag Current taxonomy term object. * @param WP_Term $tag Current taxonomy term object.
*/ */
do_action( 'edit_tag_form', $tag ); do_action_deprecated( 'edit_tag_form', array( $tag ), '3.0.0', '{$taxonomy}_edit_form' );
} }
/** /**
* Fires at the end of the Edit Term form for all taxonomies. * Fires at the end of the Edit Term form for all taxonomies.

View File

@ -7,7 +7,7 @@
*/ */
/** WordPress Administration Bootstrap */ /** WordPress Administration Bootstrap */
require_once( dirname( __FILE__ ) . '/admin.php' ); require_once __DIR__ . '/admin.php';
if ( ! $taxnow ) { if ( ! $taxnow ) {
wp_die( __( 'Invalid taxonomy.' ) ); wp_die( __( 'Invalid taxonomy.' ) );
@ -43,10 +43,10 @@ $pagenum = $wp_list_table->get_pagenum();
$title = $tax->labels->name; $title = $tax->labels->name;
if ( 'post' != $post_type ) { if ( 'post' !== $post_type ) {
$parent_file = ( 'attachment' == $post_type ) ? 'upload.php' : "edit.php?post_type=$post_type"; $parent_file = ( 'attachment' === $post_type ) ? 'upload.php' : "edit.php?post_type=$post_type";
$submenu_file = "edit-tags.php?taxonomy=$taxonomy&amp;post_type=$post_type"; $submenu_file = "edit-tags.php?taxonomy=$taxonomy&amp;post_type=$post_type";
} elseif ( 'link_category' == $tax->name ) { } elseif ( 'link_category' === $tax->name ) {
$parent_file = 'link-manager.php'; $parent_file = 'link-manager.php';
$submenu_file = 'edit-tags.php?taxonomy=link_category'; $submenu_file = 'edit-tags.php?taxonomy=link_category';
} else { } else {
@ -199,9 +199,12 @@ switch ( $wp_list_table->current_action() ) {
break; break;
} }
check_admin_referer( 'bulk-tags' ); check_admin_referer( 'bulk-tags' );
$tags = (array) $_REQUEST['delete_tags'];
/** This action is documented in wp-admin/edit-comments.php */ $screen = get_current_screen()->id;
$location = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $location, $wp_list_table->current_action(), $tags ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores $tags = (array) $_REQUEST['delete_tags'];
/** This action is documented in wp-admin/edit.php */
$location = apply_filters( "handle_bulk_actions-{$screen}", $location, $wp_list_table->current_action(), $tags ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
break; break;
} }
@ -219,8 +222,8 @@ if ( $location ) {
* *
* @since 4.6.0 * @since 4.6.0
* *
* @param string $location The destination URL. * @param string $location The destination URL.
* @param object $tax The taxonomy object. * @param WP_Taxonomy $tax The taxonomy object.
*/ */
wp_redirect( apply_filters( 'redirect_term_location', $location, $tax ) ); wp_redirect( apply_filters( 'redirect_term_location', $location, $tax ) );
exit; exit;
@ -239,21 +242,21 @@ if ( current_user_can( $tax->cap->edit_terms ) ) {
wp_enqueue_script( 'inline-edit-tax' ); wp_enqueue_script( 'inline-edit-tax' );
} }
if ( 'category' == $taxonomy || 'link_category' == $taxonomy || 'post_tag' == $taxonomy ) { if ( 'category' === $taxonomy || 'link_category' === $taxonomy || 'post_tag' === $taxonomy ) {
$help = ''; $help = '';
if ( 'category' == $taxonomy ) { if ( 'category' === $taxonomy ) {
$help = '<p>' . sprintf( $help = '<p>' . sprintf(
/* translators: %s: URL to Writing Settings screen. */ /* translators: %s: URL to Writing Settings screen. */
__( 'You can use categories to define sections of your site and group related posts. The default category is &#8220;Uncategorized&#8221; until you change it in your <a href="%s">writing settings</a>.' ), __( 'You can use categories to define sections of your site and group related posts. The default category is &#8220;Uncategorized&#8221; until you change it in your <a href="%s">writing settings</a>.' ),
'options-writing.php' 'options-writing.php'
) . '</p>'; ) . '</p>';
} elseif ( 'link_category' == $taxonomy ) { } elseif ( 'link_category' === $taxonomy ) {
$help = '<p>' . __( 'You can create groups of links by using Link Categories. Link Category names must be unique and Link Categories are separate from the categories you use for posts.' ) . '</p>'; $help = '<p>' . __( 'You can create groups of links by using Link Categories. Link Category names must be unique and Link Categories are separate from the categories you use for posts.' ) . '</p>';
} else { } else {
$help = '<p>' . __( 'You can assign keywords to your posts using <strong>tags</strong>. Unlike categories, tags have no hierarchy, meaning there&#8217;s no relationship from one tag to another.' ) . '</p>'; $help = '<p>' . __( 'You can assign keywords to your posts using <strong>tags</strong>. Unlike categories, tags have no hierarchy, meaning there&#8217;s no relationship from one tag to another.' ) . '</p>';
} }
if ( 'link_category' == $taxonomy ) { if ( 'link_category' === $taxonomy ) {
$help .= '<p>' . __( 'You can delete Link Categories in the Bulk Action pull-down, but that action does not delete the links within the category. Instead, it moves them to the default Link Category.' ) . '</p>'; $help .= '<p>' . __( 'You can delete Link Categories in the Bulk Action pull-down, but that action does not delete the links within the category. Instead, it moves them to the default Link Category.' ) . '</p>';
} else { } else {
$help .= '<p>' . __( 'What&#8217;s the difference between categories and tags? Normally, tags are ad-hoc keywords that identify important information in your post (names, subjects, etc) that may or may not recur in other posts, while categories are pre-determined sections. If you think of your site like a book, the categories are like the Table of Contents and the tags are like the terms in the index.' ) . '</p>'; $help .= '<p>' . __( 'What&#8217;s the difference between categories and tags? Normally, tags are ad-hoc keywords that identify important information in your post (names, subjects, etc) that may or may not recur in other posts, while categories are pre-determined sections. If you think of your site like a book, the categories are like the Table of Contents and the tags are like the terms in the index.' ) . '</p>';
@ -267,8 +270,8 @@ if ( 'category' == $taxonomy || 'link_category' == $taxonomy || 'post_tag' == $t
) )
); );
if ( 'category' == $taxonomy || 'post_tag' == $taxonomy ) { if ( 'category' === $taxonomy || 'post_tag' === $taxonomy ) {
if ( 'category' == $taxonomy ) { if ( 'category' === $taxonomy ) {
$help = '<p>' . __( 'When adding a new category on this screen, you&#8217;ll fill in the following fields:' ) . '</p>'; $help = '<p>' . __( 'When adding a new category on this screen, you&#8217;ll fill in the following fields:' ) . '</p>';
} else { } else {
$help = '<p>' . __( 'When adding a new tag on this screen, you&#8217;ll fill in the following fields:' ) . '</p>'; $help = '<p>' . __( 'When adding a new tag on this screen, you&#8217;ll fill in the following fields:' ) . '</p>';
@ -281,7 +284,7 @@ if ( 'category' == $taxonomy || 'link_category' == $taxonomy || 'post_tag' == $t
$help .= '<li>' . __( '<strong>Slug</strong> &mdash; The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.' ) . '</li>'; $help .= '<li>' . __( '<strong>Slug</strong> &mdash; The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.' ) . '</li>';
} }
if ( 'category' == $taxonomy ) { if ( 'category' === $taxonomy ) {
$help .= '<li>' . __( '<strong>Parent</strong> &mdash; Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have child categories for Bebop and Big Band. Totally optional. To create a subcategory, just choose another category from the Parent dropdown.' ) . '</li>'; $help .= '<li>' . __( '<strong>Parent</strong> &mdash; Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have child categories for Bebop and Big Band. Totally optional. To create a subcategory, just choose another category from the Parent dropdown.' ) . '</li>';
} }
@ -292,7 +295,7 @@ if ( 'category' == $taxonomy || 'link_category' == $taxonomy || 'post_tag' == $t
get_current_screen()->add_help_tab( get_current_screen()->add_help_tab(
array( array(
'id' => 'adding-terms', 'id' => 'adding-terms',
'title' => 'category' == $taxonomy ? __( 'Adding Categories' ) : __( 'Adding Tags' ), 'title' => 'category' === $taxonomy ? __( 'Adding Categories' ) : __( 'Adding Tags' ),
'content' => $help, 'content' => $help,
) )
); );
@ -300,9 +303,9 @@ if ( 'category' == $taxonomy || 'link_category' == $taxonomy || 'post_tag' == $t
$help = '<p><strong>' . __( 'For more information:' ) . '</strong></p>'; $help = '<p><strong>' . __( 'For more information:' ) . '</strong></p>';
if ( 'category' == $taxonomy ) { if ( 'category' === $taxonomy ) {
$help .= '<p>' . __( '<a href="https://wordpress.org/support/article/posts-categories-screen/">Documentation on Categories</a>' ) . '</p>'; $help .= '<p>' . __( '<a href="https://wordpress.org/support/article/posts-categories-screen/">Documentation on Categories</a>' ) . '</p>';
} elseif ( 'link_category' == $taxonomy ) { } elseif ( 'link_category' === $taxonomy ) {
$help .= '<p>' . __( '<a href="https://codex.wordpress.org/Links_Link_Categories_Screen">Documentation on Link Categories</a>' ) . '</p>'; $help .= '<p>' . __( '<a href="https://codex.wordpress.org/Links_Link_Categories_Screen">Documentation on Link Categories</a>' ) . '</p>';
} else { } else {
$help .= '<p>' . __( '<a href="https://wordpress.org/support/article/posts-tags-screen/">Documentation on Tags</a>' ) . '</p>'; $help .= '<p>' . __( '<a href="https://wordpress.org/support/article/posts-tags-screen/">Documentation on Tags</a>' ) . '</p>';
@ -315,10 +318,10 @@ if ( 'category' == $taxonomy || 'link_category' == $taxonomy || 'post_tag' == $t
unset( $help ); unset( $help );
} }
require_once( ABSPATH . 'wp-admin/admin-header.php' ); require_once ABSPATH . 'wp-admin/admin-header.php';
/** Also used by the Edit Tag form */ /** Also used by the Edit Tag form */
require_once( ABSPATH . 'wp-admin/includes/edit-tag-messages.php' ); require_once ABSPATH . 'wp-admin/includes/edit-tag-messages.php';
$class = ( isset( $_REQUEST['error'] ) ) ? 'error' : 'updated'; $class = ( isset( $_REQUEST['error'] ) ) ? 'error' : 'updated';
@ -369,36 +372,36 @@ if ( $can_edit_terms ) {
<div class="col-wrap"> <div class="col-wrap">
<?php <?php
if ( 'category' == $taxonomy ) { if ( 'category' === $taxonomy ) {
/** /**
* Fires before the Add Category form. * Fires before the Add Category form.
* *
* @since 2.1.0 * @since 2.1.0
* @deprecated 3.0.0 Use {$taxonomy}_pre_add_form instead. * @deprecated 3.0.0 Use {@see '{$taxonomy}_pre_add_form'} instead.
* *
* @param object $arg Optional arguments cast to an object. * @param object $arg Optional arguments cast to an object.
*/ */
do_action( 'add_category_form_pre', (object) array( 'parent' => 0 ) ); do_action_deprecated( 'add_category_form_pre', array( (object) array( 'parent' => 0 ) ), '3.0.0', '{$taxonomy}_pre_add_form' );
} elseif ( 'link_category' == $taxonomy ) { } elseif ( 'link_category' === $taxonomy ) {
/** /**
* Fires before the link category form. * Fires before the link category form.
* *
* @since 2.3.0 * @since 2.3.0
* @deprecated 3.0.0 Use {$taxonomy}_pre_add_form instead. * @deprecated 3.0.0 Use {@see '{$taxonomy}_pre_add_form'} instead.
* *
* @param object $arg Optional arguments cast to an object. * @param object $arg Optional arguments cast to an object.
*/ */
do_action( 'add_link_category_form_pre', (object) array( 'parent' => 0 ) ); do_action_deprecated( 'add_link_category_form_pre', array( (object) array( 'parent' => 0 ) ), '3.0.0', '{$taxonomy}_pre_add_form' );
} else { } else {
/** /**
* Fires before the Add Tag form. * Fires before the Add Tag form.
* *
* @since 2.5.0 * @since 2.5.0
* @deprecated 3.0.0 Use {$taxonomy}_pre_add_form instead. * @deprecated 3.0.0 Use {@see '{$taxonomy}_pre_add_form'} instead.
* *
* @param string $taxonomy The taxonomy slug. * @param string $taxonomy The taxonomy slug.
*/ */
do_action( 'add_tag_form_pre', $taxonomy ); do_action_deprecated( 'add_tag_form_pre', array( $taxonomy ), '3.0.0', '{$taxonomy}_pre_add_form' );
} }
/** /**
@ -484,7 +487,7 @@ if ( $can_edit_terms ) {
wp_dropdown_categories( $dropdown_args ); wp_dropdown_categories( $dropdown_args );
?> ?>
<?php if ( 'category' == $taxonomy ) : ?> <?php if ( 'category' === $taxonomy ) : ?>
<p><?php _e( 'Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have children categories for Bebop and Big Band. Totally optional.' ); ?></p> <p><?php _e( 'Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have children categories for Bebop and Big Band. Totally optional.' ); ?></p>
<?php else : ?> <?php else : ?>
<p><?php _e( 'Assign a parent term to create a hierarchy. The term Jazz, for example, would be the parent of Bebop and Big Band.' ); ?></p> <p><?php _e( 'Assign a parent term to create a hierarchy. The term Jazz, for example, would be the parent of Bebop and Big Band.' ); ?></p>
@ -525,36 +528,36 @@ if ( $can_edit_terms ) {
<span class="spinner"></span> <span class="spinner"></span>
</p> </p>
<?php <?php
if ( 'category' == $taxonomy ) { if ( 'category' === $taxonomy ) {
/** /**
* Fires at the end of the Edit Category form. * Fires at the end of the Edit Category form.
* *
* @since 2.1.0 * @since 2.1.0
* @deprecated 3.0.0 Use {$taxonomy}_add_form instead. * @deprecated 3.0.0 Use {@see '{$taxonomy}_add_form'} instead.
* *
* @param object $arg Optional arguments cast to an object. * @param object $arg Optional arguments cast to an object.
*/ */
do_action( 'edit_category_form', (object) array( 'parent' => 0 ) ); do_action_deprecated( 'edit_category_form', array( (object) array( 'parent' => 0 ) ), '3.0.0', '{$taxonomy}_add_form' );
} elseif ( 'link_category' == $taxonomy ) { } elseif ( 'link_category' === $taxonomy ) {
/** /**
* Fires at the end of the Edit Link form. * Fires at the end of the Edit Link form.
* *
* @since 2.3.0 * @since 2.3.0
* @deprecated 3.0.0 Use {$taxonomy}_add_form instead. * @deprecated 3.0.0 Use {@see '{$taxonomy}_add_form'} instead.
* *
* @param object $arg Optional arguments cast to an object. * @param object $arg Optional arguments cast to an object.
*/ */
do_action( 'edit_link_category_form', (object) array( 'parent' => 0 ) ); do_action_deprecated( 'edit_link_category_form', array( (object) array( 'parent' => 0 ) ), '3.0.0', '{$taxonomy}_add_form' );
} else { } else {
/** /**
* Fires at the end of the Add Tag form. * Fires at the end of the Add Tag form.
* *
* @since 2.7.0 * @since 2.7.0
* @deprecated 3.0.0 Use {$taxonomy}_add_form instead. * @deprecated 3.0.0 Use {@see '{$taxonomy}_add_form'} instead.
* *
* @param string $taxonomy The taxonomy slug. * @param string $taxonomy The taxonomy slug.
*/ */
do_action( 'add_tag_form', $taxonomy ); do_action_deprecated( 'add_tag_form', array( $taxonomy ), '3.0.0', '{$taxonomy}_add_form' );
} }
/** /**
@ -586,7 +589,7 @@ if ( $can_edit_terms ) {
</form> </form>
<?php if ( 'category' == $taxonomy ) : ?> <?php if ( 'category' === $taxonomy ) : ?>
<div class="form-wrap edit-term-notes"> <div class="form-wrap edit-term-notes">
<p> <p>
<?php <?php
@ -610,7 +613,7 @@ if ( $can_edit_terms ) {
</p> </p>
<?php endif; ?> <?php endif; ?>
</div> </div>
<?php elseif ( 'post_tag' == $taxonomy && current_user_can( 'import' ) ) : ?> <?php elseif ( 'post_tag' === $taxonomy && current_user_can( 'import' ) ) : ?>
<div class="form-wrap edit-term-notes"> <div class="form-wrap edit-term-notes">
<p> <p>
<?php <?php
@ -655,4 +658,4 @@ endif;
$wp_list_table->inline_edit(); $wp_list_table->inline_edit();
include( ABSPATH . 'wp-admin/admin-footer.php' ); require_once ABSPATH . 'wp-admin/admin-footer.php';

View File

@ -7,7 +7,7 @@
*/ */
/** WordPress Administration Bootstrap */ /** WordPress Administration Bootstrap */
require_once( dirname( __FILE__ ) . '/admin.php' ); require_once __DIR__ . '/admin.php';
if ( ! $typenow ) { if ( ! $typenow ) {
wp_die( __( 'Invalid post type.' ) ); wp_die( __( 'Invalid post type.' ) );
@ -47,7 +47,7 @@ if ( ! current_user_can( $post_type_object->cap->edit_posts ) ) {
$wp_list_table = _get_list_table( 'WP_Posts_List_Table' ); $wp_list_table = _get_list_table( 'WP_Posts_List_Table' );
$pagenum = $wp_list_table->get_pagenum(); $pagenum = $wp_list_table->get_pagenum();
// Back-compat for viewing comments of an entry // Back-compat for viewing comments of an entry.
foreach ( array( 'p', 'attachment_id', 'page_id' ) as $_redirect ) { foreach ( array( 'p', 'attachment_id', 'page_id' ) as $_redirect ) {
if ( ! empty( $_REQUEST[ $_redirect ] ) ) { if ( ! empty( $_REQUEST[ $_redirect ] ) ) {
wp_redirect( admin_url( 'edit-comments.php?p=' . absint( $_REQUEST[ $_redirect ] ) ) ); wp_redirect( admin_url( 'edit-comments.php?p=' . absint( $_REQUEST[ $_redirect ] ) ) );
@ -81,7 +81,7 @@ if ( $doaction ) {
} }
if ( 'delete_all' === $doaction ) { if ( 'delete_all' === $doaction ) {
// Prepare for deletion of all posts with a specified post status (i.e. Empty trash). // Prepare for deletion of all posts with a specified post status (i.e. Empty Trash).
$post_status = preg_replace( '/[^a-z0-9_-]+/i', '', $_REQUEST['post_status'] ); $post_status = preg_replace( '/[^a-z0-9_-]+/i', '', $_REQUEST['post_status'] );
// Validate the post status exists. // Validate the post status exists.
if ( get_post_status_object( $post_status ) ) { if ( get_post_status_object( $post_status ) ) {
@ -182,8 +182,24 @@ if ( $doaction ) {
} }
break; break;
default: default:
/** This action is documented in wp-admin/edit-comments.php */ $screen = get_current_screen()->id;
$sendback = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $sendback, $doaction, $post_ids ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
/**
* Fires when a custom bulk action should be handled.
*
* The redirect link should be modified with success or failure feedback
* from the action to be used to display feedback to the user.
*
* The dynamic portion of the hook name, `$screen`, refers to the current screen ID.
*
* @since 4.7.0
*
* @param string $sendback The redirect URL.
* @param string $doaction The action being taken.
* @param array $items The items to take the action on. Accepts an array of IDs of posts,
* comments, terms, links, plugins, attachments, or users.
*/
$sendback = apply_filters( "handle_bulk_actions-{$screen}", $sendback, $doaction, $post_ids ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
break; break;
} }
@ -240,7 +256,7 @@ if ( 'post' === $post_type ) {
'<ul>' . '<ul>' .
'<li>' . __( '<strong>Edit</strong> takes you to the editing screen for that post. You can also reach that screen by clicking on the post title.' ) . '</li>' . '<li>' . __( '<strong>Edit</strong> takes you to the editing screen for that post. You can also reach that screen by clicking on the post title.' ) . '</li>' .
'<li>' . __( '<strong>Quick Edit</strong> provides inline access to the metadata of your post, allowing you to update post details without leaving this screen.' ) . '</li>' . '<li>' . __( '<strong>Quick Edit</strong> provides inline access to the metadata of your post, allowing you to update post details without leaving this screen.' ) . '</li>' .
'<li>' . __( '<strong>Trash</strong> removes your post from this list and places it in the trash, from which you can permanently delete it.' ) . '</li>' . '<li>' . __( '<strong>Trash</strong> removes your post from this list and places it in the Trash, from which you can permanently delete it.' ) . '</li>' .
'<li>' . __( '<strong>Preview</strong> will show you what your draft post will look like if you publish it. View will take you to your live site to view the post. Which link is available depends on your post&#8217;s status.' ) . '</li>' . '<li>' . __( '<strong>Preview</strong> will show you what your draft post will look like if you publish it. View will take you to your live site to view the post. Which link is available depends on your post&#8217;s status.' ) . '</li>' .
'</ul>', '</ul>',
) )
@ -250,7 +266,7 @@ if ( 'post' === $post_type ) {
'id' => 'bulk-actions', 'id' => 'bulk-actions',
'title' => __( 'Bulk Actions' ), 'title' => __( 'Bulk Actions' ),
'content' => 'content' =>
'<p>' . __( 'You can also edit or move multiple posts to the trash at once. Select the posts you want to act on using the checkboxes, then select the action you want to take from the Bulk Actions menu and click Apply.' ) . '</p>' . '<p>' . __( 'You can also edit or move multiple posts to the Trash at once. Select the posts you want to act on using the checkboxes, then select the action you want to take from the Bulk Actions menu and click Apply.' ) . '</p>' .
'<p>' . __( 'When using Bulk Edit, you can change the metadata (categories, author, etc.) for all selected posts at once. To remove a post from the grouping, just click the x next to its name in the Bulk Edit area that appears.' ) . '</p>', '<p>' . __( 'When using Bulk Edit, you can change the metadata (categories, author, etc.) for all selected posts at once. To remove a post from the grouping, just click the x next to its name in the Bulk Edit area that appears.' ) . '</p>',
) )
); );
@ -367,7 +383,7 @@ $bulk_messages['wp_block'] = array(
$bulk_messages = apply_filters( 'bulk_post_updated_messages', $bulk_messages, $bulk_counts ); $bulk_messages = apply_filters( 'bulk_post_updated_messages', $bulk_messages, $bulk_counts );
$bulk_counts = array_filter( $bulk_counts ); $bulk_counts = array_filter( $bulk_counts );
require_once( ABSPATH . 'wp-admin/admin-header.php' ); require_once ABSPATH . 'wp-admin/admin-header.php';
?> ?>
<div class="wrap"> <div class="wrap">
<h1 class="wp-heading-inline"> <h1 class="wp-heading-inline">
@ -445,4 +461,4 @@ if ( $wp_list_table->has_items() ) {
</div> </div>
<?php <?php
include( ABSPATH . 'wp-admin/admin-footer.php' ); require_once ABSPATH . 'wp-admin/admin-footer.php';

View File

@ -7,7 +7,7 @@
*/ */
/** WordPress Administration Bootstrap */ /** WordPress Administration Bootstrap */
require_once( dirname( __FILE__ ) . '/admin.php' ); require_once __DIR__ . '/admin.php';
if ( ! current_user_can( 'erase_others_personal_data' ) || ! current_user_can( 'delete_users' ) ) { if ( ! current_user_can( 'erase_others_personal_data' ) || ! current_user_can( 'delete_users' ) ) {
wp_die( __( 'Sorry, you are not allowed to erase data on this site.' ) ); wp_die( __( 'Sorry, you are not allowed to erase data on this site.' ) );
@ -47,7 +47,7 @@ $requests_table->screen->set_screen_reader_content(
$requests_table->process_bulk_action(); $requests_table->process_bulk_action();
$requests_table->prepare_items(); $requests_table->prepare_items();
require_once( ABSPATH . 'wp-admin/admin-header.php' ); require_once ABSPATH . 'wp-admin/admin-header.php';
?> ?>
<div class="wrap nosubsub"> <div class="wrap nosubsub">
@ -89,4 +89,4 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
</div> </div>
<?php <?php
include( ABSPATH . 'wp-admin/admin-footer.php' ); require_once ABSPATH . 'wp-admin/admin-footer.php';

View File

@ -7,7 +7,7 @@
*/ */
/** WordPress Administration Bootstrap */ /** WordPress Administration Bootstrap */
require_once( dirname( __FILE__ ) . '/admin.php' ); require_once __DIR__ . '/admin.php';
if ( ! current_user_can( 'export_others_personal_data' ) ) { if ( ! current_user_can( 'export_others_personal_data' ) ) {
wp_die( __( 'Sorry, you are not allowed to export personal data on this site.' ) ); wp_die( __( 'Sorry, you are not allowed to export personal data on this site.' ) );
@ -47,7 +47,7 @@ $requests_table->screen->set_screen_reader_content(
$requests_table->process_bulk_action(); $requests_table->process_bulk_action();
$requests_table->prepare_items(); $requests_table->prepare_items();
require_once( ABSPATH . 'wp-admin/admin-header.php' ); require_once ABSPATH . 'wp-admin/admin-header.php';
?> ?>
<div class="wrap nosubsub"> <div class="wrap nosubsub">
@ -89,4 +89,4 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
</div> </div>
<?php <?php
include( ABSPATH . 'wp-admin/admin-footer.php' ); require_once ABSPATH . 'wp-admin/admin-footer.php';

View File

@ -7,14 +7,14 @@
*/ */
/** Load WordPress Bootstrap */ /** Load WordPress Bootstrap */
require_once( dirname( __FILE__ ) . '/admin.php' ); require_once __DIR__ . '/admin.php';
if ( ! current_user_can( 'export' ) ) { if ( ! current_user_can( 'export' ) ) {
wp_die( __( 'Sorry, you are not allowed to export the content of this site.' ) ); wp_die( __( 'Sorry, you are not allowed to export the content of this site.' ) );
} }
/** Load WordPress export API */ /** Load WordPress export API */
require_once( ABSPATH . 'wp-admin/includes/export.php' ); require_once ABSPATH . 'wp-admin/includes/export.php';
$title = __( 'Export' ); $title = __( 'Export' );
/** /**
@ -122,7 +122,7 @@ if ( isset( $_GET['download'] ) ) {
die(); die();
} }
require_once( ABSPATH . 'wp-admin/admin-header.php' ); require_once ABSPATH . 'wp-admin/admin-header.php';
/** /**
* Create the date options fields for exporting a given post type. * Create the date options fields for exporting a given post type.
@ -180,7 +180,7 @@ function export_date_options( $post_type = 'post' ) {
<p><label><input type="radio" name="content" value="all" checked="checked" aria-describedby="all-content-desc" /> <?php _e( 'All content' ); ?></label></p> <p><label><input type="radio" name="content" value="all" checked="checked" aria-describedby="all-content-desc" /> <?php _e( 'All content' ); ?></label></p>
<p class="description" id="all-content-desc"><?php _e( 'This will contain all of your posts, pages, comments, custom fields, terms, navigation menus, and custom posts.' ); ?></p> <p class="description" id="all-content-desc"><?php _e( 'This will contain all of your posts, pages, comments, custom fields, terms, navigation menus, and custom posts.' ); ?></p>
<p><label><input type="radio" name="content" value="posts" /> <?php _e( 'Posts' ); ?></label></p> <p><label><input type="radio" name="content" value="posts" /> <?php _ex( 'Posts', 'post type general name' ); ?></label></p>
<ul id="post-filters" class="export-filters"> <ul id="post-filters" class="export-filters">
<li> <li>
<label><span class="label-responsive"><?php _e( 'Categories:' ); ?></span> <label><span class="label-responsive"><?php _e( 'Categories:' ); ?></span>
@ -321,4 +321,4 @@ do_action( 'export_filters' );
</form> </form>
</div> </div>
<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?> <?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>

View File

@ -7,7 +7,7 @@
*/ */
/** WordPress Administration Bootstrap */ /** WordPress Administration Bootstrap */
require_once( dirname( __FILE__ ) . '/admin.php' ); require_once __DIR__ . '/admin.php';
// This file was used to also display the Privacy tab on the About screen from 4.9.6 until 5.3.0. // This file was used to also display the Privacy tab on the About screen from 4.9.6 until 5.3.0.
if ( isset( $_GET['privacy-notice'] ) ) { if ( isset( $_GET['privacy-notice'] ) ) {
@ -19,29 +19,21 @@ $title = __( 'Freedoms' );
list( $display_version ) = explode( '-', get_bloginfo( 'version' ) ); list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
include( ABSPATH . 'wp-admin/admin-header.php' ); require_once ABSPATH . 'wp-admin/admin-header.php';
?> ?>
<div class="wrap about__container"> <div class="wrap about__container">
<div class="about__header"> <div class="about__header">
<div class="about__header-title"> <div class="about__header-title">
<h1> <p>
<span><?php echo $display_version; ?></span>
<?php _e( 'WordPress' ); ?> <?php _e( 'WordPress' ); ?>
</h1> <span><?php echo $display_version; ?></span>
</p>
</div> </div>
<div class="about__header-badge"></div>
<div class="about__header-text"> <div class="about__header-text">
<p> <p>
<?php <?php _e( 'Building more with blocks, faster and easier.' ); ?>
printf(
/* translators: %s: The current WordPress version number. */
__( 'Introducing our most refined user experience with the improved block editor in WordPress %s!' ),
$display_version
);
?>
</p> </p>
</div> </div>
@ -54,7 +46,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
</div> </div>
<div class="about__section has-subtle-background-color is-feature"> <div class="about__section has-subtle-background-color is-feature">
<h2><?php _e( 'Freedoms' ); ?></h2> <h1><?php _e( 'Freedoms' ); ?></h1>
<p class="about-description"> <p class="about-description">
<?php <?php
@ -72,26 +64,28 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
<div class="about__section has-4-columns"> <div class="about__section has-4-columns">
<div class="column"> <div class="column">
<div class="freedoms-image"></div> <div class="freedoms-image"></div>
<h3><?php _e( 'The 1st Freedom' ); ?></h3> <h2 class="is-smaller-heading"><?php _e( 'The 1st Freedom' ); ?></h2>
<p><?php _e( 'To run the program for any purpose.' ); ?></p> <p><?php _e( 'To run the program for any purpose.' ); ?></p>
</div> </div>
<div class="column"> <div class="column">
<div class="freedoms-image"></div> <div class="freedoms-image"></div>
<h3><?php _e( 'The 2nd Freedom' ); ?></h3> <h2 class="is-smaller-heading"><?php _e( 'The 2nd Freedom' ); ?></h2>
<p><?php _e( 'To study how the program works and change it to make it do what you wish.' ); ?></p> <p><?php _e( 'To study how the program works and change it to make it do what you wish.' ); ?></p>
</div> </div>
<div class="column"> <div class="column">
<div class="freedoms-image"></div> <div class="freedoms-image"></div>
<h3><?php _e( 'The 3rd Freedom' ); ?></h3> <h2 class="is-smaller-heading"><?php _e( 'The 3rd Freedom' ); ?></h2>
<p><?php _e( 'To redistribute.' ); ?></p> <p><?php _e( 'To redistribute.' ); ?></p>
</div> </div>
<div class="column"> <div class="column">
<div class="freedoms-image"></div> <div class="freedoms-image"></div>
<h3><?php _e( 'The 4th Freedom' ); ?></h3> <h2 class="is-smaller-heading"><?php _e( 'The 4th Freedom' ); ?></h2>
<p><?php _e( 'To distribute copies of your modified versions to others.' ); ?></p> <p><?php _e( 'To distribute copies of your modified versions to others.' ); ?></p>
</div> </div>
</div> </div>
<hr />
<div class="about__section"> <div class="about__section">
<div class="column"> <div class="column">
<p> <p>
@ -123,4 +117,4 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
</div> </div>
</div> </div>
<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?> <?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

@ -9,7 +9,7 @@
define( 'WP_LOAD_IMPORTERS', true ); define( 'WP_LOAD_IMPORTERS', true );
/** Load WordPress Bootstrap */ /** Load WordPress Bootstrap */
require_once( dirname( __FILE__ ) . '/admin.php' ); require_once __DIR__ . '/admin.php';
if ( ! current_user_can( 'import' ) ) { if ( ! current_user_can( 'import' ) ) {
wp_die( __( 'Sorry, you are not allowed to import content into this site.' ) ); wp_die( __( 'Sorry, you are not allowed to import content into this site.' ) );
@ -39,7 +39,7 @@ if ( current_user_can( 'install_plugins' ) ) {
$popular_importers = array(); $popular_importers = array();
} }
// Detect and redirect invalid importers like 'movabletype', which is registered as 'mt' // Detect and redirect invalid importers like 'movabletype', which is registered as 'mt'.
if ( ! empty( $_GET['invalid'] ) && isset( $popular_importers[ $_GET['invalid'] ] ) ) { if ( ! empty( $_GET['invalid'] ) && isset( $popular_importers[ $_GET['invalid'] ] ) ) {
$importer_id = $popular_importers[ $_GET['invalid'] ]['importer-id']; $importer_id = $popular_importers[ $_GET['invalid'] ]['importer-id'];
if ( $importer_id != $_GET['invalid'] ) { // Prevent redirect loops. if ( $importer_id != $_GET['invalid'] ) { // Prevent redirect loops.
@ -53,7 +53,7 @@ add_thickbox();
wp_enqueue_script( 'plugin-install' ); wp_enqueue_script( 'plugin-install' );
wp_enqueue_script( 'updates' ); wp_enqueue_script( 'updates' );
require_once( ABSPATH . 'wp-admin/admin-header.php' ); require_once ABSPATH . 'wp-admin/admin-header.php';
$parent_file = 'tools.php'; $parent_file = 'tools.php';
?> ?>
@ -61,7 +61,7 @@ $parent_file = 'tools.php';
<h1><?php echo esc_html( $title ); ?></h1> <h1><?php echo esc_html( $title ); ?></h1>
<?php if ( ! empty( $_GET['invalid'] ) ) : ?> <?php if ( ! empty( $_GET['invalid'] ) ) : ?>
<div class="error"> <div class="error">
<p><strong><?php _e( 'ERROR:' ); ?></strong> <p><strong><?php _e( 'Error:' ); ?></strong>
<?php <?php
/* translators: %s: Importer slug. */ /* translators: %s: Importer slug. */
printf( __( 'The %s importer is invalid or is not installed.' ), '<strong>' . esc_html( $_GET['invalid'] ) . '</strong>' ); printf( __( 'The %s importer is invalid or is not installed.' ), '<strong>' . esc_html( $_GET['invalid'] ) . '</strong>' );
@ -93,7 +93,7 @@ foreach ( $popular_importers as $pop_importer => $pop_data ) {
} }
if ( empty( $importers ) ) { if ( empty( $importers ) ) {
echo '<p>' . __( 'No importers are available.' ) . '</p>'; // TODO: make more helpful echo '<p>' . __( 'No importers are available.' ) . '</p>'; // TODO: Make more helpful.
} else { } else {
uasort( $importers, '_usort_by_first_member' ); uasort( $importers, '_usort_by_first_member' );
?> ?>
@ -161,7 +161,7 @@ if ( empty( $importers ) ) {
); );
} else { } else {
$action = sprintf( $action = sprintf(
/* translators: URL to Import screen on the main site. */ /* translators: %s: URL to Import screen on the main site. */
__( 'This importer is not installed. Please install importers from <a href="%s">the main site</a>.' ), __( 'This importer is not installed. Please install importers from <a href="%s">the main site</a>.' ),
get_admin_url( get_current_network_id(), 'import.php' ) get_admin_url( get_current_network_id(), 'import.php' )
); );
@ -237,4 +237,4 @@ if ( current_user_can( 'install_plugins' ) ) {
wp_print_request_filesystem_credentials_modal(); wp_print_request_filesystem_credentials_modal();
wp_print_admin_notice_templates(); wp_print_admin_notice_templates();
include( ABSPATH . 'wp-admin/admin-footer.php' ); require_once ABSPATH . 'wp-admin/admin-footer.php';

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