Compare commits
151 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9debe107fa | ||
|
|
e4fd5ef24d | ||
|
|
7ed766aea3 | ||
|
|
db54864c96 | ||
|
|
7e071f1545 | ||
|
|
9705f4ea3a | ||
|
|
fe61789462 | ||
|
|
e9ea3ea4fa | ||
|
|
d495962744 | ||
|
|
13bd3963a0 | ||
|
|
abd76c1779 | ||
|
|
c888dd17cc | ||
|
|
7adb8b4e4d | ||
|
|
40a294d21e | ||
|
|
7c466f7c74 | ||
|
|
31270d4511 | ||
|
|
22149ac868 | ||
|
|
98b1bc6752 | ||
|
|
9138d6e6ca | ||
|
|
669c5eacf1 | ||
|
|
4b84596f68 | ||
|
|
1a89f620f9 | ||
|
|
b454439e6f | ||
|
|
66d6663227 | ||
|
|
7a55e4aa60 | ||
|
|
85e65c746a | ||
|
|
5cb06dca4f | ||
|
|
d99c518d40 | ||
|
|
9e08f12e0d | ||
|
|
644cb5fc24 | ||
|
|
bb6a2aa182 | ||
|
|
676e70c5c7 | ||
|
|
5dee0c5fa4 | ||
|
|
b3d7e737ab | ||
|
|
511f7cb751 | ||
|
|
0d0a870240 | ||
|
|
cd6ac02117 | ||
|
|
77512de0c2 | ||
|
|
4e55b9a259 | ||
|
|
449c2e21f1 | ||
|
|
e6d839b936 | ||
|
|
22b941b16e | ||
|
|
3fc8c7687d | ||
|
|
f5a8d325ee | ||
|
|
c7963618ca | ||
|
|
b1e2b6174d | ||
|
|
dd4a67807a | ||
|
|
5ae97a43f1 | ||
|
|
6abeb15791 | ||
|
|
9525d1c9f7 | ||
|
|
6f6975efde | ||
|
|
3aee1ab019 | ||
|
|
f1bcfd66d2 | ||
|
|
99c691c8e2 | ||
|
|
fd030a496f | ||
|
|
7b21983b01 | ||
|
|
cd10cf0c79 | ||
|
|
6d7dca07b0 | ||
|
|
2c9cdc0550 | ||
|
|
5bbd15d57f | ||
|
|
6b07ab9913 | ||
|
|
20740afc8f | ||
|
|
58f8f500d3 | ||
|
|
8221d6d320 | ||
|
|
f0871560df | ||
|
|
d9238aa70b | ||
|
|
f5aac93fa0 | ||
|
|
2910b5cfea | ||
|
|
409a89668a | ||
|
|
c7d610fb02 | ||
|
|
9e38fc8259 | ||
|
|
e4cf151207 | ||
|
|
17570cfbd8 | ||
|
|
6e0e255964 | ||
|
|
d73f11a4ce | ||
|
|
f5d738e01c | ||
|
|
3487611129 | ||
|
|
ecdd9d8390 | ||
|
|
1cdaf142f2 | ||
|
|
e5f1a70a87 | ||
|
|
44bff0da78 | ||
|
|
01bd5c0eed | ||
|
|
d01a9c3c46 | ||
|
|
e3c254bf75 | ||
|
|
ba1ec74fdc | ||
|
|
a590a590a3 | ||
|
|
06ebac2233 | ||
|
|
7e5d62f195 | ||
|
|
05b9f27d11 | ||
|
|
9870e114af | ||
|
|
ad8e49e8dd | ||
|
|
97b8443321 | ||
|
|
176a6206a3 | ||
|
|
d6875bc495 | ||
|
|
33da7d7e7f | ||
|
|
bd3bd0c6ff | ||
|
|
4c4662e95c | ||
|
|
6cd7126ff2 | ||
|
|
b7f33680dc | ||
|
|
9156181d27 | ||
|
|
2fed57f1b0 | ||
|
|
b06ee36d81 | ||
|
|
6f3a28818e | ||
|
|
d6c12ac919 | ||
|
|
fd1e68a6a4 | ||
|
|
50f419f0a8 | ||
|
|
c54903a12e | ||
|
|
159068b2a0 | ||
|
|
ff1db3c4a9 | ||
|
|
4baea39a4d | ||
|
|
abbe0c7912 | ||
|
|
35e045286d | ||
|
|
0a417c0dc9 | ||
|
|
7df949e31e | ||
|
|
27e67093f7 | ||
|
|
e5296ce359 | ||
|
|
51ba5fd05b | ||
|
|
01c05f6ba4 | ||
|
|
1d39158963 | ||
|
|
ace691cd92 | ||
|
|
adfc7aad8d | ||
|
|
492e68fa7c | ||
|
|
1bbf386977 | ||
|
|
c6be5ae66c | ||
|
|
70f65b8fcd | ||
|
|
f8218720fb | ||
|
|
4c19b2c3c3 | ||
|
|
79ea28c053 | ||
|
|
f542e3f870 | ||
|
|
d804c8218d | ||
|
|
0dcfbcca36 | ||
|
|
a4ea358a27 | ||
|
|
5e93894c98 | ||
|
|
69f5738ed0 | ||
|
|
3189b48619 | ||
|
|
f252700dec | ||
|
|
30ea8d0dd9 | ||
|
|
181367b5c6 | ||
|
|
1d815800d4 | ||
|
|
9ef78246d8 | ||
|
|
645ce999a7 | ||
|
|
7a8e558ac4 | ||
|
|
efacf16e12 | ||
|
|
6b9ce11634 | ||
|
|
ae762f145f | ||
|
|
4a89da0ff3 | ||
|
|
d68a6ab321 | ||
|
|
749596e95c | ||
|
|
5bb6344302 | ||
|
|
4b2996f926 | ||
|
|
d89b804670 |
@@ -14,4 +14,4 @@
|
||||
define( 'WP_USE_THEMES', true );
|
||||
|
||||
/** Loads the WordPress Environment and Template */
|
||||
require __DIR__ . '/wp-blog-header.php';
|
||||
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
WordPress - Web publishing software
|
||||
|
||||
Copyright 2011-2020 by the contributors
|
||||
Copyright 2011-2019 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
|
||||
@@ -19,7 +19,8 @@ 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
|
||||
b2 is (c) 2001, 2002 Michel Valdrighi - m@tidakada.com -
|
||||
http://tidakada.com
|
||||
|
||||
Wherever third party code has been used, credit has been given in the code's
|
||||
comments.
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
|
||||
<h2>Updating</h2>
|
||||
<h3>Using the Automatic Updater</h3>
|
||||
<p>If you are updating from version 2.7 or higher, you can use the automatic updater:</p>
|
||||
<ol>
|
||||
<li>Open <span class="file"><a href="wp-admin/update-core.php">wp-admin/update-core.php</a></span> in your browser and follow the instructions.</li>
|
||||
<li>You wanted more, perhaps? That’s it!</li>
|
||||
|
||||
@@ -9,9 +9,9 @@
|
||||
define( 'WP_INSTALLING', true );
|
||||
|
||||
/** Sets up the WordPress Environment. */
|
||||
require __DIR__ . '/wp-load.php';
|
||||
require( dirname( __FILE__ ) . '/wp-load.php' );
|
||||
|
||||
require __DIR__ . '/wp-blog-header.php';
|
||||
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
|
||||
|
||||
if ( ! is_multisite() ) {
|
||||
wp_redirect( wp_registration_url() );
|
||||
@@ -37,7 +37,7 @@ if ( isset( $_GET['key'] ) && isset( $_POST['key'] ) && $_GET['key'] !== $_POST[
|
||||
if ( $key ) {
|
||||
$redirect_url = remove_query_arg( 'key' );
|
||||
|
||||
if ( remove_query_arg( false ) !== $redirect_url ) {
|
||||
if ( $redirect_url !== remove_query_arg( false ) ) {
|
||||
setcookie( $activate_cookie, $key, 0, $activate_path, COOKIE_DOMAIN, is_ssl(), true );
|
||||
wp_safe_redirect( $redirect_url );
|
||||
exit;
|
||||
@@ -46,13 +46,13 @@ if ( $key ) {
|
||||
}
|
||||
}
|
||||
|
||||
if ( null === $result && isset( $_COOKIE[ $activate_cookie ] ) ) {
|
||||
if ( $result === null && isset( $_COOKIE[ $activate_cookie ] ) ) {
|
||||
$key = $_COOKIE[ $activate_cookie ];
|
||||
$result = wpmu_activate_signup( $key );
|
||||
setcookie( $activate_cookie, ' ', time() - YEAR_IN_SECONDS, $activate_path, COOKIE_DOMAIN, is_ssl(), true );
|
||||
}
|
||||
|
||||
if ( null === $result || ( is_wp_error( $result ) && 'invalid_key' === $result->get_error_code() ) ) {
|
||||
if ( $result === null || ( is_wp_error( $result ) && 'invalid_key' === $result->get_error_code() ) ) {
|
||||
status_header( 404 );
|
||||
} elseif ( is_wp_error( $result ) ) {
|
||||
$error_code = $result->get_error_code();
|
||||
@@ -68,7 +68,7 @@ if ( is_object( $wp_object_cache ) ) {
|
||||
$wp_object_cache->cache_enabled = false;
|
||||
}
|
||||
|
||||
// Fix for page title.
|
||||
// Fix for page title
|
||||
$wp_query->is_404 = false;
|
||||
|
||||
/**
|
||||
@@ -142,7 +142,7 @@ get_header( 'wp-activate' );
|
||||
<h2><?php _e( 'Your account is now active!' ); ?></h2>
|
||||
<?php
|
||||
echo '<p class="lead-in">';
|
||||
if ( '' === $signup->domain . $signup->path ) {
|
||||
if ( $signup->domain . $signup->path == '' ) {
|
||||
printf(
|
||||
/* translators: 1: Login URL, 2: Username, 3: User email address, 4: Lost password URL. */
|
||||
__( 'Your account has been activated. You may now <a href="%1$s">log in</a> to the site using your chosen username of “%2$s”. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%4$s">reset your password</a>.' ),
|
||||
@@ -162,7 +162,7 @@ get_header( 'wp-activate' );
|
||||
);
|
||||
}
|
||||
echo '</p>';
|
||||
} elseif ( null === $result || is_wp_error( $result ) ) {
|
||||
} elseif ( $result === null || is_wp_error( $result ) ) {
|
||||
?>
|
||||
<h2><?php _e( 'An error occurred during the activation' ); ?></h2>
|
||||
<?php if ( is_wp_error( $result ) ) : ?>
|
||||
@@ -181,7 +181,7 @@ get_header( 'wp-activate' );
|
||||
</div>
|
||||
|
||||
<?php
|
||||
if ( $url && network_home_url( '', 'http' ) !== $url ) :
|
||||
if ( $url && $url != network_home_url( '', 'http' ) ) :
|
||||
switch_to_blog( (int) $result['blog_id'] );
|
||||
$login_url = wp_login_url();
|
||||
restore_current_blog();
|
||||
|
||||
@@ -7,28 +7,36 @@
|
||||
*/
|
||||
|
||||
/** WordPress Administration Bootstrap */
|
||||
require_once __DIR__ . '/admin.php';
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
|
||||
/* translators: Page title of the About WordPress page in the admin. */
|
||||
$title = _x( 'About', 'page title' );
|
||||
|
||||
list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
|
||||
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
?>
|
||||
<div class="wrap about__container">
|
||||
|
||||
<div class="about__header">
|
||||
<div class="about__header-title">
|
||||
<p>
|
||||
<?php _e( 'WordPress' ); ?>
|
||||
<h1>
|
||||
<span><?php echo $display_version; ?></span>
|
||||
</p>
|
||||
<?php _e( 'WordPress' ); ?>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
<div class="about__header-badge"></div>
|
||||
|
||||
<div class="about__header-text">
|
||||
<p>
|
||||
<?php _e( 'Building more with blocks, faster and easier.' ); ?>
|
||||
<?php
|
||||
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>
|
||||
</div>
|
||||
|
||||
@@ -40,14 +48,6 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div class="about__section is-feature has-accent-background-color">
|
||||
<h1><?php _e( 'Say hello to more and better.' ); ?></h1>
|
||||
|
||||
<p><?php _e( 'More ways to make your pages come alive. With easier ways to get it all done and looking better than ever—and boosts in speed you can feel.' ); ?></p>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="about__section changelog">
|
||||
<div class="column">
|
||||
<h2><?php _e( 'Maintenance and Security Releases' ); ?></h2>
|
||||
@@ -56,7 +56,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
printf(
|
||||
/* translators: %s: WordPress version number */
|
||||
__( '<strong>Version %s</strong> addressed one security issue.' ),
|
||||
'5.4.10'
|
||||
'5.3.10'
|
||||
);
|
||||
?>
|
||||
<?php
|
||||
@@ -66,7 +66,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
sprintf(
|
||||
/* translators: %s: WordPress version */
|
||||
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
|
||||
sanitize_title( '5.4.10' )
|
||||
sanitize_title( '5.3.10' )
|
||||
)
|
||||
);
|
||||
?>
|
||||
@@ -76,7 +76,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
printf(
|
||||
/* translators: %s: WordPress version number */
|
||||
__( '<strong>Version %s</strong> addressed some security issues.' ),
|
||||
'5.4.9'
|
||||
'5.3.9'
|
||||
);
|
||||
?>
|
||||
<?php
|
||||
@@ -86,7 +86,27 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
sprintf(
|
||||
/* translators: %s: WordPress version */
|
||||
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
|
||||
sanitize_title( '5.4.9' )
|
||||
sanitize_title( '5.3.9' )
|
||||
)
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s: WordPress version number */
|
||||
__( '<strong>Version %s</strong> addressed some security issues.' ),
|
||||
'5.3.8'
|
||||
);
|
||||
?>
|
||||
<?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.8' )
|
||||
)
|
||||
);
|
||||
?>
|
||||
@@ -96,7 +116,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
printf(
|
||||
/* translators: %s: WordPress version number */
|
||||
__( '<strong>Version %s</strong> addressed one security issue.' ),
|
||||
'5.4.8'
|
||||
'5.3.8'
|
||||
);
|
||||
?>
|
||||
<?php
|
||||
@@ -106,7 +126,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
sprintf(
|
||||
/* translators: %s: WordPress version */
|
||||
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
|
||||
sanitize_title( '5.4.8' )
|
||||
sanitize_title( '5.3.8' )
|
||||
)
|
||||
);
|
||||
?>
|
||||
@@ -116,7 +136,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
printf(
|
||||
/* translators: %s: WordPress version number */
|
||||
__( '<strong>Version %s</strong> addressed some security issues.' ),
|
||||
'5.4.7'
|
||||
'5.3.7'
|
||||
);
|
||||
?>
|
||||
<?php
|
||||
@@ -126,47 +146,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
sprintf(
|
||||
/* translators: %s: WordPress version */
|
||||
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
|
||||
sanitize_title( '5.4.7' )
|
||||
)
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s: WordPress version number */
|
||||
__( '<strong>Version %s</strong> addressed one security issue.' ),
|
||||
'5.4.6'
|
||||
);
|
||||
?>
|
||||
<?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.4.6' )
|
||||
)
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s: WordPress version number */
|
||||
__( '<strong>Version %s</strong> addressed some security issues.' ),
|
||||
'5.4.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.4.5' )
|
||||
sanitize_title( '5.3.7' )
|
||||
)
|
||||
);
|
||||
?>
|
||||
@@ -180,7 +160,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
'<strong>Version %1$s</strong> addressed %2$s bugs.',
|
||||
1
|
||||
),
|
||||
'5.4.4',
|
||||
'5.3.6',
|
||||
number_format_i18n( 1 )
|
||||
);
|
||||
?>
|
||||
@@ -191,7 +171,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
sprintf(
|
||||
/* translators: %s: WordPress version */
|
||||
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
|
||||
sanitize_title( '5.4.4' )
|
||||
sanitize_title( '5.3.6' )
|
||||
)
|
||||
);
|
||||
?>
|
||||
@@ -201,7 +181,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
printf(
|
||||
/* translators: %s: WordPress version number */
|
||||
__( '<strong>Version %s</strong> addressed some security issues.' ),
|
||||
'5.4.3'
|
||||
'5.3.5'
|
||||
);
|
||||
?>
|
||||
<?php
|
||||
@@ -211,7 +191,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
sprintf(
|
||||
/* translators: %s: WordPress version */
|
||||
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
|
||||
sanitize_title( '5.4.3' )
|
||||
sanitize_title( '5.3.5' )
|
||||
)
|
||||
);
|
||||
?>
|
||||
@@ -223,10 +203,10 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
_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 bugs.',
|
||||
23
|
||||
2
|
||||
),
|
||||
'5.4.2',
|
||||
number_format_i18n( 23 )
|
||||
'5.3.4',
|
||||
number_format_i18n( 2 )
|
||||
);
|
||||
?>
|
||||
<?php
|
||||
@@ -236,7 +216,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
sprintf(
|
||||
/* translators: %s: WordPress version */
|
||||
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
|
||||
sanitize_title( '5.4.2' )
|
||||
sanitize_title( '5.3.4' )
|
||||
)
|
||||
);
|
||||
?>
|
||||
@@ -248,10 +228,10 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
_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 bugs.',
|
||||
11
|
||||
10
|
||||
),
|
||||
'5.4.1',
|
||||
number_format_i18n( 11 )
|
||||
'5.3.3',
|
||||
number_format_i18n( 10 )
|
||||
);
|
||||
?>
|
||||
<?php
|
||||
@@ -261,168 +241,201 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
sprintf(
|
||||
/* translators: %s: WordPress version */
|
||||
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
|
||||
sanitize_title( '5.4.1' )
|
||||
sanitize_title( '5.3.3' )
|
||||
)
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<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>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: 1: WordPress version number, 2: plural number of bugs. More than one security issue. */
|
||||
_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 bugs.',
|
||||
46
|
||||
),
|
||||
'5.3.1',
|
||||
number_format_i18n( 46 )
|
||||
);
|
||||
?>
|
||||
<?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.1' )
|
||||
)
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="about__section is-feature">
|
||||
<p>
|
||||
<?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>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="about__section has-2-columns">
|
||||
<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='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="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="column is-vertically-aligned-center">
|
||||
<h2><?php _e( 'Block Editor Improvements' ); ?></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>
|
||||
<li><?php _e( 'The new Group block lets you easily divide your page into colorful sections' ); ?></li>
|
||||
<li><?php _e( 'The Columns block now supports fixed column widths' ); ?></li>
|
||||
<li><?php _e( 'The new Predefined layouts make it a cinch to arrange content into advanced designs' ); ?></li>
|
||||
<li><?php _e( 'Heading blocks now offer controls for text color' ); ?></li>
|
||||
<li><?php _e( 'Additional style options allow you to set your preferred style for any block that supports this feature' ); ?></li>
|
||||
</ul>
|
||||
</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 class="about__section has-2-columns has-subtle-background-color">
|
||||
<div class="column is-vertically-aligned-center">
|
||||
<h2><?php _e( 'Introducing Twenty Twenty' ); ?></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>
|
||||
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s: Link to the Inter font website. */
|
||||
__( '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.' ),
|
||||
'https://rsms.me/inter/'
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
</div>
|
||||
<div class="column is-edge-to-edge">
|
||||
<div class="about__image aligncenter">
|
||||
<img src="https://s.w.org/images/core/5.3/twentytwenty-mobile.png" alt="" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="about__section has-subtle-background-color">
|
||||
<div class="column is-edge-to-edge">
|
||||
<div class="about__image aligncenter">
|
||||
<img src="https://s.w.org/images/core/5.3/twentytwenty-desktop.png" alt="" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="about__section has-3-columns">
|
||||
<h2 class="is-section-header"><?php _e( 'Improvements for Everyone' ); ?></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( 'You’ll 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 class="about__section">
|
||||
<div class="column is-edge-to-edge">
|
||||
<div class="about__image aligncenter">
|
||||
<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>
|
||||
|
||||
<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>
|
||||
<h2 class="is-section-header"><?php _e( 'For Developers' ); ?></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’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—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>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="about__section has-2-columns">
|
||||
<div class="column is-edge-to-edge">
|
||||
<div class="about__image aligncenter">
|
||||
<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 class="column is-vertically-aligned-center">
|
||||
<h2><?php _e( 'Two new blocks. And better blocks overall.' ); ?></h2>
|
||||
<ul>
|
||||
<li><?php _e( 'Two brand-new blocks: Social Icons and Buttons make adding interactive features fast and easy.' ); ?></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( '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( 'And if you’ve ever thought your image in the Media+Text block should link to something else—perhaps a picture of a brochure should download that brochure as a document? Well, now it can.' ); ?></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="about__section has-2-columns">
|
||||
<div class="column is-vertically-aligned-center">
|
||||
<h2><?php _e( 'Cleaner UI, clearer navigation—and easier tabbing!' ); ?></h2>
|
||||
<ul>
|
||||
<li><?php _e( 'Clearer block navigation with block breadcrumbs. And easier selection once you get there.' ); ?></li>
|
||||
<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>
|
||||
<li><?php _e( 'Speed! 14% faster loading of the editor, 51% faster time-to-type!' ); ?></li>
|
||||
<li><?php _e( 'Tips are gone. In their place, a Welcome Guide window you can bring up when you need it—and only when you need it—again and again.' ); ?></li>
|
||||
<li><?php _e( 'Know at a glance whether you’re in a block’s Edit or Navigation mode. Or, if you have restricted vision, your screen reader will tell you which mode you’re in.' ); ?></li>
|
||||
</ul>
|
||||
<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’ll get to be the first to use new and exciting features in the block editor, before anyone else has seen them!' ); ?></p>
|
||||
</div>
|
||||
<div class="column is-edge-to-edge">
|
||||
<div class="about__image aligncenter">
|
||||
<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 class="about__section has-2-columns">
|
||||
<div class="column is-edge-to-edge">
|
||||
<div class="about__image aligncenter">
|
||||
<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 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>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="about__section ">
|
||||
<div class="column has-subtle-background-color">
|
||||
<h2 class="is-section-header"><?php _e( 'Just for developers' ); ?></h2>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr class="is-small" />
|
||||
|
||||
<div class="about__section">
|
||||
<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="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr class="is-small" />
|
||||
|
||||
<div class="about__section has-2-columns">
|
||||
<div class="column">
|
||||
<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—without a plugin and without writing custom walkers.' ); ?>
|
||||
</p>
|
||||
<h3><?php _e( 'Date/Time Component Fixes' ); ?></h3>
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s: 'wp_nav_menu_item_custom_fields' action name. */
|
||||
__( 'On the Menus admin screen, %s fires just before the move buttons of a nav menu item in the menu editor.' ),
|
||||
'<code>wp_nav_menu_item_custom_fields</code>'
|
||||
/* translators: %s: Link to the date/time developer notes. */
|
||||
__( '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.' ),
|
||||
'https://make.wordpress.org/core/2019/09/23/date-time-improvements-wp-5-3/'
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
</div>
|
||||
<div class="column">
|
||||
<h3><?php _e( 'PHP 7.4 Compatibility' ); ?></h3>
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s: 'wp_nav_menu_item_custom_fields_customize_template' action name. */
|
||||
__( 'In the Customizer, %s fires at the end of the menu-items form-fields template.' ),
|
||||
'<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’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’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/'
|
||||
/* translators: %s: Link to the PHP 7 developer notes. */
|
||||
__( '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.' ),
|
||||
'https://make.wordpress.org/core/2019/10/11/wordpress-and-php-7-4/'
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
@@ -442,7 +455,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
</div>
|
||||
<?php
|
||||
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
|
||||
// These are strings we may use to describe maintenance/security releases, where we aim for no new strings.
|
||||
return;
|
||||
|
||||
@@ -19,7 +19,7 @@ if ( ! defined( 'WP_ADMIN' ) ) {
|
||||
}
|
||||
|
||||
/** Load WordPress Bootstrap */
|
||||
require_once dirname( __DIR__ ) . '/wp-load.php';
|
||||
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
|
||||
|
||||
/** Allow for cross-domain requests (from the front end). */
|
||||
send_origin_headers();
|
||||
@@ -27,16 +27,16 @@ send_origin_headers();
|
||||
header( 'Content-Type: text/html; charset=' . get_option( 'blog_charset' ) );
|
||||
header( 'X-Robots-Tag: noindex' );
|
||||
|
||||
// Require an action parameter.
|
||||
// Require an action parameter
|
||||
if ( empty( $_REQUEST['action'] ) ) {
|
||||
wp_die( '0', 400 );
|
||||
}
|
||||
|
||||
/** 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 */
|
||||
require_once ABSPATH . 'wp-admin/includes/ajax-actions.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' );
|
||||
|
||||
send_nosniff_header();
|
||||
nocache_headers();
|
||||
@@ -141,7 +141,7 @@ $core_actions_post = array(
|
||||
'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 = array_merge( $core_actions_post, $core_actions_post_deprecated );
|
||||
|
||||
@@ -189,5 +189,5 @@ if ( is_user_logged_in() ) {
|
||||
*/
|
||||
do_action( "wp_ajax_nopriv_{$action}" );
|
||||
}
|
||||
// Default status.
|
||||
// Default status
|
||||
wp_die( '0' );
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* @subpackage Administration
|
||||
*/
|
||||
|
||||
// Don't load directly.
|
||||
// don't load directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
die( '-1' );
|
||||
}
|
||||
@@ -104,7 +104,7 @@ do_action( 'admin_print_footer_scripts' );
|
||||
*/
|
||||
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 ( false === get_site_option( 'can_compress_scripts' ) ) {
|
||||
compression_test();
|
||||
|
||||
@@ -12,4 +12,4 @@
|
||||
_deprecated_file( basename( __FILE__ ), '2.5.0', 'wp-admin/includes/admin.php' );
|
||||
|
||||
/** WordPress Administration API: Includes all Administration functions. */
|
||||
require_once ABSPATH . 'wp-admin/includes/admin.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/admin.php' );
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) );
|
||||
if ( ! defined( 'WP_ADMIN' ) ) {
|
||||
require_once __DIR__ . '/admin.php';
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -233,7 +233,7 @@ if ( current_user_can( 'customize' ) ) {
|
||||
?>
|
||||
|
||||
<div id="wpwrap">
|
||||
<?php require ABSPATH . 'wp-admin/menu-header.php'; ?>
|
||||
<?php require( ABSPATH . 'wp-admin/menu-header.php' ); ?>
|
||||
<div id="wpcontent">
|
||||
|
||||
<?php
|
||||
@@ -288,6 +288,6 @@ if ( is_network_admin() ) {
|
||||
*/
|
||||
do_action( 'all_admin_notices' );
|
||||
|
||||
if ( 'options-general.php' === $parent_file ) {
|
||||
require ABSPATH . 'wp-admin/options-head.php';
|
||||
if ( $parent_file == 'options-general.php' ) {
|
||||
require( ABSPATH . 'wp-admin/options-head.php' );
|
||||
}
|
||||
|
||||
@@ -14,15 +14,15 @@ if ( ! defined( 'WP_ADMIN' ) ) {
|
||||
}
|
||||
|
||||
if ( defined( 'ABSPATH' ) ) {
|
||||
require_once ABSPATH . 'wp-load.php';
|
||||
require_once( ABSPATH . 'wp-load.php' );
|
||||
} else {
|
||||
require_once dirname( __DIR__ ) . '/wp-load.php';
|
||||
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
|
||||
}
|
||||
|
||||
/** Allow for cross-domain requests (from the front end). */
|
||||
send_origin_headers();
|
||||
|
||||
require_once ABSPATH . 'wp-admin/includes/admin.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/admin.php' );
|
||||
|
||||
nocache_headers();
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ if ( isset( $_GET['import'] ) && ! defined( 'WP_LOAD_IMPORTERS' ) ) {
|
||||
define( 'WP_LOAD_IMPORTERS', true );
|
||||
}
|
||||
|
||||
require_once dirname( __DIR__ ) . '/wp-load.php';
|
||||
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
|
||||
|
||||
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:
|
||||
* attempt to do no more than threshold value, with some +/- allowed.
|
||||
*/
|
||||
if ( $c <= 50 || ( $c > 50 && mt_rand( 0, (int) ( $c / 50 ) ) === 1 ) ) {
|
||||
require_once ABSPATH . WPINC . '/http.php';
|
||||
if ( $c <= 50 || ( $c > 50 && mt_rand( 0, (int) ( $c / 50 ) ) == 1 ) ) {
|
||||
require_once( ABSPATH . WPINC . '/http.php' );
|
||||
$response = wp_remote_get(
|
||||
admin_url( 'upgrade.php?step=1' ),
|
||||
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();
|
||||
|
||||
// Schedule Trash collection.
|
||||
// Schedule trash collection
|
||||
if ( ! wp_next_scheduled( 'wp_scheduled_delete' ) && ! wp_installing() ) {
|
||||
wp_schedule_event( time(), 'daily', 'wp_scheduled_delete' );
|
||||
}
|
||||
|
||||
// Schedule transient cleanup.
|
||||
// Schedule Transient cleanup.
|
||||
if ( ! wp_next_scheduled( 'delete_expired_transients' ) && ! wp_installing() ) {
|
||||
wp_schedule_event( time(), 'daily', 'delete_expired_transients' );
|
||||
}
|
||||
@@ -146,11 +146,11 @@ if ( isset( $_REQUEST['taxonomy'] ) && taxonomy_exists( $_REQUEST['taxonomy'] )
|
||||
}
|
||||
|
||||
if ( WP_NETWORK_ADMIN ) {
|
||||
require ABSPATH . 'wp-admin/network/menu.php';
|
||||
require( ABSPATH . 'wp-admin/network/menu.php' );
|
||||
} elseif ( WP_USER_ADMIN ) {
|
||||
require ABSPATH . 'wp-admin/user/menu.php';
|
||||
require( ABSPATH . 'wp-admin/user/menu.php' );
|
||||
} else {
|
||||
require ABSPATH . 'wp-admin/menu.php';
|
||||
require( ABSPATH . 'wp-admin/menu.php' );
|
||||
}
|
||||
|
||||
if ( current_user_can( 'manage_options' ) ) {
|
||||
@@ -181,8 +181,8 @@ if ( isset( $plugin_page ) ) {
|
||||
$page_hook = get_plugin_page_hook( $plugin_page, $plugin_page );
|
||||
|
||||
// Back-compat for plugins using add_management_page().
|
||||
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.
|
||||
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
|
||||
if ( ! empty( $_SERVER['QUERY_STRING'] ) ) {
|
||||
$query_string = $_SERVER['QUERY_STRING'];
|
||||
} else {
|
||||
@@ -231,7 +231,7 @@ if ( isset( $plugin_page ) ) {
|
||||
*/
|
||||
do_action( "load-{$page_hook}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
|
||||
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
|
||||
|
||||
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" ) ) {
|
||||
include WPMU_PLUGIN_DIR . "/$plugin_page";
|
||||
include( WPMU_PLUGIN_DIR . "/$plugin_page" );
|
||||
} else {
|
||||
include WP_PLUGIN_DIR . "/$plugin_page";
|
||||
include( WP_PLUGIN_DIR . "/$plugin_page" );
|
||||
}
|
||||
}
|
||||
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
|
||||
exit();
|
||||
} elseif ( isset( $_GET['import'] ) ) {
|
||||
@@ -322,10 +322,10 @@ if ( isset( $plugin_page ) ) {
|
||||
$title = __( 'Import' );
|
||||
|
||||
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 );
|
||||
|
||||
@@ -345,9 +345,9 @@ if ( isset( $plugin_page ) ) {
|
||||
|
||||
call_user_func( $wp_importers[ $importer ][2] );
|
||||
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
|
||||
// Make sure rules are flushed.
|
||||
// Make sure rules are flushed
|
||||
flush_rewrite_rules( false );
|
||||
|
||||
exit();
|
||||
@@ -370,16 +370,16 @@ if ( isset( $plugin_page ) ) {
|
||||
* The following hooks are fired to ensure backward compatibility.
|
||||
* In all other cases, 'load-' . $pagenow should be used instead.
|
||||
*/
|
||||
if ( 'page' === $typenow ) {
|
||||
if ( 'post-new.php' === $pagenow ) {
|
||||
if ( $typenow == 'page' ) {
|
||||
if ( $pagenow == 'post-new.php' ) {
|
||||
do_action( 'load-page-new.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
|
||||
} elseif ( 'post.php' === $pagenow ) {
|
||||
} elseif ( $pagenow == 'post.php' ) {
|
||||
do_action( 'load-page.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
|
||||
}
|
||||
} elseif ( 'edit-tags.php' === $pagenow ) {
|
||||
if ( 'category' === $taxnow ) {
|
||||
} elseif ( $pagenow == 'edit-tags.php' ) {
|
||||
if ( $taxnow == 'category' ) {
|
||||
do_action( 'load-categories.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
|
||||
} elseif ( 'link_category' === $taxnow ) {
|
||||
} elseif ( $taxnow == 'link_category' ) {
|
||||
do_action( 'load-edit-link-categories.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
|
||||
}
|
||||
} elseif ( 'term.php' === $pagenow ) {
|
||||
|
||||
@@ -15,17 +15,17 @@ if ( ! defined( 'WP_ADMIN' ) ) {
|
||||
}
|
||||
|
||||
if ( defined( 'ABSPATH' ) ) {
|
||||
require_once ABSPATH . 'wp-load.php';
|
||||
require_once( ABSPATH . 'wp-load.php' );
|
||||
} else {
|
||||
require_once dirname( __DIR__ ) . '/wp-load.php';
|
||||
require_once( dirname( dirname( __FILE__ ) ) . '/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' ) );
|
||||
|
||||
if ( isset( $_REQUEST['action'] ) && 'upload-attachment' === $_REQUEST['action'] ) {
|
||||
require ABSPATH . 'wp-admin/includes/ajax-actions.php';
|
||||
include( ABSPATH . 'wp-admin/includes/ajax-actions.php' );
|
||||
|
||||
send_nosniff_header();
|
||||
nocache_headers();
|
||||
@@ -38,7 +38,7 @@ if ( ! current_user_can( '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'] ) {
|
||||
$id = intval( $_REQUEST['attachment_id'] );
|
||||
$post = get_post( $id );
|
||||
@@ -112,7 +112,7 @@ if ( $_REQUEST['short'] ) {
|
||||
// Short form response - attachment ID only.
|
||||
echo $id;
|
||||
} else {
|
||||
// Long form response - big chunk of HTML.
|
||||
// Long form response - big chunk of html.
|
||||
$type = $_REQUEST['type'];
|
||||
|
||||
/**
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
/** Load WordPress Bootstrap */
|
||||
require_once __DIR__ . '/admin.php';
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
|
||||
$parent_file = 'edit-comments.php';
|
||||
$submenu_file = 'edit-comments.php';
|
||||
@@ -58,7 +58,7 @@ switch ( $action ) {
|
||||
);
|
||||
|
||||
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'] );
|
||||
|
||||
@@ -77,7 +77,7 @@ switch ( $action ) {
|
||||
|
||||
$comment = get_comment_to_edit( $comment_id );
|
||||
|
||||
require ABSPATH . 'wp-admin/edit-form-comment.php';
|
||||
include( ABSPATH . 'wp-admin/edit-form-comment.php' );
|
||||
|
||||
break;
|
||||
|
||||
@@ -101,12 +101,12 @@ switch ( $action ) {
|
||||
}
|
||||
|
||||
// No need to re-approve/re-trash/re-spam a comment.
|
||||
if ( str_replace( '1', 'approve', $comment->comment_approved ) == $action ) {
|
||||
if ( $action == str_replace( '1', 'approve', $comment->comment_approved ) ) {
|
||||
wp_redirect( admin_url( 'edit-comments.php?same=' . $comment_id ) );
|
||||
die();
|
||||
}
|
||||
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
|
||||
$formaction = $action . 'comment';
|
||||
$nonce_action = 'approve' == $action ? 'approve-comment_' : 'delete-comment_';
|
||||
@@ -137,7 +137,7 @@ switch ( $action ) {
|
||||
break;
|
||||
}
|
||||
|
||||
if ( '0' != $comment->comment_approved ) { // If not unapproved.
|
||||
if ( $comment->comment_approved != '0' ) { // if not unapproved
|
||||
$message = '';
|
||||
switch ( $comment->comment_approved ) {
|
||||
case '1':
|
||||
@@ -207,9 +207,9 @@ switch ( $action ) {
|
||||
$submitted = sprintf(
|
||||
/* translators: 1: Comment date, 2: Comment time. */
|
||||
__( '%1$s at %2$s' ),
|
||||
/* translators: Comment date format. See https://www.php.net/date */
|
||||
/* translators: Comment date format. See https://secure.php.net/date */
|
||||
get_comment_date( __( 'Y/m/d' ), $comment ),
|
||||
/* translators: Comment time format. See https://www.php.net/date */
|
||||
/* translators: Comment time format. See https://secure.php.net/date */
|
||||
get_comment_date( __( 'g:i a' ), $comment )
|
||||
);
|
||||
if ( 'approved' === wp_get_comment_status( $comment ) && ! empty( $comment->comment_post_ID ) ) {
|
||||
@@ -355,6 +355,6 @@ switch ( $action ) {
|
||||
default:
|
||||
wp_die( __( 'Unknown action.' ) );
|
||||
|
||||
} // End switch.
|
||||
} // end switch
|
||||
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
*/
|
||||
|
||||
/** WordPress Administration Bootstrap */
|
||||
require_once __DIR__ . '/admin.php';
|
||||
require_once __DIR__ . '/includes/credits.php';
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once( dirname( __FILE__ ) . '/includes/credits.php' );
|
||||
|
||||
$title = __( 'Credits' );
|
||||
|
||||
list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
|
||||
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
|
||||
$credits = wp_credits();
|
||||
?>
|
||||
@@ -22,15 +22,23 @@ $credits = wp_credits();
|
||||
|
||||
<div class="about__header">
|
||||
<div class="about__header-title">
|
||||
<p>
|
||||
<?php _e( 'WordPress' ); ?>
|
||||
<h1>
|
||||
<span><?php echo $display_version; ?></span>
|
||||
</p>
|
||||
<?php _e( 'WordPress' ); ?>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
<div class="about__header-badge"></div>
|
||||
|
||||
<div class="about__header-text">
|
||||
<p>
|
||||
<?php _e( 'Building more with blocks, faster and easier.' ); ?>
|
||||
<?php
|
||||
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>
|
||||
</div>
|
||||
|
||||
@@ -42,50 +50,39 @@ $credits = wp_credits();
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div class="about__section is-feature">
|
||||
<div class="about__section">
|
||||
<div class="column">
|
||||
<h1><?php _e( 'Credits' ); ?></h1>
|
||||
|
||||
<?php if ( ! $credits ) : ?>
|
||||
<h2><?php _e( 'WordPress is created by a worldwide team of passionate individuals.' ); ?></h2>
|
||||
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
/* 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>.' ),
|
||||
__( 'https://wordpress.org/about/' ),
|
||||
__( 'https://make.wordpress.org/' )
|
||||
);
|
||||
if ( ! $credits ) {
|
||||
printf(
|
||||
/* 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>.' ),
|
||||
__( 'https://wordpress.org/about/' ),
|
||||
__( '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>
|
||||
|
||||
<?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 class="about__image aligncenter">
|
||||
<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="" />
|
||||
<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="" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
if ( ! $credits ) {
|
||||
echo '</div>';
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
@@ -132,11 +129,11 @@ if ( ! $credits ) {
|
||||
</div>
|
||||
<?php
|
||||
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
|
||||
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' );
|
||||
/* translators: %s: The current WordPress version number. */
|
||||
__( 'Core Contributors to WordPress %s' );
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/*! This file is auto-generated */
|
||||
/*------------------------------------------------------------------------------
|
||||
22.0 - About Pages
|
||||
|
||||
@@ -21,19 +20,17 @@
|
||||
|
||||
.about__container {
|
||||
/* Section backgrounds */
|
||||
--background: #f3f4f5;
|
||||
--subtle-background: #bde7f0;
|
||||
--background: #f4efe1;
|
||||
--subtle-background: #d7d2c5;
|
||||
/* Main text color */
|
||||
--text: #32373c;
|
||||
--text-light: #f3f4f5;
|
||||
--text: #413e38;
|
||||
/* Navigation colors. */
|
||||
--nav-background: #216bce;
|
||||
--nav-border: #1730e5;
|
||||
--nav-color: #f3f4f5;
|
||||
--nav-background: #fefcf7;
|
||||
--nav-color: #716d64;
|
||||
/* Reds, used as accents & in header. */
|
||||
--accent-1: #1730e5;
|
||||
--accent-2: #216bce;
|
||||
--accent-3: #bde7f0;
|
||||
--accent-1: #bd3854;
|
||||
--accent-2: #5f1b29;
|
||||
--accent-3: #321017;
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------------------
|
||||
@@ -98,20 +95,17 @@
|
||||
}
|
||||
|
||||
.about__section {
|
||||
background: #f3f4f5;
|
||||
background: #F4EFE1;
|
||||
background: var(--background);
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.about__container .has-accent-background-color {
|
||||
color: #f3f4f5;
|
||||
color: var(--text-light);
|
||||
background-color: #1730e5;
|
||||
background-color: #BD3854;
|
||||
background-color: var(--accent-1);
|
||||
}
|
||||
|
||||
.about__container .has-subtle-background-color {
|
||||
background-color: #bde7f0;
|
||||
background-color: #D7D2C5;
|
||||
background-color: var(--subtle-background);
|
||||
}
|
||||
|
||||
@@ -129,10 +123,6 @@
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.about__section .column p:first-of-type {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.about__section .column p:last-of-type {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
@@ -142,11 +132,6 @@
|
||||
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 {
|
||||
padding: 32px;
|
||||
}
|
||||
@@ -155,10 +140,6 @@
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.about__section.is-feature p + p {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.about__section.has-2-columns,
|
||||
.about__section.has-3-columns,
|
||||
.about__section.has-4-columns {
|
||||
@@ -305,21 +286,16 @@
|
||||
}
|
||||
|
||||
.about__container h1 {
|
||||
margin: 0 0 1em;
|
||||
padding: 0;
|
||||
font-weight: 600;
|
||||
color: inherit;
|
||||
font-size: 5em;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.about__container h1,
|
||||
.about__container h2 {
|
||||
margin-top: 0;
|
||||
font-size: 1.4em;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.about__container h3,
|
||||
.about__container h2.is-smaller-heading {
|
||||
.about__container h3 {
|
||||
margin-top: 0;
|
||||
font-size: 1em;
|
||||
}
|
||||
@@ -330,8 +306,7 @@
|
||||
}
|
||||
|
||||
.about__section a {
|
||||
color: #1730e5;
|
||||
color: var(--accent-1);
|
||||
color: #5f1b29;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
@@ -367,7 +342,6 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.about__container .about__image img {
|
||||
@@ -382,10 +356,6 @@
|
||||
border: none;
|
||||
}
|
||||
|
||||
.about__container hr.is-small {
|
||||
height: 8px;
|
||||
}
|
||||
|
||||
.about__container div.updated,
|
||||
.about__container div.error,
|
||||
.about__container .notice {
|
||||
@@ -399,10 +369,19 @@
|
||||
.about__section.is-feature {
|
||||
font-size: 1.6em;
|
||||
font-weight: 600;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 782px) {
|
||||
.about__container h1 {
|
||||
font-size: 4em;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 480px) {
|
||||
.about__container h1 {
|
||||
font-size: 3.2em;
|
||||
}
|
||||
|
||||
.about__section.is-feature {
|
||||
font-size: 1.4em;
|
||||
font-weight: 500;
|
||||
@@ -412,17 +391,16 @@
|
||||
/* 1.3 - 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;
|
||||
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 {
|
||||
@@ -434,30 +412,56 @@
|
||||
}
|
||||
|
||||
.about__header-title {
|
||||
min-height: 24em;
|
||||
max-height: 32em;
|
||||
height: 80vh;
|
||||
padding: 0 32px;
|
||||
-ms-grid-column: 1;
|
||||
grid-column: 1;
|
||||
-ms-grid-row: 1;
|
||||
-ms-grid-row-span: 2;
|
||||
grid-row: 1/span 2;
|
||||
padding: 32px;
|
||||
background-color: #BD3854;
|
||||
background-color: var(--accent-1);
|
||||
color: white;
|
||||
padding: 32px;
|
||||
}
|
||||
|
||||
.about__header-title p {
|
||||
margin: 0;
|
||||
.about__header-title h1 {
|
||||
padding: 0;
|
||||
font-size: 4em;
|
||||
line-height: 1;
|
||||
font-weight: 500;
|
||||
color: #1730e5;
|
||||
color: var(--accent-1);
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.about__header-title p span {
|
||||
display: inline-block;
|
||||
color: #216bce;
|
||||
color: var(--accent-2);
|
||||
.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;
|
||||
padding: 32px;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.about__header-badge img {
|
||||
align-self: flex-start;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.about__header-text {
|
||||
padding: 16px 32px 32px;
|
||||
-ms-grid-column: 2;
|
||||
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;
|
||||
line-height: 1.4;
|
||||
}
|
||||
@@ -467,13 +471,17 @@
|
||||
}
|
||||
|
||||
.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;
|
||||
background: #216bce;
|
||||
background: #FEFCF7;
|
||||
background: var(--nav-background);
|
||||
color: #f3f4f5;
|
||||
color: #716d64;
|
||||
color: var(--nav-color);
|
||||
border-bottom: 3px solid #1730e5;
|
||||
border-bottom: 3px solid var(--nav-border);
|
||||
border-bottom: 3px solid currentColor;
|
||||
}
|
||||
|
||||
.about__header-navigation .nav-tab {
|
||||
@@ -490,39 +498,40 @@
|
||||
|
||||
.about__header-navigation .nav-tab:hover,
|
||||
.about__header-navigation .nav-tab:active {
|
||||
background-color: #1730e5;
|
||||
background-color: var(--accent-1);
|
||||
background-color: #F4EFE1;
|
||||
background-color: var(--background);
|
||||
}
|
||||
|
||||
.about__header-navigation .nav-tab-active {
|
||||
margin-bottom: -3px;
|
||||
border-width: 0 0 6px;
|
||||
border-color: #bde7f0;
|
||||
border-color: var(--accent-3);
|
||||
color: #BD3854;
|
||||
color: var(--accent-1);
|
||||
border-color: currentColor;
|
||||
}
|
||||
|
||||
.about__header-navigation .nav-tab-active:hover,
|
||||
.about__header-navigation .nav-tab-active:active {
|
||||
background-color: #1730e5;
|
||||
background-color: var(--accent-1);
|
||||
border-color: #bde7f0;
|
||||
border-color: var(--accent-3);
|
||||
background-color: transparent;
|
||||
border-color: currentColor;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 782px) {
|
||||
.about__container .about__header-text {
|
||||
font-size: 1.4em;
|
||||
}
|
||||
}
|
||||
|
||||
.about__header-title {
|
||||
min-height: 0;
|
||||
max-height: none;
|
||||
@media screen and (max-width: 600px) {
|
||||
.about__header {
|
||||
display: block;
|
||||
min-height: unset;
|
||||
max-height: unset;
|
||||
height: auto;
|
||||
/*
|
||||
* 60% is a "magic" number to create a top offset approx-equal to the height of the background image,
|
||||
* which scales to match the container width.
|
||||
*/
|
||||
padding-top: 60%;
|
||||
}
|
||||
|
||||
.about__header-badge {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.about__header-navigation .nav-tab {
|
||||
@@ -533,22 +542,20 @@
|
||||
}
|
||||
|
||||
@media screen and (max-width: 480px) {
|
||||
.about__header-title p {
|
||||
font-size: 3.2em;
|
||||
}
|
||||
|
||||
.about__header-navigation .nav-tab {
|
||||
float: none;
|
||||
display: block;
|
||||
margin-bottom: 0;
|
||||
padding: 16px 16px;
|
||||
border-right-width: 6px;
|
||||
border-right-width: 3px;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.about__header-navigation .nav-tab-active {
|
||||
border-bottom: none;
|
||||
border-right-width: 6px;
|
||||
border-right-width: 3px;
|
||||
background: #F4EFE1;
|
||||
background: var(--background);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -596,7 +603,7 @@
|
||||
font-size: 1.4em;
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
color: #32373c;
|
||||
color: #413E38;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
@@ -1082,6 +1089,10 @@
|
||||
margin: 0.6em 0;
|
||||
}
|
||||
|
||||
.freedoms-php .has-4-columns {
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
.freedoms-php .column .freedoms-image {
|
||||
background-image: url('https://s.w.org/wp-content/themes/pub/wporg-main/images/freedoms-2x.png');
|
||||
background-size: 100%;
|
||||
|
||||
2
wp-admin/css/about-rtl.min.css
vendored
2
wp-admin/css/about-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -20,19 +20,17 @@
|
||||
|
||||
.about__container {
|
||||
/* Section backgrounds */
|
||||
--background: #f3f4f5;
|
||||
--subtle-background: #bde7f0;
|
||||
--background: #f4efe1;
|
||||
--subtle-background: #d7d2c5;
|
||||
/* Main text color */
|
||||
--text: #32373c;
|
||||
--text-light: #f3f4f5;
|
||||
--text: #413e38;
|
||||
/* Navigation colors. */
|
||||
--nav-background: #216bce;
|
||||
--nav-border: #1730e5;
|
||||
--nav-color: #f3f4f5;
|
||||
--nav-background: #fefcf7;
|
||||
--nav-color: #716d64;
|
||||
/* Reds, used as accents & in header. */
|
||||
--accent-1: #1730e5;
|
||||
--accent-2: #216bce;
|
||||
--accent-3: #bde7f0;
|
||||
--accent-1: #bd3854;
|
||||
--accent-2: #5f1b29;
|
||||
--accent-3: #321017;
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------------------
|
||||
@@ -97,20 +95,17 @@
|
||||
}
|
||||
|
||||
.about__section {
|
||||
background: #f3f4f5;
|
||||
background: #F4EFE1;
|
||||
background: var(--background);
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.about__container .has-accent-background-color {
|
||||
color: #f3f4f5;
|
||||
color: var(--text-light);
|
||||
background-color: #1730e5;
|
||||
background-color: #BD3854;
|
||||
background-color: var(--accent-1);
|
||||
}
|
||||
|
||||
.about__container .has-subtle-background-color {
|
||||
background-color: #bde7f0;
|
||||
background-color: #D7D2C5;
|
||||
background-color: var(--subtle-background);
|
||||
}
|
||||
|
||||
@@ -128,10 +123,6 @@
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.about__section .column p:first-of-type {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.about__section .column p:last-of-type {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
@@ -141,11 +132,6 @@
|
||||
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 {
|
||||
padding: 32px;
|
||||
}
|
||||
@@ -154,10 +140,6 @@
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.about__section.is-feature p + p {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.about__section.has-2-columns,
|
||||
.about__section.has-3-columns,
|
||||
.about__section.has-4-columns {
|
||||
@@ -304,21 +286,16 @@
|
||||
}
|
||||
|
||||
.about__container h1 {
|
||||
margin: 0 0 1em;
|
||||
padding: 0;
|
||||
font-weight: 600;
|
||||
color: inherit;
|
||||
font-size: 5em;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.about__container h1,
|
||||
.about__container h2 {
|
||||
margin-top: 0;
|
||||
font-size: 1.4em;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.about__container h3,
|
||||
.about__container h2.is-smaller-heading {
|
||||
.about__container h3 {
|
||||
margin-top: 0;
|
||||
font-size: 1em;
|
||||
}
|
||||
@@ -329,8 +306,7 @@
|
||||
}
|
||||
|
||||
.about__section a {
|
||||
color: #1730e5;
|
||||
color: var(--accent-1);
|
||||
color: #5f1b29;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
@@ -366,7 +342,6 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.about__container .about__image img {
|
||||
@@ -381,10 +356,6 @@
|
||||
border: none;
|
||||
}
|
||||
|
||||
.about__container hr.is-small {
|
||||
height: 8px;
|
||||
}
|
||||
|
||||
.about__container div.updated,
|
||||
.about__container div.error,
|
||||
.about__container .notice {
|
||||
@@ -398,10 +369,19 @@
|
||||
.about__section.is-feature {
|
||||
font-size: 1.6em;
|
||||
font-weight: 600;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 782px) {
|
||||
.about__container h1 {
|
||||
font-size: 4em;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 480px) {
|
||||
.about__container h1 {
|
||||
font-size: 3.2em;
|
||||
}
|
||||
|
||||
.about__section.is-feature {
|
||||
font-size: 1.4em;
|
||||
font-weight: 500;
|
||||
@@ -411,17 +391,16 @@
|
||||
/* 1.3 - 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;
|
||||
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 {
|
||||
@@ -433,30 +412,56 @@
|
||||
}
|
||||
|
||||
.about__header-title {
|
||||
min-height: 24em;
|
||||
max-height: 32em;
|
||||
height: 80vh;
|
||||
padding: 0 32px;
|
||||
-ms-grid-column: 1;
|
||||
grid-column: 1;
|
||||
-ms-grid-row: 1;
|
||||
-ms-grid-row-span: 2;
|
||||
grid-row: 1/span 2;
|
||||
padding: 32px;
|
||||
background-color: #BD3854;
|
||||
background-color: var(--accent-1);
|
||||
color: white;
|
||||
padding: 32px;
|
||||
}
|
||||
|
||||
.about__header-title p {
|
||||
margin: 0;
|
||||
.about__header-title h1 {
|
||||
padding: 0;
|
||||
font-size: 4em;
|
||||
line-height: 1;
|
||||
font-weight: 500;
|
||||
color: #1730e5;
|
||||
color: var(--accent-1);
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.about__header-title p span {
|
||||
display: inline-block;
|
||||
color: #216bce;
|
||||
color: var(--accent-2);
|
||||
.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;
|
||||
padding: 32px;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.about__header-badge img {
|
||||
align-self: flex-start;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.about__header-text {
|
||||
padding: 16px 32px 32px;
|
||||
-ms-grid-column: 2;
|
||||
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;
|
||||
line-height: 1.4;
|
||||
}
|
||||
@@ -466,13 +471,17 @@
|
||||
}
|
||||
|
||||
.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;
|
||||
background: #216bce;
|
||||
background: #FEFCF7;
|
||||
background: var(--nav-background);
|
||||
color: #f3f4f5;
|
||||
color: #716d64;
|
||||
color: var(--nav-color);
|
||||
border-bottom: 3px solid #1730e5;
|
||||
border-bottom: 3px solid var(--nav-border);
|
||||
border-bottom: 3px solid currentColor;
|
||||
}
|
||||
|
||||
.about__header-navigation .nav-tab {
|
||||
@@ -489,39 +498,40 @@
|
||||
|
||||
.about__header-navigation .nav-tab:hover,
|
||||
.about__header-navigation .nav-tab:active {
|
||||
background-color: #1730e5;
|
||||
background-color: var(--accent-1);
|
||||
background-color: #F4EFE1;
|
||||
background-color: var(--background);
|
||||
}
|
||||
|
||||
.about__header-navigation .nav-tab-active {
|
||||
margin-bottom: -3px;
|
||||
border-width: 0 0 6px;
|
||||
border-color: #bde7f0;
|
||||
border-color: var(--accent-3);
|
||||
color: #BD3854;
|
||||
color: var(--accent-1);
|
||||
border-color: currentColor;
|
||||
}
|
||||
|
||||
.about__header-navigation .nav-tab-active:hover,
|
||||
.about__header-navigation .nav-tab-active:active {
|
||||
background-color: #1730e5;
|
||||
background-color: var(--accent-1);
|
||||
border-color: #bde7f0;
|
||||
border-color: var(--accent-3);
|
||||
background-color: transparent;
|
||||
border-color: currentColor;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 782px) {
|
||||
.about__container .about__header-text {
|
||||
font-size: 1.4em;
|
||||
}
|
||||
}
|
||||
|
||||
.about__header-title {
|
||||
min-height: 0;
|
||||
max-height: none;
|
||||
@media screen and (max-width: 600px) {
|
||||
.about__header {
|
||||
display: block;
|
||||
min-height: unset;
|
||||
max-height: unset;
|
||||
height: auto;
|
||||
/*
|
||||
* 60% is a "magic" number to create a top offset approx-equal to the height of the background image,
|
||||
* which scales to match the container width.
|
||||
*/
|
||||
padding-top: 60%;
|
||||
}
|
||||
|
||||
.about__header-badge {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.about__header-navigation .nav-tab {
|
||||
@@ -532,22 +542,20 @@
|
||||
}
|
||||
|
||||
@media screen and (max-width: 480px) {
|
||||
.about__header-title p {
|
||||
font-size: 3.2em;
|
||||
}
|
||||
|
||||
.about__header-navigation .nav-tab {
|
||||
float: none;
|
||||
display: block;
|
||||
margin-bottom: 0;
|
||||
padding: 16px 16px;
|
||||
border-left-width: 6px;
|
||||
border-left-width: 3px;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.about__header-navigation .nav-tab-active {
|
||||
border-bottom: none;
|
||||
border-left-width: 6px;
|
||||
border-left-width: 3px;
|
||||
background: #F4EFE1;
|
||||
background: var(--background);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -595,7 +603,7 @@
|
||||
font-size: 1.4em;
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
color: #32373c;
|
||||
color: #413E38;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
@@ -1081,6 +1089,10 @@
|
||||
margin: 0.6em 0;
|
||||
}
|
||||
|
||||
.freedoms-php .has-4-columns {
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
.freedoms-php .column .freedoms-image {
|
||||
background-image: url('https://s.w.org/wp-content/themes/pub/wporg-main/images/freedoms-2x.png');
|
||||
background-size: 100%;
|
||||
|
||||
2
wp-admin/css/about.min.css
vendored
2
wp-admin/css/about.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -1,4 +1,3 @@
|
||||
/*! This file is auto-generated */
|
||||
#adminmenuback,
|
||||
#adminmenuwrap,
|
||||
#adminmenu,
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/*! This file is auto-generated */
|
||||
.wrap [class*="CodeMirror-lint-marker"],
|
||||
.wp-core-ui [class*="CodeMirror-lint-message"],
|
||||
.wrap .CodeMirror-lint-marker-multiple {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/*! This file is auto-generated */
|
||||
/* rtl:ignore */
|
||||
.wp-color-picker {
|
||||
width: 80px;
|
||||
@@ -121,14 +120,16 @@
|
||||
|
||||
.iris-picker .ui-square-handle:focus,
|
||||
.iris-picker .iris-strip .ui-slider-handle:focus {
|
||||
border-color: #007cba;
|
||||
border-style: solid;
|
||||
box-shadow: 0 0 0 1px #007cba;
|
||||
outline: 2px solid transparent;
|
||||
box-shadow:
|
||||
0 0 0 1px #5b9dd9,
|
||||
0 0 2px 1px rgba(30, 140, 190, 0.8);
|
||||
}
|
||||
|
||||
.iris-picker .iris-palette:focus {
|
||||
box-shadow: 0 0 0 2px #007cba;
|
||||
box-shadow:
|
||||
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) {
|
||||
|
||||
2
wp-admin/css/color-picker-rtl.min.css
vendored
2
wp-admin/css/color-picker-rtl.min.css
vendored
@@ -1,2 +1,2 @@
|
||||
/*! 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{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}}
|
||||
.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}}
|
||||
@@ -120,14 +120,16 @@
|
||||
|
||||
.iris-picker .ui-square-handle:focus,
|
||||
.iris-picker .iris-strip .ui-slider-handle:focus {
|
||||
border-color: #007cba;
|
||||
border-style: solid;
|
||||
box-shadow: 0 0 0 1px #007cba;
|
||||
outline: 2px solid transparent;
|
||||
box-shadow:
|
||||
0 0 0 1px #5b9dd9,
|
||||
0 0 2px 1px rgba(30, 140, 190, 0.8);
|
||||
}
|
||||
|
||||
.iris-picker .iris-palette:focus {
|
||||
box-shadow: 0 0 0 2px #007cba;
|
||||
box-shadow:
|
||||
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) {
|
||||
|
||||
2
wp-admin/css/color-picker.min.css
vendored
2
wp-admin/css/color-picker.min.css
vendored
@@ -1,2 +1,2 @@
|
||||
/*! 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{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}}
|
||||
.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}}
|
||||
@@ -1,4 +1,3 @@
|
||||
/*! This file is auto-generated */
|
||||
/* 2 column liquid layout */
|
||||
#wpwrap {
|
||||
height: auto;
|
||||
@@ -2152,8 +2151,7 @@ html.wp-toolbar {
|
||||
#pass-strength-result.short,
|
||||
#ed_reply_toolbar #ed_reply_strong,
|
||||
.item-controls .item-order a,
|
||||
.feature-filter .feature-name,
|
||||
#comment-status-display {
|
||||
.feature-filter .feature-name {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
@@ -3923,7 +3921,8 @@ img {
|
||||
}
|
||||
|
||||
.fileedit-sub input[type="submit"] {
|
||||
margin-bottom: 0;
|
||||
margin-bottom: 0px;
|
||||
padding: 0px 18px;
|
||||
}
|
||||
|
||||
#documentation label[for="docs-list"] {
|
||||
@@ -3937,6 +3936,7 @@ img {
|
||||
|
||||
#documentation input[type="button"] {
|
||||
margin-bottom: 0;
|
||||
padding: 8px 18px;
|
||||
}
|
||||
|
||||
#wpfooter {
|
||||
|
||||
4
wp-admin/css/common-rtl.min.css
vendored
4
wp-admin/css/common-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -2151,8 +2151,7 @@ html.wp-toolbar {
|
||||
#pass-strength-result.short,
|
||||
#ed_reply_toolbar #ed_reply_strong,
|
||||
.item-controls .item-order a,
|
||||
.feature-filter .feature-name,
|
||||
#comment-status-display {
|
||||
.feature-filter .feature-name {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
@@ -3922,7 +3921,8 @@ img {
|
||||
}
|
||||
|
||||
.fileedit-sub input[type="submit"] {
|
||||
margin-bottom: 0;
|
||||
margin-bottom: 0px;
|
||||
padding: 0px 18px;
|
||||
}
|
||||
|
||||
#documentation label[for="docs-list"] {
|
||||
@@ -3936,6 +3936,7 @@ img {
|
||||
|
||||
#documentation input[type="button"] {
|
||||
margin-bottom: 0;
|
||||
padding: 8px 18px;
|
||||
}
|
||||
|
||||
#wpfooter {
|
||||
|
||||
4
wp-admin/css/common.min.css
vendored
4
wp-admin/css/common.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -1,4 +1,3 @@
|
||||
/*! This file is auto-generated */
|
||||
body {
|
||||
overflow: hidden;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
@@ -1393,10 +1392,12 @@ p.customize-section-description {
|
||||
|
||||
.customize-control .attachment-media-view .button-add-media:focus {
|
||||
background-color: #fbfbfc;
|
||||
border-color: #007cba;
|
||||
border-style: solid;
|
||||
box-shadow: 0 0 0 1px #007cba;
|
||||
border-color: #5b9dd9;
|
||||
box-shadow: 0 0 3px rgba( 0, 115, 170, .8 );
|
||||
/* Only visible in Windows High Contrast mode */
|
||||
outline: 2px solid transparent;
|
||||
outline-offset: -2px;
|
||||
}
|
||||
|
||||
.customize-control-header .inner {
|
||||
@@ -1632,7 +1633,7 @@ p.customize-section-description {
|
||||
|
||||
.theme-browser .theme.active .theme-actions,
|
||||
.wp-customizer .theme-browser .theme .theme-actions {
|
||||
padding: 9px 15px;
|
||||
padding: 10px 15px;
|
||||
box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
@@ -2938,9 +2939,21 @@ body.adding-widget .add-new-widget:before,
|
||||
.wp-core-ui .themes-filter-bar .feature-filter-toggle {
|
||||
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) {
|
||||
.theme-browser .theme.active .theme-actions,
|
||||
.wp-customizer .theme-browser .theme .theme-actions {
|
||||
padding: 8px 15px;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.wp-full-overlay.expanded {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
2
wp-admin/css/customize-controls-rtl.min.css
vendored
2
wp-admin/css/customize-controls-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -1392,10 +1392,12 @@ p.customize-section-description {
|
||||
|
||||
.customize-control .attachment-media-view .button-add-media:focus {
|
||||
background-color: #fbfbfc;
|
||||
border-color: #007cba;
|
||||
border-style: solid;
|
||||
box-shadow: 0 0 0 1px #007cba;
|
||||
border-color: #5b9dd9;
|
||||
box-shadow: 0 0 3px rgba( 0, 115, 170, .8 );
|
||||
/* Only visible in Windows High Contrast mode */
|
||||
outline: 2px solid transparent;
|
||||
outline-offset: -2px;
|
||||
}
|
||||
|
||||
.customize-control-header .inner {
|
||||
@@ -1631,7 +1633,7 @@ p.customize-section-description {
|
||||
|
||||
.theme-browser .theme.active .theme-actions,
|
||||
.wp-customizer .theme-browser .theme .theme-actions {
|
||||
padding: 9px 15px;
|
||||
padding: 10px 15px;
|
||||
box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
@@ -2937,9 +2939,21 @@ body.adding-widget .add-new-widget:before,
|
||||
.wp-core-ui .themes-filter-bar .feature-filter-toggle {
|
||||
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) {
|
||||
.theme-browser .theme.active .theme-actions,
|
||||
.wp-customizer .theme-browser .theme .theme-actions {
|
||||
padding: 8px 15px;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.wp-full-overlay.expanded {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
2
wp-admin/css/customize-controls.min.css
vendored
2
wp-admin/css/customize-controls.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -1,4 +1,3 @@
|
||||
/*! This file is auto-generated */
|
||||
#customize-theme-controls #accordion-section-menu_locations {
|
||||
position: relative;
|
||||
margin-top: 30px;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/*! This file is auto-generated */
|
||||
.wp-full-overlay-sidebar {
|
||||
overflow: visible;
|
||||
}
|
||||
@@ -311,76 +310,76 @@ body.adding-widget #customize-preview {
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
/* dashicons-smiley */
|
||||
/* smiley */
|
||||
#available-widgets [class*="easy"] .widget-title:before { content: "\f328"; top: -4px; }
|
||||
|
||||
/* dashicons-star-filled */
|
||||
/* star-filled */
|
||||
#available-widgets [class*="super"] .widget-title:before,
|
||||
#available-widgets [class*="like"] .widget-title:before { content: "\f155"; top: -4px; }
|
||||
|
||||
/* dashicons-wordpress */
|
||||
/* wordpress */
|
||||
#available-widgets [class*="meta"] .widget-title:before { content: "\f120"; }
|
||||
|
||||
/* dashicons-archive */
|
||||
/* archive-box */
|
||||
#available-widgets [class*="archives"] .widget-title:before { content: "\f480"; top: -4px; }
|
||||
|
||||
/* dashicons-category */
|
||||
/* category */
|
||||
#available-widgets [class*="categor"] .widget-title:before { content: "\f318"; top: -4px; }
|
||||
|
||||
/* dashicons-admin-comments */
|
||||
/* comments */
|
||||
#available-widgets [class*="comment"] .widget-title:before,
|
||||
#available-widgets [class*="testimonial"] .widget-title:before,
|
||||
#available-widgets [class*="chat"] .widget-title:before { content: "\f101"; }
|
||||
|
||||
/* dashicons-admin-post */
|
||||
/* post */
|
||||
#available-widgets [class*="post"] .widget-title:before { content: "\f109"; }
|
||||
|
||||
/* dashicons-admin-page */
|
||||
/* admin-page */
|
||||
#available-widgets [class*="page"] .widget-title:before { content: "\f105"; }
|
||||
|
||||
/* dashicons-text */
|
||||
/* text */
|
||||
#available-widgets [class*="text"] .widget-title:before { content: "\f478"; }
|
||||
|
||||
/* dashicons-admin-links */
|
||||
/* links */
|
||||
#available-widgets [class*="link"] .widget-title:before { content: "\f103"; }
|
||||
|
||||
/* dashicons-search */
|
||||
/* search */
|
||||
#available-widgets [class*="search"] .widget-title:before { content: "\f179"; }
|
||||
|
||||
/* dashicons-menu */
|
||||
/* menu */
|
||||
#available-widgets [class*="menu"] .widget-title:before,
|
||||
#available-widgets [class*="nav"] .widget-title:before { content: "\f333"; }
|
||||
|
||||
/* dashicons-tagcloud */
|
||||
/* tag-cloud */
|
||||
#available-widgets [class*="tag"] .widget-title:before { content: "\f479"; }
|
||||
|
||||
/* dashicons-rss */
|
||||
/* rss */
|
||||
#available-widgets [class*="rss"] .widget-title:before { content: "\f303"; top: -6px; }
|
||||
|
||||
/* dashicons-calendar */
|
||||
/* calendar */
|
||||
#available-widgets [class*="event"] .widget-title:before,
|
||||
#available-widgets [class*="calendar"] .widget-title:before { content: "\f145"; top: -4px;}
|
||||
|
||||
/* dashicons-format-image */
|
||||
/* format-image */
|
||||
#available-widgets [class*="image"] .widget-title:before,
|
||||
#available-widgets [class*="photo"] .widget-title:before,
|
||||
#available-widgets [class*="slide"] .widget-title:before,
|
||||
#available-widgets [class*="instagram"] .widget-title:before { content: "\f128"; }
|
||||
|
||||
/* dashicons-format-gallery */
|
||||
/* format-gallery */
|
||||
#available-widgets [class*="album"] .widget-title:before,
|
||||
#available-widgets [class*="galler"] .widget-title:before { content: "\f161"; }
|
||||
|
||||
/* dashicons-format-video */
|
||||
/* format-video */
|
||||
#available-widgets [class*="video"] .widget-title:before,
|
||||
#available-widgets [class*="tube"] .widget-title:before { content: "\f126"; }
|
||||
|
||||
/* dashicons-format-audio */
|
||||
/* format-audio */
|
||||
#available-widgets [class*="music"] .widget-title:before,
|
||||
#available-widgets [class*="radio"] .widget-title:before,
|
||||
#available-widgets [class*="audio"] .widget-title:before { content: "\f127"; }
|
||||
|
||||
/* dashicons-admin-users */
|
||||
/* admin-users */
|
||||
#available-widgets [class*="login"] .widget-title:before,
|
||||
#available-widgets [class*="user"] .widget-title:before,
|
||||
#available-widgets [class*="member"] .widget-title:before,
|
||||
@@ -389,51 +388,51 @@ body.adding-widget #customize-preview {
|
||||
#available-widgets [class*="profile"] .widget-title:before,
|
||||
#available-widgets [class*="grofile"] .widget-title:before { content: "\f110"; }
|
||||
|
||||
/* dashicons-cart */
|
||||
/* cart */
|
||||
#available-widgets [class*="commerce"] .widget-title:before,
|
||||
#available-widgets [class*="shop"] .widget-title:before,
|
||||
#available-widgets [class*="cart"] .widget-title:before { content: "\f174"; top: -4px; }
|
||||
|
||||
/* dashicons-shield */
|
||||
/* shield */
|
||||
#available-widgets [class*="secur"] .widget-title:before,
|
||||
#available-widgets [class*="firewall"] .widget-title:before { content: "\f332"; }
|
||||
|
||||
/* dashicons-chart-bar */
|
||||
/* chart-bar */
|
||||
#available-widgets [class*="analytic"] .widget-title:before,
|
||||
#available-widgets [class*="stat"] .widget-title:before,
|
||||
#available-widgets [class*="poll"] .widget-title:before { content: "\f185"; }
|
||||
|
||||
/* dashicons-feedback */
|
||||
/* feedback */
|
||||
#available-widgets [class*="form"] .widget-title:before { content: "\f175"; }
|
||||
|
||||
/* dashicons-email-alt */
|
||||
/* email-alt */
|
||||
#available-widgets [class*="subscribe"] .widget-title:before,
|
||||
#available-widgets [class*="news"] .widget-title:before,
|
||||
#available-widgets [class*="contact"] .widget-title:before,
|
||||
#available-widgets [class*="mail"] .widget-title:before { content: "\f466"; }
|
||||
|
||||
/* dashicons-share */
|
||||
/* share */
|
||||
#available-widgets [class*="share"] .widget-title:before,
|
||||
#available-widgets [class*="socia"] .widget-title:before { content: "\f237"; }
|
||||
|
||||
/* dashicons-translation */
|
||||
/* translation */
|
||||
#available-widgets [class*="lang"] .widget-title:before,
|
||||
#available-widgets [class*="translat"] .widget-title:before { content: "\f326"; }
|
||||
|
||||
/* dashicons-location-alt */
|
||||
/* location-alt */
|
||||
#available-widgets [class*="locat"] .widget-title:before,
|
||||
#available-widgets [class*="map"] .widget-title:before { content: "\f231"; }
|
||||
|
||||
/* dashicons-download */
|
||||
/* download */
|
||||
#available-widgets [class*="download"] .widget-title:before { content: "\f316"; }
|
||||
|
||||
/* dashicons-cloud */
|
||||
/* cloud */
|
||||
#available-widgets [class*="weather"] .widget-title:before { content: "\f176"; top: -4px;}
|
||||
|
||||
/* dashicons-facebook */
|
||||
/* facebook */
|
||||
#available-widgets [class*="facebook"] .widget-title:before { content: "\f304"; }
|
||||
|
||||
/* dashicons-twitter */
|
||||
/* twitter */
|
||||
#available-widgets [class*="tweet"] .widget-title:before,
|
||||
#available-widgets [class*="twitter"] .widget-title:before { content: "\f301"; }
|
||||
|
||||
|
||||
@@ -310,76 +310,76 @@ body.adding-widget #customize-preview {
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
/* dashicons-smiley */
|
||||
/* smiley */
|
||||
#available-widgets [class*="easy"] .widget-title:before { content: "\f328"; top: -4px; }
|
||||
|
||||
/* dashicons-star-filled */
|
||||
/* star-filled */
|
||||
#available-widgets [class*="super"] .widget-title:before,
|
||||
#available-widgets [class*="like"] .widget-title:before { content: "\f155"; top: -4px; }
|
||||
|
||||
/* dashicons-wordpress */
|
||||
/* wordpress */
|
||||
#available-widgets [class*="meta"] .widget-title:before { content: "\f120"; }
|
||||
|
||||
/* dashicons-archive */
|
||||
/* archive-box */
|
||||
#available-widgets [class*="archives"] .widget-title:before { content: "\f480"; top: -4px; }
|
||||
|
||||
/* dashicons-category */
|
||||
/* category */
|
||||
#available-widgets [class*="categor"] .widget-title:before { content: "\f318"; top: -4px; }
|
||||
|
||||
/* dashicons-admin-comments */
|
||||
/* comments */
|
||||
#available-widgets [class*="comment"] .widget-title:before,
|
||||
#available-widgets [class*="testimonial"] .widget-title:before,
|
||||
#available-widgets [class*="chat"] .widget-title:before { content: "\f101"; }
|
||||
|
||||
/* dashicons-admin-post */
|
||||
/* post */
|
||||
#available-widgets [class*="post"] .widget-title:before { content: "\f109"; }
|
||||
|
||||
/* dashicons-admin-page */
|
||||
/* admin-page */
|
||||
#available-widgets [class*="page"] .widget-title:before { content: "\f105"; }
|
||||
|
||||
/* dashicons-text */
|
||||
/* text */
|
||||
#available-widgets [class*="text"] .widget-title:before { content: "\f478"; }
|
||||
|
||||
/* dashicons-admin-links */
|
||||
/* links */
|
||||
#available-widgets [class*="link"] .widget-title:before { content: "\f103"; }
|
||||
|
||||
/* dashicons-search */
|
||||
/* search */
|
||||
#available-widgets [class*="search"] .widget-title:before { content: "\f179"; }
|
||||
|
||||
/* dashicons-menu */
|
||||
/* menu */
|
||||
#available-widgets [class*="menu"] .widget-title:before,
|
||||
#available-widgets [class*="nav"] .widget-title:before { content: "\f333"; }
|
||||
|
||||
/* dashicons-tagcloud */
|
||||
/* tag-cloud */
|
||||
#available-widgets [class*="tag"] .widget-title:before { content: "\f479"; }
|
||||
|
||||
/* dashicons-rss */
|
||||
/* rss */
|
||||
#available-widgets [class*="rss"] .widget-title:before { content: "\f303"; top: -6px; }
|
||||
|
||||
/* dashicons-calendar */
|
||||
/* calendar */
|
||||
#available-widgets [class*="event"] .widget-title:before,
|
||||
#available-widgets [class*="calendar"] .widget-title:before { content: "\f145"; top: -4px;}
|
||||
|
||||
/* dashicons-format-image */
|
||||
/* format-image */
|
||||
#available-widgets [class*="image"] .widget-title:before,
|
||||
#available-widgets [class*="photo"] .widget-title:before,
|
||||
#available-widgets [class*="slide"] .widget-title:before,
|
||||
#available-widgets [class*="instagram"] .widget-title:before { content: "\f128"; }
|
||||
|
||||
/* dashicons-format-gallery */
|
||||
/* format-gallery */
|
||||
#available-widgets [class*="album"] .widget-title:before,
|
||||
#available-widgets [class*="galler"] .widget-title:before { content: "\f161"; }
|
||||
|
||||
/* dashicons-format-video */
|
||||
/* format-video */
|
||||
#available-widgets [class*="video"] .widget-title:before,
|
||||
#available-widgets [class*="tube"] .widget-title:before { content: "\f126"; }
|
||||
|
||||
/* dashicons-format-audio */
|
||||
/* format-audio */
|
||||
#available-widgets [class*="music"] .widget-title:before,
|
||||
#available-widgets [class*="radio"] .widget-title:before,
|
||||
#available-widgets [class*="audio"] .widget-title:before { content: "\f127"; }
|
||||
|
||||
/* dashicons-admin-users */
|
||||
/* admin-users */
|
||||
#available-widgets [class*="login"] .widget-title:before,
|
||||
#available-widgets [class*="user"] .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*="grofile"] .widget-title:before { content: "\f110"; }
|
||||
|
||||
/* dashicons-cart */
|
||||
/* cart */
|
||||
#available-widgets [class*="commerce"] .widget-title:before,
|
||||
#available-widgets [class*="shop"] .widget-title:before,
|
||||
#available-widgets [class*="cart"] .widget-title:before { content: "\f174"; top: -4px; }
|
||||
|
||||
/* dashicons-shield */
|
||||
/* shield */
|
||||
#available-widgets [class*="secur"] .widget-title:before,
|
||||
#available-widgets [class*="firewall"] .widget-title:before { content: "\f332"; }
|
||||
|
||||
/* dashicons-chart-bar */
|
||||
/* chart-bar */
|
||||
#available-widgets [class*="analytic"] .widget-title:before,
|
||||
#available-widgets [class*="stat"] .widget-title:before,
|
||||
#available-widgets [class*="poll"] .widget-title:before { content: "\f185"; }
|
||||
|
||||
/* dashicons-feedback */
|
||||
/* feedback */
|
||||
#available-widgets [class*="form"] .widget-title:before { content: "\f175"; }
|
||||
|
||||
/* dashicons-email-alt */
|
||||
/* email-alt */
|
||||
#available-widgets [class*="subscribe"] .widget-title:before,
|
||||
#available-widgets [class*="news"] .widget-title:before,
|
||||
#available-widgets [class*="contact"] .widget-title:before,
|
||||
#available-widgets [class*="mail"] .widget-title:before { content: "\f466"; }
|
||||
|
||||
/* dashicons-share */
|
||||
/* share */
|
||||
#available-widgets [class*="share"] .widget-title:before,
|
||||
#available-widgets [class*="socia"] .widget-title:before { content: "\f237"; }
|
||||
|
||||
/* dashicons-translation */
|
||||
/* translation */
|
||||
#available-widgets [class*="lang"] .widget-title:before,
|
||||
#available-widgets [class*="translat"] .widget-title:before { content: "\f326"; }
|
||||
|
||||
/* dashicons-location-alt */
|
||||
/* location-alt */
|
||||
#available-widgets [class*="locat"] .widget-title:before,
|
||||
#available-widgets [class*="map"] .widget-title:before { content: "\f231"; }
|
||||
|
||||
/* dashicons-download */
|
||||
/* download */
|
||||
#available-widgets [class*="download"] .widget-title:before { content: "\f316"; }
|
||||
|
||||
/* dashicons-cloud */
|
||||
/* cloud */
|
||||
#available-widgets [class*="weather"] .widget-title:before { content: "\f176"; top: -4px;}
|
||||
|
||||
/* dashicons-facebook */
|
||||
/* facebook */
|
||||
#available-widgets [class*="facebook"] .widget-title:before { content: "\f304"; }
|
||||
|
||||
/* dashicons-twitter */
|
||||
/* twitter */
|
||||
#available-widgets [class*="tweet"] .widget-title:before,
|
||||
#available-widgets [class*="twitter"] .widget-title:before { content: "\f301"; }
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/*! This file is auto-generated */
|
||||
#wpbody-content #dashboard-widgets.columns-1 .postbox-container {
|
||||
width: 100%;
|
||||
}
|
||||
@@ -822,7 +821,7 @@ body #dashboard-widgets .postbox form .submit {
|
||||
top: 12px;
|
||||
}
|
||||
|
||||
#activity-widget #the-comment-list .dashboard-comment-wrap.has-avatar {
|
||||
#activity-widget #the-comment-list .dashboard-comment-wrap {
|
||||
padding-right: 63px;
|
||||
}
|
||||
|
||||
|
||||
2
wp-admin/css/dashboard-rtl.min.css
vendored
2
wp-admin/css/dashboard-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -821,7 +821,7 @@ body #dashboard-widgets .postbox form .submit {
|
||||
top: 12px;
|
||||
}
|
||||
|
||||
#activity-widget #the-comment-list .dashboard-comment-wrap.has-avatar {
|
||||
#activity-widget #the-comment-list .dashboard-comment-wrap {
|
||||
padding-left: 63px;
|
||||
}
|
||||
|
||||
|
||||
2
wp-admin/css/dashboard.min.css
vendored
2
wp-admin/css/dashboard.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -1,4 +1,3 @@
|
||||
/*! This file is auto-generated */
|
||||
/* Styles for the media library iframe (not used on the Library screen) */
|
||||
|
||||
div#media-upload-header {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/*! This file is auto-generated */
|
||||
#poststuff {
|
||||
padding-top: 10px;
|
||||
min-width: 763px;
|
||||
@@ -448,18 +447,14 @@ form#tags-filter {
|
||||
#post-body .misc-pub-post-status:before,
|
||||
#post-body #visibility:before,
|
||||
.curtime #timestamp:before,
|
||||
#post-body .misc-pub-revisions:before,
|
||||
#post-body .misc-pub-response-to:before,
|
||||
#post-body .misc-pub-comment-status:before {
|
||||
#post-body .misc-pub-revisions:before {
|
||||
color: #82878c;
|
||||
}
|
||||
|
||||
#post-body .misc-pub-post-status:before,
|
||||
#post-body #visibility:before,
|
||||
.curtime #timestamp:before,
|
||||
#post-body .misc-pub-revisions:before,
|
||||
#post-body .misc-pub-response-to:before,
|
||||
#post-body .misc-pub-comment-status:before {
|
||||
#post-body .misc-pub-revisions:before {
|
||||
font: normal 20px/1 dashicons;
|
||||
speak: none;
|
||||
display: inline-block;
|
||||
@@ -470,8 +465,7 @@ form#tags-filter {
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
#post-body .misc-pub-post-status:before,
|
||||
#post-body .misc-pub-comment-status:before {
|
||||
#post-body .misc-pub-post-status:before {
|
||||
content: "\f173";
|
||||
}
|
||||
|
||||
@@ -489,10 +483,6 @@ form#tags-filter {
|
||||
content: "\f321";
|
||||
}
|
||||
|
||||
#post-body .misc-pub-response-to:before {
|
||||
content: "\f101";
|
||||
}
|
||||
|
||||
#timestampdiv {
|
||||
padding-top: 5px;
|
||||
line-height: 1.76923076;
|
||||
@@ -619,10 +609,6 @@ form#tags-filter {
|
||||
padding: 8px 10px;
|
||||
}
|
||||
|
||||
#poststuff .stuffbox > h2 {
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
|
||||
#poststuff .inside {
|
||||
margin: 6px 0 0 0;
|
||||
}
|
||||
@@ -650,8 +636,7 @@ form#tags-filter {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
#post-visibility-select,
|
||||
#comment-status-radio {
|
||||
#post-visibility-select {
|
||||
line-height: 1.5;
|
||||
margin-top: 3px;
|
||||
}
|
||||
@@ -744,49 +729,16 @@ form#tags-filter {
|
||||
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 {
|
||||
display: none;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.policy-text {
|
||||
margin-bottom: 1em;
|
||||
.wp-suggested-text p {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.policy-text > *: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) {
|
||||
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;
|
||||
.wp-suggested-text p.privacy-policy-tutorial {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.notice.wp-pp-notice {
|
||||
@@ -1027,11 +979,6 @@ div.tabs-panel-inactive {
|
||||
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-static-pages ul,
|
||||
ul.export-filters,
|
||||
|
||||
2
wp-admin/css/edit-rtl.min.css
vendored
2
wp-admin/css/edit-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -447,18 +447,14 @@ form#tags-filter {
|
||||
#post-body .misc-pub-post-status:before,
|
||||
#post-body #visibility:before,
|
||||
.curtime #timestamp:before,
|
||||
#post-body .misc-pub-revisions:before,
|
||||
#post-body .misc-pub-response-to:before,
|
||||
#post-body .misc-pub-comment-status:before {
|
||||
#post-body .misc-pub-revisions:before {
|
||||
color: #82878c;
|
||||
}
|
||||
|
||||
#post-body .misc-pub-post-status:before,
|
||||
#post-body #visibility:before,
|
||||
.curtime #timestamp:before,
|
||||
#post-body .misc-pub-revisions:before,
|
||||
#post-body .misc-pub-response-to:before,
|
||||
#post-body .misc-pub-comment-status:before {
|
||||
#post-body .misc-pub-revisions:before {
|
||||
font: normal 20px/1 dashicons;
|
||||
speak: none;
|
||||
display: inline-block;
|
||||
@@ -469,8 +465,7 @@ form#tags-filter {
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
#post-body .misc-pub-post-status:before,
|
||||
#post-body .misc-pub-comment-status:before {
|
||||
#post-body .misc-pub-post-status:before {
|
||||
content: "\f173";
|
||||
}
|
||||
|
||||
@@ -488,10 +483,6 @@ form#tags-filter {
|
||||
content: "\f321";
|
||||
}
|
||||
|
||||
#post-body .misc-pub-response-to:before {
|
||||
content: "\f101";
|
||||
}
|
||||
|
||||
#timestampdiv {
|
||||
padding-top: 5px;
|
||||
line-height: 1.76923076;
|
||||
@@ -618,10 +609,6 @@ form#tags-filter {
|
||||
padding: 8px 10px;
|
||||
}
|
||||
|
||||
#poststuff .stuffbox > h2 {
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
|
||||
#poststuff .inside {
|
||||
margin: 6px 0 0 0;
|
||||
}
|
||||
@@ -649,8 +636,7 @@ form#tags-filter {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
#post-visibility-select,
|
||||
#comment-status-radio {
|
||||
#post-visibility-select {
|
||||
line-height: 1.5;
|
||||
margin-top: 3px;
|
||||
}
|
||||
@@ -743,49 +729,16 @@ form#tags-filter {
|
||||
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 {
|
||||
display: none;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.policy-text {
|
||||
margin-bottom: 1em;
|
||||
.wp-suggested-text p {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.policy-text > *: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) {
|
||||
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;
|
||||
.wp-suggested-text p.privacy-policy-tutorial {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.notice.wp-pp-notice {
|
||||
@@ -1026,11 +979,6 @@ div.tabs-panel-inactive {
|
||||
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-static-pages ul,
|
||||
ul.export-filters,
|
||||
|
||||
2
wp-admin/css/edit.min.css
vendored
2
wp-admin/css/edit.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -1,4 +1,3 @@
|
||||
/*! This file is auto-generated */
|
||||
|
||||
.farbtastic {
|
||||
position: relative;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/*! This file is auto-generated */
|
||||
/* Include margin and padding in the width calculation of input and textarea. */
|
||||
input,
|
||||
select,
|
||||
@@ -469,7 +468,6 @@ input.small-text {
|
||||
|
||||
input[type="number"].small-text {
|
||||
width: 65px;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
input.tiny-text {
|
||||
@@ -478,7 +476,6 @@ input.tiny-text {
|
||||
|
||||
input[type="number"].tiny-text {
|
||||
width: 45px;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
#doaction,
|
||||
@@ -1039,7 +1036,7 @@ table.form-table td .updated p {
|
||||
|
||||
#search-users,
|
||||
#search-sites {
|
||||
max-width: 60%;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------------------
|
||||
@@ -1207,10 +1204,6 @@ table.form-table td .updated p {
|
||||
color: #72777c;
|
||||
}
|
||||
|
||||
.privacy_requests .row-actions.processing {
|
||||
position: static;
|
||||
}
|
||||
|
||||
.privacy_requests tbody .has-request-results th {
|
||||
box-shadow: none;
|
||||
}
|
||||
@@ -1229,8 +1222,8 @@ table.form-table td .updated p {
|
||||
}
|
||||
|
||||
.privacy_requests .next_steps .button {
|
||||
word-wrap: break-word;
|
||||
white-space: normal;
|
||||
word-break: break-all;
|
||||
white-space: unset;
|
||||
}
|
||||
|
||||
.privacy_requests .status-request-confirmed th,
|
||||
@@ -1638,13 +1631,6 @@ table.form-table td .updated p {
|
||||
.wp-list-table.privacy_requests.widefat thead td input {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.wp-privacy-request-form-field input[type="text"] {
|
||||
width: 100%;
|
||||
margin-bottom: 10px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.regular-text {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
2
wp-admin/css/forms-rtl.min.css
vendored
2
wp-admin/css/forms-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -468,7 +468,6 @@ input.small-text {
|
||||
|
||||
input[type="number"].small-text {
|
||||
width: 65px;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
input.tiny-text {
|
||||
@@ -477,7 +476,6 @@ input.tiny-text {
|
||||
|
||||
input[type="number"].tiny-text {
|
||||
width: 45px;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
#doaction,
|
||||
@@ -1038,7 +1036,7 @@ table.form-table td .updated p {
|
||||
|
||||
#search-users,
|
||||
#search-sites {
|
||||
max-width: 60%;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------------------
|
||||
@@ -1206,10 +1204,6 @@ table.form-table td .updated p {
|
||||
color: #72777c;
|
||||
}
|
||||
|
||||
.privacy_requests .row-actions.processing {
|
||||
position: static;
|
||||
}
|
||||
|
||||
.privacy_requests tbody .has-request-results th {
|
||||
box-shadow: none;
|
||||
}
|
||||
@@ -1228,8 +1222,8 @@ table.form-table td .updated p {
|
||||
}
|
||||
|
||||
.privacy_requests .next_steps .button {
|
||||
word-wrap: break-word;
|
||||
white-space: normal;
|
||||
word-break: break-all;
|
||||
white-space: unset;
|
||||
}
|
||||
|
||||
.privacy_requests .status-request-confirmed th,
|
||||
@@ -1637,13 +1631,6 @@ table.form-table td .updated p {
|
||||
.wp-list-table.privacy_requests.widefat thead td input {
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.wp-privacy-request-form-field input[type="text"] {
|
||||
width: 100%;
|
||||
margin-bottom: 10px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.regular-text {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
2
wp-admin/css/forms.min.css
vendored
2
wp-admin/css/forms.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -1,4 +1,3 @@
|
||||
/*! This file is auto-generated */
|
||||
/* Fixes for IE 7 bugs */
|
||||
|
||||
#dashboard-widgets form .input-text-wrap input,
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/*! This file is auto-generated */
|
||||
html {
|
||||
background: #f1f1f1;
|
||||
margin: 0 20px;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/*! This file is auto-generated */
|
||||
/*------------------------------------------------------------------------------
|
||||
27.0 - Localization
|
||||
------------------------------------------------------------------------------*/
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/*! This file is auto-generated */
|
||||
.response-links {
|
||||
display: block;
|
||||
margin-bottom: 1em;
|
||||
@@ -437,6 +436,7 @@ table.media .column-title .filename {
|
||||
#commentsdiv .comments-box thead td {
|
||||
background: transparent;
|
||||
padding: 0 7px 4px;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
#commentsdiv .comments-box tr:last-child td {
|
||||
@@ -1020,6 +1020,11 @@ tr.inline-edit-row td,
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.inline-edit-row fieldset span.title,
|
||||
.inline-edit-row fieldset span.checkbox-title {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* Specific Elements */
|
||||
.inline-edit-row fieldset .inline-edit-date {
|
||||
float: right;
|
||||
@@ -1313,7 +1318,8 @@ ul.cat-checklist {
|
||||
.plugins .paused .error-display p,
|
||||
.plugins .paused .error-display code {
|
||||
font-size: 90%;
|
||||
color: rgba( 0, 0, 0, 0.7 );
|
||||
font-style: italic;
|
||||
color: rgb( 0, 0, 0, 0.7 );
|
||||
}
|
||||
|
||||
.plugins .resume-link {
|
||||
@@ -1743,6 +1749,10 @@ div.action-links,
|
||||
display: none;
|
||||
}
|
||||
|
||||
.comment-count {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.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) {
|
||||
display: none;
|
||||
@@ -1768,6 +1778,7 @@ div.action-links,
|
||||
.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column) {
|
||||
position: relative;
|
||||
clear: both;
|
||||
display: block;
|
||||
width: auto !important; /* needs to override some columns that are more specifically targeted */
|
||||
}
|
||||
|
||||
@@ -1888,6 +1899,10 @@ div.action-links,
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
.widefat * {
|
||||
word-wrap: normal;
|
||||
}
|
||||
|
||||
/* Make row actions more easy to select on mobile */
|
||||
body:not(.plugins-php) .row-actions {
|
||||
display: -ms-grid;
|
||||
|
||||
2
wp-admin/css/list-tables-rtl.min.css
vendored
2
wp-admin/css/list-tables-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -436,6 +436,7 @@ table.media .column-title .filename {
|
||||
#commentsdiv .comments-box thead td {
|
||||
background: transparent;
|
||||
padding: 0 7px 4px;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
#commentsdiv .comments-box tr:last-child td {
|
||||
@@ -1019,6 +1020,11 @@ tr.inline-edit-row td,
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.inline-edit-row fieldset span.title,
|
||||
.inline-edit-row fieldset span.checkbox-title {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* Specific Elements */
|
||||
.inline-edit-row fieldset .inline-edit-date {
|
||||
float: left;
|
||||
@@ -1312,7 +1318,8 @@ ul.cat-checklist {
|
||||
.plugins .paused .error-display p,
|
||||
.plugins .paused .error-display code {
|
||||
font-size: 90%;
|
||||
color: rgba( 0, 0, 0, 0.7 );
|
||||
font-style: italic;
|
||||
color: rgb( 0, 0, 0, 0.7 );
|
||||
}
|
||||
|
||||
.plugins .resume-link {
|
||||
@@ -1742,6 +1749,10 @@ div.action-links,
|
||||
display: none;
|
||||
}
|
||||
|
||||
.comment-count {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.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) {
|
||||
display: none;
|
||||
@@ -1767,6 +1778,7 @@ div.action-links,
|
||||
.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column) {
|
||||
position: relative;
|
||||
clear: both;
|
||||
display: block;
|
||||
width: auto !important; /* needs to override some columns that are more specifically targeted */
|
||||
}
|
||||
|
||||
@@ -1887,6 +1899,10 @@ div.action-links,
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
.widefat * {
|
||||
word-wrap: normal;
|
||||
}
|
||||
|
||||
/* Make row actions more easy to select on mobile */
|
||||
body:not(.plugins-php) .row-actions {
|
||||
display: -ms-grid;
|
||||
|
||||
2
wp-admin/css/list-tables.min.css
vendored
2
wp-admin/css/list-tables.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -1,4 +1,3 @@
|
||||
/*! This file is auto-generated */
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
@@ -140,24 +139,6 @@ p {
|
||||
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 {
|
||||
width: 60vw;
|
||||
margin-top: -2vh;
|
||||
|
||||
2
wp-admin/css/login-rtl.min.css
vendored
2
wp-admin/css/login-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -139,24 +139,6 @@ p {
|
||||
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 {
|
||||
width: 60vw;
|
||||
margin-top: -2vh;
|
||||
|
||||
2
wp-admin/css/login.min.css
vendored
2
wp-admin/css/login.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -1,4 +1,3 @@
|
||||
/*! This file is auto-generated */
|
||||
/*------------------------------------------------------------------------------
|
||||
14.0 - Media Screen
|
||||
------------------------------------------------------------------------------*/
|
||||
@@ -1056,11 +1055,7 @@ border color while dragging a file over the uploader drop area */
|
||||
|
||||
.imgedit-help {
|
||||
display: none;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
.imgedit-help.imgedit-restore {
|
||||
padding-bottom: 0;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* higher specificity than buttons */
|
||||
|
||||
2
wp-admin/css/media-rtl.min.css
vendored
2
wp-admin/css/media-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -1055,11 +1055,7 @@ border color while dragging a file over the uploader drop area */
|
||||
|
||||
.imgedit-help {
|
||||
display: none;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
.imgedit-help.imgedit-restore {
|
||||
padding-bottom: 0;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* higher specificity than buttons */
|
||||
|
||||
2
wp-admin/css/media.min.css
vendored
2
wp-admin/css/media.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -1,4 +1,3 @@
|
||||
/*! This file is auto-generated */
|
||||
/* nav-menu */
|
||||
|
||||
/* @todo: determine if this is truly for nav menus only */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/*! This file is auto-generated */
|
||||
/*------------------------------------------------------------------------------
|
||||
11.2 - Post Revisions
|
||||
------------------------------------------------------------------------------*/
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/*! This file is auto-generated */
|
||||
.site-health #wpcontent,
|
||||
.site-health.auto-fold #wpcontent {
|
||||
padding-right: 0;
|
||||
@@ -216,8 +215,8 @@
|
||||
|
||||
.site-health-copy-buttons .success.visible {
|
||||
display: inline-block;
|
||||
height: 30px;
|
||||
line-height: 2.30769231;
|
||||
height: 28px;
|
||||
line-height: 2.2;
|
||||
}
|
||||
|
||||
.site-status-has-issues.hide {
|
||||
@@ -322,9 +321,8 @@
|
||||
color: #191e23;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
outline-offset: -1px;
|
||||
outline: 2px solid #0071a1;
|
||||
background-color: #f8f9f9;
|
||||
outline-offset: -2px;
|
||||
outline: 1px dotted #555d66;
|
||||
}
|
||||
|
||||
.health-check-accordion-trigger .title {
|
||||
|
||||
2
wp-admin/css/site-health-rtl.min.css
vendored
2
wp-admin/css/site-health-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -215,8 +215,8 @@
|
||||
|
||||
.site-health-copy-buttons .success.visible {
|
||||
display: inline-block;
|
||||
height: 30px;
|
||||
line-height: 2.30769231;
|
||||
height: 28px;
|
||||
line-height: 2.2;
|
||||
}
|
||||
|
||||
.site-status-has-issues.hide {
|
||||
@@ -321,9 +321,8 @@
|
||||
color: #191e23;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
outline-offset: -1px;
|
||||
outline: 2px solid #0071a1;
|
||||
background-color: #f8f9f9;
|
||||
outline-offset: -2px;
|
||||
outline: 1px dotted #555d66;
|
||||
}
|
||||
|
||||
.health-check-accordion-trigger .title {
|
||||
|
||||
2
wp-admin/css/site-health.min.css
vendored
2
wp-admin/css/site-health.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -1,4 +1,3 @@
|
||||
/*! This file is auto-generated */
|
||||
/*------------------------------------------------------------------------------
|
||||
28.0 - Site Icon
|
||||
------------------------------------------------------------------------------*/
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/*! This file is auto-generated */
|
||||
/*------------------------------------------------------------------------------
|
||||
16.0 - Themes
|
||||
------------------------------------------------------------------------------*/
|
||||
@@ -230,7 +229,7 @@ body.js .theme-browser.search-loading {
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
left: 0;
|
||||
padding: 9px 15px;
|
||||
padding: 10px 15px;
|
||||
box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
@@ -1050,14 +1049,7 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
|
||||
padding: 30px;
|
||||
margin: 30px auto;
|
||||
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-plugin .install-help {
|
||||
color: #555d66; /* #f1f1f1 background */
|
||||
@@ -1911,8 +1903,8 @@ body.full-overlay-active {
|
||||
|
||||
.theme-browser .theme.active .theme-actions,
|
||||
.theme-browser .theme .theme-actions {
|
||||
padding-top: 4px;
|
||||
padding-bottom: 4px;
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
2
wp-admin/css/themes-rtl.min.css
vendored
2
wp-admin/css/themes-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -229,7 +229,7 @@ body.js .theme-browser.search-loading {
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
right: 0;
|
||||
padding: 9px 15px;
|
||||
padding: 10px 15px;
|
||||
box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
@@ -1049,14 +1049,7 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
|
||||
padding: 30px;
|
||||
margin: 30px auto;
|
||||
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-plugin .install-help {
|
||||
color: #555d66; /* #f1f1f1 background */
|
||||
@@ -1910,8 +1903,8 @@ body.full-overlay-active {
|
||||
|
||||
.theme-browser .theme.active .theme-actions,
|
||||
.theme-browser .theme .theme-actions {
|
||||
padding-top: 4px;
|
||||
padding-bottom: 4px;
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
2
wp-admin/css/themes.min.css
vendored
2
wp-admin/css/themes.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -1,4 +1,3 @@
|
||||
/*! This file is auto-generated */
|
||||
/* General Widgets Styles */
|
||||
|
||||
.widget {
|
||||
@@ -7,13 +6,6 @@
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.widget.open {
|
||||
z-index: 99;
|
||||
}
|
||||
.widget.open:focus-within {
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.widget-top {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
@@ -141,9 +133,6 @@
|
||||
.media-widget-control .media-widget-preview img {
|
||||
max-width: 100%;
|
||||
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 {
|
||||
background: #000;
|
||||
@@ -156,7 +145,6 @@
|
||||
.media-frame.media-widget .image-details .embed-media-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 .legend-inline,
|
||||
.media-frame.media-widget .embed-link-settings .setting.link-text,
|
||||
.media-frame.media-widget .replace-attachment,
|
||||
.media-frame.media-widget .checkbox-setting.autoplay {
|
||||
@@ -608,10 +596,6 @@ div#widgets-right .closed .widgets-sortables {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.widget-inside select {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/* Dragging widgets over the available widget area show's a "Deactivate" message */
|
||||
#removing-widget {
|
||||
display: none;
|
||||
|
||||
2
wp-admin/css/widgets-rtl.min.css
vendored
2
wp-admin/css/widgets-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -6,13 +6,6 @@
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.widget.open {
|
||||
z-index: 99;
|
||||
}
|
||||
.widget.open:focus-within {
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.widget-top {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
@@ -140,9 +133,6 @@
|
||||
.media-widget-control .media-widget-preview img {
|
||||
max-width: 100%;
|
||||
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 {
|
||||
background: #000;
|
||||
@@ -155,7 +145,6 @@
|
||||
.media-frame.media-widget .image-details .embed-media-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 .legend-inline,
|
||||
.media-frame.media-widget .embed-link-settings .setting.link-text,
|
||||
.media-frame.media-widget .replace-attachment,
|
||||
.media-frame.media-widget .checkbox-setting.autoplay {
|
||||
@@ -607,10 +596,6 @@ div#widgets-right .closed .widgets-sortables {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.widget-inside select {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/* Dragging widgets over the available widget area show's a "Deactivate" message */
|
||||
#removing-widget {
|
||||
display: none;
|
||||
|
||||
2
wp-admin/css/widgets.min.css
vendored
2
wp-admin/css/widgets.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -1,4 +1,3 @@
|
||||
/*! This file is auto-generated */
|
||||
@import url(common-rtl.css);
|
||||
@import url(forms-rtl.css);
|
||||
@import url(admin-menu-rtl.css);
|
||||
|
||||
@@ -12,4 +12,4 @@
|
||||
_deprecated_file( basename( __FILE__ ), '5.3.0', 'wp-admin/includes/class-custom-background.php' );
|
||||
|
||||
/** Custom_Background class */
|
||||
require_once ABSPATH . 'wp-admin/includes/class-custom-background.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-custom-background.php' );
|
||||
|
||||
@@ -12,4 +12,4 @@
|
||||
_deprecated_file( basename( __FILE__ ), '5.3.0', 'wp-admin/includes/class-custom-image-header.php' );
|
||||
|
||||
/** 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' );
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
define( 'IFRAME_REQUEST', true );
|
||||
|
||||
/** Load WordPress Administration Bootstrap */
|
||||
require_once __DIR__ . '/admin.php';
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
|
||||
if ( ! current_user_can( 'customize' ) ) {
|
||||
wp_die(
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
/** WordPress Administration Bootstrap */
|
||||
require_once __DIR__ . '/admin.php';
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
if ( ! current_user_can( 'edit_posts' ) ) {
|
||||
wp_die(
|
||||
'<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' .
|
||||
@@ -31,7 +31,7 @@ if ( $doaction ) {
|
||||
$doaction = 'delete';
|
||||
} elseif ( isset( $_REQUEST['delete_comments'] ) ) {
|
||||
$comment_ids = $_REQUEST['delete_comments'];
|
||||
$doaction = ( -1 != $_REQUEST['action'] ) ? $_REQUEST['action'] : $_REQUEST['action2'];
|
||||
$doaction = ( $_REQUEST['action'] != -1 ) ? $_REQUEST['action'] : $_REQUEST['action2'];
|
||||
} elseif ( isset( $_REQUEST['ids'] ) ) {
|
||||
$comment_ids = array_map( 'absint', explode( ',', $_REQUEST['ids'] ) );
|
||||
} elseif ( wp_get_referer() ) {
|
||||
@@ -52,7 +52,7 @@ if ( $doaction ) {
|
||||
|
||||
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 ) ) {
|
||||
continue;
|
||||
}
|
||||
@@ -92,7 +92,20 @@ if ( $doaction ) {
|
||||
if ( ! in_array( $doaction, array( 'approve', 'unapprove', 'spam', 'unspam', 'trash', 'delete' ), true ) ) {
|
||||
$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
|
||||
}
|
||||
|
||||
@@ -205,7 +218,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">
|
||||
@@ -270,7 +283,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 ) {
|
||||
/* 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 ) {
|
||||
@@ -281,7 +294,7 @@ if ( isset( $_REQUEST['approved'] ) || isset( $_REQUEST['deleted'] ) || isset( $
|
||||
|
||||
if ( $unspammed > 0 ) {
|
||||
/* 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 ) {
|
||||
@@ -292,12 +305,12 @@ if ( isset( $_REQUEST['approved'] ) || isset( $_REQUEST['deleted'] ) || isset( $
|
||||
|
||||
if ( $untrashed > 0 ) {
|
||||
/* 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 ) {
|
||||
/* 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 ) {
|
||||
@@ -351,4 +364,4 @@ if ( isset( $_REQUEST['approved'] ) || isset( $_REQUEST['deleted'] ) || isset( $
|
||||
<?php
|
||||
wp_comment_reply( '-1', true, 'detail' );
|
||||
wp_comment_trashnotice();
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* @subpackage Administration
|
||||
*/
|
||||
|
||||
// Don't load directly.
|
||||
// don't load directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
die( '-1' );
|
||||
}
|
||||
@@ -76,7 +76,7 @@ $post_ID = isset( $post_ID ) ? (int) $post_ID : 0;
|
||||
$user_ID = isset( $user_ID ) ? (int) $user_ID : 0;
|
||||
$action = isset( $action ) ? $action : '';
|
||||
|
||||
if ( get_option( 'page_for_posts' ) == $post_ID && empty( $post->post_content ) ) {
|
||||
if ( $post_ID == get_option( 'page_for_posts' ) && empty( $post->post_content ) ) {
|
||||
add_action( 'edit_form_after_title', '_wp_posts_page_notice' );
|
||||
remove_post_type_support( $post_type, 'editor' );
|
||||
}
|
||||
@@ -95,7 +95,7 @@ if ( $thumbnail_support ) {
|
||||
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' );
|
||||
|
||||
/*
|
||||
@@ -169,9 +169,9 @@ if ( $viewable ) {
|
||||
$scheduled_date = sprintf(
|
||||
/* translators: Publish box date string. 1: Date, 2: Time. */
|
||||
__( '%1$s at %2$s' ),
|
||||
/* translators: Publish box date format, see https://www.php.net/date */
|
||||
/* translators: Publish box date format, see https://secure.php.net/date */
|
||||
date_i18n( _x( 'M j, Y', 'publish box date format' ), strtotime( $post->post_date ) ),
|
||||
/* translators: Publish box time format, see https://www.php.net/date */
|
||||
/* translators: Publish box time format, see https://secure.php.net/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;
|
||||
$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 ) ) {
|
||||
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(
|
||||
/* 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>' ),
|
||||
@@ -264,7 +264,7 @@ if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt, false ) > mysql
|
||||
$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).
|
||||
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 );
|
||||
|
||||
@@ -376,7 +376,7 @@ if ( 'post' == $post_type ) {
|
||||
|
||||
if ( current_theme_supports( 'post-thumbnails' ) && post_type_supports( 'post', 'thumbnail' ) ) {
|
||||
$publish_box .= '<li>' . sprintf(
|
||||
/* translators: %s: Featured image. */
|
||||
/* translators: %s: Featured Image. */
|
||||
__( '<strong>%s</strong> — 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 )
|
||||
) . '</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">
|
||||
@@ -534,7 +534,7 @@ do_action( 'edit_form_top', $post );
|
||||
if ( has_filter( 'pre_get_shortlink' ) || has_filter( 'get_shortlink' ) ) {
|
||||
$shortlink = wp_get_shortlink( $post->ID, 'post' );
|
||||
|
||||
if ( ! empty( $shortlink ) && $shortlink !== $permalink && home_url( '?page_id=' . $post->ID ) !== $permalink ) {
|
||||
if ( ! empty( $shortlink ) && $shortlink !== $permalink && $permalink !== home_url( '?page_id=' . $post->ID ) ) {
|
||||
$sample_permalink_html .= '<input id="shortlink" type="hidden" value="' . esc_attr( $shortlink ) . '" /><button type="button" class="button button-small" onclick="prompt('URL:', jQuery(\'#shortlink\').val());">' . __( 'Get Shortlink' ) . '</button>';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* @subpackage Administration
|
||||
*/
|
||||
|
||||
// Don't load directly.
|
||||
// don't load directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
die( '-1' );
|
||||
}
|
||||
@@ -59,8 +59,8 @@ $preload_paths = array(
|
||||
*
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @param string[] $preload_paths Array of paths to preload.
|
||||
* @param WP_Post $post Post being edited.
|
||||
* @param array $preload_paths Array of paths to preload.
|
||||
* @param object $post The post resource data.
|
||||
*/
|
||||
$preload_paths = apply_filters( 'block_editor_preload_paths', $preload_paths, $post );
|
||||
|
||||
@@ -132,10 +132,9 @@ wp_localize_script( 'wp-editor', '_wpMetaBoxUrl', $meta_box_url );
|
||||
* Initialize the editor.
|
||||
*/
|
||||
|
||||
$align_wide = get_theme_support( 'align-wide' );
|
||||
$color_palette = current( (array) get_theme_support( 'editor-color-palette' ) );
|
||||
$font_sizes = current( (array) get_theme_support( 'editor-font-sizes' ) );
|
||||
$gradient_presets = current( (array) get_theme_support( 'editor-gradient-presets' ) );
|
||||
$align_wide = get_theme_support( 'align-wide' );
|
||||
$color_palette = current( (array) get_theme_support( 'editor-color-palette' ) );
|
||||
$font_sizes = current( (array) get_theme_support( 'editor-font-sizes' ) );
|
||||
|
||||
/**
|
||||
* Filters the allowed block types for the editor, defaulting to true (all
|
||||
@@ -145,16 +144,14 @@ $gradient_presets = current( (array) get_theme_support( 'editor-gradient-presets
|
||||
*
|
||||
* @param bool|array $allowed_block_types Array of block type slugs, or
|
||||
* boolean to enable/disable all.
|
||||
* @param WP_Post $post The post resource data.
|
||||
* @param object $post The post resource data.
|
||||
*/
|
||||
$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
|
||||
* not empty so we do not trigger the template select element without any options
|
||||
* besides the default value.
|
||||
*/
|
||||
// Get all available templates for the post/page attributes meta-box.
|
||||
// The "Default template" array element should only be added if the array is
|
||||
// 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 = ! empty( $available_templates ) ? array_merge(
|
||||
array(
|
||||
@@ -227,15 +224,6 @@ 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.
|
||||
$user_id = wp_check_post_lock( $post->ID );
|
||||
if ( $user_id ) {
|
||||
@@ -288,7 +276,6 @@ $editor_settings = array(
|
||||
'allowedBlockTypes' => $allowed_block_types,
|
||||
'disableCustomColors' => get_theme_support( 'disable-custom-colors' ),
|
||||
'disableCustomFontSizes' => get_theme_support( 'disable-custom-font-sizes' ),
|
||||
'disableCustomGradients' => get_theme_support( 'disable-custom-gradients' ),
|
||||
'disablePostFormats' => ! current_theme_supports( 'post-formats' ),
|
||||
/** This filter is documented in wp-admin/edit-form-advanced.php */
|
||||
'titlePlaceholder' => apply_filters( 'enter_title_here', __( 'Add title' ), $post ),
|
||||
@@ -299,7 +286,6 @@ $editor_settings = array(
|
||||
'allowedMimeTypes' => get_allowed_mime_types(),
|
||||
'styles' => $styles,
|
||||
'imageSizes' => $available_image_sizes,
|
||||
'imageDimensions' => $image_dimensions,
|
||||
'richEditingEnabled' => user_can_richedit(),
|
||||
'postLock' => $lock_details,
|
||||
'postLockUtils' => array(
|
||||
@@ -332,10 +318,6 @@ if ( false !== $font_sizes ) {
|
||||
$editor_settings['fontSizes'] = $font_sizes;
|
||||
}
|
||||
|
||||
if ( false !== $gradient_presets ) {
|
||||
$editor_settings['gradients'] = $gradient_presets;
|
||||
}
|
||||
|
||||
if ( ! empty( $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;
|
||||
@@ -379,7 +361,7 @@ wp_enqueue_style( 'wp-format-library' );
|
||||
do_action( 'enqueue_block_editor_assets' );
|
||||
|
||||
// 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 );
|
||||
|
||||
// Check if the Custom Fields meta box has been removed at some point.
|
||||
@@ -417,7 +399,7 @@ $script = sprintf(
|
||||
);
|
||||
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">
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* @subpackage Administration
|
||||
*/
|
||||
|
||||
// Don't load directly.
|
||||
// don't load directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
die( '-1' );
|
||||
}
|
||||
@@ -87,46 +87,28 @@ if ( 'approved' === wp_get_comment_status( $comment ) && $comment->comment_post_
|
||||
|
||||
<div id="postbox-container-1" class="postbox-container">
|
||||
<div id="submitdiv" class="stuffbox" >
|
||||
<h2><?php _e( 'Save' ); ?></h2>
|
||||
<h2><?php _e( 'Status' ); ?></h2>
|
||||
<div class="inside">
|
||||
<div class="submitbox" id="submitcomment">
|
||||
<div id="minor-publishing">
|
||||
|
||||
<div id="misc-publishing-actions">
|
||||
|
||||
<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">
|
||||
<fieldset class="misc-pub-section misc-pub-comment-status" id="comment-status-radio">
|
||||
<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, '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>
|
||||
</fieldset>
|
||||
</div><!-- .misc-pub-section -->
|
||||
|
||||
|
||||
<div class="misc-pub-section curtime misc-pub-curtime">
|
||||
<?php
|
||||
$submitted = sprintf(
|
||||
/* translators: 1: Comment date, 2: Comment time. */
|
||||
__( '%1$s at %2$s' ),
|
||||
/* translators: Publish box date format, see https://www.php.net/date */
|
||||
/* translators: Publish box date format, see https://secure.php.net/date */
|
||||
date_i18n( _x( 'M j, Y', 'publish box date format' ), strtotime( $comment->comment_date ) ),
|
||||
/* translators: Publish box time format, see https://www.php.net/date */
|
||||
/* translators: Publish box time format, see https://secure.php.net/date */
|
||||
date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $comment->comment_date ) )
|
||||
);
|
||||
?>
|
||||
@@ -190,8 +172,8 @@ endif;
|
||||
*
|
||||
* @since 4.3.0
|
||||
*
|
||||
* @param string $html Output HTML to display miscellaneous action.
|
||||
* @param WP_Comment $comment Current comment object.
|
||||
* @param string $html Output HTML to display miscellaneous action.
|
||||
* @param object $comment Current comment object.
|
||||
*/
|
||||
echo apply_filters( 'edit_comment_misc_actions', '', $comment );
|
||||
?>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* @subpackage Administration
|
||||
*/
|
||||
|
||||
// Don't load directly.
|
||||
// don't load directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
die( '-1' );
|
||||
}
|
||||
@@ -25,7 +25,7 @@ if ( ! empty( $link_id ) ) {
|
||||
$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( '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>'
|
||||
);
|
||||
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
?>
|
||||
|
||||
<div class="wrap">
|
||||
|
||||
@@ -6,42 +6,42 @@
|
||||
* @subpackage Administration
|
||||
*/
|
||||
|
||||
// Don't load directly.
|
||||
// don't load directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
die( '-1' );
|
||||
}
|
||||
|
||||
// Back compat hooks.
|
||||
// Back compat hooks
|
||||
if ( 'category' == $taxonomy ) {
|
||||
/**
|
||||
* Fires before the Edit Category form.
|
||||
*
|
||||
* @since 2.1.0
|
||||
* @deprecated 3.0.0 Use {@see '{$taxonomy}_pre_edit_form'} instead.
|
||||
* @deprecated 3.0.0 Use {$taxonomy}_pre_edit_form instead.
|
||||
*
|
||||
* @param WP_Term $tag Current category term object.
|
||||
*/
|
||||
do_action_deprecated( 'edit_category_form_pre', array( $tag ), '3.0.0', '{$taxonomy}_pre_edit_form' );
|
||||
do_action( 'edit_category_form_pre', $tag );
|
||||
} elseif ( 'link_category' == $taxonomy ) {
|
||||
/**
|
||||
* Fires before the Edit Link Category form.
|
||||
*
|
||||
* @since 2.3.0
|
||||
* @deprecated 3.0.0 Use {@see '{$taxonomy}_pre_edit_form'} instead.
|
||||
* @deprecated 3.0.0 Use {$taxonomy}_pre_edit_form instead.
|
||||
*
|
||||
* @param WP_Term $tag Current link category term object.
|
||||
*/
|
||||
do_action_deprecated( 'edit_link_category_form_pre', array( $tag ), '3.0.0', '{$taxonomy}_pre_edit_form' );
|
||||
do_action( 'edit_link_category_form_pre', $tag );
|
||||
} else {
|
||||
/**
|
||||
* Fires before the Edit Tag form.
|
||||
*
|
||||
* @since 2.5.0
|
||||
* @deprecated 3.0.0 Use {@see '{$taxonomy}_pre_edit_form'} instead.
|
||||
* @deprecated 3.0.0 Use {$taxonomy}_pre_edit_form instead.
|
||||
*
|
||||
* @param WP_Term $tag Current tag term object.
|
||||
*/
|
||||
do_action_deprecated( 'edit_tag_form_pre', array( $tag ), '3.0.0', '{$taxonomy}_pre_edit_form' );
|
||||
do_action( 'edit_tag_form_pre', $tag );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -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 );
|
||||
|
||||
/** 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.
|
||||
@@ -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>
|
||||
</tr>
|
||||
<?php
|
||||
// Back compat hooks.
|
||||
// Back compat hooks
|
||||
if ( 'category' == $taxonomy ) {
|
||||
/**
|
||||
* Fires after the Edit Category form fields are displayed.
|
||||
*
|
||||
* @since 2.9.0
|
||||
* @deprecated 3.0.0 Use {@see '{$taxonomy}_edit_form_fields'} instead.
|
||||
* @deprecated 3.0.0 Use {$taxonomy}_edit_form_fields instead.
|
||||
*
|
||||
* @param WP_Term $tag Current category term object.
|
||||
*/
|
||||
do_action_deprecated( 'edit_category_form_fields', array( $tag ), '3.0.0', '{$taxonomy}_edit_form_fields' );
|
||||
do_action( 'edit_category_form_fields', $tag );
|
||||
} elseif ( 'link_category' == $taxonomy ) {
|
||||
/**
|
||||
* Fires after the Edit Link Category form fields are displayed.
|
||||
*
|
||||
* @since 2.9.0
|
||||
* @deprecated 3.0.0 Use {@see '{$taxonomy}_edit_form_fields'} instead.
|
||||
* @deprecated 3.0.0 Use {$taxonomy}_edit_form_fields instead.
|
||||
*
|
||||
* @param WP_Term $tag Current link category term object.
|
||||
*/
|
||||
do_action_deprecated( 'edit_link_category_form_fields', array( $tag ), '3.0.0', '{$taxonomy}_edit_form_fields' );
|
||||
do_action( 'edit_link_category_form_fields', $tag );
|
||||
} else {
|
||||
/**
|
||||
* Fires after the Edit Tag form fields are displayed.
|
||||
*
|
||||
* @since 2.9.0
|
||||
* @deprecated 3.0.0 Use {@see '{$taxonomy}_edit_form_fields'} instead.
|
||||
* @deprecated 3.0.0 Use {$taxonomy}_edit_form_fields instead.
|
||||
*
|
||||
* @param WP_Term $tag Current tag term object.
|
||||
*/
|
||||
do_action_deprecated( 'edit_tag_form_fields', array( $tag ), '3.0.0', '{$taxonomy}_edit_form_fields' );
|
||||
do_action( 'edit_tag_form_fields', $tag );
|
||||
}
|
||||
/**
|
||||
* Fires after the Edit Term form fields are displayed.
|
||||
@@ -238,23 +238,23 @@ if ( isset( $tag->name ) ) {
|
||||
?>
|
||||
</table>
|
||||
<?php
|
||||
// Back compat hooks.
|
||||
// Back compat hooks
|
||||
if ( 'category' == $taxonomy ) {
|
||||
/** This action is documented in wp-admin/edit-tags.php */
|
||||
do_action_deprecated( 'edit_category_form', array( $tag ), '3.0.0', '{$taxonomy}_add_form' );
|
||||
do_action( 'edit_category_form', $tag );
|
||||
} elseif ( 'link_category' == $taxonomy ) {
|
||||
/** This action is documented in wp-admin/edit-tags.php */
|
||||
do_action_deprecated( 'edit_link_category_form', array( $tag ), '3.0.0', '{$taxonomy}_add_form' );
|
||||
do_action( 'edit_link_category_form', $tag );
|
||||
} else {
|
||||
/**
|
||||
* Fires at the end of the Edit Term form.
|
||||
*
|
||||
* @since 2.5.0
|
||||
* @deprecated 3.0.0 Use {@see '{$taxonomy}_edit_form'} instead.
|
||||
* @deprecated 3.0.0 Use {$taxonomy}_edit_form instead.
|
||||
*
|
||||
* @param WP_Term $tag Current taxonomy term object.
|
||||
*/
|
||||
do_action_deprecated( 'edit_tag_form', array( $tag ), '3.0.0', '{$taxonomy}_edit_form' );
|
||||
do_action( 'edit_tag_form', $tag );
|
||||
}
|
||||
/**
|
||||
* Fires at the end of the Edit Term form for all taxonomies.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
/** WordPress Administration Bootstrap */
|
||||
require_once __DIR__ . '/admin.php';
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
|
||||
if ( ! $taxnow ) {
|
||||
wp_die( __( 'Invalid taxonomy.' ) );
|
||||
@@ -43,10 +43,10 @@ $pagenum = $wp_list_table->get_pagenum();
|
||||
|
||||
$title = $tax->labels->name;
|
||||
|
||||
if ( 'post' !== $post_type ) {
|
||||
$parent_file = ( 'attachment' === $post_type ) ? 'upload.php' : "edit.php?post_type=$post_type";
|
||||
if ( 'post' != $post_type ) {
|
||||
$parent_file = ( 'attachment' == $post_type ) ? 'upload.php' : "edit.php?post_type=$post_type";
|
||||
$submenu_file = "edit-tags.php?taxonomy=$taxonomy&post_type=$post_type";
|
||||
} elseif ( 'link_category' === $tax->name ) {
|
||||
} elseif ( 'link_category' == $tax->name ) {
|
||||
$parent_file = 'link-manager.php';
|
||||
$submenu_file = 'edit-tags.php?taxonomy=link_category';
|
||||
} else {
|
||||
@@ -199,12 +199,9 @@ switch ( $wp_list_table->current_action() ) {
|
||||
break;
|
||||
}
|
||||
check_admin_referer( 'bulk-tags' );
|
||||
|
||||
$screen = get_current_screen()->id;
|
||||
$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
|
||||
$tags = (array) $_REQUEST['delete_tags'];
|
||||
/** This action is documented in wp-admin/edit-comments.php */
|
||||
$location = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $location, $wp_list_table->current_action(), $tags ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -222,8 +219,8 @@ if ( $location ) {
|
||||
*
|
||||
* @since 4.6.0
|
||||
*
|
||||
* @param string $location The destination URL.
|
||||
* @param WP_Taxonomy $tax The taxonomy object.
|
||||
* @param string $location The destination URL.
|
||||
* @param object $tax The taxonomy object.
|
||||
*/
|
||||
wp_redirect( apply_filters( 'redirect_term_location', $location, $tax ) );
|
||||
exit;
|
||||
@@ -242,21 +239,21 @@ if ( current_user_can( $tax->cap->edit_terms ) ) {
|
||||
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 = '';
|
||||
if ( 'category' === $taxonomy ) {
|
||||
if ( 'category' == $taxonomy ) {
|
||||
$help = '<p>' . sprintf(
|
||||
/* 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 “Uncategorized” until you change it in your <a href="%s">writing settings</a>.' ),
|
||||
'options-writing.php'
|
||||
) . '</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>';
|
||||
} else {
|
||||
$help = '<p>' . __( 'You can assign keywords to your posts using <strong>tags</strong>. Unlike categories, tags have no hierarchy, meaning there’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>';
|
||||
} else {
|
||||
$help .= '<p>' . __( 'What’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>';
|
||||
@@ -270,8 +267,8 @@ if ( 'category' === $taxonomy || 'link_category' === $taxonomy || 'post_tag' ===
|
||||
)
|
||||
);
|
||||
|
||||
if ( 'category' === $taxonomy || 'post_tag' === $taxonomy ) {
|
||||
if ( 'category' === $taxonomy ) {
|
||||
if ( 'category' == $taxonomy || 'post_tag' == $taxonomy ) {
|
||||
if ( 'category' == $taxonomy ) {
|
||||
$help = '<p>' . __( 'When adding a new category on this screen, you’ll fill in the following fields:' ) . '</p>';
|
||||
} else {
|
||||
$help = '<p>' . __( 'When adding a new tag on this screen, you’ll fill in the following fields:' ) . '</p>';
|
||||
@@ -284,7 +281,7 @@ if ( 'category' === $taxonomy || 'link_category' === $taxonomy || 'post_tag' ===
|
||||
$help .= '<li>' . __( '<strong>Slug</strong> — The “slug” 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> — 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>';
|
||||
}
|
||||
|
||||
@@ -295,7 +292,7 @@ if ( 'category' === $taxonomy || 'link_category' === $taxonomy || 'post_tag' ===
|
||||
get_current_screen()->add_help_tab(
|
||||
array(
|
||||
'id' => 'adding-terms',
|
||||
'title' => 'category' === $taxonomy ? __( 'Adding Categories' ) : __( 'Adding Tags' ),
|
||||
'title' => 'category' == $taxonomy ? __( 'Adding Categories' ) : __( 'Adding Tags' ),
|
||||
'content' => $help,
|
||||
)
|
||||
);
|
||||
@@ -303,9 +300,9 @@ if ( 'category' === $taxonomy || 'link_category' === $taxonomy || 'post_tag' ===
|
||||
|
||||
$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>';
|
||||
} 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>';
|
||||
} else {
|
||||
$help .= '<p>' . __( '<a href="https://wordpress.org/support/article/posts-tags-screen/">Documentation on Tags</a>' ) . '</p>';
|
||||
@@ -318,10 +315,10 @@ if ( 'category' === $taxonomy || 'link_category' === $taxonomy || 'post_tag' ===
|
||||
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 */
|
||||
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';
|
||||
|
||||
@@ -372,36 +369,36 @@ if ( $can_edit_terms ) {
|
||||
<div class="col-wrap">
|
||||
|
||||
<?php
|
||||
if ( 'category' === $taxonomy ) {
|
||||
if ( 'category' == $taxonomy ) {
|
||||
/**
|
||||
* Fires before the Add Category form.
|
||||
*
|
||||
* @since 2.1.0
|
||||
* @deprecated 3.0.0 Use {@see '{$taxonomy}_pre_add_form'} instead.
|
||||
* @deprecated 3.0.0 Use {$taxonomy}_pre_add_form instead.
|
||||
*
|
||||
* @param object $arg Optional arguments cast to an object.
|
||||
*/
|
||||
do_action_deprecated( 'add_category_form_pre', array( (object) array( 'parent' => 0 ) ), '3.0.0', '{$taxonomy}_pre_add_form' );
|
||||
} elseif ( 'link_category' === $taxonomy ) {
|
||||
do_action( 'add_category_form_pre', (object) array( 'parent' => 0 ) );
|
||||
} elseif ( 'link_category' == $taxonomy ) {
|
||||
/**
|
||||
* Fires before the link category form.
|
||||
*
|
||||
* @since 2.3.0
|
||||
* @deprecated 3.0.0 Use {@see '{$taxonomy}_pre_add_form'} instead.
|
||||
* @deprecated 3.0.0 Use {$taxonomy}_pre_add_form instead.
|
||||
*
|
||||
* @param object $arg Optional arguments cast to an object.
|
||||
*/
|
||||
do_action_deprecated( 'add_link_category_form_pre', array( (object) array( 'parent' => 0 ) ), '3.0.0', '{$taxonomy}_pre_add_form' );
|
||||
do_action( 'add_link_category_form_pre', (object) array( 'parent' => 0 ) );
|
||||
} else {
|
||||
/**
|
||||
* Fires before the Add Tag form.
|
||||
*
|
||||
* @since 2.5.0
|
||||
* @deprecated 3.0.0 Use {@see '{$taxonomy}_pre_add_form'} instead.
|
||||
* @deprecated 3.0.0 Use {$taxonomy}_pre_add_form instead.
|
||||
*
|
||||
* @param string $taxonomy The taxonomy slug.
|
||||
*/
|
||||
do_action_deprecated( 'add_tag_form_pre', array( $taxonomy ), '3.0.0', '{$taxonomy}_pre_add_form' );
|
||||
do_action( 'add_tag_form_pre', $taxonomy );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -487,7 +484,7 @@ if ( $can_edit_terms ) {
|
||||
|
||||
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>
|
||||
<?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>
|
||||
@@ -528,36 +525,36 @@ if ( $can_edit_terms ) {
|
||||
<span class="spinner"></span>
|
||||
</p>
|
||||
<?php
|
||||
if ( 'category' === $taxonomy ) {
|
||||
if ( 'category' == $taxonomy ) {
|
||||
/**
|
||||
* Fires at the end of the Edit Category form.
|
||||
*
|
||||
* @since 2.1.0
|
||||
* @deprecated 3.0.0 Use {@see '{$taxonomy}_add_form'} instead.
|
||||
* @deprecated 3.0.0 Use {$taxonomy}_add_form instead.
|
||||
*
|
||||
* @param object $arg Optional arguments cast to an object.
|
||||
*/
|
||||
do_action_deprecated( 'edit_category_form', array( (object) array( 'parent' => 0 ) ), '3.0.0', '{$taxonomy}_add_form' );
|
||||
} elseif ( 'link_category' === $taxonomy ) {
|
||||
do_action( 'edit_category_form', (object) array( 'parent' => 0 ) );
|
||||
} elseif ( 'link_category' == $taxonomy ) {
|
||||
/**
|
||||
* Fires at the end of the Edit Link form.
|
||||
*
|
||||
* @since 2.3.0
|
||||
* @deprecated 3.0.0 Use {@see '{$taxonomy}_add_form'} instead.
|
||||
* @deprecated 3.0.0 Use {$taxonomy}_add_form instead.
|
||||
*
|
||||
* @param object $arg Optional arguments cast to an object.
|
||||
*/
|
||||
do_action_deprecated( 'edit_link_category_form', array( (object) array( 'parent' => 0 ) ), '3.0.0', '{$taxonomy}_add_form' );
|
||||
do_action( 'edit_link_category_form', (object) array( 'parent' => 0 ) );
|
||||
} else {
|
||||
/**
|
||||
* Fires at the end of the Add Tag form.
|
||||
*
|
||||
* @since 2.7.0
|
||||
* @deprecated 3.0.0 Use {@see '{$taxonomy}_add_form'} instead.
|
||||
* @deprecated 3.0.0 Use {$taxonomy}_add_form instead.
|
||||
*
|
||||
* @param string $taxonomy The taxonomy slug.
|
||||
*/
|
||||
do_action_deprecated( 'add_tag_form', array( $taxonomy ), '3.0.0', '{$taxonomy}_add_form' );
|
||||
do_action( 'add_tag_form', $taxonomy );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -589,7 +586,7 @@ if ( $can_edit_terms ) {
|
||||
|
||||
</form>
|
||||
|
||||
<?php if ( 'category' === $taxonomy ) : ?>
|
||||
<?php if ( 'category' == $taxonomy ) : ?>
|
||||
<div class="form-wrap edit-term-notes">
|
||||
<p>
|
||||
<?php
|
||||
@@ -613,7 +610,7 @@ if ( $can_edit_terms ) {
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
</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">
|
||||
<p>
|
||||
<?php
|
||||
@@ -658,4 +655,4 @@ endif;
|
||||
|
||||
$wp_list_table->inline_edit();
|
||||
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
/** WordPress Administration Bootstrap */
|
||||
require_once __DIR__ . '/admin.php';
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
|
||||
if ( ! $typenow ) {
|
||||
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' );
|
||||
$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 ) {
|
||||
if ( ! empty( $_REQUEST[ $_redirect ] ) ) {
|
||||
wp_redirect( admin_url( 'edit-comments.php?p=' . absint( $_REQUEST[ $_redirect ] ) ) );
|
||||
@@ -81,7 +81,7 @@ if ( $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'] );
|
||||
// Validate the post status exists.
|
||||
if ( get_post_status_object( $post_status ) ) {
|
||||
@@ -182,24 +182,8 @@ if ( $doaction ) {
|
||||
}
|
||||
break;
|
||||
default:
|
||||
$screen = get_current_screen()->id;
|
||||
|
||||
/**
|
||||
* 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
|
||||
/** This action is documented in wp-admin/edit-comments.php */
|
||||
$sendback = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $sendback, $doaction, $post_ids ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -256,7 +240,7 @@ if ( 'post' === $post_type ) {
|
||||
'<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>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’s status.' ) . '</li>' .
|
||||
'</ul>',
|
||||
)
|
||||
@@ -266,7 +250,7 @@ if ( 'post' === $post_type ) {
|
||||
'id' => 'bulk-actions',
|
||||
'title' => __( 'Bulk Actions' ),
|
||||
'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>',
|
||||
)
|
||||
);
|
||||
@@ -383,7 +367,7 @@ $bulk_messages['wp_block'] = array(
|
||||
$bulk_messages = apply_filters( 'bulk_post_updated_messages', $bulk_messages, $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">
|
||||
<h1 class="wp-heading-inline">
|
||||
@@ -461,4 +445,4 @@ if ( $wp_list_table->has_items() ) {
|
||||
</div>
|
||||
|
||||
<?php
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
/** WordPress Administration Bootstrap */
|
||||
require_once __DIR__ . '/admin.php';
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
|
||||
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.' ) );
|
||||
@@ -47,7 +47,7 @@ $requests_table->screen->set_screen_reader_content(
|
||||
$requests_table->process_bulk_action();
|
||||
$requests_table->prepare_items();
|
||||
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
?>
|
||||
|
||||
<div class="wrap nosubsub">
|
||||
@@ -89,4 +89,4 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
</div>
|
||||
|
||||
<?php
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
/** WordPress Administration Bootstrap */
|
||||
require_once __DIR__ . '/admin.php';
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
|
||||
if ( ! current_user_can( 'export_others_personal_data' ) ) {
|
||||
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->prepare_items();
|
||||
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
?>
|
||||
|
||||
<div class="wrap nosubsub">
|
||||
@@ -89,4 +89,4 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
</div>
|
||||
|
||||
<?php
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
*/
|
||||
|
||||
/** Load WordPress Bootstrap */
|
||||
require_once __DIR__ . '/admin.php';
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
|
||||
if ( ! current_user_can( 'export' ) ) {
|
||||
wp_die( __( 'Sorry, you are not allowed to export the content of this site.' ) );
|
||||
}
|
||||
|
||||
/** Load WordPress export API */
|
||||
require_once ABSPATH . 'wp-admin/includes/export.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/export.php' );
|
||||
$title = __( 'Export' );
|
||||
|
||||
/**
|
||||
@@ -122,7 +122,7 @@ if ( isset( $_GET['download'] ) ) {
|
||||
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.
|
||||
@@ -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 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 _ex( 'Posts', 'post type general name' ); ?></label></p>
|
||||
<p><label><input type="radio" name="content" value="posts" /> <?php _e( 'Posts' ); ?></label></p>
|
||||
<ul id="post-filters" class="export-filters">
|
||||
<li>
|
||||
<label><span class="label-responsive"><?php _e( 'Categories:' ); ?></span>
|
||||
@@ -321,4 +321,4 @@ do_action( 'export_filters' );
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>
|
||||
<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
/** WordPress Administration Bootstrap */
|
||||
require_once __DIR__ . '/admin.php';
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
|
||||
// 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'] ) ) {
|
||||
@@ -19,21 +19,29 @@ $title = __( 'Freedoms' );
|
||||
|
||||
list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
|
||||
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
?>
|
||||
<div class="wrap about__container">
|
||||
|
||||
<div class="about__header">
|
||||
<div class="about__header-title">
|
||||
<p>
|
||||
<?php _e( 'WordPress' ); ?>
|
||||
<h1>
|
||||
<span><?php echo $display_version; ?></span>
|
||||
</p>
|
||||
<?php _e( 'WordPress' ); ?>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
<div class="about__header-badge"></div>
|
||||
|
||||
<div class="about__header-text">
|
||||
<p>
|
||||
<?php _e( 'Building more with blocks, faster and easier.' ); ?>
|
||||
<?php
|
||||
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>
|
||||
</div>
|
||||
|
||||
@@ -46,7 +54,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
</div>
|
||||
|
||||
<div class="about__section has-subtle-background-color is-feature">
|
||||
<h1><?php _e( 'Freedoms' ); ?></h1>
|
||||
<h2><?php _e( 'Freedoms' ); ?></h2>
|
||||
|
||||
<p class="about-description">
|
||||
<?php
|
||||
@@ -64,28 +72,26 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
<div class="about__section has-4-columns">
|
||||
<div class="column">
|
||||
<div class="freedoms-image"></div>
|
||||
<h2 class="is-smaller-heading"><?php _e( 'The 1st Freedom' ); ?></h2>
|
||||
<h3><?php _e( 'The 1st Freedom' ); ?></h3>
|
||||
<p><?php _e( 'To run the program for any purpose.' ); ?></p>
|
||||
</div>
|
||||
<div class="column">
|
||||
<div class="freedoms-image"></div>
|
||||
<h2 class="is-smaller-heading"><?php _e( 'The 2nd Freedom' ); ?></h2>
|
||||
<h3><?php _e( 'The 2nd Freedom' ); ?></h3>
|
||||
<p><?php _e( 'To study how the program works and change it to make it do what you wish.' ); ?></p>
|
||||
</div>
|
||||
<div class="column">
|
||||
<div class="freedoms-image"></div>
|
||||
<h2 class="is-smaller-heading"><?php _e( 'The 3rd Freedom' ); ?></h2>
|
||||
<h3><?php _e( 'The 3rd Freedom' ); ?></h3>
|
||||
<p><?php _e( 'To redistribute.' ); ?></p>
|
||||
</div>
|
||||
<div class="column">
|
||||
<div class="freedoms-image"></div>
|
||||
<h2 class="is-smaller-heading"><?php _e( 'The 4th Freedom' ); ?></h2>
|
||||
<h3><?php _e( 'The 4th Freedom' ); ?></h3>
|
||||
<p><?php _e( 'To distribute copies of your modified versions to others.' ); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="about__section">
|
||||
<div class="column">
|
||||
<p>
|
||||
@@ -117,4 +123,4 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>
|
||||
<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
define( 'WP_LOAD_IMPORTERS', true );
|
||||
|
||||
/** Load WordPress Bootstrap */
|
||||
require_once __DIR__ . '/admin.php';
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
|
||||
if ( ! current_user_can( 'import' ) ) {
|
||||
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();
|
||||
}
|
||||
|
||||
// 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'] ] ) ) {
|
||||
$importer_id = $popular_importers[ $_GET['invalid'] ]['importer-id'];
|
||||
if ( $importer_id != $_GET['invalid'] ) { // Prevent redirect loops.
|
||||
@@ -53,7 +53,7 @@ add_thickbox();
|
||||
wp_enqueue_script( 'plugin-install' );
|
||||
wp_enqueue_script( 'updates' );
|
||||
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
$parent_file = 'tools.php';
|
||||
?>
|
||||
|
||||
@@ -61,7 +61,7 @@ $parent_file = 'tools.php';
|
||||
<h1><?php echo esc_html( $title ); ?></h1>
|
||||
<?php if ( ! empty( $_GET['invalid'] ) ) : ?>
|
||||
<div class="error">
|
||||
<p><strong><?php _e( 'Error:' ); ?></strong>
|
||||
<p><strong><?php _e( 'ERROR:' ); ?></strong>
|
||||
<?php
|
||||
/* translators: %s: Importer slug. */
|
||||
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 ) ) {
|
||||
echo '<p>' . __( 'No importers are available.' ) . '</p>'; // TODO: Make more helpful.
|
||||
echo '<p>' . __( 'No importers are available.' ) . '</p>'; // TODO: make more helpful
|
||||
} else {
|
||||
uasort( $importers, '_usort_by_first_member' );
|
||||
?>
|
||||
@@ -161,7 +161,7 @@ if ( empty( $importers ) ) {
|
||||
);
|
||||
} else {
|
||||
$action = sprintf(
|
||||
/* translators: %s: URL to Import screen on the main site. */
|
||||
/* translators: URL to Import screen on the main site. */
|
||||
__( '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' )
|
||||
);
|
||||
@@ -237,4 +237,4 @@ if ( current_user_can( 'install_plugins' ) ) {
|
||||
wp_print_request_filesystem_credentials_modal();
|
||||
wp_print_admin_notice_templates();
|
||||
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
|
||||
@@ -128,7 +128,7 @@ add_action( 'upgrader_process_complete', 'wp_version_check', 10, 0 );
|
||||
add_action( 'upgrader_process_complete', 'wp_update_plugins', 10, 0 );
|
||||
add_action( 'upgrader_process_complete', 'wp_update_themes', 10, 0 );
|
||||
|
||||
// Privacy hooks.
|
||||
// Privacy hooks
|
||||
add_filter( 'wp_privacy_personal_data_erasure_page', 'wp_privacy_process_personal_data_erasure_page', 10, 5 );
|
||||
add_filter( 'wp_privacy_personal_data_export_page', 'wp_privacy_process_personal_data_export_page', 10, 7 );
|
||||
add_action( 'wp_privacy_personal_data_export_file', 'wp_privacy_generate_personal_data_export_file', 10 );
|
||||
|
||||
@@ -17,83 +17,83 @@ if ( ! defined( 'WP_ADMIN' ) ) {
|
||||
}
|
||||
|
||||
/** WordPress Administration Hooks */
|
||||
require_once ABSPATH . 'wp-admin/includes/admin-filters.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/admin-filters.php' );
|
||||
|
||||
/** WordPress Bookmark Administration API */
|
||||
require_once ABSPATH . 'wp-admin/includes/bookmark.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/bookmark.php' );
|
||||
|
||||
/** WordPress Comment Administration API */
|
||||
require_once ABSPATH . 'wp-admin/includes/comment.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/comment.php' );
|
||||
|
||||
/** WordPress Administration File API */
|
||||
require_once ABSPATH . 'wp-admin/includes/file.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/file.php' );
|
||||
|
||||
/** WordPress Image Administration API */
|
||||
require_once ABSPATH . 'wp-admin/includes/image.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/image.php' );
|
||||
|
||||
/** WordPress Media Administration API */
|
||||
require_once ABSPATH . 'wp-admin/includes/media.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/media.php' );
|
||||
|
||||
/** WordPress Import Administration API */
|
||||
require_once ABSPATH . 'wp-admin/includes/import.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/import.php' );
|
||||
|
||||
/** WordPress Misc Administration API */
|
||||
require_once ABSPATH . 'wp-admin/includes/misc.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/misc.php' );
|
||||
|
||||
/** WordPress Misc Administration API */
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php' );
|
||||
|
||||
/** WordPress Options Administration API */
|
||||
require_once ABSPATH . 'wp-admin/includes/options.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/options.php' );
|
||||
|
||||
/** WordPress Plugin Administration API */
|
||||
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
||||
|
||||
/** WordPress Post Administration API */
|
||||
require_once ABSPATH . 'wp-admin/includes/post.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/post.php' );
|
||||
|
||||
/** WordPress Administration Screen API */
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-screen.php';
|
||||
require_once ABSPATH . 'wp-admin/includes/screen.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-screen.php' );
|
||||
require_once( ABSPATH . 'wp-admin/includes/screen.php' );
|
||||
|
||||
/** WordPress Taxonomy Administration API */
|
||||
require_once ABSPATH . 'wp-admin/includes/taxonomy.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/taxonomy.php' );
|
||||
|
||||
/** WordPress Template Administration API */
|
||||
require_once ABSPATH . 'wp-admin/includes/template.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/template.php' );
|
||||
|
||||
/** WordPress List Table Administration API and base class */
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php';
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-list-table-compat.php';
|
||||
require_once ABSPATH . 'wp-admin/includes/list-table.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table-compat.php' );
|
||||
require_once( ABSPATH . 'wp-admin/includes/list-table.php' );
|
||||
|
||||
/** WordPress Theme Administration API */
|
||||
require_once ABSPATH . 'wp-admin/includes/theme.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/theme.php' );
|
||||
|
||||
/** WordPress Privacy Functions */
|
||||
require_once ABSPATH . 'wp-admin/includes/privacy-tools.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/privacy-tools.php' );
|
||||
|
||||
/** WordPress Privacy List Table classes. */
|
||||
// Previously in wp-admin/includes/user.php. Need to be loaded for backward compatibility.
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-requests-table.php';
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-data-export-requests-list-table.php';
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php';
|
||||
// Previously in wp-admin/includes/user.php. Need to be loaded for backwards compatibility.
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-requests-table.php' );
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-data-export-requests-list-table.php' );
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php' );
|
||||
|
||||
/** WordPress User Administration API */
|
||||
require_once ABSPATH . 'wp-admin/includes/user.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/user.php' );
|
||||
|
||||
/** WordPress Site Icon API */
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-site-icon.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-site-icon.php' );
|
||||
|
||||
/** WordPress Update Administration API */
|
||||
require_once ABSPATH . 'wp-admin/includes/update.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/update.php' );
|
||||
|
||||
/** WordPress Deprecated Administration API */
|
||||
require_once ABSPATH . 'wp-admin/includes/deprecated.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/deprecated.php' );
|
||||
|
||||
/** WordPress Multisite support API */
|
||||
if ( is_multisite() ) {
|
||||
require_once ABSPATH . 'wp-admin/includes/ms-admin-filters.php';
|
||||
require_once ABSPATH . 'wp-admin/includes/ms.php';
|
||||
require_once ABSPATH . 'wp-admin/includes/ms-deprecated.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/ms-admin-filters.php' );
|
||||
require_once( ABSPATH . 'wp-admin/includes/ms.php' );
|
||||
require_once( ABSPATH . 'wp-admin/includes/ms-deprecated.php' );
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
function wp_ajax_nopriv_heartbeat() {
|
||||
$response = array();
|
||||
|
||||
// 'screen_id' is the same as $current_screen->id and the JS global 'pagenow'.
|
||||
// screen_id is the same as $current_screen->id and the JS global 'pagenow'.
|
||||
if ( ! empty( $_POST['screen_id'] ) ) {
|
||||
$screen_id = sanitize_key( $_POST['screen_id'] );
|
||||
} else {
|
||||
@@ -149,7 +149,7 @@ function wp_ajax_ajax_tag_search() {
|
||||
* Require $term_search_min_chars chars for matching (default: 2)
|
||||
* ensure it's a non-negative, non-zero integer.
|
||||
*/
|
||||
if ( ( 0 == $term_search_min_chars ) || ( strlen( $s ) < $term_search_min_chars ) ) {
|
||||
if ( ( $term_search_min_chars == 0 ) || ( strlen( $s ) < $term_search_min_chars ) ) {
|
||||
wp_die();
|
||||
}
|
||||
|
||||
@@ -234,7 +234,7 @@ function wp_ajax_imgedit_preview() {
|
||||
|
||||
check_ajax_referer( "image_editor-$post_id" );
|
||||
|
||||
include_once ABSPATH . 'wp-admin/includes/image-edit.php';
|
||||
include_once( ABSPATH . 'wp-admin/includes/image-edit.php' );
|
||||
|
||||
if ( ! stream_preview_image( $post_id ) ) {
|
||||
wp_die( -1 );
|
||||
@@ -272,37 +272,37 @@ function wp_ajax_autocomplete_user() {
|
||||
|
||||
$return = array();
|
||||
|
||||
// Check the type of request.
|
||||
// Current allowed values are `add` and `search`.
|
||||
// Check the type of request
|
||||
// Current allowed values are `add` and `search`
|
||||
if ( isset( $_REQUEST['autocomplete_type'] ) && 'search' === $_REQUEST['autocomplete_type'] ) {
|
||||
$type = $_REQUEST['autocomplete_type'];
|
||||
} else {
|
||||
$type = 'add';
|
||||
}
|
||||
|
||||
// Check the desired field for value.
|
||||
// Current allowed values are `user_email` and `user_login`.
|
||||
// Check the desired field for value
|
||||
// Current allowed values are `user_email` and `user_login`
|
||||
if ( isset( $_REQUEST['autocomplete_field'] ) && 'user_email' === $_REQUEST['autocomplete_field'] ) {
|
||||
$field = $_REQUEST['autocomplete_field'];
|
||||
} else {
|
||||
$field = 'user_login';
|
||||
}
|
||||
|
||||
// Exclude current users of this blog.
|
||||
// Exclude current users of this blog
|
||||
if ( isset( $_REQUEST['site_id'] ) ) {
|
||||
$id = absint( $_REQUEST['site_id'] );
|
||||
} else {
|
||||
$id = get_current_blog_id();
|
||||
}
|
||||
|
||||
$include_blog_users = ( 'search' === $type ? get_users(
|
||||
$include_blog_users = ( $type == 'search' ? get_users(
|
||||
array(
|
||||
'blog_id' => $id,
|
||||
'fields' => 'ID',
|
||||
)
|
||||
) : array() );
|
||||
|
||||
$exclude_blog_users = ( 'add' === $type ? get_users(
|
||||
$exclude_blog_users = ( $type == 'add' ? get_users(
|
||||
array(
|
||||
'blog_id' => $id,
|
||||
'fields' => 'ID',
|
||||
@@ -336,7 +336,7 @@ function wp_ajax_autocomplete_user() {
|
||||
* @since 4.8.0
|
||||
*/
|
||||
function wp_ajax_get_community_events() {
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-community-events.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-community-events.php' );
|
||||
|
||||
check_ajax_referer( 'community_events' );
|
||||
|
||||
@@ -391,7 +391,7 @@ function wp_ajax_dashboard_widgets() {
|
||||
require_once ABSPATH . 'wp-admin/includes/dashboard.php';
|
||||
|
||||
$pagenow = $_GET['pagenow'];
|
||||
if ( 'dashboard-user' === $pagenow || 'dashboard-network' === $pagenow || 'dashboard' === $pagenow ) {
|
||||
if ( $pagenow === 'dashboard-user' || $pagenow === 'dashboard-network' || $pagenow === 'dashboard' ) {
|
||||
set_current_screen( $pagenow );
|
||||
}
|
||||
|
||||
@@ -433,7 +433,7 @@ function _wp_ajax_delete_comment_response( $comment_id, $delta = -1 ) {
|
||||
$page = isset( $_POST['_page'] ) ? (int) $_POST['_page'] : 0;
|
||||
$url = isset( $_POST['_url'] ) ? esc_url_raw( $_POST['_url'] ) : '';
|
||||
|
||||
// JS didn't send us everything we need to know. Just die with success message.
|
||||
// JS didn't send us everything we need to know. Just die with success message
|
||||
if ( ! $total || ! $per_page || ! $page || ! $url ) {
|
||||
$time = time();
|
||||
$comment = get_comment( $comment_id );
|
||||
@@ -482,7 +482,7 @@ function _wp_ajax_delete_comment_response( $comment_id, $delta = -1 ) {
|
||||
$total = 0;
|
||||
}
|
||||
|
||||
// Only do the expensive stuff on a page-break, and about 1 other time per page.
|
||||
// Only do the expensive stuff on a page-break, and about 1 other time per page
|
||||
if ( 0 == $total % $per_page || 1 == mt_rand( 1, $per_page ) ) {
|
||||
$post_id = 0;
|
||||
// What type of comment count are we looking for?
|
||||
@@ -573,7 +573,7 @@ function _wp_ajax_add_hierarchical_term() {
|
||||
$parent = 0;
|
||||
}
|
||||
|
||||
if ( 'category' === $taxonomy->name ) {
|
||||
if ( $taxonomy->name == 'category' ) {
|
||||
$post_category = isset( $_POST['post_category'] ) ? (array) $_POST['post_category'] : array();
|
||||
} else {
|
||||
$post_category = ( isset( $_POST['tax_input'] ) && isset( $_POST['tax_input'][ $taxonomy->name ] ) ) ? (array) $_POST['tax_input'][ $taxonomy->name ] : array();
|
||||
@@ -600,7 +600,7 @@ function _wp_ajax_add_hierarchical_term() {
|
||||
|
||||
$checked_categories[] = $cat_id;
|
||||
|
||||
if ( $parent ) { // Do these all at once in a second.
|
||||
if ( $parent ) { // Do these all at once in a second
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -626,11 +626,11 @@ function _wp_ajax_add_hierarchical_term() {
|
||||
);
|
||||
}
|
||||
|
||||
if ( $parent ) { // Foncy - replace the parent and all its children.
|
||||
if ( $parent ) { // Foncy - replace the parent and all its children
|
||||
$parent = get_term( $parent, $taxonomy->name );
|
||||
$term_id = $parent->term_id;
|
||||
|
||||
while ( $parent->parent ) { // Get the top parent.
|
||||
while ( $parent->parent ) { // get the top parent
|
||||
$parent = get_term( $parent->parent, $taxonomy->name );
|
||||
if ( is_wp_error( $parent ) ) {
|
||||
break;
|
||||
@@ -716,8 +716,7 @@ function wp_ajax_delete_comment() {
|
||||
|
||||
$r = wp_untrash_comment( $comment );
|
||||
|
||||
// Undo trash, not in Trash.
|
||||
if ( ! isset( $_POST['comment_status'] ) || 'trash' !== $_POST['comment_status'] ) {
|
||||
if ( ! isset( $_POST['comment_status'] ) || $_POST['comment_status'] != 'trash' ) { // undo trash, not in trash
|
||||
$delta = 1;
|
||||
}
|
||||
} elseif ( isset( $_POST['spam'] ) && 1 == $_POST['spam'] ) {
|
||||
@@ -733,8 +732,7 @@ function wp_ajax_delete_comment() {
|
||||
|
||||
$r = wp_unspam_comment( $comment );
|
||||
|
||||
// Undo spam, not in spam.
|
||||
if ( ! isset( $_POST['comment_status'] ) || 'spam' !== $_POST['comment_status'] ) {
|
||||
if ( ! isset( $_POST['comment_status'] ) || $_POST['comment_status'] != 'spam' ) { // undo spam, not in spam
|
||||
$delta = 1;
|
||||
}
|
||||
} elseif ( isset( $_POST['delete'] ) && 1 == $_POST['delete'] ) {
|
||||
@@ -743,8 +741,7 @@ function wp_ajax_delete_comment() {
|
||||
wp_die( -1 );
|
||||
}
|
||||
|
||||
if ( $r ) {
|
||||
// Decide if we need to send back '1' or a more complicated response including page links and comment counts.
|
||||
if ( $r ) { // Decide if we need to send back '1' or a more complicated response including page links and comment counts
|
||||
_wp_ajax_delete_comment_response( $comment->comment_ID, $delta );
|
||||
}
|
||||
|
||||
@@ -861,7 +858,7 @@ function wp_ajax_delete_post( $action ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Ajax handler for sending a post to the Trash.
|
||||
* Ajax handler for sending a post to the trash.
|
||||
*
|
||||
* @since 3.1.0
|
||||
*
|
||||
@@ -897,7 +894,7 @@ function wp_ajax_trash_post( $action ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Ajax handler to restore a post from the Trash.
|
||||
* Ajax handler to restore a post from the trash.
|
||||
*
|
||||
* @since 3.1.0
|
||||
*
|
||||
@@ -992,7 +989,7 @@ function wp_ajax_dim_comment() {
|
||||
$x->send();
|
||||
}
|
||||
|
||||
// Decide if we need to send back '1' or a more complicated response including page links and comment counts.
|
||||
// Decide if we need to send back '1' or a more complicated response including page links and comment counts
|
||||
_wp_ajax_delete_comment_response( $comment->comment_ID );
|
||||
wp_die( 0 );
|
||||
}
|
||||
@@ -1164,7 +1161,7 @@ function wp_ajax_get_tagcloud() {
|
||||
$tags[ $key ]->id = $tag->term_id;
|
||||
}
|
||||
|
||||
// We need raw tag names here, so don't filter the output.
|
||||
// We need raw tag names here, so don't filter the output
|
||||
$return = wp_generate_tag_cloud(
|
||||
$tags,
|
||||
array(
|
||||
@@ -1272,7 +1269,7 @@ function wp_ajax_replyto_comment( $action ) {
|
||||
if ( empty( $post->post_status ) ) {
|
||||
wp_die( 1 );
|
||||
} elseif ( in_array( $post->post_status, array( 'draft', 'pending', 'trash' ) ) ) {
|
||||
wp_die( __( 'Error: You are replying to a comment on a draft post.' ) );
|
||||
wp_die( __( 'ERROR: you are replying to a comment on a draft post.' ) );
|
||||
}
|
||||
|
||||
$user = wp_get_current_user();
|
||||
@@ -1291,8 +1288,8 @@ function wp_ajax_replyto_comment( $action ) {
|
||||
}
|
||||
|
||||
if ( wp_create_nonce( 'unfiltered-html-comment' ) != $_POST['_wp_unfiltered_html_comment'] ) {
|
||||
kses_remove_filters(); // Start with a clean slate.
|
||||
kses_init_filters(); // Set up the filters.
|
||||
kses_remove_filters(); // start with a clean slate
|
||||
kses_init_filters(); // set up the filters
|
||||
remove_filter( 'pre_comment_content', 'wp_filter_post_kses' );
|
||||
add_filter( 'pre_comment_content', 'wp_filter_kses' );
|
||||
}
|
||||
@@ -1302,7 +1299,7 @@ function wp_ajax_replyto_comment( $action ) {
|
||||
}
|
||||
|
||||
if ( '' == $comment_content ) {
|
||||
wp_die( __( 'Error: Please type a comment.' ) );
|
||||
wp_die( __( 'ERROR: please type a comment.' ) );
|
||||
}
|
||||
|
||||
$comment_parent = 0;
|
||||
@@ -1318,7 +1315,7 @@ function wp_ajax_replyto_comment( $action ) {
|
||||
if ( ! empty( $_POST['approve_parent'] ) ) {
|
||||
$parent = get_comment( $comment_parent );
|
||||
|
||||
if ( $parent && '0' === $parent->comment_approved && $parent->comment_post_ID == $comment_post_ID ) {
|
||||
if ( $parent && $parent->comment_approved === '0' && $parent->comment_post_ID == $comment_post_ID ) {
|
||||
if ( ! current_user_can( 'edit_comment', $parent->comment_ID ) ) {
|
||||
wp_die( -1 );
|
||||
}
|
||||
@@ -1345,7 +1342,7 @@ function wp_ajax_replyto_comment( $action ) {
|
||||
|
||||
ob_start();
|
||||
if ( isset( $_REQUEST['mode'] ) && 'dashboard' == $_REQUEST['mode'] ) {
|
||||
require_once ABSPATH . 'wp-admin/includes/dashboard.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/dashboard.php' );
|
||||
_wp_dashboard_recent_comments_row( $comment );
|
||||
} else {
|
||||
if ( isset( $_REQUEST['mode'] ) && 'single' == $_REQUEST['mode'] ) {
|
||||
@@ -1404,7 +1401,7 @@ function wp_ajax_edit_comment() {
|
||||
}
|
||||
|
||||
if ( '' == $_POST['content'] ) {
|
||||
wp_die( __( 'Error: Please type a comment.' ) );
|
||||
wp_die( __( 'ERROR: please type a comment.' ) );
|
||||
}
|
||||
|
||||
if ( isset( $_POST['status'] ) ) {
|
||||
@@ -1481,7 +1478,7 @@ function wp_ajax_add_menu_item() {
|
||||
$_menu_items = array_map( 'wp_setup_nav_menu_item', array( $_object ) );
|
||||
$_menu_item = reset( $_menu_items );
|
||||
|
||||
// Restore the missing menu item properties.
|
||||
// Restore the missing menu item properties
|
||||
$menu_item_data['menu-item-description'] = $_menu_item->description;
|
||||
}
|
||||
|
||||
@@ -1501,7 +1498,7 @@ function wp_ajax_add_menu_item() {
|
||||
if ( ! empty( $menu_obj->ID ) ) {
|
||||
$menu_obj = wp_setup_nav_menu_item( $menu_obj );
|
||||
$menu_obj->title = empty( $menu_obj->title ) ? __( 'Menu Item' ) : $menu_obj->title;
|
||||
$menu_obj->label = $menu_obj->title; // Don't show "(pending)" in ajax-added items.
|
||||
$menu_obj->label = $menu_obj->title; // don't show "(pending)" in ajax-added items
|
||||
$menu_items[] = $menu_obj;
|
||||
}
|
||||
}
|
||||
@@ -1549,9 +1546,9 @@ function wp_ajax_add_meta() {
|
||||
}
|
||||
|
||||
// If the post is an autodraft, save the post as a draft and then attempt to save the meta.
|
||||
if ( 'auto-draft' === $post->post_status ) {
|
||||
if ( $post->post_status == 'auto-draft' ) {
|
||||
$post_data = array();
|
||||
$post_data['action'] = 'draft'; // Warning fix.
|
||||
$post_data['action'] = 'draft'; // Warning fix
|
||||
$post_data['post_ID'] = $pid;
|
||||
$post_data['post_type'] = $post->post_type;
|
||||
$post_data['post_status'] = 'draft';
|
||||
@@ -1611,7 +1608,7 @@ function wp_ajax_add_meta() {
|
||||
$meta = get_metadata_by_mid( 'post', $mid );
|
||||
|
||||
if ( ! $meta ) {
|
||||
wp_die( 0 ); // If meta doesn't exist.
|
||||
wp_die( 0 ); // if meta doesn't exist
|
||||
}
|
||||
|
||||
if (
|
||||
@@ -1720,7 +1717,7 @@ function wp_ajax_closed_postboxes() {
|
||||
|
||||
$page = isset( $_POST['page'] ) ? $_POST['page'] : '';
|
||||
|
||||
if ( sanitize_key( $page ) != $page ) {
|
||||
if ( $page != sanitize_key( $page ) ) {
|
||||
wp_die( 0 );
|
||||
}
|
||||
|
||||
@@ -1734,8 +1731,7 @@ function wp_ajax_closed_postboxes() {
|
||||
}
|
||||
|
||||
if ( is_array( $hidden ) ) {
|
||||
// Postboxes that are always shown.
|
||||
$hidden = array_diff( $hidden, array( 'submitdiv', 'linksubmitdiv', 'manage-menu', 'create-menu' ) );
|
||||
$hidden = array_diff( $hidden, array( 'submitdiv', 'linksubmitdiv', 'manage-menu', 'create-menu' ) ); // postboxes that are always shown
|
||||
update_user_option( $user->ID, "metaboxhidden_$page", $hidden, true );
|
||||
}
|
||||
|
||||
@@ -1751,7 +1747,7 @@ function wp_ajax_hidden_columns() {
|
||||
check_ajax_referer( 'screen-options-nonce', 'screenoptionnonce' );
|
||||
$page = isset( $_POST['page'] ) ? $_POST['page'] : '';
|
||||
|
||||
if ( sanitize_key( $page ) != $page ) {
|
||||
if ( $page != sanitize_key( $page ) ) {
|
||||
wp_die( 0 );
|
||||
}
|
||||
|
||||
@@ -1855,7 +1851,7 @@ function wp_ajax_wp_link_ajax() {
|
||||
$args['pagenum'] = ! empty( $_POST['page'] ) ? absint( $_POST['page'] ) : 1;
|
||||
|
||||
if ( ! class_exists( '_WP_Editors', false ) ) {
|
||||
require ABSPATH . WPINC . '/class-wp-editor.php';
|
||||
require( ABSPATH . WPINC . '/class-wp-editor.php' );
|
||||
}
|
||||
|
||||
$results = _WP_Editors::wp_link_query( $args );
|
||||
@@ -1900,13 +1896,13 @@ function wp_ajax_meta_box_order() {
|
||||
$order = isset( $_POST['order'] ) ? (array) $_POST['order'] : false;
|
||||
$page_columns = isset( $_POST['page_columns'] ) ? $_POST['page_columns'] : 'auto';
|
||||
|
||||
if ( 'auto' !== $page_columns ) {
|
||||
if ( $page_columns != 'auto' ) {
|
||||
$page_columns = (int) $page_columns;
|
||||
}
|
||||
|
||||
$page = isset( $_POST['page'] ) ? $_POST['page'] : '';
|
||||
|
||||
if ( sanitize_key( $page ) != $page ) {
|
||||
if ( $page != sanitize_key( $page ) ) {
|
||||
wp_die( 0 );
|
||||
}
|
||||
|
||||
@@ -2003,7 +1999,7 @@ function wp_ajax_inline_save() {
|
||||
/* translators: %s: User's display name. */
|
||||
$msg_template = __( 'Saving is disabled: %s is currently editing this post.' );
|
||||
|
||||
if ( 'page' === $_POST['post_type'] ) {
|
||||
if ( $_POST['post_type'] == 'page' ) {
|
||||
/* translators: %s: User's display name. */
|
||||
$msg_template = __( 'Saving is disabled: %s is currently editing this page.' );
|
||||
}
|
||||
@@ -2067,7 +2063,7 @@ function wp_ajax_inline_save() {
|
||||
|
||||
$wp_list_table = _get_list_table( 'WP_Posts_List_Table', array( 'screen' => $_POST['screen'] ) );
|
||||
|
||||
$mode = 'excerpt' === $_POST['post_view'] ? 'excerpt' : 'list';
|
||||
$mode = $_POST['post_view'] === 'excerpt' ? 'excerpt' : 'list';
|
||||
|
||||
$level = 0;
|
||||
if ( is_post_type_hierarchical( $wp_list_table->screen->post_type ) ) {
|
||||
@@ -2201,7 +2197,7 @@ function wp_ajax_find_posts() {
|
||||
if ( '0000-00-00 00:00:00' == $post->post_date ) {
|
||||
$time = '';
|
||||
} else {
|
||||
/* translators: Date format in table columns, see https://www.php.net/date */
|
||||
/* translators: Date format in table columns, see https://secure.php.net/date */
|
||||
$time = mysql2date( __( 'Y/m/d' ), $post->post_date );
|
||||
}
|
||||
|
||||
@@ -2597,7 +2593,7 @@ function wp_ajax_image_editor() {
|
||||
}
|
||||
|
||||
check_ajax_referer( "image_editor-$attachment_id" );
|
||||
include_once ABSPATH . 'wp-admin/includes/image-edit.php';
|
||||
include_once( ABSPATH . 'wp-admin/includes/image-edit.php' );
|
||||
|
||||
$msg = false;
|
||||
switch ( $_POST['do'] ) {
|
||||
@@ -2624,7 +2620,7 @@ function wp_ajax_image_editor() {
|
||||
* @since 3.1.0
|
||||
*/
|
||||
function wp_ajax_set_post_thumbnail() {
|
||||
$json = ! empty( $_REQUEST['json'] ); // New-style request.
|
||||
$json = ! empty( $_REQUEST['json'] ); // New-style request
|
||||
|
||||
$post_ID = intval( $_POST['post_id'] );
|
||||
if ( ! current_user_can( 'edit_post', $post_ID ) ) {
|
||||
@@ -2639,7 +2635,7 @@ function wp_ajax_set_post_thumbnail() {
|
||||
check_ajax_referer( "set_post_thumbnail-$post_ID" );
|
||||
}
|
||||
|
||||
if ( '-1' == $thumbnail_id ) {
|
||||
if ( $thumbnail_id == '-1' ) {
|
||||
if ( delete_post_thumbnail( $post_ID ) ) {
|
||||
$return = _wp_post_thumbnail_html( null, $post_ID );
|
||||
$json ? wp_send_json_success( $return ) : wp_die( $return );
|
||||
@@ -2819,7 +2815,7 @@ function wp_ajax_wp_remove_post_lock() {
|
||||
|
||||
$active_lock = array_map( 'absint', explode( ':', $_POST['active_post_lock'] ) );
|
||||
|
||||
if ( get_current_user_id() != $active_lock[1] ) {
|
||||
if ( $active_lock[1] != get_current_user_id() ) {
|
||||
wp_die( 0 );
|
||||
}
|
||||
|
||||
@@ -2844,7 +2840,7 @@ function wp_ajax_wp_remove_post_lock() {
|
||||
function wp_ajax_dismiss_wp_pointer() {
|
||||
$pointer = $_POST['pointer'];
|
||||
|
||||
if ( sanitize_key( $pointer ) != $pointer ) {
|
||||
if ( $pointer != sanitize_key( $pointer ) ) {
|
||||
wp_die( 0 );
|
||||
}
|
||||
|
||||
@@ -3022,7 +3018,7 @@ function wp_ajax_save_attachment() {
|
||||
|
||||
if ( isset( $changes['alt'] ) ) {
|
||||
$alt = wp_unslash( $changes['alt'] );
|
||||
if ( get_post_meta( $id, '_wp_attachment_image_alt', true ) !== $alt ) {
|
||||
if ( $alt != get_post_meta( $id, '_wp_attachment_image_alt', true ) ) {
|
||||
$alt = wp_strip_all_tags( $alt, true );
|
||||
update_post_meta( $id, '_wp_attachment_image_alt', wp_slash( $alt ) );
|
||||
}
|
||||
@@ -3230,7 +3226,7 @@ function wp_ajax_send_attachment_to_editor() {
|
||||
$html = stripslashes_deep( $_POST['html'] );
|
||||
} else {
|
||||
$html = isset( $attachment['post_title'] ) ? $attachment['post_title'] : '';
|
||||
$rel = $rel ? ' rel="attachment wp-att-' . $id . '"' : ''; // Hard-coded string, $id is already sanitized.
|
||||
$rel = $rel ? ' rel="attachment wp-att-' . $id . '"' : ''; // Hard-coded string, $id is already sanitized
|
||||
|
||||
if ( ! empty( $url ) ) {
|
||||
$html = '<a href="' . esc_url( $url ) . '"' . $rel . '>' . $html . '</a>';
|
||||
@@ -3291,7 +3287,7 @@ function wp_ajax_send_link_to_editor() {
|
||||
$fallback = $wp_embed->maybe_make_link( $src );
|
||||
|
||||
if ( $check_embed !== $fallback ) {
|
||||
// TinyMCE view for [embed] will parse this.
|
||||
// TinyMCE view for [embed] will parse this
|
||||
$html = '[embed]' . $src . '[/embed]';
|
||||
} elseif ( $link_text ) {
|
||||
$html = '<a href="' . esc_url( $src ) . '">' . $link_text . '</a>';
|
||||
@@ -3331,7 +3327,7 @@ function wp_ajax_heartbeat() {
|
||||
$data = array();
|
||||
$nonce_state = wp_verify_nonce( $_POST['_nonce'], 'heartbeat-nonce' );
|
||||
|
||||
// 'screen_id' is the same as $current_screen->id and the JS global 'pagenow'.
|
||||
// screen_id is the same as $current_screen->id and the JS global 'pagenow'.
|
||||
if ( ! empty( $_POST['screen_id'] ) ) {
|
||||
$screen_id = sanitize_key( $_POST['screen_id'] );
|
||||
} else {
|
||||
@@ -3396,7 +3392,7 @@ function wp_ajax_heartbeat() {
|
||||
*/
|
||||
do_action( 'heartbeat_tick', $response, $screen_id );
|
||||
|
||||
// Send the current time according to the server.
|
||||
// Send the current time according to the server
|
||||
$response['server_time'] = time();
|
||||
|
||||
wp_send_json( $response );
|
||||
@@ -3739,7 +3735,7 @@ function wp_ajax_parse_media_shortcode() {
|
||||
$post = get_post( (int) $_POST['post_ID'] );
|
||||
}
|
||||
|
||||
// The embed shortcode requires a post.
|
||||
// the embed shortcode requires a post
|
||||
if ( ! $post || ! current_user_can( 'edit_post', $post->ID ) ) {
|
||||
if ( 'embed' === $shortcode ) {
|
||||
wp_send_json_error();
|
||||
@@ -3816,7 +3812,7 @@ function wp_ajax_destroy_sessions() {
|
||||
|
||||
$sessions = WP_Session_Tokens::get_instance( $user->ID );
|
||||
|
||||
if ( get_current_user_id() === $user->ID ) {
|
||||
if ( $user->ID === get_current_user_id() ) {
|
||||
$sessions->destroy_others( wp_get_session_token() );
|
||||
$message = __( 'You are now logged out everywhere else.' );
|
||||
} else {
|
||||
@@ -4004,8 +4000,8 @@ function wp_ajax_install_theme() {
|
||||
wp_send_json_error( $status );
|
||||
}
|
||||
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
||||
include_once ABSPATH . 'wp-admin/includes/theme.php';
|
||||
include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
|
||||
include_once( ABSPATH . 'wp-admin/includes/theme.php' );
|
||||
|
||||
$api = themes_api(
|
||||
'theme_information',
|
||||
@@ -4133,7 +4129,7 @@ function wp_ajax_update_theme() {
|
||||
$status['oldVersion'] = $theme->get( 'Version' );
|
||||
}
|
||||
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
||||
include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
|
||||
|
||||
$current = get_site_transient( 'update_themes' );
|
||||
if ( empty( $current ) ) {
|
||||
@@ -4247,7 +4243,7 @@ function wp_ajax_delete_theme() {
|
||||
wp_send_json_error( $status );
|
||||
}
|
||||
|
||||
include_once ABSPATH . 'wp-admin/includes/theme.php';
|
||||
include_once( ABSPATH . 'wp-admin/includes/theme.php' );
|
||||
|
||||
$result = delete_theme( $stylesheet );
|
||||
|
||||
@@ -4294,8 +4290,8 @@ function wp_ajax_install_plugin() {
|
||||
wp_send_json_error( $status );
|
||||
}
|
||||
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
||||
include_once ABSPATH . 'wp-admin/includes/plugin-install.php';
|
||||
include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
|
||||
include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' );
|
||||
|
||||
$api = plugins_api(
|
||||
'plugin_information',
|
||||
@@ -4416,7 +4412,7 @@ function wp_ajax_update_plugin() {
|
||||
$status['oldVersion'] = sprintf( __( 'Version %s' ), $plugin_data['Version'] );
|
||||
}
|
||||
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
||||
include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
|
||||
|
||||
wp_update_plugins();
|
||||
|
||||
@@ -4710,8 +4706,8 @@ function wp_ajax_wp_privacy_export_personal_data() {
|
||||
|
||||
check_ajax_referer( 'wp-privacy-export-personal-data-' . $request_id, 'security' );
|
||||
|
||||
// Get the request.
|
||||
$request = wp_get_user_request( $request_id );
|
||||
// Get the request data.
|
||||
$request = wp_get_user_request_data( $request_id );
|
||||
|
||||
if ( ! $request || 'export_personal_data' !== $request->action_name ) {
|
||||
wp_send_json_error( __( 'Invalid request type.' ) );
|
||||
@@ -4901,8 +4897,8 @@ function wp_ajax_wp_privacy_erase_personal_data() {
|
||||
|
||||
check_ajax_referer( 'wp-privacy-erase-personal-data-' . $request_id, 'security' );
|
||||
|
||||
// Get the request.
|
||||
$request = wp_get_user_request( $request_id );
|
||||
// Get the request data.
|
||||
$request = wp_get_user_request_data( $request_id );
|
||||
|
||||
if ( ! $request || 'remove_personal_data' !== $request->action_name ) {
|
||||
wp_send_json_error( __( 'Invalid request type.' ) );
|
||||
@@ -5119,10 +5115,10 @@ function wp_ajax_health_check_dotorg_communication() {
|
||||
}
|
||||
|
||||
if ( ! class_exists( 'WP_Site_Health' ) ) {
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-site-health.php' );
|
||||
}
|
||||
|
||||
$site_health = WP_Site_Health::get_instance();
|
||||
$site_health = new WP_Site_Health();
|
||||
wp_send_json_success( $site_health->get_test_dotorg_communication() );
|
||||
}
|
||||
|
||||
@@ -5139,10 +5135,10 @@ function wp_ajax_health_check_is_in_debug_mode() {
|
||||
}
|
||||
|
||||
if ( ! class_exists( 'WP_Site_Health' ) ) {
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-site-health.php' );
|
||||
}
|
||||
|
||||
$site_health = WP_Site_Health::get_instance();
|
||||
$site_health = new WP_Site_Health();
|
||||
wp_send_json_success( $site_health->get_test_is_in_debug_mode() );
|
||||
}
|
||||
|
||||
@@ -5159,10 +5155,10 @@ function wp_ajax_health_check_background_updates() {
|
||||
}
|
||||
|
||||
if ( ! class_exists( 'WP_Site_Health' ) ) {
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-site-health.php' );
|
||||
}
|
||||
|
||||
$site_health = WP_Site_Health::get_instance();
|
||||
$site_health = new WP_Site_Health();
|
||||
wp_send_json_success( $site_health->get_test_background_updates() );
|
||||
}
|
||||
|
||||
@@ -5180,10 +5176,10 @@ function wp_ajax_health_check_loopback_requests() {
|
||||
}
|
||||
|
||||
if ( ! class_exists( 'WP_Site_Health' ) ) {
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-site-health.php' );
|
||||
}
|
||||
|
||||
$site_health = WP_Site_Health::get_instance();
|
||||
$site_health = new WP_Site_Health();
|
||||
wp_send_json_success( $site_health->get_test_loopback_requests() );
|
||||
}
|
||||
|
||||
@@ -5217,7 +5213,7 @@ function wp_ajax_health_check_get_sizes() {
|
||||
}
|
||||
|
||||
if ( ! class_exists( 'WP_Debug_Data' ) ) {
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-debug-data.php';
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-debug-data.php' );
|
||||
}
|
||||
|
||||
$sizes_data = WP_Debug_Data::get_sizes();
|
||||
|
||||
@@ -117,12 +117,12 @@ function wp_delete_link( $link_id ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the link category IDs associated with the link specified.
|
||||
* Retrieves the link categories associated with the link specified.
|
||||
*
|
||||
* @since 2.1.0
|
||||
*
|
||||
* @param int $link_id Link ID to look up.
|
||||
* @return int[] The IDs of the requested link's categories.
|
||||
* @param int $link_id Link ID to look up
|
||||
* @return array The requested link's categories
|
||||
*/
|
||||
function wp_get_link_cats( $link_id = 0 ) {
|
||||
$cats = wp_get_object_terms( $link_id, 'link_category', array( 'fields' => 'ids' ) );
|
||||
@@ -203,7 +203,7 @@ function wp_insert_link( $linkdata, $wp_error = false ) {
|
||||
}
|
||||
|
||||
if ( $update ) {
|
||||
if ( false === $wpdb->update( $wpdb->links, compact( 'link_url', 'link_name', 'link_image', 'link_target', 'link_description', 'link_visible', 'link_owner', 'link_rating', 'link_rel', 'link_notes', 'link_rss' ), compact( 'link_id' ) ) ) {
|
||||
if ( false === $wpdb->update( $wpdb->links, compact( 'link_url', 'link_name', 'link_image', 'link_target', 'link_description', 'link_visible', 'link_rating', 'link_rel', 'link_notes', 'link_rss' ), compact( 'link_id' ) ) ) {
|
||||
if ( $wp_error ) {
|
||||
return new WP_Error( 'db_update_error', __( 'Could not update link in the database' ), $wpdb->last_error );
|
||||
} else {
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user