Compare commits
157 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1ea8e9a4f0 | ||
|
|
665617103b | ||
|
|
befa21d88e | ||
|
|
89d7d9e70f | ||
|
|
fa47298720 | ||
|
|
ad0f68291a | ||
|
|
599e703836 | ||
|
|
5960939cca | ||
|
|
7b45f8189d | ||
|
|
281e5e828a | ||
|
|
0df6499c8d | ||
|
|
5094cbd599 | ||
|
|
39b785c7f9 | ||
|
|
75df12f322 | ||
|
|
3176a085da | ||
|
|
e0b6a13194 | ||
|
|
871bb10c9a | ||
|
|
31c9a63bfb | ||
|
|
63828d08a0 | ||
|
|
189e5449a3 | ||
|
|
d47305bfe4 | ||
|
|
aa13103db8 | ||
|
|
3027491963 | ||
|
|
ed77d76855 | ||
|
|
483fa89c88 | ||
|
|
95026e579b | ||
|
|
425d389d92 | ||
|
|
6cdd4b1250 | ||
|
|
4a804cac79 | ||
|
|
cc4a680493 | ||
|
|
d93d3febfe | ||
|
|
8cc3c97b85 | ||
|
|
2d20b59244 | ||
|
|
d4399a7082 | ||
|
|
ce7ab0d87f | ||
|
|
6124fbb02c | ||
|
|
b410db797b | ||
|
|
e87ab24ef8 | ||
|
|
6c457d4415 | ||
|
|
fb52c9599d | ||
|
|
8f7e4969bc | ||
|
|
b28d64fb46 | ||
|
|
61fb79c097 | ||
|
|
9edb03c095 | ||
|
|
bd0a38d439 | ||
|
|
8780e40de2 | ||
|
|
559e81937b | ||
|
|
8a2525a88d | ||
|
|
7d1db9607d | ||
|
|
6e8114742f | ||
|
|
cf9b1dbc1f | ||
|
|
bba21b983c | ||
|
|
e6ce714219 | ||
|
|
45e03c2576 | ||
|
|
540a3164a4 | ||
|
|
592f1be68e | ||
|
|
380cc5d7d6 | ||
|
|
0b813f2544 | ||
|
|
72d9177fc0 | ||
|
|
b24993e4cd | ||
|
|
db72974122 | ||
|
|
41d2ef99a6 | ||
|
|
6bfa2de24d | ||
|
|
948379bde8 | ||
|
|
3db97bd725 | ||
|
|
ca4d60134b | ||
|
|
e28a67c870 | ||
|
|
7ffc106c38 | ||
|
|
459ab62c8a | ||
|
|
a30c4df4b5 | ||
|
|
15a94f7c00 | ||
|
|
c3f619e2d0 | ||
|
|
900cd6c47d | ||
|
|
5fa8150d16 | ||
|
|
edcebaa160 | ||
|
|
01aaece3ea | ||
|
|
6663e03ced | ||
|
|
30bb628489 | ||
|
|
6738759b0c | ||
|
|
16cabf6b50 | ||
|
|
563dc76e7b | ||
|
|
537f4728bd | ||
|
|
e489c7e378 | ||
|
|
4135f92f3d | ||
|
|
8ea5b3b2d2 | ||
|
|
f594693fcd | ||
|
|
8ab4a55cbe | ||
|
|
0c0fa13a66 | ||
|
|
e58ec083da | ||
|
|
92c3c3453b | ||
|
|
0e7cc25529 | ||
|
|
c34a4c0ba3 | ||
|
|
16161be6ac | ||
|
|
ac2345ca32 | ||
|
|
8da7adb54f | ||
|
|
13ff476cc1 | ||
|
|
d6497ddf70 | ||
|
|
a1005ad7f9 | ||
|
|
082fa8f5ad | ||
|
|
70f46a9e84 | ||
|
|
3c4d5d2e6f | ||
|
|
8f1a4c9a56 | ||
|
|
e918433445 | ||
|
|
f012d52928 | ||
|
|
4fd3246c0d | ||
|
|
d150dd35b2 | ||
|
|
c720c0df8c | ||
|
|
1c4c7086a5 | ||
|
|
ea244bef6e | ||
|
|
dae13be262 | ||
|
|
250f92a59e | ||
|
|
b41001d4a1 | ||
|
|
7847fee343 | ||
|
|
83c0a40c05 | ||
|
|
93734bcbcb | ||
|
|
d344c40f57 | ||
|
|
afa325993e | ||
|
|
0dd3e5e34d | ||
|
|
3adc537233 | ||
|
|
4726c85ee5 | ||
|
|
19ba92e401 | ||
|
|
4727124583 | ||
|
|
0b152a7f2c | ||
|
|
77022af062 | ||
|
|
43eb2619e9 | ||
|
|
27af8391d0 | ||
|
|
4a0443e0db | ||
|
|
909e795ba4 | ||
|
|
e28ec68af6 | ||
|
|
f57ee7c1f1 | ||
|
|
d81e03da4e | ||
|
|
90cd5e5f80 | ||
|
|
816196aee7 | ||
|
|
b460e1fd0d | ||
|
|
a332bb92d2 | ||
|
|
41118e509a | ||
|
|
1d9a15ad4a | ||
|
|
cb6bdc2d4c | ||
|
|
bc1df6bef1 | ||
|
|
7b69275632 | ||
|
|
71169d688a | ||
|
|
02fa7656d1 | ||
|
|
29e03dd26c | ||
|
|
849d8db4fc | ||
|
|
f50646d6c4 | ||
|
|
413896af01 | ||
|
|
08ff35374b | ||
|
|
9650704689 | ||
|
|
b9cd04e8ad | ||
|
|
ea8b01eac6 | ||
|
|
6d161ba61a | ||
|
|
fa7b15c74e | ||
|
|
158d1b55b4 | ||
|
|
28ba2c0911 | ||
|
|
a8ef25ce7b | ||
|
|
acd9d9fad3 | ||
|
|
781d4e5b46 |
@@ -9,6 +9,7 @@
|
||||
<body>
|
||||
<h1 id="logo">
|
||||
<a href="https://wordpress.org/"><img alt="WordPress" src="wp-admin/images/wordpress-logo.png" /></a>
|
||||
<br /> Version 4.7
|
||||
</h1>
|
||||
<p style="text-align: center">Semantic Personal Publishing Platform</p>
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
<div class="wrap about-wrap">
|
||||
<h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
|
||||
|
||||
<p class="about-text"><?php printf( __( 'Thank you for updating to the latest version! WordPress %s adds more ways for you to express yourself and represent your brand.' ), $display_version ); ?></p>
|
||||
<p class="about-text"><?php printf( __( 'Thank you for updating to the latest version! WordPress %s helps you get your site set up the way you want it.' ), $display_version ); ?></p>
|
||||
<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
|
||||
|
||||
<h2 class="nav-tab-wrapper wp-clearfix">
|
||||
@@ -44,114 +44,53 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
</h2>
|
||||
|
||||
<div class="changelog point-releases">
|
||||
<h3><?php _e( 'Maintenance Release' ); ?></h3>
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: 1: WordPress version number, 2: plural number of bugs. */
|
||||
_n(
|
||||
'<strong>Version %1$s</strong> addressed %2$s bug.',
|
||||
'<strong>Version %1$s</strong> addressed %2$s bugs.',
|
||||
29
|
||||
),
|
||||
'4.8.1',
|
||||
number_format_i18n( 29 )
|
||||
);
|
||||
?>
|
||||
<?php
|
||||
/* translators: %s: Codex URL */
|
||||
printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'https://codex.wordpress.org/Version_4.8.1' );
|
||||
?>
|
||||
</p>
|
||||
<h3><?php _e( 'Maintenance and Security Releases' ); ?></h3>
|
||||
<p><?php printf( __( '<strong>Version %s</strong> addressed some security issues.' ), '4.7.2' ); ?>
|
||||
<?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'https://codex.wordpress.org/Version_4.7.2' ); ?>
|
||||
</p>
|
||||
<p><?php printf( _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.', 62 ), '4.7.1', number_format_i18n( 62 ) ); ?>
|
||||
<?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'https://codex.wordpress.org/Version_4.7.1' ); ?>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="headline-feature feature-video">
|
||||
<iframe width="1050" height="591" src="<?php echo esc_url( $video_url ); ?>" frameborder="0" allowfullscreen></iframe>
|
||||
<script src="https://videopress.com/videopress-iframe.js"></script>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="feature-section one-col">
|
||||
<div class="col">
|
||||
<h2><?php _e( 'An Update with You in Mind' ); ?></h2>
|
||||
<p class="lead-description"><?php _e( 'WordPress 4.8 adds some great new features. Gear up for a more intuitive WordPress!' ); ?></p>
|
||||
<p><?php _e( 'Though some updates seem minor, they’ve been built by hundreds of contributors with <em>you</em> in mind. Get ready for new features you’ll welcome like an old friend: link improvements, <em>three</em> new media widgets covering images, audio, and video, an updated text widget that supports visual editing, and an upgraded news section in your dashboard which brings in nearby and upcoming WordPress events.' ); ?></p>
|
||||
</div>
|
||||
<h2><?php _e( 'Presenting Twenty Seventeen' ); ?></h2>
|
||||
<p class="lead-description"><?php _e( 'A brand new default theme brings your site to life with immersive featured images and video headers.' ); ?></p>
|
||||
<picture>
|
||||
<source media="(min-width: 450px)" srcset="https://s.w.org/images/core/4.7/twenty-seventeen-1600.jpg?v2 1600w, https://s.w.org/images/core/4.7/twenty-seventeen-493.jpg?v2 493w, https://s.w.org/images/core/4.7/twenty-seventeen-663.jpg?v2 663w, https://s.w.org/images/core/4.7/twenty-seventeen-804.jpg?v2 804w, https://s.w.org/images/core/4.7/twenty-seventeen-928.jpg?v2 928w, https://s.w.org/images/core/4.7/twenty-seventeen-1058.jpg?v2 1058w, https://s.w.org/images/core/4.7/twenty-seventeen-1173.jpg?v2 1173w, https://s.w.org/images/core/4.7/twenty-seventeen-1299.jpg?v2 1299w, https://s.w.org/images/core/4.7/twenty-seventeen-1410.jpg?v2 1410w, https://s.w.org/images/core/4.7/twenty-seventeen-1513.jpg?v2 1513w, https://s.w.org/images/core/4.7/twenty-seventeen-1595.jpg?v2 1595w" sizes="(max-width: 500px) calc(100vw - 40px), (max-width: 782px) calc(100vw - 70px), (max-width: 959px) calc(100vw - 116px), (max-width: 1290px) calc(100vw - 240px), 1050px">
|
||||
<source srcset="https://s.w.org/images/core/4.7/twenty-seventeen-mobile-564.jpg?v2 564w, https://s.w.org/images/core/4.7/twenty-seventeen-mobile-280.jpg?v2 280w, https://s.w.org/images/core/4.7/twenty-seventeen-mobile-372.jpg?v2 372w, https://s.w.org/images/core/4.7/twenty-seventeen-mobile-454.jpg?v2 454w, https://s.w.org/images/core/4.7/twenty-seventeen-mobile-541.jpg?v2 541w" sizes="calc(100vw - 40px)">
|
||||
<img src="https://s.w.org/images/core/4.7/twenty-seventeen-1600.jpg?v2" srcset="https://s.w.org/images/core/4.7/twenty-seventeen-1600.jpg?v2 1600w, https://s.w.org/images/core/4.7/twenty-seventeen-280.jpg?v2 280w, https://s.w.org/images/core/4.7/twenty-seventeen-493.jpg?v2 493w, https://s.w.org/images/core/4.7/twenty-seventeen-663.jpg?v2 663w, https://s.w.org/images/core/4.7/twenty-seventeen-804.jpg?v2 804w, https://s.w.org/images/core/4.7/twenty-seventeen-928.jpg?v2 928w, https://s.w.org/images/core/4.7/twenty-seventeen-1058.jpg?v2 1058w, https://s.w.org/images/core/4.7/twenty-seventeen-1173.jpg?v2 1173w, https://s.w.org/images/core/4.7/twenty-seventeen-1299.jpg?v2 1299w, https://s.w.org/images/core/4.7/twenty-seventeen-1410.jpg?v2 1410w, https://s.w.org/images/core/4.7/twenty-seventeen-1513.jpg?v2 1513w, https://s.w.org/images/core/4.7/twenty-seventeen-1595.jpg?v2 1595w" sizes="(max-width: 500px) calc(100vw - 40px), (max-width: 782px) calc(100vw - 70px), (max-width: 959px) calc(100vw - 116px), (max-width: 1290px) calc(100vw - 240px), 1050px" alt="" />
|
||||
</picture>
|
||||
<p><?php _e( 'Twenty Seventeen focuses on business sites and features a customizable front page with multiple sections. Personalize it with widgets, navigation, social menus, a logo, custom colors, and more. Our default theme for 2017 works great in many languages, on any device, and for a wide range of users.' ); ?></p>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<h2><?php _e( 'Exciting Widget Updates' ); ?></h2>
|
||||
|
||||
<div class="headline-feature one-col">
|
||||
<div class="col">
|
||||
<picture>
|
||||
<!-- Large image -->
|
||||
<source media="( min-width: 1050px )"
|
||||
srcset="
|
||||
https://s.w.org/images/core/4.8/widgets-with-all-four-widescreen_w_810.png 810w,
|
||||
https://s.w.org/images/core/4.8/widgets-with-all-four-widescreen_w_1054.png 1054w,
|
||||
https://s.w.org/images/core/4.8/widgets-with-all-four-widescreen_w_1266.png 1266w,
|
||||
https://s.w.org/images/core/4.8/widgets-with-all-four-widescreen_w_1458.png 1458w,
|
||||
https://s.w.org/images/core/4.8/widgets-with-all-four-widescreen_w_1633.png 1633w,
|
||||
https://s.w.org/images/core/4.8/widgets-with-all-four-widescreen_w_1797.png 1797w,
|
||||
https://s.w.org/images/core/4.8/widgets-with-all-four-widescreen_w_1955.png 1955w,
|
||||
https://s.w.org/images/core/4.8/widgets-with-all-four-widescreen_w_2100.png 2100w"
|
||||
sizes="( max-width: 1290px ) calc( 100vw - 240px ), 1050px" />
|
||||
<!-- Medium image -->
|
||||
<source media="( min-width: 601px )"
|
||||
srcset="
|
||||
https://s.w.org/images/core/4.8/widgets-with-all-four_w_531.png 531w,
|
||||
https://s.w.org/images/core/4.8/widgets-with-all-four_w_745.png 745w,
|
||||
https://s.w.org/images/core/4.8/widgets-with-all-four_w_927.png 927w,
|
||||
https://s.w.org/images/core/4.8/widgets-with-all-four_w_1089.png 1089w,
|
||||
https://s.w.org/images/core/4.8/widgets-with-all-four_w_1236.png 1236w,
|
||||
https://s.w.org/images/core/4.8/widgets-with-all-four_w_1370.png 1370w,
|
||||
https://s.w.org/images/core/4.8/widgets-with-all-four_w_1498.png 1498w,
|
||||
https://s.w.org/images/core/4.8/widgets-with-all-four_w_1620.png 1620w"
|
||||
sizes="( max-width: 782px ) calc( 100vw - 70px ), ( max-width: 960px ) calc( 100vw - 116px ), calc( 100vw - 240px )" />
|
||||
<!-- Small image -->
|
||||
<img src="https://s.w.org/images/core/4.8/widgets-with-all-four-mobile_w_685.png"
|
||||
srcset="
|
||||
https://s.w.org/images/core/4.8/widgets-with-all-four-mobile_w_300.png 300w,
|
||||
https://s.w.org/images/core/4.8/widgets-with-all-four-mobile_w_451.png 451w,
|
||||
https://s.w.org/images/core/4.8/widgets-with-all-four-mobile_w_575.png 575w,
|
||||
https://s.w.org/images/core/4.8/widgets-with-all-four-mobile_w_685.png 685w,
|
||||
https://s.w.org/images/core/4.8/widgets-with-all-four-mobile_w_784.png 784w,
|
||||
https://s.w.org/images/core/4.8/widgets-with-all-four-mobile_w_873.png 873w,
|
||||
https://s.w.org/images/core/4.8/widgets-with-all-four-mobile_w_959.png 959w,
|
||||
https://s.w.org/images/core/4.8/widgets-with-all-four-mobile_w_1040.png 1040w"
|
||||
sizes="( max-width: 500px ) calc( 100vw - 40px ), calc( 100vw - 70px )"
|
||||
alt="" />
|
||||
</picture>
|
||||
</div>
|
||||
<div class="feature-section one-col">
|
||||
<h2><?php _e( 'Your Site, Your Way' ); ?></h2>
|
||||
<p class="lead-description"><?php _e( 'WordPress 4.7 adds new features to the customizer to help take you through the initial setup of a theme, with non-destructive live previews of all your changes in one uninterrupted workflow.' ); ?></p>
|
||||
</div>
|
||||
|
||||
<div class="feature-section two-col">
|
||||
<div class="col">
|
||||
<h3><?php _e( 'Image Widget' ); ?></h3>
|
||||
<p><?php _e( 'Adding an image to a widget is now a simple task that is achievable for any WordPress user without needing to know code. Simply insert your image right within the widget settings. Try adding something like a headshot or a photo of your latest weekend adventure — and see it appear automatically.' ); ?></p>
|
||||
</div>
|
||||
<div class="col">
|
||||
<h3><?php _e( 'Video Widget' ); ?></h3>
|
||||
<p><?php _e( 'A welcome video is a great way to humanize the branding of your website. You can now add any video from the Media Library to a sidebar on your site with the new Video widget. Use this to showcase a welcome video to introduce visitors to your site or promote your latest and greatest content.' ); ?></p>
|
||||
</div>
|
||||
<div class="col">
|
||||
<h3><?php _e( 'Audio Widget' ); ?></h3>
|
||||
<p><?php _e( 'Are you a podcaster, musician, or avid blogger? Adding a widget with your audio file has never been easier. Upload your audio file to the Media Library, go to the widget settings, select your file, and you’re ready for listeners. This would be a easy way to add a more personal welcome message, too!' );?></p>
|
||||
</div>
|
||||
<div class="col">
|
||||
<h3><?php _e( 'Rich Text Widget' ); ?></h3>
|
||||
<p><?php _e( 'This feature deserves a parade down the center of town! Rich-text editing capabilities are now native for Text widgets. Add a widget anywhere and format away. Create lists, add emphasis, and quickly and easily insert links. Have fun with your newfound formatting powers, and watch what you can accomplish in a short amount of time.' ); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="feature-section two-col">
|
||||
<div class="col">
|
||||
<h3><?php _e( 'Link Boundaries' ); ?></h3>
|
||||
<p><?php _e( 'Have you ever tried updating a link, or the text around a link, and found you can’t seem to edit it correctly? When you edit the text after the link, your new text also ends up linked. Or you edit the text in the link, but your text ends up outside of it. This can be frustrating! With link boundaries, a great new feature, the process is streamlined and your links will work well. You’ll be happier. We promise.' ); ?></p>
|
||||
<h3><?php _e( 'Theme Starter Content' ); ?></h3>
|
||||
<p><?php _e( 'To help give you a solid base to build from, individual themes can provide starter content that appears when you go to customize your brand new site. This can range from placing a business information widget in the best location to providing a sample menu with social icon links to a static front page complete with beautiful images. Don’t worry - nothing new will appear on the live site until you’re ready to save and publish your initial theme setup.' ); ?></p>
|
||||
</div>
|
||||
<div class="col">
|
||||
<?php
|
||||
echo wp_video_shortcode( array(
|
||||
'mp4' => 'https://s.w.org/images/core/4.8/link-boundaries.mp4',
|
||||
'poster' => 'https://s.w.org/images/core/4.8/link-boundaries.png',
|
||||
'mp4' => 'https://s.w.org/images/core/4.7/starter-content-v1.mp4',
|
||||
'poster' => 'https://s.w.org/images/core/4.7/starter-content.jpg?v2',
|
||||
'loop' => true,
|
||||
'autoplay' => true,
|
||||
'width' => 1140,
|
||||
'height' => 624,
|
||||
// 'class' => 'wp-video-shortcode feature-video',
|
||||
@@ -160,41 +99,84 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
<div class="feature-section two-col">
|
||||
<div class="col">
|
||||
<h3><?php _e( 'Edit Shortcuts' ); ?></h3>
|
||||
<?php
|
||||
echo wp_video_shortcode( array(
|
||||
'mp4' => 'https://s.w.org/images/core/4.7/edit-shortcuts-v1.mp4',
|
||||
'poster' => 'https://s.w.org/images/core/4.7/edit-shortcuts.jpg?v2',
|
||||
'loop' => true,
|
||||
'autoplay' => true,
|
||||
'width' => 2520,
|
||||
'height' => 1454,
|
||||
// 'class' => 'wp-video-shortcode feature-video',
|
||||
) );
|
||||
?>
|
||||
<p><?php _e( 'Visible icons appear to show you which parts of your site can be customized while live previewing. Click on a shortcut and get straight to editing. Paired with starter content, getting started with customizing your site is faster than ever.' );?></p>
|
||||
</div>
|
||||
<div class="col">
|
||||
<h3><?php _e( 'Video Headers' ); ?></h3>
|
||||
<?php
|
||||
echo wp_video_shortcode( array(
|
||||
'mp4' => 'https://s.w.org/images/core/4.7/header-video-v1.mp4',
|
||||
'poster' => 'https://s.w.org/images/core/4.7/header-video.jpg?v2',
|
||||
'loop' => true,
|
||||
'autoplay' => true,
|
||||
'width' => 2520,
|
||||
'height' => 1454,
|
||||
// 'class' => 'wp-video-shortcode feature-video',
|
||||
) );
|
||||
?>
|
||||
<p><?php _e( 'Sometimes a big atmospheric video as a moving header image is just what you need to showcase your wares; go ahead and try it out with Twenty Seventeen. Need some video inspiration? Try searching for sites with video headers available for download and use.' ); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="feature-section two-col">
|
||||
<div class="col">
|
||||
<h3><?php _e( 'Nearby WordPress Events' ); ?></h3>
|
||||
|
||||
<p><?php _e( 'Did you know that WordPress has a thriving offline community with groups meeting regularly in more than 400 cities around the world? WordPress now draws your attention to the events that help you continue improving your WordPress skills, meet friends, and, of course, publish!' ); ?></p>
|
||||
|
||||
<p><?php _e( 'This is quickly becoming one of our favorite features. While you are in the dashboard (because you’re running updates and writing posts, right?) all upcoming WordCamps and WordPress Meetups — local to you — will be displayed.' ); ?>
|
||||
|
||||
<p><?php _e( 'Being part of the community can help you improve your WordPress skills and network with people you wouldn’t otherwise meet. Now you can easily find your local events just by logging in to your dashboard and looking at the new Events and News dashboard widget.' ); ?>
|
||||
<h3><?php _e( 'Smoother Menu Building' ); ?></h3>
|
||||
<img src="https://s.w.org/images/core/4.7/nav-menus-760.jpg?v2" srcset="https://s.w.org/images/core/4.7/nav-menus-760.jpg?v2 760w, https://s.w.org/images/core/4.7/nav-menus-280.jpg?v2 280w, https://s.w.org/images/core/4.7/nav-menus-536.jpg?v2 536w, https://s.w.org/images/core/4.7/nav-menus-745.jpg?v2 745w" sizes="(max-width: 500px) calc(100vw - 40px), (max-width: 781px) calc((100vw - 70px) * .466), (max-width: 959px) calc((100vw - 116px) * .469), (max-width: 1290px) calc((100vw - 240px) * .472), 496px" alt="" />
|
||||
<p><?php _e( 'Many menus for sites contain links to the pages of your site, but what happens when you don’t have any pages yet? Now you can add new pages while building menus instead of leaving the customizer and abandoning your changes. Once you’ve published your customizations, you’ll have new pages ready for you to fill with content.' );?></p>
|
||||
</div>
|
||||
<div class="col">
|
||||
<img
|
||||
src="https://s.w.org/images/core/4.8/events-widget_w_732.png"
|
||||
srcset="
|
||||
https://s.w.org/images/core/4.8/events-widget_w_280.png 280w,
|
||||
https://s.w.org/images/core/4.8/events-widget_w_420.png 420w,
|
||||
https://s.w.org/images/core/4.8/events-widget_w_529.png 529w,
|
||||
https://s.w.org/images/core/4.8/events-widget_w_638.png 638w,
|
||||
https://s.w.org/images/core/4.8/events-widget_w_732.png 732w,
|
||||
https://s.w.org/images/core/4.8/events-widget_w_827.png 827w,
|
||||
https://s.w.org/images/core/4.8/events-widget_w_992.png 992w"
|
||||
sizes="
|
||||
( max-width: 500px ) calc( 100vw - 40px ),
|
||||
( max-width: 782px ) calc( 48vw - 33px ),
|
||||
( max-width: 960px ) calc( 47vw - 54px ),
|
||||
( max-width: 1290px ) calc( 47vw - 112px ),
|
||||
496px"
|
||||
alt="" />
|
||||
<h3><?php _e( 'Custom CSS' ); ?></h3>
|
||||
<img src="https://s.w.org/images/core/4.7/css-760.jpg?v2" srcset="https://s.w.org/images/core/4.7/css-760.jpg?v2 760w, https://s.w.org/images/core/4.7/css-280.jpg?v2 280w, https://s.w.org/images/core/4.7/css-547.jpg?v2 547w" sizes="(max-width: 500px) calc(100vw - 40px), (max-width: 781px) calc((100vw - 70px) * .466), (max-width: 959px) calc((100vw - 116px) * .469), (max-width: 1290px) calc((100vw - 240px) * .472), 496px" alt="" />
|
||||
<p><?php _e( 'Sometimes you just need a few visual tweaks to make your site perfect. WordPress 4.7 allows you to add custom CSS and instantly see how your changes affect your site. The live preview allows you to work quickly without page refreshes slowing you down.' ); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="feature-section no-heading two-col">
|
||||
<div class="col">
|
||||
<h3><?php _e( 'PDF Thumbnail Previews' ); ?></h3>
|
||||
<img src="https://s.w.org/images/core/4.7/pdf-760.jpg?v2" srcset="https://s.w.org/images/core/4.7/pdf-760.jpg?v2 760w, https://s.w.org/images/core/4.7/pdf-280.jpg?v2 280w, https://s.w.org/images/core/4.7/pdf-412.jpg?v2 412w, https://s.w.org/images/core/4.7/pdf-516.jpg?v2 516w, https://s.w.org/images/core/4.7/pdf-615.jpg?v2 615w, https://s.w.org/images/core/4.7/pdf-716.jpg?v2 716w" sizes="(max-width: 500px) calc(100vw - 40px), (max-width: 781px) calc((100vw - 70px) * .466), (max-width: 959px) calc((100vw - 116px) * .469), (max-width: 1290px) calc((100vw - 240px) * .472), 496px" alt="" />
|
||||
<p><?php _e( 'Managing your document collection is easier with WordPress 4.7. Uploading PDFs will generate thumbnail images so you can more easily distinguish between all your documents.' ); ?></p>
|
||||
</div>
|
||||
<div class="col">
|
||||
<h3><?php _e( 'Dashboard in your language' ); ?></h3>
|
||||
<img src="https://s.w.org/images/core/4.7/language-760.jpg?v2" srcset="https://s.w.org/images/core/4.7/language-760.jpg?v2 760w, https://s.w.org/images/core/4.7/language-280.jpg?v2 280w, https://s.w.org/images/core/4.7/language-568.jpg?v2 568w" sizes="(max-width: 500px) calc(100vw - 40px), (max-width: 781px) calc((100vw - 70px) * .466), (max-width: 959px) calc((100vw - 116px) * .469), (max-width: 1290px) calc((100vw - 240px) * .472), 496px" alt="" />
|
||||
<p><?php _e( 'Just because your site is in one language doesn’t mean that everybody helping manage it prefers that language for their admin. Add more languages to your site and a user language option will show up in your user’s profiles.' );?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="rest-api feature-section one-col">
|
||||
<h2><?php _e( 'Introducing REST API Content Endpoints' ); ?></h2>
|
||||
<p class="lead-description"><?php _e( 'WordPress 4.7 comes with REST API endpoints for posts, comments, terms, users, meta, and settings.' ); ?></p>
|
||||
<img src="https://s.w.org/images/core/4.7/api-1559.jpg?v2" srcset="https://s.w.org/images/core/4.7/api-2100.jpg?v2 2100w, https://s.w.org/images/core/4.7/api-280.jpg?v2 280w, https://s.w.org/images/core/4.7/api-1034.jpg?v2 1034w, https://s.w.org/images/core/4.7/api-1559.jpg?v2 1559w, https://s.w.org/images/core/4.7/api-2032.jpg?v2 2032w" sizes="(max-width: 500px) calc(100vw - 40px), (max-width: 782px) calc(100vw - 70px), (max-width: 959px) calc(100vw - 116px), (max-width: 1290px) calc(100vw - 240px), 1050px" alt="" />
|
||||
<p><?php
|
||||
printf(
|
||||
/* translators: %s: https://developer.wordpress.org/rest-api/ */
|
||||
__( 'Content endpoints provide machine-readable external access to your WordPress site with a clear, standards-driven interface, paving the way for new and innovative methods of interacting with sites through plugins, themes, apps, and beyond. Ready to get started with development? <a href="%s">Check out the REST API reference.</a>' ),
|
||||
'https://developer.wordpress.org/rest-api/reference/'
|
||||
);
|
||||
?></p>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="changelog">
|
||||
<h2><?php
|
||||
printf(
|
||||
@@ -206,30 +188,53 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
|
||||
<div class="under-the-hood three-col">
|
||||
<div class="col">
|
||||
<h3><a href="https://make.wordpress.org/core/2017/05/17/cleaner-headings-in-the-admin-screens/"><?php _e( 'More Accessible Admin Panel Headings' ); ?></a></h3>
|
||||
<p><?php _e( 'New CSS rules mean extraneous content (like “Add New” links) no longer need to be included in admin-area headings. These panel headings improve the experience for people using assistive technologies.' ); ?></p>
|
||||
<h3><a href="https://make.wordpress.org/core/2016/11/03/post-type-templates-in-4-7/"><?php _e( 'Post Type Templates' ); ?></a></h3>
|
||||
<p><?php _e( 'By opening up the page template functionality to all post types, theme developers have even more flexibility with the WordPress template hierarchy.' ); ?></p>
|
||||
</div>
|
||||
<div class="col">
|
||||
<h3><a href="https://make.wordpress.org/core/2017/05/22/removal-of-core-embedding-support-for-wmv-and-wma-file-formats/"><?php _e( 'Removal of Core Support for WMV and WMA Files' ); ?></a></h3>
|
||||
<p><?php _e( 'As fewer and fewer browsers support Silverlight, file formats which require the presence of the Silverlight plugin are being removed from core support. Files will still display as a download link, but will no longer be embedded automatically.' ); ?></p>
|
||||
<h3><?php _e( 'More Theme API Goodies' ); ?></h3>
|
||||
<p><?php
|
||||
printf(
|
||||
/* translators: %s: https://make.wordpress.org/core/2016/09/09/new-functions-hooks-and-behaviour-for-theme-developers-in-wordpress-4-7/ */
|
||||
__( 'WordPress 4.7 includes <a href="%s">new functions, hooks, and behavior</a> for theme developers.' ),
|
||||
'https://make.wordpress.org/core/2016/09/09/new-functions-hooks-and-behaviour-for-theme-developers-in-wordpress-4-7/'
|
||||
);
|
||||
?></p>
|
||||
</div>
|
||||
<div class="col">
|
||||
<h3><a href="https://make.wordpress.org/core/2017/05/22/multisite-focused-changes-in-4-8/"><?php _e( 'Multisite Updates' ); ?></a></h3>
|
||||
<p><?php _e( 'New capabilities have been introduced to 4.8 with an eye towards removing calls to <code>is_super_admin()</code>. Additionally, new hooks and tweaks to more granularly control site and user counts per network have been added.' ); ?></p>
|
||||
</div>
|
||||
<div class="col">
|
||||
<h3><a href="https://make.wordpress.org/core/2017/05/23/addition-of-tinymce-to-the-text-widget/"><?php _e( 'Text-Editor JavaScript API' ); ?></a></h3>
|
||||
<p><?php _e( 'With the addition of TinyMCE to the text widget in 4.8 comes a new JavaScript API for instantiating the editor after page load. This can be used to add an editor instance to any text area, and customize it with buttons and functions. Great for plugin authors!' ); ?></p>
|
||||
</div>
|
||||
<div class="col">
|
||||
<h3><a href="https://make.wordpress.org/core/2017/05/26/media-widgets-for-images-video-and-audio/"><?php _e( 'Media Widgets API' ); ?></a></h3>
|
||||
<p><?php _e( 'The introduction of a new base media widget REST API schema to 4.8 opens up possibilities for even more media widgets (like galleries or playlists) in the future. The three new media widgets are powered by a shared base class that covers most of the interactions with the media modal. That class also makes it easier to create new media widgets and paves the way for more to come.' ); ?></p>
|
||||
</div>
|
||||
<div class="col">
|
||||
<h3><a href="https://make.wordpress.org/core/2017/05/16/customizer-sidebar-width-is-now-variable/"><?php _e( 'Customizer Width Variable' ); ?></a></h3>
|
||||
<p><?php _e( 'Rejoice! New responsive breakpoints have been added to the customizer sidebar to make it wider on high-resolution screens. Customizer controls should use percentage-based widths instead of pixels.' ); ?></p>
|
||||
<h3><a href="https://make.wordpress.org/core/2016/10/04/custom-bulk-actions/"><?php _e( 'Custom Bulk Actions' ); ?></a></h3>
|
||||
<p><?php _e( 'List tables, now with more than bulk edit and delete.' ); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="under-the-hood three-col">
|
||||
<div class="col">
|
||||
<h3><a href="https://make.wordpress.org/core/2016/09/08/wp_hook-next-generation-actions-and-filters/"><code>WP_Hook</code></a></h3>
|
||||
<p><?php
|
||||
printf(
|
||||
/* translators: %s: https://make.wordpress.org/core/2016/09/08/wp_hook-next-generation-actions-and-filters/ */
|
||||
__( 'The code that lies beneath actions and filters has been overhauled and modernized, fixing bugs along the way.' ),
|
||||
'https://make.wordpress.org/core/2016/09/08/wp_hook-next-generation-actions-and-filters/'
|
||||
);
|
||||
?></p>
|
||||
</div>
|
||||
<div class="col">
|
||||
<h3><?php _e( 'Settings Registration API' ); ?></h3>
|
||||
<p><?php
|
||||
printf(
|
||||
/* translators: 1: register_setting(), 2: https://make.wordpress.org/core/2016/10/26/registering-your-settings-in-wordpress-4-7/ */
|
||||
__( '%1$s <a href="%2$s">has been enhanced</a> to include type, description, and REST API visibility.' ),
|
||||
'<code>register_setting()</code>',
|
||||
'https://make.wordpress.org/core/2016/10/26/registering-your-settings-in-wordpress-4-7/'
|
||||
);
|
||||
?></p>
|
||||
</div>
|
||||
<div class="col">
|
||||
<h3><a href="https://make.wordpress.org/core/2016/10/12/customize-changesets-technical-design-decisions/"><?php _e( 'Customize Changesets' ); ?></a></h3>
|
||||
<p><?php _e( 'Customize changesets make changes in the customizer persistent, like autosave drafts. They also make exciting new features like starter content possible.' ); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
@@ -64,7 +64,7 @@ $core_actions_post = array(
|
||||
'parse-media-shortcode', 'destroy-sessions', 'install-plugin', 'update-plugin', 'press-this-save-post',
|
||||
'press-this-add-category', 'crop-image', 'generate-password', 'save-wporg-username', 'delete-plugin',
|
||||
'search-plugins', 'search-install-plugins', 'activate-plugin', 'update-theme', 'delete-theme',
|
||||
'install-theme', 'get-post-thumbnail-html', 'get-community-events',
|
||||
'install-theme', 'get-post-thumbnail-html',
|
||||
);
|
||||
|
||||
// Deprecated
|
||||
|
||||
@@ -78,6 +78,10 @@ do_action( 'admin_footer', '' );
|
||||
* refers to the global hook suffix of the current page.
|
||||
*
|
||||
* @since 4.6.0
|
||||
*
|
||||
* @global string $hook_suffix
|
||||
*
|
||||
* @param string $hook_suffix The current admin page.
|
||||
*/
|
||||
do_action( "admin_print_footer_scripts-{$hook_suffix}" );
|
||||
|
||||
@@ -95,6 +99,9 @@ do_action( 'admin_print_footer_scripts' );
|
||||
* refers to the global hook suffix of the current page.
|
||||
*
|
||||
* @since 2.8.0
|
||||
*
|
||||
* @global string $hook_suffix
|
||||
* @param string $hook_suffix The current admin page.
|
||||
*/
|
||||
do_action( "admin_footer-{$hook_suffix}" );
|
||||
|
||||
|
||||
@@ -221,9 +221,8 @@ if ( isset($plugin_page) ) {
|
||||
*/
|
||||
do_action( $page_hook );
|
||||
} else {
|
||||
if ( validate_file( $plugin_page ) ) {
|
||||
wp_die( __( 'Invalid plugin page.' ) );
|
||||
}
|
||||
if ( validate_file($plugin_page) )
|
||||
wp_die(__('Invalid plugin page'));
|
||||
|
||||
if ( !( file_exists(WP_PLUGIN_DIR . "/$plugin_page") && is_file(WP_PLUGIN_DIR . "/$plugin_page") ) && !( file_exists(WPMU_PLUGIN_DIR . "/$plugin_page") && is_file(WPMU_PLUGIN_DIR . "/$plugin_page") ) )
|
||||
wp_die(sprintf(__('Cannot load %s.'), htmlentities($plugin_page)));
|
||||
|
||||
@@ -52,7 +52,7 @@ if ( ! current_user_can( 'upload_files' ) ) {
|
||||
if ( isset($_REQUEST['attachment_id']) && ($id = intval($_REQUEST['attachment_id'])) && $_REQUEST['fetch'] ) {
|
||||
$post = get_post( $id );
|
||||
if ( 'attachment' != $post->post_type )
|
||||
wp_die( __( 'Invalid post type.' ) );
|
||||
wp_die( __( 'Unknown post type.' ) );
|
||||
if ( ! current_user_can( 'edit_post', $id ) )
|
||||
wp_die( __( 'Sorry, you are not allowed to edit this item.' ) );
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
|
||||
<h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
|
||||
|
||||
<p class="about-text"><?php printf( __( 'Thank you for updating to the latest version! WordPress %s adds more ways for you to express yourself and represent your brand.' ), $display_version ); ?></p>
|
||||
<p class="about-text"><?php printf( __( 'Thank you for updating to the latest version! WordPress %s helps you get your site set up the way you want it.' ), $display_version ); ?></p>
|
||||
|
||||
<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
|
||||
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
vertical-align: middle;
|
||||
border: 1px solid rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.about-wrap .jetpack-video-wrapper {
|
||||
@@ -160,57 +161,45 @@
|
||||
|
||||
/* 1.2 - Structure */
|
||||
|
||||
.about-wrap [class$="-col"] {
|
||||
display: -ms-flexbox;
|
||||
display: -webkit-flex;
|
||||
display: -webkit-box;
|
||||
display: -moz-box;
|
||||
display: flex;
|
||||
-webkit-box-pack: justify;
|
||||
-webkit-justify-content: space-between;
|
||||
-moz-box-pack: justify;
|
||||
-ms-flex-pack: justify;
|
||||
justify-content: space-between;
|
||||
-webkit-box-align: center;
|
||||
-webkit-align-items: center;
|
||||
-moz-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
-webkit-flex-wrap: wrap;
|
||||
-ms-flex-wrap: wrap;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.about-wrap .feature-section.one-col {
|
||||
margin: 0 auto;
|
||||
max-width: 700px;
|
||||
}
|
||||
|
||||
.about-wrap [class$="-col"] .col {
|
||||
-webkit-flex: 1;
|
||||
-ms-flex: 1;
|
||||
-webkit-box-flex: 1;
|
||||
-moz-box-flex: 1;
|
||||
flex: 1;
|
||||
.about-wrap [class$=col] .col {
|
||||
float: right;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.about-wrap .two-col .col {
|
||||
min-width: 47%;
|
||||
max-width: 47%;
|
||||
}
|
||||
|
||||
.about-wrap .three-col .col {
|
||||
-webkit-align-self: flex-start;
|
||||
-ms-flex-item-align: start;
|
||||
align-self: flex-start;
|
||||
min-width: 31%;
|
||||
max-width: 31%;
|
||||
margin-left: 4.799999999%;
|
||||
width: 47.6%;
|
||||
}
|
||||
|
||||
.about-wrap .two-col img {
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
|
||||
.about-wrap .feature-section.two-col .col {
|
||||
display: inline-block;
|
||||
float: none;
|
||||
margin-top: 1em;
|
||||
margin-left: 4.799999999%;
|
||||
width: -webkit-calc( 47.6% - 4px );
|
||||
width: calc( 47.6% - 4px );
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.about-wrap .three-col .col {
|
||||
margin-left: 4.999999999%;
|
||||
width: 29.95%;
|
||||
}
|
||||
|
||||
.about-wrap .two-col .col:nth-of-type(2n),
|
||||
.about-wrap .three-col .col:nth-of-type(3n) {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.about-wrap .under-the-hood {
|
||||
clear: both;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.about-wrap .feature-video .mejs-controls {
|
||||
display: none !important;
|
||||
}
|
||||
@@ -309,6 +298,11 @@
|
||||
padding-top: 35px;
|
||||
}
|
||||
|
||||
.about-wrap .headline-feature {
|
||||
margin: 0 auto;
|
||||
max-width: 80%;
|
||||
}
|
||||
|
||||
.about-wrap .feature-section .media-container {
|
||||
overflow: hidden;
|
||||
}
|
||||
@@ -452,11 +446,6 @@
|
||||
column-count: 1;
|
||||
}
|
||||
|
||||
.about-wrap .two-col .col,
|
||||
.about-wrap .three-col .col {
|
||||
min-width: 48% !important;
|
||||
}
|
||||
|
||||
.about-wrap .three-col img {
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
@@ -486,7 +475,8 @@
|
||||
|
||||
.about-wrap .two-col .col,
|
||||
.about-wrap .three-col .col {
|
||||
min-width: 100% !important;
|
||||
width: 100% !important;
|
||||
float: none !important;
|
||||
}
|
||||
|
||||
.about-wrap .under-the-hood.three-col .col,
|
||||
|
||||
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
@@ -40,6 +40,7 @@
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
vertical-align: middle;
|
||||
border: 1px solid rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.about-wrap .jetpack-video-wrapper {
|
||||
@@ -160,57 +161,45 @@
|
||||
|
||||
/* 1.2 - Structure */
|
||||
|
||||
.about-wrap [class$="-col"] {
|
||||
display: -ms-flexbox;
|
||||
display: -webkit-flex;
|
||||
display: -webkit-box;
|
||||
display: -moz-box;
|
||||
display: flex;
|
||||
-webkit-box-pack: justify;
|
||||
-webkit-justify-content: space-between;
|
||||
-moz-box-pack: justify;
|
||||
-ms-flex-pack: justify;
|
||||
justify-content: space-between;
|
||||
-webkit-box-align: center;
|
||||
-webkit-align-items: center;
|
||||
-moz-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
-webkit-flex-wrap: wrap;
|
||||
-ms-flex-wrap: wrap;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.about-wrap .feature-section.one-col {
|
||||
margin: 0 auto;
|
||||
max-width: 700px;
|
||||
}
|
||||
|
||||
.about-wrap [class$="-col"] .col {
|
||||
-webkit-flex: 1;
|
||||
-ms-flex: 1;
|
||||
-webkit-box-flex: 1;
|
||||
-moz-box-flex: 1;
|
||||
flex: 1;
|
||||
.about-wrap [class$=col] .col {
|
||||
float: left;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.about-wrap .two-col .col {
|
||||
min-width: 47%;
|
||||
max-width: 47%;
|
||||
}
|
||||
|
||||
.about-wrap .three-col .col {
|
||||
-webkit-align-self: flex-start;
|
||||
-ms-flex-item-align: start;
|
||||
align-self: flex-start;
|
||||
min-width: 31%;
|
||||
max-width: 31%;
|
||||
margin-right: 4.799999999%;
|
||||
width: 47.6%;
|
||||
}
|
||||
|
||||
.about-wrap .two-col img {
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
|
||||
.about-wrap .feature-section.two-col .col {
|
||||
display: inline-block;
|
||||
float: none;
|
||||
margin-top: 1em;
|
||||
margin-right: 4.799999999%;
|
||||
width: -webkit-calc( 47.6% - 4px );
|
||||
width: calc( 47.6% - 4px );
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.about-wrap .three-col .col {
|
||||
margin-right: 4.999999999%;
|
||||
width: 29.95%;
|
||||
}
|
||||
|
||||
.about-wrap .two-col .col:nth-of-type(2n),
|
||||
.about-wrap .three-col .col:nth-of-type(3n) {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.about-wrap .under-the-hood {
|
||||
clear: both;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.about-wrap .feature-video .mejs-controls {
|
||||
display: none !important;
|
||||
}
|
||||
@@ -309,6 +298,11 @@
|
||||
padding-top: 35px;
|
||||
}
|
||||
|
||||
.about-wrap .headline-feature {
|
||||
margin: 0 auto;
|
||||
max-width: 80%;
|
||||
}
|
||||
|
||||
.about-wrap .feature-section .media-container {
|
||||
overflow: hidden;
|
||||
}
|
||||
@@ -452,11 +446,6 @@
|
||||
column-count: 1;
|
||||
}
|
||||
|
||||
.about-wrap .two-col .col,
|
||||
.about-wrap .three-col .col {
|
||||
min-width: 48% !important;
|
||||
}
|
||||
|
||||
.about-wrap .three-col img {
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
@@ -486,7 +475,8 @@
|
||||
|
||||
.about-wrap .two-col .col,
|
||||
.about-wrap .three-col .col {
|
||||
min-width: 100% !important;
|
||||
width: 100% !important;
|
||||
float: none !important;
|
||||
}
|
||||
|
||||
.about-wrap .under-the-hood.three-col .col,
|
||||
|
||||
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
@@ -133,11 +133,4 @@
|
||||
box-shadow:
|
||||
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 {
|
||||
margin-left: 6px;
|
||||
padding: 3px 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
2
wp-admin/css/color-picker-rtl.min.css
vendored
2
wp-admin/css/color-picker-rtl.min.css
vendored
@@ -1 +1 @@
|
||||
.wp-color-picker{width:80px}.wp-picker-container .hidden{display:none}.wp-color-result{background-color:#f7f7f7;border:1px solid #ccc;-webkit-border-radius:3px;border-radius:3px;cursor:pointer;height:22px;margin:0 0 6px 6px;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:bottom;display:inline-block;padding-right:30px;-webkit-box-shadow:0 1px 0 #ccc;box-shadow:0 1px 0 #ccc;top:0}.wp-color-result:after{background:#f7f7f7;-webkit-border-radius:2px 0 0 2px;border-radius:2px 0 0 2px;border-right:1px solid #ccc;color:#555;content:attr(title);display:block;font-size:11px;line-height:22px;padding:0 6px;position:relative;left:0;text-align:center;top:0}.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-color-result.wp-picker-open:after{content:attr(data-current)}.wp-picker-container,.wp-picker-container:active{display:inline-block;outline:0}.wp-color-result:focus{border-color:#5b9dd9;-webkit-box-shadow:0 0 3px rgba(0,115,170,.8);box-shadow:0 0 3px rgba(0,115,170,.8)}.wp-picker-open+.wp-picker-input-wrap{display:inline-block;vertical-align:top}.wp-picker-container .button{margin-right:6px}.wp-picker-container .iris-square-slider .ui-slider-handle:focus{background-color:#555}.wp-picker-container .iris-picker{-webkit-border-radius:0;border-radius:0;border-color:#ddd;margin-top:6px}.wp-picker-container input[type=text].wp-color-picker{width:65px;font-size:12px;font-family:monospace;line-height:16px;margin:0}.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{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow: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{margin-left:6px;padding:3px 5px}}
|
||||
.wp-color-picker{width:80px}.wp-picker-container .hidden{display:none}.wp-color-result{background-color:#f7f7f7;border:1px solid #ccc;-webkit-border-radius:3px;border-radius:3px;cursor:pointer;height:22px;margin:0 0 6px 6px;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:bottom;display:inline-block;padding-right:30px;-webkit-box-shadow:0 1px 0 #ccc;box-shadow:0 1px 0 #ccc;top:0}.wp-color-result:after{background:#f7f7f7;-webkit-border-radius:2px 0 0 2px;border-radius:2px 0 0 2px;border-right:1px solid #ccc;color:#555;content:attr(title);display:block;font-size:11px;line-height:22px;padding:0 6px;position:relative;left:0;text-align:center;top:0}.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-color-result.wp-picker-open:after{content:attr(data-current)}.wp-picker-container,.wp-picker-container:active{display:inline-block;outline:0}.wp-color-result:focus{border-color:#5b9dd9;-webkit-box-shadow:0 0 3px rgba(0,115,170,.8);box-shadow:0 0 3px rgba(0,115,170,.8)}.wp-picker-open+.wp-picker-input-wrap{display:inline-block;vertical-align:top}.wp-picker-container .button{margin-right:6px}.wp-picker-container .iris-square-slider .ui-slider-handle:focus{background-color:#555}.wp-picker-container .iris-picker{-webkit-border-radius:0;border-radius:0;border-color:#ddd;margin-top:6px}.wp-picker-container input[type=text].wp-color-picker{width:65px;font-size:12px;font-family:monospace;line-height:16px;margin:0}.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{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}
|
||||
@@ -133,11 +133,4 @@
|
||||
box-shadow:
|
||||
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 {
|
||||
margin-right: 6px;
|
||||
padding: 3px 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
2
wp-admin/css/color-picker.min.css
vendored
2
wp-admin/css/color-picker.min.css
vendored
@@ -1 +1 @@
|
||||
.wp-color-picker{width:80px}.wp-picker-container .hidden{display:none}.wp-color-result{background-color:#f7f7f7;border:1px solid #ccc;-webkit-border-radius:3px;border-radius:3px;cursor:pointer;height:22px;margin:0 6px 6px 0;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:bottom;display:inline-block;padding-left:30px;-webkit-box-shadow:0 1px 0 #ccc;box-shadow:0 1px 0 #ccc;top:0}.wp-color-result:after{background:#f7f7f7;-webkit-border-radius:0 2px 2px 0;border-radius:0 2px 2px 0;border-left:1px solid #ccc;color:#555;content:attr(title);display:block;font-size:11px;line-height:22px;padding:0 6px;position:relative;right:0;text-align:center;top:0}.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-color-result.wp-picker-open:after{content:attr(data-current)}.wp-picker-container,.wp-picker-container:active{display:inline-block;outline:0}.wp-color-result:focus{border-color:#5b9dd9;-webkit-box-shadow:0 0 3px rgba(0,115,170,.8);box-shadow:0 0 3px rgba(0,115,170,.8)}.wp-picker-open+.wp-picker-input-wrap{display:inline-block;vertical-align:top}.wp-picker-container .button{margin-left:6px}.wp-picker-container .iris-square-slider .ui-slider-handle:focus{background-color:#555}.wp-picker-container .iris-picker{-webkit-border-radius:0;border-radius:0;border-color:#ddd;margin-top:6px}.wp-picker-container input[type=text].wp-color-picker{width:65px;font-size:12px;font-family:monospace;line-height:16px;margin:0}.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{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow: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{margin-right:6px;padding:3px 5px}}
|
||||
.wp-color-picker{width:80px}.wp-picker-container .hidden{display:none}.wp-color-result{background-color:#f7f7f7;border:1px solid #ccc;-webkit-border-radius:3px;border-radius:3px;cursor:pointer;height:22px;margin:0 6px 6px 0;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:bottom;display:inline-block;padding-left:30px;-webkit-box-shadow:0 1px 0 #ccc;box-shadow:0 1px 0 #ccc;top:0}.wp-color-result:after{background:#f7f7f7;-webkit-border-radius:0 2px 2px 0;border-radius:0 2px 2px 0;border-left:1px solid #ccc;color:#555;content:attr(title);display:block;font-size:11px;line-height:22px;padding:0 6px;position:relative;right:0;text-align:center;top:0}.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-color-result.wp-picker-open:after{content:attr(data-current)}.wp-picker-container,.wp-picker-container:active{display:inline-block;outline:0}.wp-color-result:focus{border-color:#5b9dd9;-webkit-box-shadow:0 0 3px rgba(0,115,170,.8);box-shadow:0 0 3px rgba(0,115,170,.8)}.wp-picker-open+.wp-picker-input-wrap{display:inline-block;vertical-align:top}.wp-picker-container .button{margin-left:6px}.wp-picker-container .iris-square-slider .ui-slider-handle:focus{background-color:#555}.wp-picker-container .iris-picker{-webkit-border-radius:0;border-radius:0;border-color:#ddd;margin-top:6px}.wp-picker-container input[type=text].wp-color-picker{width:65px;font-size:12px;font-family:monospace;line-height:16px;margin:0}.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{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}
|
||||
@@ -408,7 +408,12 @@ ul#adminmenu > li.current > a.current:after {
|
||||
}
|
||||
|
||||
.media-selection .attachment.selection.details .thumbnail {
|
||||
box-shadow: 0 0 0 1px #fff, 0 0 0 3px $highlight-color;
|
||||
-webkit-box-shadow:
|
||||
0px 0px 0px 1px #fff,
|
||||
0px 0px 0px 3px $highlight-color;
|
||||
box-shadow:
|
||||
0px 0px 0px 1px #fff,
|
||||
0px 0px 0px 3px $highlight-color;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after {
|
||||
}
|
||||
|
||||
.media-selection .attachment.selection.details .thumbnail {
|
||||
-webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 3px #096484;
|
||||
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #096484;
|
||||
-webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #096484;
|
||||
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #096484;
|
||||
}
|
||||
|
||||
/* Themes */
|
||||
|
||||
@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after {
|
||||
}
|
||||
|
||||
.media-selection .attachment.selection.details .thumbnail {
|
||||
-webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 3px #096484;
|
||||
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #096484;
|
||||
-webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #096484;
|
||||
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #096484;
|
||||
}
|
||||
|
||||
/* Themes */
|
||||
|
||||
@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after {
|
||||
}
|
||||
|
||||
.media-selection .attachment.selection.details .thumbnail {
|
||||
-webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 3px #c7a589;
|
||||
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #c7a589;
|
||||
-webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #c7a589;
|
||||
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #c7a589;
|
||||
}
|
||||
|
||||
/* Themes */
|
||||
|
||||
@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after {
|
||||
}
|
||||
|
||||
.media-selection .attachment.selection.details .thumbnail {
|
||||
-webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 3px #c7a589;
|
||||
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #c7a589;
|
||||
-webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #c7a589;
|
||||
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #c7a589;
|
||||
}
|
||||
|
||||
/* Themes */
|
||||
|
||||
@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after {
|
||||
}
|
||||
|
||||
.media-selection .attachment.selection.details .thumbnail {
|
||||
-webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 3px #a3b745;
|
||||
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #a3b745;
|
||||
-webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #a3b745;
|
||||
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #a3b745;
|
||||
}
|
||||
|
||||
/* Themes */
|
||||
|
||||
@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after {
|
||||
}
|
||||
|
||||
.media-selection .attachment.selection.details .thumbnail {
|
||||
-webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 3px #a3b745;
|
||||
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #a3b745;
|
||||
-webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #a3b745;
|
||||
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #a3b745;
|
||||
}
|
||||
|
||||
/* Themes */
|
||||
|
||||
@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after {
|
||||
}
|
||||
|
||||
.media-selection .attachment.selection.details .thumbnail {
|
||||
-webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 3px #04a4cc;
|
||||
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #04a4cc;
|
||||
-webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #04a4cc;
|
||||
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #04a4cc;
|
||||
}
|
||||
|
||||
/* Themes */
|
||||
|
||||
@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after {
|
||||
}
|
||||
|
||||
.media-selection .attachment.selection.details .thumbnail {
|
||||
-webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 3px #04a4cc;
|
||||
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #04a4cc;
|
||||
-webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #04a4cc;
|
||||
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #04a4cc;
|
||||
}
|
||||
|
||||
/* Themes */
|
||||
|
||||
@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after {
|
||||
}
|
||||
|
||||
.media-selection .attachment.selection.details .thumbnail {
|
||||
-webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 3px #e14d43;
|
||||
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #e14d43;
|
||||
-webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #e14d43;
|
||||
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #e14d43;
|
||||
}
|
||||
|
||||
/* Themes */
|
||||
|
||||
@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after {
|
||||
}
|
||||
|
||||
.media-selection .attachment.selection.details .thumbnail {
|
||||
-webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 3px #e14d43;
|
||||
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #e14d43;
|
||||
-webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #e14d43;
|
||||
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #e14d43;
|
||||
}
|
||||
|
||||
/* Themes */
|
||||
|
||||
@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after {
|
||||
}
|
||||
|
||||
.media-selection .attachment.selection.details .thumbnail {
|
||||
-webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 3px #9ebaa0;
|
||||
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #9ebaa0;
|
||||
-webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #9ebaa0;
|
||||
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #9ebaa0;
|
||||
}
|
||||
|
||||
/* Themes */
|
||||
|
||||
@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after {
|
||||
}
|
||||
|
||||
.media-selection .attachment.selection.details .thumbnail {
|
||||
-webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 3px #9ebaa0;
|
||||
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #9ebaa0;
|
||||
-webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #9ebaa0;
|
||||
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #9ebaa0;
|
||||
}
|
||||
|
||||
/* Themes */
|
||||
|
||||
@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after {
|
||||
}
|
||||
|
||||
.media-selection .attachment.selection.details .thumbnail {
|
||||
-webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 3px #dd823b;
|
||||
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #dd823b;
|
||||
-webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #dd823b;
|
||||
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #dd823b;
|
||||
}
|
||||
|
||||
/* Themes */
|
||||
|
||||
@@ -430,8 +430,8 @@ ul#adminmenu > li.current > a.current:after {
|
||||
}
|
||||
|
||||
.media-selection .attachment.selection.details .thumbnail {
|
||||
-webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 3px #dd823b;
|
||||
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #dd823b;
|
||||
-webkit-box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #dd823b;
|
||||
box-shadow: 0px 0px 0px 1px #fff, 0px 0px 0px 3px #dd823b;
|
||||
}
|
||||
|
||||
/* Themes */
|
||||
|
||||
@@ -244,7 +244,6 @@ td {
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
/* Any change to the default link style must be applied to button-link too. */
|
||||
a {
|
||||
color: #0073aa;
|
||||
-webkit-transition-property: border, background, color;
|
||||
@@ -465,8 +464,7 @@ code {
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.widefat a,
|
||||
.widefat button.button-link {
|
||||
.widefat a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@@ -779,7 +777,7 @@ img.emoji {
|
||||
#bulk-titles div a:before,
|
||||
.notice-dismiss:before {
|
||||
background: none;
|
||||
color: #72777c;
|
||||
color: #b4b9be;
|
||||
content: "\f153";
|
||||
display: block;
|
||||
font: normal 16px/20px dashicons;
|
||||
@@ -865,6 +863,8 @@ hr {
|
||||
border-bottom: 1px solid #fafafa;
|
||||
}
|
||||
|
||||
.widget-control-remove,
|
||||
.widget-control-remove:focus,
|
||||
.row-actions span.delete a,
|
||||
.row-actions span.trash a,
|
||||
.row-actions span.spam a,
|
||||
@@ -874,8 +874,7 @@ hr {
|
||||
.submitbox .submitdelete,
|
||||
#media-items a.delete,
|
||||
#media-items a.delete-permanently,
|
||||
#nav-menu-footer .menu-delete,
|
||||
#delete-link a.delete {
|
||||
#nav-menu-footer .menu-delete {
|
||||
color: #a00;
|
||||
}
|
||||
|
||||
@@ -891,12 +890,15 @@ span.required,
|
||||
.submitbox .submitdelete:hover,
|
||||
#media-items a.delete:hover,
|
||||
#media-items a.delete-permanently:hover,
|
||||
#nav-menu-footer .menu-delete:hover,
|
||||
#delete-link a.delete:hover {
|
||||
color: #dc3232;
|
||||
#nav-menu-footer .menu-delete:hover {
|
||||
color: #f00;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.widget-control-remove:hover {
|
||||
color: #f00;
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------------------
|
||||
3.0 - Actions
|
||||
------------------------------------------------------------------------------*/
|
||||
@@ -913,17 +915,6 @@ span.required,
|
||||
line-height: 28px;
|
||||
}
|
||||
|
||||
#delete-link {
|
||||
line-height: 28px;
|
||||
vertical-align: middle;
|
||||
text-align: right;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
#delete-link a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#publishing-action {
|
||||
text-align: left;
|
||||
float: left;
|
||||
@@ -1142,21 +1133,34 @@ th.action-links {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.filter-drawer,
|
||||
.wp-filter .favorites-form {
|
||||
display: none;
|
||||
margin: 0 -20px 0 -10px;
|
||||
margin: 0 -20px;
|
||||
padding: 20px;
|
||||
border-top: 1px solid #eee;
|
||||
background: #fafafa;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.show-filters .filter-drawer,
|
||||
.show-favorites-form .favorites-form {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.filter-drawer {
|
||||
display: none;
|
||||
margin: 0 -20px;
|
||||
padding: 20px;
|
||||
border-top: 1px solid #eee;
|
||||
background: #fafafa;
|
||||
}
|
||||
|
||||
.show-filters .filter-drawer {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.show-filters .filter-links a.current {
|
||||
border-bottom: none;
|
||||
}
|
||||
@@ -1238,10 +1242,20 @@ th.action-links {
|
||||
}
|
||||
|
||||
.wp-filter .button-link.edit-filters {
|
||||
color: #0073aa;
|
||||
text-decoration: underline;
|
||||
padding: 0 5px;
|
||||
line-height: 28px;
|
||||
}
|
||||
|
||||
.wp-filter .button-link.edit-filters:hover {
|
||||
color: #00a0d2;
|
||||
}
|
||||
|
||||
.wp-filter .button-link.edit-filters:focus {
|
||||
color: #124964;
|
||||
}
|
||||
|
||||
.filtered-by {
|
||||
display: none;
|
||||
margin: 0;
|
||||
@@ -1417,7 +1431,7 @@ div.error p,
|
||||
margin: 0;
|
||||
padding: 9px;
|
||||
background: none;
|
||||
color: #72777c;
|
||||
color: #b4b9be;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@@ -1593,7 +1607,8 @@ form.upgrade .hint {
|
||||
color: #66c6e4;
|
||||
}
|
||||
|
||||
.button.updated-message {
|
||||
.button.updated-message,
|
||||
.notice .button-link {
|
||||
-webkit-transition-property: border, background, color;
|
||||
transition-property: border, background, color;
|
||||
-webkit-transition-duration: .05s;
|
||||
@@ -1602,6 +1617,15 @@ form.upgrade .hint {
|
||||
transition-timing-function: ease-in-out;
|
||||
}
|
||||
|
||||
.notice .button-link {
|
||||
color: #0073aa;
|
||||
}
|
||||
|
||||
.notice .button-link:hover,
|
||||
.notice .button-link:active {
|
||||
color: #00a0d2;
|
||||
}
|
||||
|
||||
@media aural {
|
||||
.wrap .notice p:before,
|
||||
.button.installing:before,
|
||||
@@ -2040,11 +2064,7 @@ html.wp-toolbar {
|
||||
float: left;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.js .postbox .handlediv {
|
||||
@@ -2522,18 +2542,25 @@ div.action-links {
|
||||
}
|
||||
|
||||
#plugin-information-title {
|
||||
padding: 0 26px;
|
||||
padding: 0 20px;
|
||||
background: #f5f5f5;
|
||||
font-size: 22px;
|
||||
font-weight: 600;
|
||||
line-height: 56px;
|
||||
position: relative;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 56px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
#plugin-information-title.with-banner {
|
||||
margin-left: 0;
|
||||
height: 250px;
|
||||
bottom: 250px;
|
||||
-webkit-background-size: cover;
|
||||
background-size: cover;
|
||||
}
|
||||
@@ -2543,23 +2570,19 @@ div.action-links {
|
||||
font-weight: 600;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
max-width: 680px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
#plugin-information-title.with-banner h2 {
|
||||
position: relative;
|
||||
font-family: "Helvetica Neue", sans-serif;
|
||||
display: inline-block;
|
||||
font-size: 30px;
|
||||
line-height: 50px;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
max-width: 100%;
|
||||
padding: 0 15px;
|
||||
margin-top: 174px;
|
||||
margin: 174px 10px 0 0;
|
||||
color: #fff;
|
||||
background: rgba( 30, 30, 30, 0.9 );
|
||||
text-shadow: 0 1px 3px rgba( 0, 0, 0, 0.4 );
|
||||
@@ -2574,12 +2597,12 @@ div.action-links {
|
||||
}
|
||||
|
||||
#plugin-information-title.with-banner div.vignette {
|
||||
position: absolute;
|
||||
display: block;
|
||||
float: left;
|
||||
top: 0;
|
||||
right: 0;
|
||||
height: 250px;
|
||||
width: 100%;
|
||||
width: 772px;
|
||||
margin: 0 -20px;
|
||||
background: transparent;
|
||||
-webkit-box-shadow: inset 0 0 50px 4px rgba( 0, 0, 0, 0.2 ), inset 0 -1px 0 rgba( 0, 0, 0, 0.1 );
|
||||
box-shadow: inset 0 0 50px 4px rgba( 0, 0, 0, 0.2 ), inset 0 -1px 0 rgba( 0, 0, 0, 0.1 );
|
||||
@@ -2814,14 +2837,6 @@ div.action-links {
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
|
||||
#plugin-information blockquote {
|
||||
border-right: 2px solid #ddd;
|
||||
color: #666;
|
||||
font-style: italic;
|
||||
margin: 1em 0;
|
||||
padding: 0 1em 0 0;
|
||||
}
|
||||
|
||||
/* rtl:ignore */
|
||||
#plugin-information .review {
|
||||
overflow: hidden; /* clearfix */
|
||||
@@ -2882,6 +2897,7 @@ div.action-links {
|
||||
@media screen and ( max-width: 771px ) {
|
||||
#plugin-information-title.with-banner {
|
||||
height: 100px;
|
||||
bottom: 100px;
|
||||
}
|
||||
|
||||
#plugin-information-title.with-banner h2 {
|
||||
@@ -2893,6 +2909,8 @@ div.action-links {
|
||||
|
||||
#plugin-information-title.with-banner div.vignette {
|
||||
height: 100px;
|
||||
bottom: 100px;
|
||||
width: 800%;
|
||||
}
|
||||
|
||||
#plugin-information-tabs {
|
||||
@@ -3160,9 +3178,7 @@ img {
|
||||
font-size: 13px;
|
||||
width: 97%;
|
||||
background: #f9f9f9;
|
||||
-moz-tab-size: 4;
|
||||
-o-tab-size: 4;
|
||||
tab-size: 4;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
/* rtl:ignore */
|
||||
@@ -3240,26 +3256,26 @@ img {
|
||||
|
||||
/* @todo: can we use a common class for these? */
|
||||
.nav-menus-php .item-edit:before,
|
||||
.widget-top .widget-action .toggle-indicator:before,
|
||||
.widget-top a.widget-action:after,
|
||||
.control-section .accordion-section-title:after,
|
||||
.accordion-section-title:after {
|
||||
left: 0;
|
||||
content: "\f140";
|
||||
border: none;
|
||||
background: none;
|
||||
font: normal 20px/1 dashicons;
|
||||
speak: none;
|
||||
display: block;
|
||||
padding: 0;
|
||||
text-indent: 0;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
.widget-top .widget-action .toggle-indicator:before {
|
||||
padding: 1px 0px 1px 2px;
|
||||
-webkit-border-radius: 50%;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.handlediv,
|
||||
.postbox .handlediv.button-link,
|
||||
.item-edit,
|
||||
.sidebar-name-arrow,
|
||||
.accordion-section-title:after {
|
||||
@@ -3274,8 +3290,6 @@ img {
|
||||
.widget-action:focus,
|
||||
.handlediv:hover,
|
||||
.handlediv:focus,
|
||||
.postbox .handlediv.button-link:hover,
|
||||
.postbox .handlediv.button-link:focus,
|
||||
.item-edit:hover,
|
||||
.item-edit:focus,
|
||||
.sidebar-name:hover .sidebar-name-arrow,
|
||||
@@ -3283,7 +3297,15 @@ img {
|
||||
color: #23282d;
|
||||
}
|
||||
|
||||
.widget-top .widget-action:focus .toggle-indicator:before {
|
||||
.widget-top a.widget-action:after {
|
||||
padding: 1px 0px 1px 2px;
|
||||
margin-top: 10px;
|
||||
margin-left: 10px;
|
||||
-webkit-border-radius: 50%;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.widget-top a.widget-action:focus:after {
|
||||
-webkit-box-shadow:
|
||||
0 0 0 1px #5b9dd9,
|
||||
0 0 2px 1px rgba(30,140,190,.8);
|
||||
@@ -3302,7 +3324,7 @@ img {
|
||||
.control-section.open .accordion-section-title:after,
|
||||
#customize-info.open .accordion-section-title:after,
|
||||
.nav-menus-php .menu-item-edit-active .item-edit:before,
|
||||
.widget.open .widget-top .widget-action .toggle-indicator:before {
|
||||
.widget.open .widget-top a.widget-action:after {
|
||||
content: "\f142";
|
||||
}
|
||||
|
||||
@@ -3581,8 +3603,8 @@ img {
|
||||
/* @todo: evaluate - most of these were likely replaced by dashicons */
|
||||
.curtime #timestamp,
|
||||
#screen-meta-links a.show-settings,
|
||||
.widget-top .widget-action,
|
||||
.widget-top .widget-action:hover,
|
||||
.widget-top a.widget-action,
|
||||
.widget-top a.widget-action:hover,
|
||||
.sidebar-name-arrow,
|
||||
.sidebar-name:hover .sidebar-name-arrow,
|
||||
.meta-box-sortables .postbox:hover .handlediv,
|
||||
|
||||
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
@@ -244,7 +244,6 @@ td {
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
/* Any change to the default link style must be applied to button-link too. */
|
||||
a {
|
||||
color: #0073aa;
|
||||
-webkit-transition-property: border, background, color;
|
||||
@@ -465,8 +464,7 @@ code {
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.widefat a,
|
||||
.widefat button.button-link {
|
||||
.widefat a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@@ -779,7 +777,7 @@ img.emoji {
|
||||
#bulk-titles div a:before,
|
||||
.notice-dismiss:before {
|
||||
background: none;
|
||||
color: #72777c;
|
||||
color: #b4b9be;
|
||||
content: "\f153";
|
||||
display: block;
|
||||
font: normal 16px/20px dashicons;
|
||||
@@ -865,6 +863,8 @@ hr {
|
||||
border-bottom: 1px solid #fafafa;
|
||||
}
|
||||
|
||||
.widget-control-remove,
|
||||
.widget-control-remove:focus,
|
||||
.row-actions span.delete a,
|
||||
.row-actions span.trash a,
|
||||
.row-actions span.spam a,
|
||||
@@ -874,8 +874,7 @@ hr {
|
||||
.submitbox .submitdelete,
|
||||
#media-items a.delete,
|
||||
#media-items a.delete-permanently,
|
||||
#nav-menu-footer .menu-delete,
|
||||
#delete-link a.delete {
|
||||
#nav-menu-footer .menu-delete {
|
||||
color: #a00;
|
||||
}
|
||||
|
||||
@@ -891,12 +890,15 @@ span.required,
|
||||
.submitbox .submitdelete:hover,
|
||||
#media-items a.delete:hover,
|
||||
#media-items a.delete-permanently:hover,
|
||||
#nav-menu-footer .menu-delete:hover,
|
||||
#delete-link a.delete:hover {
|
||||
color: #dc3232;
|
||||
#nav-menu-footer .menu-delete:hover {
|
||||
color: #f00;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.widget-control-remove:hover {
|
||||
color: #f00;
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------------------
|
||||
3.0 - Actions
|
||||
------------------------------------------------------------------------------*/
|
||||
@@ -913,17 +915,6 @@ span.required,
|
||||
line-height: 28px;
|
||||
}
|
||||
|
||||
#delete-link {
|
||||
line-height: 28px;
|
||||
vertical-align: middle;
|
||||
text-align: left;
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
#delete-link a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#publishing-action {
|
||||
text-align: right;
|
||||
float: right;
|
||||
@@ -1142,21 +1133,34 @@ th.action-links {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.filter-drawer,
|
||||
.wp-filter .favorites-form {
|
||||
display: none;
|
||||
margin: 0 -10px 0 -20px;
|
||||
margin: 0 -20px;
|
||||
padding: 20px;
|
||||
border-top: 1px solid #eee;
|
||||
background: #fafafa;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.show-filters .filter-drawer,
|
||||
.show-favorites-form .favorites-form {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.filter-drawer {
|
||||
display: none;
|
||||
margin: 0 -20px;
|
||||
padding: 20px;
|
||||
border-top: 1px solid #eee;
|
||||
background: #fafafa;
|
||||
}
|
||||
|
||||
.show-filters .filter-drawer {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.show-filters .filter-links a.current {
|
||||
border-bottom: none;
|
||||
}
|
||||
@@ -1238,10 +1242,20 @@ th.action-links {
|
||||
}
|
||||
|
||||
.wp-filter .button-link.edit-filters {
|
||||
color: #0073aa;
|
||||
text-decoration: underline;
|
||||
padding: 0 5px;
|
||||
line-height: 28px;
|
||||
}
|
||||
|
||||
.wp-filter .button-link.edit-filters:hover {
|
||||
color: #00a0d2;
|
||||
}
|
||||
|
||||
.wp-filter .button-link.edit-filters:focus {
|
||||
color: #124964;
|
||||
}
|
||||
|
||||
.filtered-by {
|
||||
display: none;
|
||||
margin: 0;
|
||||
@@ -1417,7 +1431,7 @@ div.error p,
|
||||
margin: 0;
|
||||
padding: 9px;
|
||||
background: none;
|
||||
color: #72777c;
|
||||
color: #b4b9be;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@@ -1593,7 +1607,8 @@ form.upgrade .hint {
|
||||
color: #66c6e4;
|
||||
}
|
||||
|
||||
.button.updated-message {
|
||||
.button.updated-message,
|
||||
.notice .button-link {
|
||||
-webkit-transition-property: border, background, color;
|
||||
transition-property: border, background, color;
|
||||
-webkit-transition-duration: .05s;
|
||||
@@ -1602,6 +1617,15 @@ form.upgrade .hint {
|
||||
transition-timing-function: ease-in-out;
|
||||
}
|
||||
|
||||
.notice .button-link {
|
||||
color: #0073aa;
|
||||
}
|
||||
|
||||
.notice .button-link:hover,
|
||||
.notice .button-link:active {
|
||||
color: #00a0d2;
|
||||
}
|
||||
|
||||
@media aural {
|
||||
.wrap .notice p:before,
|
||||
.button.installing:before,
|
||||
@@ -2040,11 +2064,7 @@ html.wp-toolbar {
|
||||
float: right;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.js .postbox .handlediv {
|
||||
@@ -2522,18 +2542,25 @@ div.action-links {
|
||||
}
|
||||
|
||||
#plugin-information-title {
|
||||
padding: 0 26px;
|
||||
padding: 0 20px;
|
||||
background: #f5f5f5;
|
||||
font-size: 22px;
|
||||
font-weight: 600;
|
||||
line-height: 56px;
|
||||
position: relative;
|
||||
top: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
height: 56px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
#plugin-information-title.with-banner {
|
||||
margin-right: 0;
|
||||
height: 250px;
|
||||
bottom: 250px;
|
||||
-webkit-background-size: cover;
|
||||
background-size: cover;
|
||||
}
|
||||
@@ -2543,23 +2570,19 @@ div.action-links {
|
||||
font-weight: 600;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
max-width: 680px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
#plugin-information-title.with-banner h2 {
|
||||
position: relative;
|
||||
font-family: "Helvetica Neue", sans-serif;
|
||||
display: inline-block;
|
||||
font-size: 30px;
|
||||
line-height: 50px;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
max-width: 100%;
|
||||
padding: 0 15px;
|
||||
margin-top: 174px;
|
||||
margin: 174px 0 0 10px;
|
||||
color: #fff;
|
||||
background: rgba( 30, 30, 30, 0.9 );
|
||||
text-shadow: 0 1px 3px rgba( 0, 0, 0, 0.4 );
|
||||
@@ -2574,12 +2597,12 @@ div.action-links {
|
||||
}
|
||||
|
||||
#plugin-information-title.with-banner div.vignette {
|
||||
position: absolute;
|
||||
display: block;
|
||||
float: right;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 250px;
|
||||
width: 100%;
|
||||
width: 772px;
|
||||
margin: 0 -20px;
|
||||
background: transparent;
|
||||
-webkit-box-shadow: inset 0 0 50px 4px rgba( 0, 0, 0, 0.2 ), inset 0 -1px 0 rgba( 0, 0, 0, 0.1 );
|
||||
box-shadow: inset 0 0 50px 4px rgba( 0, 0, 0, 0.2 ), inset 0 -1px 0 rgba( 0, 0, 0, 0.1 );
|
||||
@@ -2814,14 +2837,6 @@ div.action-links {
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
|
||||
#plugin-information blockquote {
|
||||
border-left: 2px solid #ddd;
|
||||
color: #666;
|
||||
font-style: italic;
|
||||
margin: 1em 0;
|
||||
padding: 0 0 0 1em;
|
||||
}
|
||||
|
||||
/* rtl:ignore */
|
||||
#plugin-information .review {
|
||||
overflow: hidden; /* clearfix */
|
||||
@@ -2882,6 +2897,7 @@ div.action-links {
|
||||
@media screen and ( max-width: 771px ) {
|
||||
#plugin-information-title.with-banner {
|
||||
height: 100px;
|
||||
bottom: 100px;
|
||||
}
|
||||
|
||||
#plugin-information-title.with-banner h2 {
|
||||
@@ -2893,6 +2909,8 @@ div.action-links {
|
||||
|
||||
#plugin-information-title.with-banner div.vignette {
|
||||
height: 100px;
|
||||
bottom: 100px;
|
||||
width: 800%;
|
||||
}
|
||||
|
||||
#plugin-information-tabs {
|
||||
@@ -3160,9 +3178,7 @@ img {
|
||||
font-size: 13px;
|
||||
width: 97%;
|
||||
background: #f9f9f9;
|
||||
-moz-tab-size: 4;
|
||||
-o-tab-size: 4;
|
||||
tab-size: 4;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
/* rtl:ignore */
|
||||
@@ -3240,26 +3256,26 @@ img {
|
||||
|
||||
/* @todo: can we use a common class for these? */
|
||||
.nav-menus-php .item-edit:before,
|
||||
.widget-top .widget-action .toggle-indicator:before,
|
||||
.widget-top a.widget-action:after,
|
||||
.control-section .accordion-section-title:after,
|
||||
.accordion-section-title:after {
|
||||
right: 0;
|
||||
content: "\f140";
|
||||
border: none;
|
||||
background: none;
|
||||
font: normal 20px/1 dashicons;
|
||||
speak: none;
|
||||
display: block;
|
||||
padding: 0;
|
||||
text-indent: 0;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
.widget-top .widget-action .toggle-indicator:before {
|
||||
padding: 1px 2px 1px 0px;
|
||||
-webkit-border-radius: 50%;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.handlediv,
|
||||
.postbox .handlediv.button-link,
|
||||
.item-edit,
|
||||
.sidebar-name-arrow,
|
||||
.accordion-section-title:after {
|
||||
@@ -3274,8 +3290,6 @@ img {
|
||||
.widget-action:focus,
|
||||
.handlediv:hover,
|
||||
.handlediv:focus,
|
||||
.postbox .handlediv.button-link:hover,
|
||||
.postbox .handlediv.button-link:focus,
|
||||
.item-edit:hover,
|
||||
.item-edit:focus,
|
||||
.sidebar-name:hover .sidebar-name-arrow,
|
||||
@@ -3283,7 +3297,15 @@ img {
|
||||
color: #23282d;
|
||||
}
|
||||
|
||||
.widget-top .widget-action:focus .toggle-indicator:before {
|
||||
.widget-top a.widget-action:after {
|
||||
padding: 1px 2px 1px 0px;
|
||||
margin-top: 10px;
|
||||
margin-right: 10px;
|
||||
-webkit-border-radius: 50%;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.widget-top a.widget-action:focus:after {
|
||||
-webkit-box-shadow:
|
||||
0 0 0 1px #5b9dd9,
|
||||
0 0 2px 1px rgba(30,140,190,.8);
|
||||
@@ -3302,7 +3324,7 @@ img {
|
||||
.control-section.open .accordion-section-title:after,
|
||||
#customize-info.open .accordion-section-title:after,
|
||||
.nav-menus-php .menu-item-edit-active .item-edit:before,
|
||||
.widget.open .widget-top .widget-action .toggle-indicator:before {
|
||||
.widget.open .widget-top a.widget-action:after {
|
||||
content: "\f142";
|
||||
}
|
||||
|
||||
@@ -3581,8 +3603,8 @@ img {
|
||||
/* @todo: evaluate - most of these were likely replaced by dashicons */
|
||||
.curtime #timestamp,
|
||||
#screen-meta-links a.show-settings,
|
||||
.widget-top .widget-action,
|
||||
.widget-top .widget-action:hover,
|
||||
.widget-top a.widget-action,
|
||||
.widget-top a.widget-action:hover,
|
||||
.sidebar-name-arrow,
|
||||
.sidebar-name:hover .sidebar-name-arrow,
|
||||
.meta-box-sortables .postbox:hover .handlediv,
|
||||
|
||||
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
@@ -163,15 +163,6 @@ body {
|
||||
#customize-controls .customize-info .customize-panel-description.open + .no-widget-areas-rendered-notice {
|
||||
border-top: none;
|
||||
}
|
||||
.no-widget-areas-rendered-notice {
|
||||
font-style: italic;
|
||||
}
|
||||
.no-widget-areas-rendered-notice p:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
.no-widget-areas-rendered-notice p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
#customize-controls .customize-info .customize-section-description {
|
||||
margin-bottom: 15px;
|
||||
@@ -303,11 +294,6 @@ body {
|
||||
transition: 0.18s transform cubic-bezier(0.645, 0.045, 0.355, 1), 0.18s -webkit-transform cubic-bezier(0.645, 0.045, 0.355, 1); /* easeInOutCubic */
|
||||
}
|
||||
|
||||
#customize-theme-controls .customize-pane-child.skip-transition {
|
||||
-webkit-transition: none;
|
||||
transition: none;
|
||||
}
|
||||
|
||||
#customize-info,
|
||||
#customize-theme-controls .customize-pane-parent {
|
||||
position: relative;
|
||||
@@ -617,6 +603,7 @@ p.customize-section-description {
|
||||
|
||||
.customize-control select {
|
||||
width: 100%;
|
||||
max-width: 300px;
|
||||
height: 28px;
|
||||
line-height: 28px;
|
||||
}
|
||||
@@ -710,18 +697,10 @@ p.customize-section-description {
|
||||
padding-top: 7px;
|
||||
}
|
||||
|
||||
/* Remove descender space. */
|
||||
.customize-control .thumbnail-image,
|
||||
.customize-control-header .current,
|
||||
.customize-control .wp-media-wrapper.wp-video {
|
||||
.customize-control .thumbnail-image {
|
||||
line-height: 0;
|
||||
}
|
||||
|
||||
/* Remove descender space. */
|
||||
.customize-control-site_icon .favicon-preview .browser-preview {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.customize-control .thumbnail-image img {
|
||||
cursor: pointer;
|
||||
}
|
||||
@@ -751,6 +730,7 @@ p.customize-section-description {
|
||||
|
||||
.customize-control-dropdown-pages .new-content-item {
|
||||
width: 100%;
|
||||
max-width: 300px;
|
||||
padding: 5px 1px 5px 0;
|
||||
position: relative;
|
||||
}
|
||||
@@ -782,8 +762,19 @@ p.customize-section-description {
|
||||
|
||||
.customize-control-dropdown-pages .add-new-toggle {
|
||||
margin-right: 1px;
|
||||
color: #0073aa;
|
||||
font-weight: 600;
|
||||
line-height: 28px;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.customize-control-dropdown-pages .add-new-toggle:hover,
|
||||
.customize-control-dropdown-pages .add-new-toggle:active {
|
||||
color: #00a0d2;
|
||||
}
|
||||
|
||||
.customize-control-dropdown-pages .add-new-toggle:focus {
|
||||
color: #124964;
|
||||
}
|
||||
|
||||
#customize-preview iframe {
|
||||
@@ -940,8 +931,12 @@ p.customize-section-description {
|
||||
|
||||
/* Media controls */
|
||||
|
||||
.customize-control .actions .button {
|
||||
margin-top: 12px;
|
||||
.customize-control .attachment-media-view .actions {
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.customize-control-header .current {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.customize-control-header .actions,
|
||||
@@ -969,9 +964,9 @@ p.customize-section-description {
|
||||
.customize-control .attachment-media-view .upload-button,
|
||||
.customize-control-header button.new,
|
||||
.customize-control-header button.remove {
|
||||
width: auto;
|
||||
height: auto;
|
||||
white-space: normal;
|
||||
width: 48%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.customize-control .attachment-media-view .thumbnail,
|
||||
@@ -1017,7 +1012,7 @@ p.customize-section-description {
|
||||
.customize-control-header .header-view {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
margin-bottom: 12px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.customize-control-header .header-view:last-child {
|
||||
@@ -1141,7 +1136,13 @@ p.customize-section-description {
|
||||
.customize-control .attachment-media-view .remove-button,
|
||||
.customize-control .attachment-media-view .default-button,
|
||||
.customize-control-header .remove {
|
||||
margin-left: 8px;
|
||||
float: right;
|
||||
margin-left: 3px;
|
||||
}
|
||||
|
||||
.customize-control .attachment-media-view .upload-button,
|
||||
.customize-control-header .new {
|
||||
float: left;
|
||||
}
|
||||
|
||||
/* Background position control */
|
||||
@@ -1185,18 +1186,20 @@ p.customize-section-description {
|
||||
.customize-section-description-container + #customize-control-custom_css:last-child {
|
||||
margin-right: -12px;
|
||||
width: 299px;
|
||||
width: -webkit-calc( 100% + 24px );
|
||||
width: calc( 100% + 24px );
|
||||
margin-bottom: -12px;
|
||||
}
|
||||
|
||||
@media screen and ( max-width: 640px ) {
|
||||
.customize-section-description-container + #customize-control-custom_css:last-child {
|
||||
margin-right: 0;
|
||||
margin-left: 0;
|
||||
width: 100%;
|
||||
}
|
||||
.customize-section-description-container + #customize-control-custom_css:last-child textarea {
|
||||
height: -webkit-calc( 100vh - 140px );
|
||||
height: calc( 100vh - 140px );
|
||||
width: 100%;
|
||||
border: solid 1px #ddd;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1470,11 +1473,24 @@ body.cheatin p {
|
||||
|
||||
/* Reordering */
|
||||
.reorder-toggle {
|
||||
color: #0073aa;
|
||||
float: left;
|
||||
padding: 5px 8px;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.reorder-toggle:hover {
|
||||
color: #00a0d2;
|
||||
}
|
||||
|
||||
.reorder-toggle:focus {
|
||||
outline: 1px dotted;
|
||||
}
|
||||
|
||||
.reorder,
|
||||
@@ -1486,6 +1502,13 @@ body.cheatin p {
|
||||
.reorder-done,
|
||||
.reordering .reorder {
|
||||
display: none;
|
||||
color: #0073aa;
|
||||
}
|
||||
|
||||
.reorder-toggle:hover .reorder-done,
|
||||
.reorder-toggle:active .reorder-done,
|
||||
.reorder-toggle:focus .reorder-done {
|
||||
color: #00a0d2;
|
||||
}
|
||||
|
||||
.widget-reorder-nav span,
|
||||
|
||||
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
@@ -163,15 +163,6 @@ body {
|
||||
#customize-controls .customize-info .customize-panel-description.open + .no-widget-areas-rendered-notice {
|
||||
border-top: none;
|
||||
}
|
||||
.no-widget-areas-rendered-notice {
|
||||
font-style: italic;
|
||||
}
|
||||
.no-widget-areas-rendered-notice p:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
.no-widget-areas-rendered-notice p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
#customize-controls .customize-info .customize-section-description {
|
||||
margin-bottom: 15px;
|
||||
@@ -303,11 +294,6 @@ body {
|
||||
transition: 0.18s transform cubic-bezier(0.645, 0.045, 0.355, 1), 0.18s -webkit-transform cubic-bezier(0.645, 0.045, 0.355, 1); /* easeInOutCubic */
|
||||
}
|
||||
|
||||
#customize-theme-controls .customize-pane-child.skip-transition {
|
||||
-webkit-transition: none;
|
||||
transition: none;
|
||||
}
|
||||
|
||||
#customize-info,
|
||||
#customize-theme-controls .customize-pane-parent {
|
||||
position: relative;
|
||||
@@ -617,6 +603,7 @@ p.customize-section-description {
|
||||
|
||||
.customize-control select {
|
||||
width: 100%;
|
||||
max-width: 300px;
|
||||
height: 28px;
|
||||
line-height: 28px;
|
||||
}
|
||||
@@ -710,18 +697,10 @@ p.customize-section-description {
|
||||
padding-top: 7px;
|
||||
}
|
||||
|
||||
/* Remove descender space. */
|
||||
.customize-control .thumbnail-image,
|
||||
.customize-control-header .current,
|
||||
.customize-control .wp-media-wrapper.wp-video {
|
||||
.customize-control .thumbnail-image {
|
||||
line-height: 0;
|
||||
}
|
||||
|
||||
/* Remove descender space. */
|
||||
.customize-control-site_icon .favicon-preview .browser-preview {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.customize-control .thumbnail-image img {
|
||||
cursor: pointer;
|
||||
}
|
||||
@@ -751,6 +730,7 @@ p.customize-section-description {
|
||||
|
||||
.customize-control-dropdown-pages .new-content-item {
|
||||
width: 100%;
|
||||
max-width: 300px;
|
||||
padding: 5px 0 5px 1px;
|
||||
position: relative;
|
||||
}
|
||||
@@ -782,8 +762,19 @@ p.customize-section-description {
|
||||
|
||||
.customize-control-dropdown-pages .add-new-toggle {
|
||||
margin-left: 1px;
|
||||
color: #0073aa;
|
||||
font-weight: 600;
|
||||
line-height: 28px;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.customize-control-dropdown-pages .add-new-toggle:hover,
|
||||
.customize-control-dropdown-pages .add-new-toggle:active {
|
||||
color: #00a0d2;
|
||||
}
|
||||
|
||||
.customize-control-dropdown-pages .add-new-toggle:focus {
|
||||
color: #124964;
|
||||
}
|
||||
|
||||
#customize-preview iframe {
|
||||
@@ -940,8 +931,12 @@ p.customize-section-description {
|
||||
|
||||
/* Media controls */
|
||||
|
||||
.customize-control .actions .button {
|
||||
margin-top: 12px;
|
||||
.customize-control .attachment-media-view .actions {
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.customize-control-header .current {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.customize-control-header .actions,
|
||||
@@ -969,9 +964,9 @@ p.customize-section-description {
|
||||
.customize-control .attachment-media-view .upload-button,
|
||||
.customize-control-header button.new,
|
||||
.customize-control-header button.remove {
|
||||
width: auto;
|
||||
height: auto;
|
||||
white-space: normal;
|
||||
width: 48%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.customize-control .attachment-media-view .thumbnail,
|
||||
@@ -1017,7 +1012,7 @@ p.customize-section-description {
|
||||
.customize-control-header .header-view {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
margin-bottom: 12px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.customize-control-header .header-view:last-child {
|
||||
@@ -1141,7 +1136,13 @@ p.customize-section-description {
|
||||
.customize-control .attachment-media-view .remove-button,
|
||||
.customize-control .attachment-media-view .default-button,
|
||||
.customize-control-header .remove {
|
||||
margin-right: 8px;
|
||||
float: left;
|
||||
margin-right: 3px;
|
||||
}
|
||||
|
||||
.customize-control .attachment-media-view .upload-button,
|
||||
.customize-control-header .new {
|
||||
float: right;
|
||||
}
|
||||
|
||||
/* Background position control */
|
||||
@@ -1185,18 +1186,20 @@ p.customize-section-description {
|
||||
.customize-section-description-container + #customize-control-custom_css:last-child {
|
||||
margin-left: -12px;
|
||||
width: 299px;
|
||||
width: -webkit-calc( 100% + 24px );
|
||||
width: calc( 100% + 24px );
|
||||
margin-bottom: -12px;
|
||||
}
|
||||
|
||||
@media screen and ( max-width: 640px ) {
|
||||
.customize-section-description-container + #customize-control-custom_css:last-child {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
width: 100%;
|
||||
}
|
||||
.customize-section-description-container + #customize-control-custom_css:last-child textarea {
|
||||
height: -webkit-calc( 100vh - 140px );
|
||||
height: calc( 100vh - 140px );
|
||||
width: 100%;
|
||||
border: solid 1px #ddd;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1470,11 +1473,24 @@ body.cheatin p {
|
||||
|
||||
/* Reordering */
|
||||
.reorder-toggle {
|
||||
color: #0073aa;
|
||||
float: right;
|
||||
padding: 5px 8px;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.reorder-toggle:hover {
|
||||
color: #00a0d2;
|
||||
}
|
||||
|
||||
.reorder-toggle:focus {
|
||||
outline: 1px dotted;
|
||||
}
|
||||
|
||||
.reorder,
|
||||
@@ -1486,6 +1502,13 @@ body.cheatin p {
|
||||
.reorder-done,
|
||||
.reordering .reorder {
|
||||
display: none;
|
||||
color: #0073aa;
|
||||
}
|
||||
|
||||
.reorder-toggle:hover .reorder-done,
|
||||
.reorder-toggle:active .reorder-done,
|
||||
.reorder-toggle:focus .reorder-done {
|
||||
color: #00a0d2;
|
||||
}
|
||||
|
||||
.widget-reorder-nav span,
|
||||
|
||||
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
@@ -25,6 +25,17 @@
|
||||
margin-right: 6px;
|
||||
vertical-align: middle;
|
||||
line-height: 28px;
|
||||
color: #0073aa;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.customize-control-nav_menu_location .edit-menu:hover,
|
||||
.customize-control-nav_menu_location .edit-menu:active {
|
||||
color: #00a0d2;
|
||||
}
|
||||
|
||||
.customize-control-nav_menu_location .edit-menu:focus {
|
||||
color: #124964;
|
||||
}
|
||||
|
||||
.wp-customizer .menu-item-bar .menu-item-handle,
|
||||
@@ -150,10 +161,9 @@
|
||||
outline: none;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:before {
|
||||
.wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:after {
|
||||
content: "\f142";
|
||||
}
|
||||
|
||||
@@ -271,18 +281,17 @@
|
||||
display: inline-block;
|
||||
font-size: 20px;
|
||||
line-height: 1;
|
||||
text-indent: -1px; /* account for the dashicon alignment */
|
||||
}
|
||||
|
||||
.rtl .wp-customizer .toggle-indicator {
|
||||
text-indent: 1px; /* account for the dashicon alignment */
|
||||
}
|
||||
|
||||
.wp-customizer .menu-item .item-edit .toggle-indicator:before,
|
||||
#available-menu-items .accordion-section-title .toggle-indicator:before {
|
||||
.wp-customizer .toggle-indicator:after {
|
||||
content: "\f140";
|
||||
display: block;
|
||||
padding: 1px 0px 1px 2px;
|
||||
speak: none;
|
||||
vertical-align: top;
|
||||
-webkit-border-radius: 50%;
|
||||
border-radius: 50%;
|
||||
color: #72777c;
|
||||
@@ -495,13 +504,13 @@
|
||||
content: none !important;
|
||||
}
|
||||
|
||||
#available-menu-items .accordion-section-title:hover .toggle-indicator:before,
|
||||
#available-menu-items .button-link:hover .toggle-indicator:before,
|
||||
#available-menu-items .button-link:focus .toggle-indicator:before {
|
||||
#available-menu-items .accordion-section-title:hover .toggle-indicator:after,
|
||||
#available-menu-items .button-link:hover .toggle-indicator:after,
|
||||
#available-menu-items .button-link:focus .toggle-indicator:after {
|
||||
color: #23282d;
|
||||
}
|
||||
|
||||
#available-menu-items .open .accordion-section-title .toggle-indicator:before {
|
||||
#available-menu-items .open .accordion-section-title .toggle-indicator:after {
|
||||
content: "\f142";
|
||||
color: #23282d;
|
||||
}
|
||||
@@ -523,7 +532,6 @@
|
||||
box-shadow: none;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#available-menu-items .accordion-section-title .no-items,
|
||||
@@ -615,7 +623,6 @@
|
||||
box-shadow: none;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#available-menu-items .menu-item-handle .item-add:focus {
|
||||
@@ -712,10 +719,6 @@ body.adding-menu-items #customize-preview {
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
body.adding-menu-items #customize-preview iframe {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.menu-item-handle .spinner {
|
||||
display: none;
|
||||
float: right;
|
||||
@@ -799,6 +802,17 @@ li.assigned-to-menu-location .add-new-menu-item {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.menu-delete {
|
||||
color: #a00;
|
||||
cursor: pointer;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.menu-delete:hover,
|
||||
.menu-delete:focus {
|
||||
color: #f00;
|
||||
}
|
||||
|
||||
.menu-item-handle {
|
||||
margin-top: -1px;
|
||||
}
|
||||
@@ -838,7 +852,7 @@ li.assigned-to-menu-location .add-new-menu-item {
|
||||
.wp-customizer .menu-item .submitbox .submitdelete:focus,
|
||||
.customize-screen-options-toggle:focus:before,
|
||||
#customize-controls .customize-info .customize-help-toggle:focus:before,
|
||||
.wp-customizer button:focus .toggle-indicator:before,
|
||||
.wp-customizer button:focus .toggle-indicator:after,
|
||||
.menu-delete:focus,
|
||||
.menu-item-bar .item-delete:focus:before,
|
||||
#available-menu-items .item-add:focus:before {
|
||||
|
||||
2
wp-admin/css/customize-nav-menus-rtl.min.css
vendored
2
wp-admin/css/customize-nav-menus-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -25,6 +25,17 @@
|
||||
margin-left: 6px;
|
||||
vertical-align: middle;
|
||||
line-height: 28px;
|
||||
color: #0073aa;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.customize-control-nav_menu_location .edit-menu:hover,
|
||||
.customize-control-nav_menu_location .edit-menu:active {
|
||||
color: #00a0d2;
|
||||
}
|
||||
|
||||
.customize-control-nav_menu_location .edit-menu:focus {
|
||||
color: #124964;
|
||||
}
|
||||
|
||||
.wp-customizer .menu-item-bar .menu-item-handle,
|
||||
@@ -150,10 +161,9 @@
|
||||
outline: none;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:before {
|
||||
.wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:after {
|
||||
content: "\f142";
|
||||
}
|
||||
|
||||
@@ -271,18 +281,17 @@
|
||||
display: inline-block;
|
||||
font-size: 20px;
|
||||
line-height: 1;
|
||||
text-indent: -1px; /* account for the dashicon alignment */
|
||||
}
|
||||
|
||||
.rtl .wp-customizer .toggle-indicator {
|
||||
text-indent: 1px; /* account for the dashicon alignment */
|
||||
}
|
||||
|
||||
.wp-customizer .menu-item .item-edit .toggle-indicator:before,
|
||||
#available-menu-items .accordion-section-title .toggle-indicator:before {
|
||||
.wp-customizer .toggle-indicator:after {
|
||||
content: "\f140";
|
||||
display: block;
|
||||
padding: 1px 2px 1px 0px;
|
||||
speak: none;
|
||||
vertical-align: top;
|
||||
-webkit-border-radius: 50%;
|
||||
border-radius: 50%;
|
||||
color: #72777c;
|
||||
@@ -495,13 +504,13 @@
|
||||
content: none !important;
|
||||
}
|
||||
|
||||
#available-menu-items .accordion-section-title:hover .toggle-indicator:before,
|
||||
#available-menu-items .button-link:hover .toggle-indicator:before,
|
||||
#available-menu-items .button-link:focus .toggle-indicator:before {
|
||||
#available-menu-items .accordion-section-title:hover .toggle-indicator:after,
|
||||
#available-menu-items .button-link:hover .toggle-indicator:after,
|
||||
#available-menu-items .button-link:focus .toggle-indicator:after {
|
||||
color: #23282d;
|
||||
}
|
||||
|
||||
#available-menu-items .open .accordion-section-title .toggle-indicator:before {
|
||||
#available-menu-items .open .accordion-section-title .toggle-indicator:after {
|
||||
content: "\f142";
|
||||
color: #23282d;
|
||||
}
|
||||
@@ -523,7 +532,6 @@
|
||||
box-shadow: none;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#available-menu-items .accordion-section-title .no-items,
|
||||
@@ -615,7 +623,6 @@
|
||||
box-shadow: none;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#available-menu-items .menu-item-handle .item-add:focus {
|
||||
@@ -712,10 +719,6 @@ body.adding-menu-items #customize-preview {
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
body.adding-menu-items #customize-preview iframe {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.menu-item-handle .spinner {
|
||||
display: none;
|
||||
float: left;
|
||||
@@ -799,6 +802,17 @@ li.assigned-to-menu-location .add-new-menu-item {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.menu-delete {
|
||||
color: #a00;
|
||||
cursor: pointer;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.menu-delete:hover,
|
||||
.menu-delete:focus {
|
||||
color: #f00;
|
||||
}
|
||||
|
||||
.menu-item-handle {
|
||||
margin-top: -1px;
|
||||
}
|
||||
@@ -838,7 +852,7 @@ li.assigned-to-menu-location .add-new-menu-item {
|
||||
.wp-customizer .menu-item .submitbox .submitdelete:focus,
|
||||
.customize-screen-options-toggle:focus:before,
|
||||
#customize-controls .customize-info .customize-help-toggle:focus:before,
|
||||
.wp-customizer button:focus .toggle-indicator:before,
|
||||
.wp-customizer button:focus .toggle-indicator:after,
|
||||
.menu-delete:focus,
|
||||
.menu-item-bar .item-delete:focus:before,
|
||||
#available-menu-items .item-add:focus:before {
|
||||
|
||||
2
wp-admin/css/customize-nav-menus.min.css
vendored
2
wp-admin/css/customize-nav-menus.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -18,7 +18,6 @@
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
/* Note: widget-tops are more compact when (max-height: 700px) and (min-width: 981px). */
|
||||
.customize-control-widget_form .widget-top {
|
||||
background: #fff;
|
||||
-webkit-transition: opacity 0.5s;
|
||||
@@ -90,15 +89,15 @@
|
||||
line-height: 16px;
|
||||
}
|
||||
|
||||
.customize-control-widget_form.expanded .widget-action .toggle-indicator:before {
|
||||
.customize-control-widget_form.expanded a.widget-action:after {
|
||||
content: "\f142";
|
||||
}
|
||||
|
||||
.customize-control-widget_form.wide-widget-control .widget-action .toggle-indicator:before {
|
||||
.customize-control-widget_form.wide-widget-control a.widget-action:after {
|
||||
content: "\f141";
|
||||
}
|
||||
|
||||
.customize-control-widget_form.wide-widget-control.expanded .widget-action .toggle-indicator:before {
|
||||
.customize-control-widget_form.wide-widget-control.expanded a.widget-action:after {
|
||||
content: "\f139";
|
||||
}
|
||||
|
||||
@@ -213,21 +212,6 @@
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Text Widget */
|
||||
.wp-customizer div.mce-inline-toolbar-grp,
|
||||
.wp-customizer div.mce-tooltip {
|
||||
z-index: 500100 !important;
|
||||
}
|
||||
.wp-customizer .ui-autocomplete.wplink-autocomplete {
|
||||
z-index: 500110; /* originally 100110, but z-index of .wp-full-overlay is 500000 */
|
||||
}
|
||||
.wp-customizer #wp-link-backdrop {
|
||||
z-index: 500100; /* originally 100100, but z-index of .wp-full-overlay is 500000 */
|
||||
}
|
||||
.wp-customizer #wp-link-wrap {
|
||||
z-index: 500105; /* originally 100105, but z-index of .wp-full-overlay is 500000 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Styles for new widget addition panel
|
||||
*/
|
||||
@@ -439,47 +423,33 @@ body.adding-widget #customize-preview {
|
||||
#available-widgets [class*="twitter"] .widget-title:before { content: "\f301"; }
|
||||
|
||||
@media screen and (max-height: 700px) and (min-width: 981px) {
|
||||
/* Compact widget-tops on smaller laptops, but not tablets. See ticket #27112#comment:4 */
|
||||
.customize-control-widget_form {
|
||||
.customize-control-widget {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.widget-top {
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
margin-top: -1px;
|
||||
}
|
||||
|
||||
.widget-top:hover {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.last-widget {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.widget-title h3 {
|
||||
padding: 13px 15px;
|
||||
}
|
||||
|
||||
.widget-top .widget-action {
|
||||
padding: 8px 10px;
|
||||
}
|
||||
|
||||
.widget-reorder-nav span {
|
||||
height: 39px;
|
||||
}
|
||||
|
||||
.widget-reorder-nav span:before {
|
||||
line-height: 39px;
|
||||
}
|
||||
|
||||
/* Compact the move widget areas. */
|
||||
#customize-theme-controls .widget-area-select li {
|
||||
padding: 9px 42px 11px 15px;
|
||||
}
|
||||
|
||||
#customize-theme-controls .widget-area-select li:before {
|
||||
top: 8px;
|
||||
}
|
||||
|
||||
2
wp-admin/css/customize-widgets-rtl.min.css
vendored
2
wp-admin/css/customize-widgets-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -18,7 +18,6 @@
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
/* Note: widget-tops are more compact when (max-height: 700px) and (min-width: 981px). */
|
||||
.customize-control-widget_form .widget-top {
|
||||
background: #fff;
|
||||
-webkit-transition: opacity 0.5s;
|
||||
@@ -90,15 +89,15 @@
|
||||
line-height: 16px;
|
||||
}
|
||||
|
||||
.customize-control-widget_form.expanded .widget-action .toggle-indicator:before {
|
||||
.customize-control-widget_form.expanded a.widget-action:after {
|
||||
content: "\f142";
|
||||
}
|
||||
|
||||
.customize-control-widget_form.wide-widget-control .widget-action .toggle-indicator:before {
|
||||
.customize-control-widget_form.wide-widget-control a.widget-action:after {
|
||||
content: "\f139";
|
||||
}
|
||||
|
||||
.customize-control-widget_form.wide-widget-control.expanded .widget-action .toggle-indicator:before {
|
||||
.customize-control-widget_form.wide-widget-control.expanded a.widget-action:after {
|
||||
content: "\f141";
|
||||
}
|
||||
|
||||
@@ -213,21 +212,6 @@
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Text Widget */
|
||||
.wp-customizer div.mce-inline-toolbar-grp,
|
||||
.wp-customizer div.mce-tooltip {
|
||||
z-index: 500100 !important;
|
||||
}
|
||||
.wp-customizer .ui-autocomplete.wplink-autocomplete {
|
||||
z-index: 500110; /* originally 100110, but z-index of .wp-full-overlay is 500000 */
|
||||
}
|
||||
.wp-customizer #wp-link-backdrop {
|
||||
z-index: 500100; /* originally 100100, but z-index of .wp-full-overlay is 500000 */
|
||||
}
|
||||
.wp-customizer #wp-link-wrap {
|
||||
z-index: 500105; /* originally 100105, but z-index of .wp-full-overlay is 500000 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Styles for new widget addition panel
|
||||
*/
|
||||
@@ -439,47 +423,33 @@ body.adding-widget #customize-preview {
|
||||
#available-widgets [class*="twitter"] .widget-title:before { content: "\f301"; }
|
||||
|
||||
@media screen and (max-height: 700px) and (min-width: 981px) {
|
||||
/* Compact widget-tops on smaller laptops, but not tablets. See ticket #27112#comment:4 */
|
||||
.customize-control-widget_form {
|
||||
.customize-control-widget {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.widget-top {
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
margin-top: -1px;
|
||||
}
|
||||
|
||||
.widget-top:hover {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.last-widget {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.widget-title h3 {
|
||||
padding: 13px 15px;
|
||||
}
|
||||
|
||||
.widget-top .widget-action {
|
||||
padding: 8px 10px;
|
||||
}
|
||||
|
||||
.widget-reorder-nav span {
|
||||
height: 39px;
|
||||
}
|
||||
|
||||
.widget-reorder-nav span:before {
|
||||
line-height: 39px;
|
||||
}
|
||||
|
||||
/* Compact the move widget areas. */
|
||||
#customize-theme-controls .widget-area-select li {
|
||||
padding: 9px 15px 11px 42px;
|
||||
}
|
||||
|
||||
#customize-theme-controls .widget-area-select li:before {
|
||||
top: 8px;
|
||||
}
|
||||
|
||||
2
wp-admin/css/customize-widgets.min.css
vendored
2
wp-admin/css/customize-widgets.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -301,158 +301,6 @@
|
||||
content: "\f153";
|
||||
}
|
||||
|
||||
/* Dashboard WordPress events */
|
||||
|
||||
.community-events-errors {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.community-events-loading {
|
||||
padding: 10px 12px 8px;
|
||||
}
|
||||
|
||||
.community-events {
|
||||
margin-bottom: 6px;
|
||||
padding: 0 12px;
|
||||
}
|
||||
|
||||
.community-events .spinner {
|
||||
float: none;
|
||||
margin: 5px 2px 0;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.community-events-errors[aria-hidden="true"],
|
||||
.community-events-errors [aria-hidden="true"],
|
||||
.community-events-loading[aria-hidden="true"],
|
||||
.community-events[aria-hidden="true"],
|
||||
.community-events [aria-hidden="true"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.community-events .activity-block:first-child,
|
||||
.community-events h2 {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
.community-events-form {
|
||||
margin: 15px 0 5px;
|
||||
}
|
||||
|
||||
.community-events-form .regular-text {
|
||||
width: 40%;
|
||||
height: 29px;
|
||||
margin: 0;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.community-events li.event-none {
|
||||
border-right: 4px solid #00a0d2;
|
||||
}
|
||||
|
||||
.community-events-form label {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
line-height: 28px;
|
||||
height: 28px;
|
||||
}
|
||||
|
||||
.community-events .activity-block > p {
|
||||
margin-bottom: 0;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.community-events-toggle-location {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
#community-events-submit {
|
||||
margin-right: 3px;
|
||||
margin-left: 3px;
|
||||
}
|
||||
|
||||
/* Needs higher specificity than #dashboard-widgets .button-link */
|
||||
#dashboard-widgets .community-events-cancel.button-link {
|
||||
vertical-align: top;
|
||||
/* Same properties as the submit button for cross-browsers alignment. */
|
||||
line-height: 26px;
|
||||
height: 28px;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.community-events ul {
|
||||
background-color: #fafafa;
|
||||
padding-right: 0;
|
||||
padding-left: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.community-events li {
|
||||
margin: 0;
|
||||
padding: 8px 12px;
|
||||
color: #72777c;
|
||||
}
|
||||
.community-events li:first-child {
|
||||
border-top: 1px solid #eee;
|
||||
}
|
||||
|
||||
.community-events li ~ li {
|
||||
border-top: 1px solid #eee;
|
||||
}
|
||||
|
||||
.community-events .activity-block.last {
|
||||
border-bottom: 1px solid #eee;
|
||||
padding-top: 0;
|
||||
margin-top: -1px;
|
||||
}
|
||||
|
||||
.community-events .event-info {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.event-icon {
|
||||
height: 18px;
|
||||
padding-left: 10px;
|
||||
width: 18px;
|
||||
display: none; /* Hide on smaller screens */
|
||||
}
|
||||
|
||||
.event-icon:before {
|
||||
color: #82878C;
|
||||
font-size: 18px;
|
||||
}
|
||||
.event-meetup .event-icon:before {
|
||||
content: "\f484";
|
||||
}
|
||||
.event-wordcamp .event-icon:before {
|
||||
content: "\f486";
|
||||
}
|
||||
|
||||
.community-events .event-title {
|
||||
font-weight: 600;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.community-events .event-date,
|
||||
.community-events .event-time {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.community-events-footer {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
padding: 12px;
|
||||
border-top: 1px solid #eee;
|
||||
color: #ddd;
|
||||
}
|
||||
|
||||
/* Safari 10 + VoiceOver specific: without this, the hidden text gets read out before the link. */
|
||||
.community-events-footer .screen-reader-text {
|
||||
height: inherit;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* Dashboard WordPress news */
|
||||
|
||||
#dashboard_primary .inside {
|
||||
@@ -460,21 +308,19 @@
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#dashboard_primary .widget-loading {
|
||||
#dashboard_primary .widget-loading,
|
||||
#dashboard_primary .dashboard-widget-control-form {
|
||||
padding: 12px 12px 0;
|
||||
margin-bottom: 1em !important; /* Needs to override `.postbox .inside > p:last-child` in common.css */
|
||||
}
|
||||
|
||||
/* Notice when JS is off. */
|
||||
#dashboard_primary .inside .notice {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
body #dashboard-widgets .postbox form .submit {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Used only for configurable widgets. */
|
||||
.dashboard-widget-control-form {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.dashboard-widget-control-form p {
|
||||
margin-top: 0;
|
||||
}
|
||||
@@ -485,8 +331,9 @@ body #dashboard-widgets .postbox form .submit {
|
||||
}
|
||||
|
||||
#dashboard_primary .rss-widget {
|
||||
border-bottom: 1px solid #eee;
|
||||
font-size: 13px;
|
||||
padding: 0 12px 0;
|
||||
padding: 8px 12px 10px;
|
||||
}
|
||||
|
||||
#dashboard_primary .rss-widget:last-child {
|
||||
@@ -508,8 +355,7 @@ body #dashboard-widgets .postbox form .submit {
|
||||
}
|
||||
|
||||
#dashboard_primary .rss-widget ul li {
|
||||
padding: 4px 0;
|
||||
margin: 0;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
/* Dashboard right now */
|
||||
@@ -925,8 +771,7 @@ form.initial-form.quickpress-open input#title {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
#dashboard-widgets a,
|
||||
#dashboard-widgets .button-link {
|
||||
#dashboard-widgets a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@@ -1026,9 +871,9 @@ form.initial-form.quickpress-open input#title {
|
||||
}
|
||||
|
||||
a.rsswidget {
|
||||
font-size: 13px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
line-height: 1.4em;
|
||||
line-height: 1.7em;
|
||||
}
|
||||
|
||||
.rss-widget ul li {
|
||||
@@ -1239,35 +1084,6 @@ a.rsswidget {
|
||||
width: 30px;
|
||||
margin: 4px 0 5px 10px;
|
||||
}
|
||||
|
||||
.community-events-toggle-location {
|
||||
height: 38px;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
.community-events-form .regular-text {
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
#community-events-submit {
|
||||
margin-bottom: 0;
|
||||
/* Override .wp-core-ui .button */
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.community-events-form label,
|
||||
#dashboard-widgets .community-events-cancel.button-link {
|
||||
/* Same properties as the submit button for cross-browsers alignment. */
|
||||
font-size: 14px;
|
||||
line-height: normal;
|
||||
height: auto;
|
||||
padding: 6px 0;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
|
||||
.community-events .spinner {
|
||||
margin-top: 7px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Smartphone */
|
||||
@@ -1291,30 +1107,3 @@ a.rsswidget {
|
||||
right: -35px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 355px) {
|
||||
.community-events .event-info {
|
||||
display: table-row;
|
||||
float: right;
|
||||
max-width: 59%;
|
||||
}
|
||||
|
||||
.event-icon,
|
||||
.event-icon[aria-hidden="true"] {
|
||||
display: table-cell;
|
||||
}
|
||||
|
||||
.event-info-inner {
|
||||
display: table-cell;
|
||||
}
|
||||
|
||||
.community-events .event-date-time {
|
||||
float: left;
|
||||
max-width: 39%;
|
||||
}
|
||||
|
||||
.community-events .event-date,
|
||||
.community-events .event-time {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
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
@@ -301,158 +301,6 @@
|
||||
content: "\f153";
|
||||
}
|
||||
|
||||
/* Dashboard WordPress events */
|
||||
|
||||
.community-events-errors {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.community-events-loading {
|
||||
padding: 10px 12px 8px;
|
||||
}
|
||||
|
||||
.community-events {
|
||||
margin-bottom: 6px;
|
||||
padding: 0 12px;
|
||||
}
|
||||
|
||||
.community-events .spinner {
|
||||
float: none;
|
||||
margin: 5px 2px 0;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.community-events-errors[aria-hidden="true"],
|
||||
.community-events-errors [aria-hidden="true"],
|
||||
.community-events-loading[aria-hidden="true"],
|
||||
.community-events[aria-hidden="true"],
|
||||
.community-events [aria-hidden="true"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.community-events .activity-block:first-child,
|
||||
.community-events h2 {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
.community-events-form {
|
||||
margin: 15px 0 5px;
|
||||
}
|
||||
|
||||
.community-events-form .regular-text {
|
||||
width: 40%;
|
||||
height: 29px;
|
||||
margin: 0;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.community-events li.event-none {
|
||||
border-left: 4px solid #00a0d2;
|
||||
}
|
||||
|
||||
.community-events-form label {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
line-height: 28px;
|
||||
height: 28px;
|
||||
}
|
||||
|
||||
.community-events .activity-block > p {
|
||||
margin-bottom: 0;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.community-events-toggle-location {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
#community-events-submit {
|
||||
margin-left: 3px;
|
||||
margin-right: 3px;
|
||||
}
|
||||
|
||||
/* Needs higher specificity than #dashboard-widgets .button-link */
|
||||
#dashboard-widgets .community-events-cancel.button-link {
|
||||
vertical-align: top;
|
||||
/* Same properties as the submit button for cross-browsers alignment. */
|
||||
line-height: 26px;
|
||||
height: 28px;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.community-events ul {
|
||||
background-color: #fafafa;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.community-events li {
|
||||
margin: 0;
|
||||
padding: 8px 12px;
|
||||
color: #72777c;
|
||||
}
|
||||
.community-events li:first-child {
|
||||
border-top: 1px solid #eee;
|
||||
}
|
||||
|
||||
.community-events li ~ li {
|
||||
border-top: 1px solid #eee;
|
||||
}
|
||||
|
||||
.community-events .activity-block.last {
|
||||
border-bottom: 1px solid #eee;
|
||||
padding-top: 0;
|
||||
margin-top: -1px;
|
||||
}
|
||||
|
||||
.community-events .event-info {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.event-icon {
|
||||
height: 18px;
|
||||
padding-right: 10px;
|
||||
width: 18px;
|
||||
display: none; /* Hide on smaller screens */
|
||||
}
|
||||
|
||||
.event-icon:before {
|
||||
color: #82878C;
|
||||
font-size: 18px;
|
||||
}
|
||||
.event-meetup .event-icon:before {
|
||||
content: "\f484";
|
||||
}
|
||||
.event-wordcamp .event-icon:before {
|
||||
content: "\f486";
|
||||
}
|
||||
|
||||
.community-events .event-title {
|
||||
font-weight: 600;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.community-events .event-date,
|
||||
.community-events .event-time {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.community-events-footer {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
padding: 12px;
|
||||
border-top: 1px solid #eee;
|
||||
color: #ddd;
|
||||
}
|
||||
|
||||
/* Safari 10 + VoiceOver specific: without this, the hidden text gets read out before the link. */
|
||||
.community-events-footer .screen-reader-text {
|
||||
height: inherit;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* Dashboard WordPress news */
|
||||
|
||||
#dashboard_primary .inside {
|
||||
@@ -460,21 +308,19 @@
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#dashboard_primary .widget-loading {
|
||||
#dashboard_primary .widget-loading,
|
||||
#dashboard_primary .dashboard-widget-control-form {
|
||||
padding: 12px 12px 0;
|
||||
margin-bottom: 1em !important; /* Needs to override `.postbox .inside > p:last-child` in common.css */
|
||||
}
|
||||
|
||||
/* Notice when JS is off. */
|
||||
#dashboard_primary .inside .notice {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
body #dashboard-widgets .postbox form .submit {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Used only for configurable widgets. */
|
||||
.dashboard-widget-control-form {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.dashboard-widget-control-form p {
|
||||
margin-top: 0;
|
||||
}
|
||||
@@ -485,8 +331,9 @@ body #dashboard-widgets .postbox form .submit {
|
||||
}
|
||||
|
||||
#dashboard_primary .rss-widget {
|
||||
border-bottom: 1px solid #eee;
|
||||
font-size: 13px;
|
||||
padding: 0 12px 0;
|
||||
padding: 8px 12px 10px;
|
||||
}
|
||||
|
||||
#dashboard_primary .rss-widget:last-child {
|
||||
@@ -508,8 +355,7 @@ body #dashboard-widgets .postbox form .submit {
|
||||
}
|
||||
|
||||
#dashboard_primary .rss-widget ul li {
|
||||
padding: 4px 0;
|
||||
margin: 0;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
/* Dashboard right now */
|
||||
@@ -925,8 +771,7 @@ form.initial-form.quickpress-open input#title {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
#dashboard-widgets a,
|
||||
#dashboard-widgets .button-link {
|
||||
#dashboard-widgets a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@@ -1026,9 +871,9 @@ form.initial-form.quickpress-open input#title {
|
||||
}
|
||||
|
||||
a.rsswidget {
|
||||
font-size: 13px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
line-height: 1.4em;
|
||||
line-height: 1.7em;
|
||||
}
|
||||
|
||||
.rss-widget ul li {
|
||||
@@ -1239,35 +1084,6 @@ a.rsswidget {
|
||||
width: 30px;
|
||||
margin: 4px 10px 5px 0;
|
||||
}
|
||||
|
||||
.community-events-toggle-location {
|
||||
height: 38px;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
.community-events-form .regular-text {
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
#community-events-submit {
|
||||
margin-bottom: 0;
|
||||
/* Override .wp-core-ui .button */
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.community-events-form label,
|
||||
#dashboard-widgets .community-events-cancel.button-link {
|
||||
/* Same properties as the submit button for cross-browsers alignment. */
|
||||
font-size: 14px;
|
||||
line-height: normal;
|
||||
height: auto;
|
||||
padding: 6px 0;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
|
||||
.community-events .spinner {
|
||||
margin-top: 7px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Smartphone */
|
||||
@@ -1291,30 +1107,3 @@ a.rsswidget {
|
||||
left: -35px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 355px) {
|
||||
.community-events .event-info {
|
||||
display: table-row;
|
||||
float: left;
|
||||
max-width: 59%;
|
||||
}
|
||||
|
||||
.event-icon,
|
||||
.event-icon[aria-hidden="true"] {
|
||||
display: table-cell;
|
||||
}
|
||||
|
||||
.event-info-inner {
|
||||
display: table-cell;
|
||||
}
|
||||
|
||||
.community-events .event-date-time {
|
||||
float: right;
|
||||
max-width: 39%;
|
||||
}
|
||||
|
||||
.community-events .event-date,
|
||||
.community-events .event-time {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
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
@@ -100,6 +100,8 @@ input#link_url {
|
||||
margin-left: 10px;
|
||||
padding: 0;
|
||||
font-size: 11px;
|
||||
text-decoration: underline;
|
||||
color: #0073aa;
|
||||
}
|
||||
|
||||
#comment-link-box {
|
||||
@@ -118,7 +120,7 @@ input#link_url {
|
||||
#editable-post-name input {
|
||||
font-size: 13px;
|
||||
font-weight: 400;
|
||||
height: 24px;
|
||||
height: 22px;
|
||||
margin: 0;
|
||||
width: 16em;
|
||||
}
|
||||
@@ -1033,6 +1035,25 @@ span.description,
|
||||
width: 260px;
|
||||
}
|
||||
|
||||
.tagcloud-link.button-link {
|
||||
color: #0073aa;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.tagcloud-link.button-link:hover {
|
||||
color: #00a0d2;
|
||||
}
|
||||
|
||||
.tagcloud-link.button-link:focus {
|
||||
color: #124964;
|
||||
-webkit-box-shadow:
|
||||
0 0 0 1px #5b9dd9,
|
||||
0 0 2px 1px rgba(30, 140, 190, .8);
|
||||
box-shadow:
|
||||
0 0 0 1px #5b9dd9,
|
||||
0 0 2px 1px rgba(30, 140, 190, .8);
|
||||
}
|
||||
|
||||
#post-body-content .tagsdiv .the-tags {
|
||||
margin: 0 5px;
|
||||
}
|
||||
@@ -1092,17 +1113,6 @@ p.popular-tags a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
#edittag {
|
||||
max-width: 800px;
|
||||
}
|
||||
|
||||
.edit-tag-actions {
|
||||
margin-top: 20px;
|
||||
overflow: hidden;
|
||||
padding: 10px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
/* Comments */
|
||||
|
||||
.comment-php .wp-editor-area {
|
||||
@@ -1359,10 +1369,6 @@ table.links-table {
|
||||
}
|
||||
|
||||
@media screen and ( max-width: 782px ) {
|
||||
.wp-core-ui .edit-tag-actions .button-primary {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
#post-body-content {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
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
@@ -100,6 +100,8 @@ input#link_url {
|
||||
margin-right: 10px;
|
||||
padding: 0;
|
||||
font-size: 11px;
|
||||
text-decoration: underline;
|
||||
color: #0073aa;
|
||||
}
|
||||
|
||||
#comment-link-box {
|
||||
@@ -118,7 +120,7 @@ input#link_url {
|
||||
#editable-post-name input {
|
||||
font-size: 13px;
|
||||
font-weight: 400;
|
||||
height: 24px;
|
||||
height: 22px;
|
||||
margin: 0;
|
||||
width: 16em;
|
||||
}
|
||||
@@ -1033,6 +1035,25 @@ span.description,
|
||||
width: 260px;
|
||||
}
|
||||
|
||||
.tagcloud-link.button-link {
|
||||
color: #0073aa;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.tagcloud-link.button-link:hover {
|
||||
color: #00a0d2;
|
||||
}
|
||||
|
||||
.tagcloud-link.button-link:focus {
|
||||
color: #124964;
|
||||
-webkit-box-shadow:
|
||||
0 0 0 1px #5b9dd9,
|
||||
0 0 2px 1px rgba(30, 140, 190, .8);
|
||||
box-shadow:
|
||||
0 0 0 1px #5b9dd9,
|
||||
0 0 2px 1px rgba(30, 140, 190, .8);
|
||||
}
|
||||
|
||||
#post-body-content .tagsdiv .the-tags {
|
||||
margin: 0 5px;
|
||||
}
|
||||
@@ -1092,17 +1113,6 @@ p.popular-tags a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
#edittag {
|
||||
max-width: 800px;
|
||||
}
|
||||
|
||||
.edit-tag-actions {
|
||||
margin-top: 20px;
|
||||
overflow: hidden;
|
||||
padding: 10px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
/* Comments */
|
||||
|
||||
.comment-php .wp-editor-area {
|
||||
@@ -1359,10 +1369,6 @@ table.links-table {
|
||||
}
|
||||
|
||||
@media screen and ( max-width: 782px ) {
|
||||
.wp-core-ui .edit-tag-actions .button-primary {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
#post-body-content {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
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
@@ -650,10 +650,8 @@ ul#add-to-blog-users {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.form-table th.th-full, /* Not used by core. Back-compat for pre-4.8 */
|
||||
.form-table .td-full {
|
||||
.form-table th.th-full {
|
||||
width: auto;
|
||||
padding: 20px 0 20px 10px;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
|
||||
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
@@ -650,10 +650,8 @@ ul#add-to-blog-users {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.form-table th.th-full, /* Not used by core. Back-compat for pre-4.8 */
|
||||
.form-table .td-full {
|
||||
.form-table th.th-full {
|
||||
width: auto;
|
||||
padding: 20px 10px 20px 0;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
|
||||
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
@@ -59,7 +59,6 @@ p {
|
||||
border-right: 4px solid #00a0d2;
|
||||
padding: 12px;
|
||||
margin-right: 0;
|
||||
margin-bottom: 20px;
|
||||
background-color: #fff;
|
||||
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);
|
||||
box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);
|
||||
|
||||
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
@@ -59,7 +59,6 @@ p {
|
||||
border-left: 4px solid #00a0d2;
|
||||
padding: 12px;
|
||||
margin-left: 0;
|
||||
margin-bottom: 20px;
|
||||
background-color: #fff;
|
||||
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);
|
||||
box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);
|
||||
|
||||
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
@@ -469,7 +469,7 @@ border color while dragging a file over the uploader drop area */
|
||||
.upload-php .mode-grid .media-sidebar {
|
||||
position: relative;
|
||||
width: auto;
|
||||
margin-top: 12px;
|
||||
margin-bottom: 16px;
|
||||
padding: 0 16px;
|
||||
border-right: 4px solid #dd3d36;
|
||||
-webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
|
||||
@@ -506,7 +506,7 @@ border color while dragging a file over the uploader drop area */
|
||||
content: "\f153";
|
||||
display: block;
|
||||
font: normal 16px/1 dashicons;
|
||||
color: #72777c;
|
||||
color: #b4b9be;
|
||||
}
|
||||
|
||||
.upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors:focus:before,
|
||||
@@ -526,7 +526,7 @@ border color while dragging a file over the uploader drop area */
|
||||
right: auto;
|
||||
bottom: auto;
|
||||
padding-top: 0;
|
||||
margin-top: 20px;
|
||||
margin-top: 0;
|
||||
border: 4px dashed #b4b9be;
|
||||
}
|
||||
|
||||
@@ -1066,9 +1066,9 @@ border color while dragging a file over the uploader drop area */
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
#poststuff .imgedit-group-top .button-link {
|
||||
.imgedit-group-top h3 a, /* Back-compat for pre-4.4 */
|
||||
.imgedit-group-top h2 a {
|
||||
text-decoration: none;
|
||||
color: #23282d;
|
||||
}
|
||||
|
||||
.imgedit-applyto .imgedit-label {
|
||||
|
||||
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
@@ -469,7 +469,7 @@ border color while dragging a file over the uploader drop area */
|
||||
.upload-php .mode-grid .media-sidebar {
|
||||
position: relative;
|
||||
width: auto;
|
||||
margin-top: 12px;
|
||||
margin-bottom: 16px;
|
||||
padding: 0 16px;
|
||||
border-left: 4px solid #dd3d36;
|
||||
-webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
|
||||
@@ -506,7 +506,7 @@ border color while dragging a file over the uploader drop area */
|
||||
content: "\f153";
|
||||
display: block;
|
||||
font: normal 16px/1 dashicons;
|
||||
color: #72777c;
|
||||
color: #b4b9be;
|
||||
}
|
||||
|
||||
.upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors:focus:before,
|
||||
@@ -526,7 +526,7 @@ border color while dragging a file over the uploader drop area */
|
||||
left: auto;
|
||||
bottom: auto;
|
||||
padding-top: 0;
|
||||
margin-top: 20px;
|
||||
margin-top: 0;
|
||||
border: 4px dashed #b4b9be;
|
||||
}
|
||||
|
||||
@@ -1066,9 +1066,9 @@ border color while dragging a file over the uploader drop area */
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
#poststuff .imgedit-group-top .button-link {
|
||||
.imgedit-group-top h3 a, /* Back-compat for pre-4.4 */
|
||||
.imgedit-group-top h2 a {
|
||||
text-decoration: none;
|
||||
color: #23282d;
|
||||
}
|
||||
|
||||
.imgedit-applyto .imgedit-label {
|
||||
|
||||
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
@@ -664,7 +664,24 @@ body.menu-max-depth-11 { min-width: 1280px !important; }
|
||||
.menu-item-settings .field-move .button-link {
|
||||
display: none;
|
||||
margin: 0 2px;
|
||||
color: #0073aa;
|
||||
font-style: italic;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.menu-item-settings .field-move .button-link:hover,
|
||||
.menu-item-settings .field-move .button-link:active {
|
||||
color: #00a0d2;
|
||||
}
|
||||
|
||||
.menu-item-settings .field-move .button-link:focus {
|
||||
color: #124964;
|
||||
-webkit-box-shadow:
|
||||
0 0 0 1px #5b9dd9,
|
||||
0 0 2px 1px rgba(30, 140, 190, .8);
|
||||
box-shadow:
|
||||
0 0 0 1px #5b9dd9,
|
||||
0 0 2px 1px rgba(30, 140, 190, .8);
|
||||
}
|
||||
|
||||
.menu-item-edit-active .menu-item-settings {
|
||||
|
||||
2
wp-admin/css/nav-menus-rtl.min.css
vendored
2
wp-admin/css/nav-menus-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -664,7 +664,24 @@ body.menu-max-depth-11 { min-width: 1280px !important; }
|
||||
.menu-item-settings .field-move .button-link {
|
||||
display: none;
|
||||
margin: 0 2px;
|
||||
color: #0073aa;
|
||||
font-style: italic;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.menu-item-settings .field-move .button-link:hover,
|
||||
.menu-item-settings .field-move .button-link:active {
|
||||
color: #00a0d2;
|
||||
}
|
||||
|
||||
.menu-item-settings .field-move .button-link:focus {
|
||||
color: #124964;
|
||||
-webkit-box-shadow:
|
||||
0 0 0 1px #5b9dd9,
|
||||
0 0 2px 1px rgba(30, 140, 190, .8);
|
||||
box-shadow:
|
||||
0 0 0 1px #5b9dd9,
|
||||
0 0 2px 1px rgba(30, 140, 190, .8);
|
||||
}
|
||||
|
||||
.menu-item-edit-active .menu-item-settings {
|
||||
|
||||
2
wp-admin/css/nav-menus.min.css
vendored
2
wp-admin/css/nav-menus.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -393,20 +393,8 @@ strong {
|
||||
padding: 5px 15px;
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
border: 0;
|
||||
text-align: right;
|
||||
line-height: 2;
|
||||
background: none;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
outline: none;
|
||||
-webkit-transition: none;
|
||||
transition: none;
|
||||
}
|
||||
|
||||
.split-button-body .split-button-option:hover,
|
||||
.split-button-body .split-button-option:active {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.is-open .split-button-body {
|
||||
@@ -701,30 +689,10 @@ dd {
|
||||
content: "\f123";
|
||||
}
|
||||
|
||||
.post-format-chat:before {
|
||||
content: "\f125";
|
||||
}
|
||||
|
||||
.post-format-gallery:before {
|
||||
content: "\f161";
|
||||
}
|
||||
|
||||
.post-format-link:before {
|
||||
content: "\f103";
|
||||
}
|
||||
|
||||
.post-format-image:before {
|
||||
content: "\f128";
|
||||
}
|
||||
|
||||
.post-format-quote:before {
|
||||
content: "\f122";
|
||||
}
|
||||
|
||||
.post-format-status:before {
|
||||
content: "\f130";
|
||||
}
|
||||
|
||||
.post-format-video:before {
|
||||
content: "\f126";
|
||||
}
|
||||
@@ -733,6 +701,18 @@ dd {
|
||||
content: "\f127";
|
||||
}
|
||||
|
||||
.post-format-quote:before {
|
||||
content: "\f122";
|
||||
}
|
||||
|
||||
.post-format-link:before {
|
||||
content: "\f103";
|
||||
}
|
||||
|
||||
.post-format-gallery:before {
|
||||
content: "\f161";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Tags
|
||||
@@ -880,12 +860,6 @@ dd {
|
||||
padding: 0;
|
||||
text-decoration: none;
|
||||
outline: 0;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.press-this .tagcloud-link:hover,
|
||||
.press-this .tagcloud-link:active {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.tagcloud-link:focus {
|
||||
@@ -956,12 +930,10 @@ input[type="search"].categories-search,
|
||||
line-height: 20px;
|
||||
padding: 12px 10px 8px;
|
||||
color: #0073aa;
|
||||
text-decoration: none;
|
||||
-webkit-transition: none;
|
||||
transition: none;
|
||||
}
|
||||
|
||||
.press-this .add-cat-toggle:focus {
|
||||
text-decoration: none;
|
||||
color: #00a0d2;
|
||||
}
|
||||
|
||||
@@ -1230,9 +1202,6 @@ html {
|
||||
margin-top: -13px;
|
||||
padding: 0 10px 1px;
|
||||
font-size: 13px;
|
||||
text-decoration: none;
|
||||
-webkit-transition: none;
|
||||
transition: none;
|
||||
}
|
||||
|
||||
@media (max-width: 320px) {
|
||||
@@ -1795,6 +1764,7 @@ html {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-left: 1px solid #e5e5e5;
|
||||
-webkit-border-radius: 0;
|
||||
border-radius: 0;
|
||||
background: none;
|
||||
@@ -1806,6 +1776,9 @@ html {
|
||||
.insert-media:hover,
|
||||
.insert-media:focus,
|
||||
.insert-media:active {
|
||||
margin: 0;
|
||||
background: none;
|
||||
border-color: #e5e5e5;
|
||||
color: #23282d;
|
||||
}
|
||||
|
||||
@@ -1813,12 +1786,7 @@ html {
|
||||
.insert-media:active {
|
||||
outline: 0;
|
||||
color: #00a0d2;
|
||||
-webkit-box-shadow:
|
||||
0 0 0 1px #5b9dd9,
|
||||
0 0 2px 1px rgba(30, 140, 190, .8);
|
||||
box-shadow:
|
||||
0 0 0 1px #5b9dd9,
|
||||
0 0 2px 1px rgba(30, 140, 190, .8);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.insert-media .dashicons {
|
||||
@@ -2044,13 +2012,10 @@ html {
|
||||
.post-options .post-option {
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding: 13px 14px 13px 37px;
|
||||
border: 0;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
text-decoration: none;
|
||||
text-align: right;
|
||||
background: none;
|
||||
color: #9ea7af;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
@@ -2126,9 +2091,7 @@ html {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding: 13px 14px;
|
||||
border: 0;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
background: none;
|
||||
color: #00a0d2;
|
||||
text-decoration: none;
|
||||
text-align: right;
|
||||
|
||||
2
wp-admin/css/press-this-rtl.min.css
vendored
2
wp-admin/css/press-this-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -393,20 +393,8 @@ strong {
|
||||
padding: 5px 15px;
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
border: 0;
|
||||
text-align: left;
|
||||
line-height: 2;
|
||||
background: none;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
outline: none;
|
||||
-webkit-transition: none;
|
||||
transition: none;
|
||||
}
|
||||
|
||||
.split-button-body .split-button-option:hover,
|
||||
.split-button-body .split-button-option:active {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.is-open .split-button-body {
|
||||
@@ -701,30 +689,10 @@ dd {
|
||||
content: "\f123";
|
||||
}
|
||||
|
||||
.post-format-chat:before {
|
||||
content: "\f125";
|
||||
}
|
||||
|
||||
.post-format-gallery:before {
|
||||
content: "\f161";
|
||||
}
|
||||
|
||||
.post-format-link:before {
|
||||
content: "\f103";
|
||||
}
|
||||
|
||||
.post-format-image:before {
|
||||
content: "\f128";
|
||||
}
|
||||
|
||||
.post-format-quote:before {
|
||||
content: "\f122";
|
||||
}
|
||||
|
||||
.post-format-status:before {
|
||||
content: "\f130";
|
||||
}
|
||||
|
||||
.post-format-video:before {
|
||||
content: "\f126";
|
||||
}
|
||||
@@ -733,6 +701,18 @@ dd {
|
||||
content: "\f127";
|
||||
}
|
||||
|
||||
.post-format-quote:before {
|
||||
content: "\f122";
|
||||
}
|
||||
|
||||
.post-format-link:before {
|
||||
content: "\f103";
|
||||
}
|
||||
|
||||
.post-format-gallery:before {
|
||||
content: "\f161";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Tags
|
||||
@@ -880,12 +860,6 @@ dd {
|
||||
padding: 0;
|
||||
text-decoration: none;
|
||||
outline: 0;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.press-this .tagcloud-link:hover,
|
||||
.press-this .tagcloud-link:active {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.tagcloud-link:focus {
|
||||
@@ -956,12 +930,10 @@ input[type="search"].categories-search,
|
||||
line-height: 20px;
|
||||
padding: 12px 10px 8px;
|
||||
color: #0073aa;
|
||||
text-decoration: none;
|
||||
-webkit-transition: none;
|
||||
transition: none;
|
||||
}
|
||||
|
||||
.press-this .add-cat-toggle:focus {
|
||||
text-decoration: none;
|
||||
color: #00a0d2;
|
||||
}
|
||||
|
||||
@@ -1230,9 +1202,6 @@ html {
|
||||
margin-top: -13px;
|
||||
padding: 0 10px 1px;
|
||||
font-size: 13px;
|
||||
text-decoration: none;
|
||||
-webkit-transition: none;
|
||||
transition: none;
|
||||
}
|
||||
|
||||
@media (max-width: 320px) {
|
||||
@@ -1795,6 +1764,7 @@ html {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-right: 1px solid #e5e5e5;
|
||||
-webkit-border-radius: 0;
|
||||
border-radius: 0;
|
||||
background: none;
|
||||
@@ -1806,6 +1776,9 @@ html {
|
||||
.insert-media:hover,
|
||||
.insert-media:focus,
|
||||
.insert-media:active {
|
||||
margin: 0;
|
||||
background: none;
|
||||
border-color: #e5e5e5;
|
||||
color: #23282d;
|
||||
}
|
||||
|
||||
@@ -1813,12 +1786,7 @@ html {
|
||||
.insert-media:active {
|
||||
outline: 0;
|
||||
color: #00a0d2;
|
||||
-webkit-box-shadow:
|
||||
0 0 0 1px #5b9dd9,
|
||||
0 0 2px 1px rgba(30, 140, 190, .8);
|
||||
box-shadow:
|
||||
0 0 0 1px #5b9dd9,
|
||||
0 0 2px 1px rgba(30, 140, 190, .8);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.insert-media .dashicons {
|
||||
@@ -2044,13 +2012,10 @@ html {
|
||||
.post-options .post-option {
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding: 13px 37px 13px 14px;
|
||||
border: 0;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
text-decoration: none;
|
||||
text-align: left;
|
||||
background: none;
|
||||
color: #9ea7af;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
@@ -2126,9 +2091,7 @@ html {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding: 13px 14px;
|
||||
border: 0;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
background: none;
|
||||
color: #00a0d2;
|
||||
text-decoration: none;
|
||||
text-align: left;
|
||||
|
||||
2
wp-admin/css/press-this.min.css
vendored
2
wp-admin/css/press-this.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -20,10 +20,6 @@
|
||||
}
|
||||
|
||||
/* Search form */
|
||||
.themes-php .search-form {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.themes-php .wp-filter-search {
|
||||
position: relative;
|
||||
top: -2px;
|
||||
@@ -953,8 +949,9 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
|
||||
float: none;
|
||||
clear: both;
|
||||
right: 0;
|
||||
top: 0;
|
||||
left: 0;
|
||||
margin: -5px 0 20px 0;
|
||||
margin: 10px 0;
|
||||
width: 100%;
|
||||
max-width: 280px;
|
||||
}
|
||||
@@ -1336,9 +1333,7 @@ body.full-overlay-active {
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
position: fixed;
|
||||
min-width: 300px;
|
||||
max-width: 600px;
|
||||
width: 18%;
|
||||
width: 300px;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
@@ -1367,26 +1362,6 @@ body.full-overlay-active {
|
||||
margin-right: -300px;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1667px) {
|
||||
.wp-full-overlay.expanded {
|
||||
margin-right: 18%;
|
||||
}
|
||||
|
||||
.wp-full-overlay.collapsed .wp-full-overlay-sidebar {
|
||||
margin-right: -18%;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 3333px) {
|
||||
.wp-full-overlay.expanded {
|
||||
margin-right: 600px;
|
||||
}
|
||||
|
||||
.wp-full-overlay.collapsed .wp-full-overlay-sidebar {
|
||||
margin-right: -600px;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-full-overlay-sidebar:after {
|
||||
content: "";
|
||||
display: block;
|
||||
@@ -1546,6 +1521,7 @@ body.full-overlay-active {
|
||||
box-shadow: none !important;
|
||||
-webkit-border-radius: 0 !important;
|
||||
border-radius: 0 !important;
|
||||
z-index: -1; /* Below device buttons */
|
||||
}
|
||||
|
||||
.wp-core-ui .wp-full-overlay .collapse-sidebar:hover,
|
||||
@@ -1641,22 +1617,14 @@ body.full-overlay-active {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
min-width: 299px;
|
||||
max-width: 599px;
|
||||
width: 18%;
|
||||
width: -webkit-calc( 18% - 1px );
|
||||
width: calc( 18% - 1px );
|
||||
width: 299px;
|
||||
height: 45px;
|
||||
border-top: 1px solid #ddd;
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
.wp-full-overlay-footer .devices-wrapper {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.wp-full-overlay-footer .devices {
|
||||
position: relative;
|
||||
float: left;
|
||||
background: #eee;
|
||||
-webkit-box-shadow: 20px 0 10px -5px #eee;
|
||||
box-shadow: 20px 0 10px -5px #eee;
|
||||
|
||||
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
@@ -20,10 +20,6 @@
|
||||
}
|
||||
|
||||
/* Search form */
|
||||
.themes-php .search-form {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.themes-php .wp-filter-search {
|
||||
position: relative;
|
||||
top: -2px;
|
||||
@@ -953,8 +949,9 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
|
||||
float: none;
|
||||
clear: both;
|
||||
left: 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
margin: -5px 0 20px 0;
|
||||
margin: 10px 0;
|
||||
width: 100%;
|
||||
max-width: 280px;
|
||||
}
|
||||
@@ -1336,9 +1333,7 @@ body.full-overlay-active {
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
position: fixed;
|
||||
min-width: 300px;
|
||||
max-width: 600px;
|
||||
width: 18%;
|
||||
width: 300px;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
@@ -1367,26 +1362,6 @@ body.full-overlay-active {
|
||||
margin-left: -300px;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1667px) {
|
||||
.wp-full-overlay.expanded {
|
||||
margin-left: 18%;
|
||||
}
|
||||
|
||||
.wp-full-overlay.collapsed .wp-full-overlay-sidebar {
|
||||
margin-left: -18%;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 3333px) {
|
||||
.wp-full-overlay.expanded {
|
||||
margin-left: 600px;
|
||||
}
|
||||
|
||||
.wp-full-overlay.collapsed .wp-full-overlay-sidebar {
|
||||
margin-left: -600px;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-full-overlay-sidebar:after {
|
||||
content: "";
|
||||
display: block;
|
||||
@@ -1546,6 +1521,7 @@ body.full-overlay-active {
|
||||
box-shadow: none !important;
|
||||
-webkit-border-radius: 0 !important;
|
||||
border-radius: 0 !important;
|
||||
z-index: -1; /* Below device buttons */
|
||||
}
|
||||
|
||||
.wp-core-ui .wp-full-overlay .collapse-sidebar:hover,
|
||||
@@ -1641,22 +1617,14 @@ body.full-overlay-active {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
min-width: 299px;
|
||||
max-width: 599px;
|
||||
width: 18%;
|
||||
width: -webkit-calc( 18% - 1px );
|
||||
width: calc( 18% - 1px );
|
||||
width: 299px;
|
||||
height: 45px;
|
||||
border-top: 1px solid #ddd;
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
.wp-full-overlay-footer .devices-wrapper {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.wp-full-overlay-footer .devices {
|
||||
position: relative;
|
||||
float: right;
|
||||
background: #eee;
|
||||
-webkit-box-shadow: -20px 0 10px -5px #eee;
|
||||
box-shadow: -20px 0 10px -5px #eee;
|
||||
|
||||
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
@@ -14,13 +14,12 @@
|
||||
background: #f7f7f7;
|
||||
}
|
||||
|
||||
.widget-top .widget-action {
|
||||
border: 0;
|
||||
margin: 0;
|
||||
padding: 10px;
|
||||
background: none;
|
||||
cursor: pointer;
|
||||
.widget-top a.widget-action,
|
||||
.widget-top a.widget-action:hover {
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
outline: none;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.widget-title h3,
|
||||
@@ -51,111 +50,10 @@
|
||||
}
|
||||
|
||||
.deleting .widget-title,
|
||||
.deleting .widget-top .widget-action .toggle-indicator:before {
|
||||
.deleting .widget-top a.widget-action:after {
|
||||
color: #a0a5aa;
|
||||
}
|
||||
|
||||
/* Media Widgets */
|
||||
.wp-core-ui .media-widget-control.selected .placeholder,
|
||||
.wp-core-ui .media-widget-control.selected .not-selected,
|
||||
.wp-core-ui .media-widget-control .selected {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.media-widget-control.selected .selected {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.media-widget-buttons {
|
||||
text-align: right;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.media-widget-control .media-widget-buttons .button {
|
||||
width: auto;
|
||||
height: auto;
|
||||
margin-top: 12px;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.media-widget-buttons .button:first-child {
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
.media-widget-control .placeholder {
|
||||
border: 1px dashed #b4b9be;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
cursor: default;
|
||||
line-height: 20px;
|
||||
padding: 9px 0;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.media-widget-control .media-widget-preview {
|
||||
text-align: center;
|
||||
}
|
||||
.media-widget-control .media-widget-preview .notice {
|
||||
text-align: initial;
|
||||
}
|
||||
.media-frame .media-widget-embed-notice p code,
|
||||
.media-widget-control .notice p code {
|
||||
padding: 0 0 0 3px;
|
||||
}
|
||||
.media-frame .media-widget-embed-notice {
|
||||
margin-top: 16px;
|
||||
}
|
||||
.media-widget-control .media-widget-preview img {
|
||||
max-width: 100%;
|
||||
}
|
||||
.media-widget-control .media-widget-preview .wp-video-shortcode {
|
||||
background: #000;
|
||||
}
|
||||
|
||||
.media-frame.media-widget .media-toolbar-secondary {
|
||||
min-width: 300px;
|
||||
}
|
||||
|
||||
.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-link-settings .setting.link-text,
|
||||
.media-frame.media-widget .replace-attachment,
|
||||
.media-frame.media-widget .checkbox-setting.autoplay {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.media-widget-video-preview {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.media-widget-video-link {
|
||||
display: inline-block;
|
||||
min-height: 132px;
|
||||
width: 100%;
|
||||
background: black;
|
||||
}
|
||||
|
||||
.media-widget-video-link .dashicons {
|
||||
font: normal 60px/1 'dashicons';
|
||||
position: relative;
|
||||
width: 100%;
|
||||
top: -90px;
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.media-widget-video-link.no-poster .dashicons {
|
||||
top: 30px;
|
||||
}
|
||||
|
||||
.media-frame #embed-url-field.invalid {
|
||||
border: 1px solid #f00;
|
||||
}
|
||||
|
||||
/* Widget Dragging Helpers */
|
||||
.widget.ui-draggable-dragging {
|
||||
min-width: 100%;
|
||||
@@ -619,29 +517,6 @@ div#widgets-right .widget-top:hover,
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
/* =Specific widget styling
|
||||
-------------------------------------------------------------- */
|
||||
.text-widget-fields {
|
||||
position: relative;
|
||||
}
|
||||
.text-widget-fields [hidden] {
|
||||
display: none;
|
||||
}
|
||||
.text-widget-fields .wp-pointer.wp-pointer-top {
|
||||
position: absolute;
|
||||
z-index: 3;
|
||||
top: 100px;
|
||||
left: 10px;
|
||||
right: 10px;
|
||||
}
|
||||
.text-widget-fields .wp-pointer .wp-pointer-arrow {
|
||||
right: auto;
|
||||
left: 15px;
|
||||
}
|
||||
.text-widget-fields .wp-pointer .wp-pointer-buttons {
|
||||
line-height: 1.4em;
|
||||
}
|
||||
|
||||
/* =Media Queries
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
|
||||
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
@@ -14,13 +14,12 @@
|
||||
background: #f7f7f7;
|
||||
}
|
||||
|
||||
.widget-top .widget-action {
|
||||
border: 0;
|
||||
margin: 0;
|
||||
padding: 10px;
|
||||
background: none;
|
||||
cursor: pointer;
|
||||
.widget-top a.widget-action,
|
||||
.widget-top a.widget-action:hover {
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
outline: none;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.widget-title h3,
|
||||
@@ -51,111 +50,10 @@
|
||||
}
|
||||
|
||||
.deleting .widget-title,
|
||||
.deleting .widget-top .widget-action .toggle-indicator:before {
|
||||
.deleting .widget-top a.widget-action:after {
|
||||
color: #a0a5aa;
|
||||
}
|
||||
|
||||
/* Media Widgets */
|
||||
.wp-core-ui .media-widget-control.selected .placeholder,
|
||||
.wp-core-ui .media-widget-control.selected .not-selected,
|
||||
.wp-core-ui .media-widget-control .selected {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.media-widget-control.selected .selected {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.media-widget-buttons {
|
||||
text-align: left;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.media-widget-control .media-widget-buttons .button {
|
||||
width: auto;
|
||||
height: auto;
|
||||
margin-top: 12px;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.media-widget-buttons .button:first-child {
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.media-widget-control .placeholder {
|
||||
border: 1px dashed #b4b9be;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
cursor: default;
|
||||
line-height: 20px;
|
||||
padding: 9px 0;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.media-widget-control .media-widget-preview {
|
||||
text-align: center;
|
||||
}
|
||||
.media-widget-control .media-widget-preview .notice {
|
||||
text-align: initial;
|
||||
}
|
||||
.media-frame .media-widget-embed-notice p code,
|
||||
.media-widget-control .notice p code {
|
||||
padding: 0 3px 0 0;
|
||||
}
|
||||
.media-frame .media-widget-embed-notice {
|
||||
margin-top: 16px;
|
||||
}
|
||||
.media-widget-control .media-widget-preview img {
|
||||
max-width: 100%;
|
||||
}
|
||||
.media-widget-control .media-widget-preview .wp-video-shortcode {
|
||||
background: #000;
|
||||
}
|
||||
|
||||
.media-frame.media-widget .media-toolbar-secondary {
|
||||
min-width: 300px;
|
||||
}
|
||||
|
||||
.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-link-settings .setting.link-text,
|
||||
.media-frame.media-widget .replace-attachment,
|
||||
.media-frame.media-widget .checkbox-setting.autoplay {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.media-widget-video-preview {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.media-widget-video-link {
|
||||
display: inline-block;
|
||||
min-height: 132px;
|
||||
width: 100%;
|
||||
background: black;
|
||||
}
|
||||
|
||||
.media-widget-video-link .dashicons {
|
||||
font: normal 60px/1 'dashicons';
|
||||
position: relative;
|
||||
width: 100%;
|
||||
top: -90px;
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.media-widget-video-link.no-poster .dashicons {
|
||||
top: 30px;
|
||||
}
|
||||
|
||||
.media-frame #embed-url-field.invalid {
|
||||
border: 1px solid #f00;
|
||||
}
|
||||
|
||||
/* Widget Dragging Helpers */
|
||||
.widget.ui-draggable-dragging {
|
||||
min-width: 100%;
|
||||
@@ -619,29 +517,6 @@ div#widgets-right .widget-top:hover,
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
/* =Specific widget styling
|
||||
-------------------------------------------------------------- */
|
||||
.text-widget-fields {
|
||||
position: relative;
|
||||
}
|
||||
.text-widget-fields [hidden] {
|
||||
display: none;
|
||||
}
|
||||
.text-widget-fields .wp-pointer.wp-pointer-top {
|
||||
position: absolute;
|
||||
z-index: 3;
|
||||
top: 100px;
|
||||
right: 10px;
|
||||
left: 10px;
|
||||
}
|
||||
.text-widget-fields .wp-pointer .wp-pointer-arrow {
|
||||
left: auto;
|
||||
right: 15px;
|
||||
}
|
||||
.text-widget-fields .wp-pointer .wp-pointer-buttons {
|
||||
line-height: 1.4em;
|
||||
}
|
||||
|
||||
/* =Media Queries
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
|
||||
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
@@ -42,7 +42,7 @@ class Custom_Image_Header {
|
||||
|
||||
/**
|
||||
* Used to trigger a success message when settings updated and set to true.
|
||||
*
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @access private
|
||||
* @var bool
|
||||
@@ -1097,8 +1097,6 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?>
|
||||
/**
|
||||
* Calculate width and height based on what the currently selected theme supports.
|
||||
*
|
||||
* @since 3.9.0
|
||||
*
|
||||
* @param array $dimensions
|
||||
* @return array dst_height and dst_width of header image.
|
||||
*/
|
||||
@@ -1149,10 +1147,9 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?>
|
||||
/**
|
||||
* Create an attachment 'object'.
|
||||
*
|
||||
* @since 3.9.0
|
||||
*
|
||||
* @param string $cropped Cropped image URL.
|
||||
* @param int $parent_attachment_id Attachment ID of parent image.
|
||||
*
|
||||
* @return array Attachment object.
|
||||
*/
|
||||
final public function create_attachment_object( $cropped, $parent_attachment_id ) {
|
||||
@@ -1177,10 +1174,9 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?>
|
||||
/**
|
||||
* Insert an attachment and its metadata.
|
||||
*
|
||||
* @since 3.9.0
|
||||
*
|
||||
* @param array $object Attachment object.
|
||||
* @param string $cropped Cropped image URL.
|
||||
*
|
||||
* @return int Attachment ID.
|
||||
*/
|
||||
final public function insert_attachment( $object, $cropped ) {
|
||||
@@ -1203,8 +1199,6 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?>
|
||||
/**
|
||||
* Gets attachment uploaded by Media Manager, crops it, then saves it as a
|
||||
* new object. Returns JSON-encoded object details.
|
||||
*
|
||||
* @since 3.9.0
|
||||
*/
|
||||
public function ajax_header_crop() {
|
||||
check_ajax_referer( 'image_editor-' . $_POST['id'], 'nonce' );
|
||||
@@ -1263,8 +1257,6 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?>
|
||||
*
|
||||
* Triggered when the user tries adds a new header image from the
|
||||
* Media Manager, even if s/he doesn't save that change.
|
||||
*
|
||||
* @since 3.9.0
|
||||
*/
|
||||
public function ajax_header_add() {
|
||||
check_ajax_referer( 'header-add', 'nonce' );
|
||||
@@ -1291,8 +1283,6 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?>
|
||||
*
|
||||
* Triggered when the user clicks the overlay "X" button next to each image
|
||||
* choice in the Customizer's Header tool.
|
||||
*
|
||||
* @since 3.9.0
|
||||
*/
|
||||
public function ajax_header_remove() {
|
||||
check_ajax_referer( 'header-remove', 'nonce' );
|
||||
@@ -1314,11 +1304,8 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?>
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the last-used postmeta on a header image attachment after saving a new header image via the Customizer.
|
||||
*
|
||||
* @since 3.9.0
|
||||
*
|
||||
* @param WP_Customize_Manager $wp_customize Customize manager.
|
||||
* @param WP_Customize_Manager $wp_customize
|
||||
*/
|
||||
public function customize_set_last_used( $wp_customize ) {
|
||||
$data = $wp_customize->get_setting( 'header_image_data' )->post_value();
|
||||
@@ -1333,11 +1320,8 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?>
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the details of default header images if defined.
|
||||
*
|
||||
* @since 3.9.0
|
||||
*
|
||||
* @return array Default header images.
|
||||
* @return array
|
||||
*/
|
||||
public function get_default_header_images() {
|
||||
$this->process_default_headers();
|
||||
@@ -1376,11 +1360,8 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?>
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the previously uploaded header images.
|
||||
*
|
||||
* @since 3.9.0
|
||||
*
|
||||
* @return array Uploaded header images.
|
||||
* @return array
|
||||
*/
|
||||
public function get_uploaded_header_images() {
|
||||
$header_images = get_uploaded_header_images();
|
||||
|
||||
@@ -102,7 +102,7 @@ if ( $wp_customize->is_ios() ) {
|
||||
if ( is_rtl() ) {
|
||||
$body_class .= ' rtl';
|
||||
}
|
||||
$body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_user_locale() ) ) );
|
||||
$body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) );
|
||||
|
||||
$admin_title = sprintf( $wp_customize->get_document_title_template(), __( 'Loading…' ) );
|
||||
|
||||
@@ -155,7 +155,7 @@ do_action( 'customize_controls_print_scripts' );
|
||||
<div id="customize-info" class="accordion-section customize-info">
|
||||
<div class="accordion-section-title">
|
||||
<span class="preview-notice"><?php
|
||||
echo sprintf( __( 'You are customizing %s' ), '<strong class="panel-title site-title">' . get_bloginfo( 'name', 'display' ) . '</strong>' );
|
||||
echo sprintf( __( 'You are customizing %s' ), '<strong class="panel-title site-title">' . get_bloginfo( 'name' ) . '</strong>' );
|
||||
?></span>
|
||||
<button type="button" class="customize-help-toggle dashicons dashicons-editor-help" aria-expanded="false"><span class="screen-reader-text"><?php _e( 'Help' ); ?></span></button>
|
||||
</div>
|
||||
@@ -171,32 +171,30 @@ do_action( 'customize_controls_print_scripts' );
|
||||
</div>
|
||||
|
||||
<div id="customize-footer-actions" class="wp-full-overlay-footer">
|
||||
<?php $previewable_devices = $wp_customize->get_previewable_devices(); ?>
|
||||
<?php if ( ! empty( $previewable_devices ) ) : ?>
|
||||
<div class="devices">
|
||||
<?php foreach ( (array) $previewable_devices as $device => $settings ) : ?>
|
||||
<?php
|
||||
if ( empty( $settings['label'] ) ) {
|
||||
continue;
|
||||
}
|
||||
$active = ! empty( $settings['default'] );
|
||||
$class = 'preview-' . $device;
|
||||
if ( $active ) {
|
||||
$class .= ' active';
|
||||
}
|
||||
?>
|
||||
<button type="button" class="<?php echo esc_attr( $class ); ?>" aria-pressed="<?php echo esc_attr( $active ) ?>" data-device="<?php echo esc_attr( $device ); ?>">
|
||||
<span class="screen-reader-text"><?php echo esc_html( $settings['label'] ); ?></span>
|
||||
</button>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<button type="button" class="collapse-sidebar button" aria-expanded="true" aria-label="<?php echo esc_attr( _x( 'Hide Controls', 'label for hide controls button without length constraints' ) ); ?>">
|
||||
<span class="collapse-sidebar-arrow"></span>
|
||||
<span class="collapse-sidebar-label"><?php _ex( 'Hide Controls', 'short (~12 characters) label for hide controls button' ); ?></span>
|
||||
</button>
|
||||
<?php $previewable_devices = $wp_customize->get_previewable_devices(); ?>
|
||||
<?php if ( ! empty( $previewable_devices ) ) : ?>
|
||||
<div class="devices-wrapper">
|
||||
<div class="devices">
|
||||
<?php foreach ( (array) $previewable_devices as $device => $settings ) : ?>
|
||||
<?php
|
||||
if ( empty( $settings['label'] ) ) {
|
||||
continue;
|
||||
}
|
||||
$active = ! empty( $settings['default'] );
|
||||
$class = 'preview-' . $device;
|
||||
if ( $active ) {
|
||||
$class .= ' active';
|
||||
}
|
||||
?>
|
||||
<button type="button" class="<?php echo esc_attr( $class ); ?>" aria-pressed="<?php echo esc_attr( $active ) ?>" data-device="<?php echo esc_attr( $device ); ?>">
|
||||
<span class="screen-reader-text"><?php echo esc_html( $settings['label'] ); ?></span>
|
||||
</button>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</form>
|
||||
<div id="customize-preview" class="wp-full-overlay-main"></div>
|
||||
|
||||
@@ -83,23 +83,19 @@ if ( $doaction ) {
|
||||
}
|
||||
|
||||
if ( ! in_array( $doaction, array( 'approve', 'unapprove', 'spam', 'unspam', 'trash', 'delete' ), true ) ) {
|
||||
$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 $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 );
|
||||
$redirect_to = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $redirect_to, $doaction, $comment_ids );
|
||||
}
|
||||
|
||||
wp_defer_comment_counting( false );
|
||||
@@ -198,7 +194,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
?>
|
||||
|
||||
<div class="wrap">
|
||||
<h1 class="wp-heading-inline"><?php
|
||||
<h1><?php
|
||||
if ( $post_id ) {
|
||||
/* translators: %s: link to post */
|
||||
printf( __( 'Comments on “%s”' ),
|
||||
@@ -210,9 +206,7 @@ if ( $post_id ) {
|
||||
} else {
|
||||
_e( 'Comments' );
|
||||
}
|
||||
?></h1>
|
||||
|
||||
<?php
|
||||
if ( isset($_REQUEST['s']) && strlen( $_REQUEST['s'] ) ) {
|
||||
echo '<span class="subtitle">';
|
||||
/* translators: %s: search keywords */
|
||||
@@ -221,9 +215,7 @@ if ( isset($_REQUEST['s']) && strlen( $_REQUEST['s'] ) ) {
|
||||
);
|
||||
echo '</span>';
|
||||
}
|
||||
?>
|
||||
|
||||
<hr class="wp-header-end">
|
||||
?></h1>
|
||||
|
||||
<?php
|
||||
if ( isset( $_REQUEST['error'] ) ) {
|
||||
|
||||
@@ -308,8 +308,9 @@ if ( in_array( get_post_status( $post ), $stati ) ) {
|
||||
if ( ! ( 'pending' == get_post_status( $post ) && ! current_user_can( $post_type_object->cap->publish_posts ) ) )
|
||||
add_meta_box('slugdiv', __('Slug'), 'post_slug_meta_box', null, 'normal', 'core');
|
||||
|
||||
if ( post_type_supports( $post_type, 'author' ) && current_user_can( $post_type_object->cap->edit_others_posts ) ) {
|
||||
add_meta_box( 'authordiv', __( 'Author' ), 'post_author_meta_box', null, 'normal', 'core' );
|
||||
if ( post_type_supports($post_type, 'author') ) {
|
||||
if ( is_super_admin() || current_user_can( $post_type_object->cap->edit_others_posts ) )
|
||||
add_meta_box('authordiv', __('Author'), 'post_author_meta_box', null, 'normal', 'core');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -582,7 +583,7 @@ if ( has_filter( 'pre_get_shortlink' ) || has_filter( 'get_shortlink' ) ) {
|
||||
$shortlink = wp_get_shortlink($post->ID, 'post');
|
||||
|
||||
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>';
|
||||
$sample_permalink_html .= '<input id="shortlink" type="hidden" value="' . esc_attr($shortlink) . '" /><a href="#" class="button button-small" onclick="prompt('URL:', jQuery(\'#shortlink\').val()); return false;">' . __('Get Shortlink') . '</a>';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -70,13 +70,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
?>
|
||||
|
||||
<div class="wrap">
|
||||
<h1 class="wp-heading-inline"><?php
|
||||
echo esc_html( $title );
|
||||
?></h1>
|
||||
|
||||
<a href="link-add.php" class="page-title-action"><?php echo esc_html_x( 'Add New', 'link' ); ?></a>
|
||||
|
||||
<hr class="wp-header-end">
|
||||
<h1><?php echo esc_html( $title ); ?> <a href="link-add.php" class="page-title-action"><?php echo esc_html_x('Add New', 'link'); ?></a></h1>
|
||||
|
||||
<?php if ( isset( $_GET['added'] ) ) : ?>
|
||||
<div id="message" class="updated notice is-dismissible"><p><?php _e('Link added.'); ?></p></div>
|
||||
|
||||
@@ -146,7 +146,7 @@ do_action( "{$taxonomy}_term_edit_form_top", $tag, $taxonomy );
|
||||
<?php } ?>
|
||||
<?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?>
|
||||
<tr class="form-field term-parent-wrap">
|
||||
<th scope="row"><label for="parent"><?php echo esc_html( $tax->labels->parent_item ); ?></label></th>
|
||||
<th scope="row"><label for="parent"><?php _ex( 'Parent', 'term parent' ); ?></label></th>
|
||||
<td>
|
||||
<?php
|
||||
$dropdown_args = array(
|
||||
@@ -165,9 +165,7 @@ do_action( "{$taxonomy}_term_edit_form_top", $tag, $taxonomy );
|
||||
$dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, 'edit' );
|
||||
wp_dropdown_categories( $dropdown_args ); ?>
|
||||
<?php if ( 'category' == $taxonomy ) : ?>
|
||||
<p class="description"><?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 class="description"><?php _e( 'Assign a parent term to create a hierarchy. The term Jazz, for example, would be the parent of Bebop and Big Band.' ); ?></p>
|
||||
<p class="description"><?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 endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -254,20 +252,9 @@ if ( 'category' == $taxonomy ) {
|
||||
* @param string $taxonomy Current taxonomy slug.
|
||||
*/
|
||||
do_action( "{$taxonomy}_edit_form", $tag, $taxonomy );
|
||||
|
||||
submit_button( __('Update') );
|
||||
?>
|
||||
|
||||
<div class="edit-tag-actions">
|
||||
|
||||
<?php submit_button( __( 'Update' ), 'primary', null, false ); ?>
|
||||
|
||||
<?php if ( current_user_can( 'delete_term', $tag->term_id ) ) : ?>
|
||||
<span id="delete-link">
|
||||
<a class="delete" href="<?php echo admin_url( wp_nonce_url( "edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) ) ?>"><?php _e( 'Delete' ); ?></a>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -65,6 +65,7 @@ if ( ! $referer ) { // For POST requests.
|
||||
$referer = wp_unslash( $_SERVER['REQUEST_URI'] );
|
||||
}
|
||||
$referer = remove_query_arg( array( '_wp_http_referer', '_wpnonce', 'error', 'message', 'paged' ), $referer );
|
||||
|
||||
switch ( $wp_list_table->current_action() ) {
|
||||
|
||||
case 'add-tag':
|
||||
@@ -106,9 +107,6 @@ case 'delete':
|
||||
|
||||
$location = add_query_arg( 'message', 2, $referer );
|
||||
|
||||
// When deleting a term, prevent the action from redirecting back to a term that no longer exists.
|
||||
$location = remove_query_arg( array( 'tag_ID', 'action' ), $location );
|
||||
|
||||
break;
|
||||
|
||||
case 'bulk-delete':
|
||||
@@ -292,16 +290,13 @@ if ( is_plugin_active( 'wpcat2tag-importer/wpcat2tag-importer.php' ) ) {
|
||||
?>
|
||||
|
||||
<div class="wrap nosubsub">
|
||||
<h1 class="wp-heading-inline"><?php echo esc_html( $title ); ?></h1>
|
||||
|
||||
<?php
|
||||
<h1><?php echo esc_html( $title );
|
||||
if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
|
||||
/* translators: %s: search keywords */
|
||||
printf( '<span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', esc_html( wp_unslash( $_REQUEST['s'] ) ) );
|
||||
}
|
||||
?>
|
||||
|
||||
<hr class="wp-header-end">
|
||||
</h1>
|
||||
|
||||
<?php if ( $message ) : ?>
|
||||
<div id="message" class="<?php echo $class; ?> notice is-dismissible"><p><?php echo $message; ?></p></div>
|
||||
@@ -401,7 +396,7 @@ do_action( "{$taxonomy}_term_new_form_tag" );
|
||||
<?php endif; // global_terms_enabled() ?>
|
||||
<?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?>
|
||||
<div class="form-field term-parent-wrap">
|
||||
<label for="parent"><?php echo esc_html( $tax->labels->parent_item ); ?></label>
|
||||
<label for="parent"><?php _ex( 'Parent', 'term parent' ); ?></label>
|
||||
<?php
|
||||
$dropdown_args = array(
|
||||
'hide_empty' => 0,
|
||||
@@ -438,10 +433,8 @@ do_action( "{$taxonomy}_term_new_form_tag" );
|
||||
|
||||
wp_dropdown_categories( $dropdown_args );
|
||||
?>
|
||||
<?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>
|
||||
<?php if ( 'category' == $taxonomy ) : // @todo: Generic text for hierarchical taxonomies ?>
|
||||
<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 endif; ?>
|
||||
</div>
|
||||
<?php endif; // is_taxonomy_hierarchical() ?>
|
||||
|
||||
@@ -350,11 +350,6 @@ $_SERVER['REQUEST_URI'] = remove_query_arg( array( 'locked', 'skipped', 'updated
|
||||
|
||||
<input type="hidden" name="post_status" class="post_status_page" value="<?php echo !empty($_REQUEST['post_status']) ? esc_attr($_REQUEST['post_status']) : 'all'; ?>" />
|
||||
<input type="hidden" name="post_type" class="post_type_page" value="<?php echo $post_type; ?>" />
|
||||
|
||||
<?php if ( ! empty( $_REQUEST['author'] ) ) { ?>
|
||||
<input type="hidden" name="author" value="<?php echo esc_attr( $_REQUEST['author'] ); ?>" />
|
||||
<?php } ?>
|
||||
|
||||
<?php if ( ! empty( $_REQUEST['show_sticky'] ) ) { ?>
|
||||
<input type="hidden" name="show_sticky" value="1" />
|
||||
<?php } ?>
|
||||
|
||||
@@ -19,7 +19,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
|
||||
<h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
|
||||
|
||||
<p class="about-text"><?php printf( __( 'Thank you for updating to the latest version! WordPress %s adds more ways for you to express yourself and represent your brand.' ), $display_version ); ?></p>
|
||||
<p class="about-text"><?php printf( __( 'Thank you for updating to the latest version! WordPress %s helps you get your site set up the way you want it.' ), $display_version ); ?></p>
|
||||
|
||||
<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
|
||||
|
||||
|
||||
@@ -246,7 +246,7 @@ function wp_ajax_autocomplete_user() {
|
||||
wp_die( -1 );
|
||||
|
||||
/** This filter is documented in wp-admin/user-new.php */
|
||||
if ( ! current_user_can( 'manage_network_users' ) && ! apply_filters( 'autocomplete_users_for_site_admins', false ) )
|
||||
if ( ! is_super_admin() && ! apply_filters( 'autocomplete_users_for_site_admins', false ) )
|
||||
wp_die( -1 );
|
||||
|
||||
$return = array();
|
||||
@@ -296,56 +296,6 @@ function wp_ajax_autocomplete_user() {
|
||||
wp_die( wp_json_encode( $return ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles AJAX requests for community events
|
||||
*
|
||||
* @since 4.8.0
|
||||
*/
|
||||
function wp_ajax_get_community_events() {
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-community-events.php' );
|
||||
|
||||
check_ajax_referer( 'community_events' );
|
||||
|
||||
$search = isset( $_POST['location'] ) ? wp_unslash( $_POST['location'] ) : '';
|
||||
$timezone = isset( $_POST['timezone'] ) ? wp_unslash( $_POST['timezone'] ) : '';
|
||||
$user_id = get_current_user_id();
|
||||
$saved_location = get_user_option( 'community-events-location', $user_id );
|
||||
$events_client = new WP_Community_Events( $user_id, $saved_location );
|
||||
$events = $events_client->get_events( $search, $timezone );
|
||||
$ip_changed = false;
|
||||
|
||||
if ( is_wp_error( $events ) ) {
|
||||
wp_send_json_error( array(
|
||||
'error' => $events->get_error_message(),
|
||||
) );
|
||||
} else {
|
||||
if ( empty( $saved_location['ip'] ) && ! empty( $events['location']['ip'] ) ) {
|
||||
$ip_changed = true;
|
||||
} elseif ( isset( $saved_location['ip'] ) && ! empty( $events['location']['ip'] ) && $saved_location['ip'] !== $events['location']['ip'] ) {
|
||||
$ip_changed = true;
|
||||
}
|
||||
|
||||
/*
|
||||
* The location should only be updated when it changes. The API doesn't always return
|
||||
* a full location; sometimes it's missing the description or country. The location
|
||||
* that was saved during the initial request is known to be good and complete, though.
|
||||
* It should be left in tact until the user explicitly changes it (either by manually
|
||||
* searching for a new location, or by changing their IP address).
|
||||
*
|
||||
* If the location were updated with an incomplete response from the API, then it could
|
||||
* break assumptions that the UI makes (e.g., that there will always be a description
|
||||
* that corresponds to a latitude/longitude location).
|
||||
*
|
||||
* The location is stored network-wide, so that the user doesn't have to set it on each site.
|
||||
*/
|
||||
if ( $ip_changed || $search ) {
|
||||
update_user_option( $user_id, 'community-events-location', $events['location'], true );
|
||||
}
|
||||
|
||||
wp_send_json_success( $events );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Ajax handler for dashboard widgets.
|
||||
*
|
||||
@@ -522,11 +472,11 @@ function _wp_ajax_add_hierarchical_term() {
|
||||
$category_nicename = sanitize_title($cat_name);
|
||||
if ( '' === $category_nicename )
|
||||
continue;
|
||||
|
||||
$cat_id = wp_insert_term( $cat_name, $taxonomy->name, array( 'parent' => $parent ) );
|
||||
if ( ! $cat_id || is_wp_error( $cat_id ) ) {
|
||||
if ( !$cat_id = term_exists( $cat_name, $taxonomy->name, $parent ) )
|
||||
$cat_id = wp_insert_term( $cat_name, $taxonomy->name, array( 'parent' => $parent ) );
|
||||
if ( is_wp_error( $cat_id ) ) {
|
||||
continue;
|
||||
} else {
|
||||
} elseif ( is_array( $cat_id ) ) {
|
||||
$cat_id = $cat_id['term_id'];
|
||||
}
|
||||
$checked_categories[] = $cat_id;
|
||||
@@ -856,11 +806,11 @@ function wp_ajax_add_link_category( $action ) {
|
||||
$slug = sanitize_title($cat_name);
|
||||
if ( '' === $slug )
|
||||
continue;
|
||||
|
||||
$cat_id = wp_insert_term( $cat_name, 'link_category' );
|
||||
if ( ! $cat_id || is_wp_error( $cat_id ) ) {
|
||||
if ( !$cat_id = term_exists( $cat_name, 'link_category' ) )
|
||||
$cat_id = wp_insert_term( $cat_name, 'link_category' );
|
||||
if ( is_wp_error( $cat_id ) ) {
|
||||
continue;
|
||||
} else {
|
||||
} elseif ( is_array( $cat_id ) ) {
|
||||
$cat_id = $cat_id['term_id'];
|
||||
}
|
||||
$cat_name = esc_html( $cat_name );
|
||||
@@ -1547,10 +1497,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 );
|
||||
|
||||
if ( ! isset( $results ) )
|
||||
@@ -1651,8 +1598,6 @@ function wp_ajax_sample_permalink() {
|
||||
* Ajax handler for Quick Edit saving a post from a list table.
|
||||
*
|
||||
* @since 3.1.0
|
||||
*
|
||||
* @global string $mode List table view mode.
|
||||
*/
|
||||
function wp_ajax_inline_save() {
|
||||
global $mode;
|
||||
@@ -2021,11 +1966,9 @@ function wp_ajax_delete_inactive_widgets() {
|
||||
}
|
||||
|
||||
unset( $_POST['removeinactivewidgets'], $_POST['action'] );
|
||||
/** This action is documented in wp-admin/includes/ajax-actions.php */
|
||||
|
||||
do_action( 'load-widgets.php' );
|
||||
/** This action is documented in wp-admin/includes/ajax-actions.php */
|
||||
do_action( 'widgets.php' );
|
||||
/** This action is documented in wp-admin/widgets.php */
|
||||
do_action( 'sidebar_admin_setup' );
|
||||
|
||||
$sidebars_widgets = wp_get_sidebars_widgets();
|
||||
@@ -2759,7 +2702,7 @@ function wp_ajax_send_link_to_editor() {
|
||||
$type = $ext_type;
|
||||
|
||||
/** This filter is documented in wp-admin/includes/media.php */
|
||||
$html = apply_filters( "{$type}_send_to_editor_url", $html, $src, $link_text );
|
||||
$html = apply_filters( $type . '_send_to_editor_url', $html, $src, $link_text );
|
||||
|
||||
wp_send_json_success( $html );
|
||||
}
|
||||
@@ -3059,6 +3002,7 @@ function wp_ajax_parse_embed() {
|
||||
$parsed = $styles . $html . $scripts;
|
||||
}
|
||||
|
||||
|
||||
if ( ! empty( $no_ssl_support ) || ( is_ssl() && ( preg_match( '%<(iframe|script|embed) [^>]*src="http://%', $parsed ) ||
|
||||
preg_match( '%<link [^>]*href="http://%', $parsed ) ) ) ) {
|
||||
// Admin is ssl and the embed is not. Iframes, scripts, and other "active content" will be blocked.
|
||||
@@ -3068,23 +3012,10 @@ function wp_ajax_parse_embed() {
|
||||
) );
|
||||
}
|
||||
|
||||
$return = array(
|
||||
wp_send_json_success( array(
|
||||
'body' => $parsed,
|
||||
'attr' => $wp_embed->last_attr
|
||||
);
|
||||
|
||||
if ( strpos( $parsed, 'class="wp-embedded-content' ) ) {
|
||||
if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) {
|
||||
$script_src = includes_url( 'js/wp-embed.js' );
|
||||
} else {
|
||||
$script_src = includes_url( 'js/wp-embed.min.js' );
|
||||
}
|
||||
|
||||
$return['head'] = '<script src="' . $script_src . '"></script>';
|
||||
$return['sandbox'] = true;
|
||||
}
|
||||
|
||||
wp_send_json_success( $return );
|
||||
) );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3181,7 +3112,7 @@ function wp_ajax_destroy_sessions() {
|
||||
$message = __( 'You are now logged out everywhere else.' );
|
||||
} else {
|
||||
$sessions->destroy_all();
|
||||
/* translators: %s: User's display name. */
|
||||
/* translators: 1: User's display name. */
|
||||
$message = sprintf( __( '%s has been logged out.' ), $user->display_name );
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||
/* translators: 1: Title of an update */
|
||||
$this->upgrader->strings['skin_update_failed'] = __('The update of %1$s failed.');
|
||||
/* translators: 1: Title of an update */
|
||||
$this->upgrader->strings['skin_update_successful'] = __( '%1$s updated successfully.' );
|
||||
$this->upgrader->strings['skin_update_successful'] = __( '%1$s updated successfully.' ) . ' <a onclick="%2$s" href="#" class="hide-if-no-js"><span>' . __( 'Show Details' ) . '</span><span class="hidden">' . __( 'Hide Details' ) . '</span></a>';
|
||||
$this->upgrader->strings['skin_upgrade_end'] = __('All updates have been completed.');
|
||||
}
|
||||
|
||||
@@ -128,7 +128,6 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||
$this->in_loop = true;
|
||||
printf( '<h2>' . $this->upgrader->strings['skin_before_update_header'] . ' <span class="spinner waiting-' . $this->upgrader->update_current . '"></span></h2>', $title, $this->upgrader->update_current, $this->upgrader->update_count );
|
||||
echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js($this->upgrader->update_current) . '\').css("display", "inline-block");</script>';
|
||||
// This progress messages div gets moved via JavaScript when clicking on "Show details.".
|
||||
echo '<div class="update-messages hide-if-js" id="progress-' . esc_attr($this->upgrader->update_current) . '"><p>';
|
||||
$this->flush_output();
|
||||
}
|
||||
@@ -149,13 +148,8 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||
echo '<script type="text/javascript">jQuery(\'#progress-' . esc_js($this->upgrader->update_current) . '\').show();</script>';
|
||||
}
|
||||
if ( $this->result && ! is_wp_error( $this->result ) ) {
|
||||
if ( ! $this->error ) {
|
||||
echo '<div class="updated js-update-details" data-update-details="progress-' . esc_attr( $this->upgrader->update_current ) . '">' .
|
||||
'<p>' . sprintf( $this->upgrader->strings['skin_update_successful'], $title ) .
|
||||
' <button type="button" class="hide-if-no-js button-link js-update-details-toggle" aria-expanded="false">' . __( 'Show details.' ) . '</button>' .
|
||||
'</p></div>';
|
||||
}
|
||||
|
||||
if ( ! $this->error )
|
||||
echo '<div class="updated"><p>' . sprintf($this->upgrader->strings['skin_update_successful'], $title, 'jQuery(\'#progress-' . esc_js($this->upgrader->update_current) . '\').toggle();jQuery(\'span\', this).toggle(); return false;') . '</p></div>';
|
||||
echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js($this->upgrader->update_current) . '\').hide();</script>';
|
||||
}
|
||||
|
||||
|
||||
@@ -406,7 +406,7 @@ class Plugin_Upgrader extends WP_Upgrader {
|
||||
return $return;
|
||||
|
||||
// When in cron (background updates) don't deactivate the plugin, as we require a browser to reactivate it
|
||||
if ( wp_doing_cron() )
|
||||
if ( defined( 'DOING_CRON' ) && DOING_CRON )
|
||||
return $return;
|
||||
|
||||
$plugin = isset($plugin['plugin']) ? $plugin['plugin'] : '';
|
||||
|
||||
@@ -84,18 +84,18 @@ class Walker_Category_Checklist extends Walker {
|
||||
$args['selected_cats'] = empty( $args['selected_cats'] ) ? array() : $args['selected_cats'];
|
||||
|
||||
if ( ! empty( $args['list_only'] ) ) {
|
||||
$aria_checked = 'false';
|
||||
$aria_cheched = 'false';
|
||||
$inner_class = 'category';
|
||||
|
||||
if ( in_array( $category->term_id, $args['selected_cats'] ) ) {
|
||||
$inner_class .= ' selected';
|
||||
$aria_checked = 'true';
|
||||
$aria_cheched = 'true';
|
||||
}
|
||||
|
||||
/** This filter is documented in wp-includes/category-template.php */
|
||||
$output .= "\n" . '<li' . $class . '>' .
|
||||
'<div class="' . $inner_class . '" data-term-id=' . $category->term_id .
|
||||
' tabindex="0" role="checkbox" aria-checked="' . $aria_checked . '">' .
|
||||
' tabindex="0" role="checkbox" aria-checked="' . $aria_cheched . '">' .
|
||||
esc_html( apply_filters( 'the_category', $category->name ) ) . '</div>';
|
||||
} else {
|
||||
/** This filter is documented in wp-includes/category-template.php */
|
||||
|
||||
@@ -31,7 +31,7 @@ class WP_Automatic_Updater {
|
||||
*/
|
||||
public function is_disabled() {
|
||||
// Background updates are disabled if you don't want file changes.
|
||||
if ( ! wp_is_file_mod_allowed( 'automatic_updater' ) )
|
||||
if ( defined( 'DISALLOW_FILE_MODS' ) && DISALLOW_FILE_MODS )
|
||||
return true;
|
||||
|
||||
if ( wp_installing() )
|
||||
|
||||
@@ -319,11 +319,6 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||
*/
|
||||
protected function extra_tablenav( $which ) {
|
||||
global $comment_status, $comment_type;
|
||||
static $has_items;
|
||||
|
||||
if ( ! isset( $has_items ) ) {
|
||||
$has_items = $this->has_items();
|
||||
}
|
||||
?>
|
||||
<div class="alignleft actions">
|
||||
<?php
|
||||
@@ -359,7 +354,7 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||
submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
|
||||
}
|
||||
|
||||
if ( ( 'spam' === $comment_status || 'trash' === $comment_status ) && current_user_can( 'moderate_comments' ) && $has_items ) {
|
||||
if ( ( 'spam' === $comment_status || 'trash' === $comment_status ) && current_user_can( 'moderate_comments' ) ) {
|
||||
wp_nonce_field( 'bulk-destroy', '_destroy_nonce' );
|
||||
$title = ( 'spam' === $comment_status ) ? esc_attr__( 'Empty Spam' ) : esc_attr__( 'Empty Trash' );
|
||||
submit_button( $title, 'apply', 'delete_all', false );
|
||||
@@ -695,7 +690,7 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||
|
||||
if ( $this->user_can ) {
|
||||
if ( ! empty( $comment->comment_author_email ) ) {
|
||||
/** This filter is documented in wp-includes/comment-template.php */
|
||||
/* This filter is documented in wp-includes/comment-template.php */
|
||||
$email = apply_filters( 'comment_email', $comment->comment_author_email, $comment );
|
||||
|
||||
if ( ! empty( $email ) && '@' !== $email ) {
|
||||
|
||||
@@ -1,458 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* Administration: Community Events class.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Administration
|
||||
* @since 4.8.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class WP_Community_Events.
|
||||
*
|
||||
* A client for api.wordpress.org/events.
|
||||
*
|
||||
* @since 4.8.0
|
||||
*/
|
||||
class WP_Community_Events {
|
||||
/**
|
||||
* ID for a WordPress user account.
|
||||
*
|
||||
* @access protected
|
||||
* @since 4.8.0
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $user_id = 0;
|
||||
|
||||
/**
|
||||
* Stores location data for the user.
|
||||
*
|
||||
* @access protected
|
||||
* @since 4.8.0
|
||||
*
|
||||
* @var bool|array
|
||||
*/
|
||||
protected $user_location = false;
|
||||
|
||||
/**
|
||||
* Constructor for WP_Community_Events.
|
||||
*
|
||||
* @since 4.8.0
|
||||
*
|
||||
* @param int $user_id WP user ID.
|
||||
* @param bool|array $user_location Stored location data for the user.
|
||||
* false to pass no location;
|
||||
* array to pass a location {
|
||||
* @type string $description The name of the location
|
||||
* @type string $latitude The latitude in decimal degrees notation, without the degree
|
||||
* symbol. e.g.: 47.615200.
|
||||
* @type string $longitude The longitude in decimal degrees notation, without the degree
|
||||
* symbol. e.g.: -122.341100.
|
||||
* @type string $country The ISO 3166-1 alpha-2 country code. e.g.: BR
|
||||
* }
|
||||
*/
|
||||
public function __construct( $user_id, $user_location = false ) {
|
||||
$this->user_id = absint( $user_id );
|
||||
$this->user_location = $user_location;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets data about events near a particular location.
|
||||
*
|
||||
* Cached events will be immediately returned if the `user_location` property
|
||||
* is set for the current user, and cached events exist for that location.
|
||||
*
|
||||
* Otherwise, this method sends a request to the w.org Events API with location
|
||||
* data. The API will send back a recognized location based on the data, along
|
||||
* with nearby events.
|
||||
*
|
||||
* The browser's request for events is proxied with this method, rather
|
||||
* than having the browser make the request directly to api.wordpress.org,
|
||||
* because it allows results to be cached server-side and shared with other
|
||||
* users and sites in the network. This makes the process more efficient,
|
||||
* since increasing the number of visits that get cached data means users
|
||||
* don't have to wait as often; if the user's browser made the request
|
||||
* directly, it would also need to make a second request to WP in order to
|
||||
* pass the data for caching. Having WP make the request also introduces
|
||||
* the opportunity to anonymize the IP before sending it to w.org, which
|
||||
* mitigates possible privacy concerns.
|
||||
*
|
||||
* @since 4.8.0
|
||||
*
|
||||
* @param string $location_search Optional. City name to help determine the location.
|
||||
* e.g., "Seattle". Default empty string.
|
||||
* @param string $timezone Optional. Timezone to help determine the location.
|
||||
* Default empty string.
|
||||
* @return array|WP_Error A WP_Error on failure; an array with location and events on
|
||||
* success.
|
||||
*/
|
||||
public function get_events( $location_search = '', $timezone = '' ) {
|
||||
$cached_events = $this->get_cached_events();
|
||||
|
||||
if ( ! $location_search && $cached_events ) {
|
||||
return $cached_events;
|
||||
}
|
||||
|
||||
$api_url = 'https://api.wordpress.org/events/1.0/';
|
||||
$request_args = $this->get_request_args( $location_search, $timezone );
|
||||
$response = wp_remote_get( $api_url, $request_args );
|
||||
$response_code = wp_remote_retrieve_response_code( $response );
|
||||
$response_body = json_decode( wp_remote_retrieve_body( $response ), true );
|
||||
$response_error = null;
|
||||
$debugging_info = compact( 'api_url', 'request_args', 'response_code', 'response_body' );
|
||||
|
||||
if ( is_wp_error( $response ) ) {
|
||||
$response_error = $response;
|
||||
} elseif ( 200 !== $response_code ) {
|
||||
$response_error = new WP_Error(
|
||||
'api-error',
|
||||
/* translators: %s is a numeric HTTP status code; e.g., 400, 403, 500, 504, etc. */
|
||||
sprintf( __( 'Invalid API response code (%d)' ), $response_code )
|
||||
);
|
||||
} elseif ( ! isset( $response_body['location'], $response_body['events'] ) ) {
|
||||
$response_error = new WP_Error(
|
||||
'api-invalid-response',
|
||||
isset( $response_body['error'] ) ? $response_body['error'] : __( 'Unknown API error.' )
|
||||
);
|
||||
}
|
||||
|
||||
if ( is_wp_error( $response_error ) ) {
|
||||
$this->maybe_log_events_response( $response_error->get_error_message(), $debugging_info );
|
||||
|
||||
return $response_error;
|
||||
} else {
|
||||
$expiration = false;
|
||||
|
||||
if ( isset( $response_body['ttl'] ) ) {
|
||||
$expiration = $response_body['ttl'];
|
||||
unset( $response_body['ttl'] );
|
||||
}
|
||||
|
||||
/*
|
||||
* The IP in the response is usually the same as the one that was sent
|
||||
* in the request, but in some cases it is different. In those cases,
|
||||
* it's important to reset it back to the IP from the request.
|
||||
*
|
||||
* For example, if the IP sent in the request is private (e.g., 192.168.1.100),
|
||||
* then the API will ignore that and use the corresponding public IP instead,
|
||||
* and the public IP will get returned. If the public IP were saved, though,
|
||||
* then get_cached_events() would always return `false`, because the transient
|
||||
* would be generated based on the public IP when saving the cache, but generated
|
||||
* based on the private IP when retrieving the cache.
|
||||
*/
|
||||
if ( ! empty( $response_body['location']['ip'] ) ) {
|
||||
$response_body['location']['ip'] = $request_args['body']['ip'];
|
||||
}
|
||||
|
||||
/*
|
||||
* The API doesn't return a description for latitude/longitude requests,
|
||||
* but the description is already saved in the user location, so that
|
||||
* one can be used instead.
|
||||
*/
|
||||
if ( $this->coordinates_match( $request_args['body'], $response_body['location'] ) && empty( $response_body['location']['description'] ) ) {
|
||||
$response_body['location']['description'] = $this->user_location['description'];
|
||||
}
|
||||
|
||||
$this->cache_events( $response_body, $expiration );
|
||||
|
||||
$response_body = $this->trim_events( $response_body );
|
||||
$response_body = $this->format_event_data_time( $response_body );
|
||||
|
||||
// Avoid bloating the log with all the event data, but keep the count.
|
||||
$debugging_info['response_body']['events'] = count( $debugging_info['response_body']['events'] ) . ' events trimmed.';
|
||||
|
||||
$this->maybe_log_events_response( 'Valid response received', $debugging_info );
|
||||
|
||||
return $response_body;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Builds an array of args to use in an HTTP request to the w.org Events API.
|
||||
*
|
||||
* @access protected
|
||||
* @since 4.8.0
|
||||
*
|
||||
* @param string $search Optional. City search string. Default empty string.
|
||||
* @param string $timezone Optional. Timezone string. Default empty string.
|
||||
* @return @return array The request args.
|
||||
*/
|
||||
protected function get_request_args( $search = '', $timezone = '' ) {
|
||||
$args = array(
|
||||
'number' => 5, // Get more than three in case some get trimmed out.
|
||||
'ip' => self::get_unsafe_client_ip(),
|
||||
);
|
||||
|
||||
/*
|
||||
* Include the minimal set of necessary arguments, in order to increase the
|
||||
* chances of a cache-hit on the API side.
|
||||
*/
|
||||
if ( empty( $search ) && isset( $this->user_location['latitude'], $this->user_location['longitude'] ) ) {
|
||||
$args['latitude'] = $this->user_location['latitude'];
|
||||
$args['longitude'] = $this->user_location['longitude'];
|
||||
} else {
|
||||
$args['locale'] = get_user_locale( $this->user_id );
|
||||
|
||||
if ( $timezone ) {
|
||||
$args['timezone'] = $timezone;
|
||||
}
|
||||
|
||||
if ( $search ) {
|
||||
$args['location'] = $search;
|
||||
}
|
||||
}
|
||||
|
||||
// Wrap the args in an array compatible with the second parameter of `wp_remote_get()`.
|
||||
return array(
|
||||
'body' => $args
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines the user's actual IP address and attempts to partially
|
||||
* anonymize an IP address by converting it to a network ID.
|
||||
*
|
||||
* Geolocating the network ID usually returns a similar location as the
|
||||
* actual IP, but provides some privacy for the user.
|
||||
*
|
||||
* $_SERVER['REMOTE_ADDR'] cannot be used in all cases, such as when the user
|
||||
* is making their request through a proxy, or when the web server is behind
|
||||
* a proxy. In those cases, $_SERVER['REMOTE_ADDR'] is set to the proxy address rather
|
||||
* than the user's actual address.
|
||||
*
|
||||
* Modified from http://stackoverflow.com/a/2031935/450127, MIT license.
|
||||
* Modified from https://github.com/geertw/php-ip-anonymizer, MIT license.
|
||||
*
|
||||
* SECURITY WARNING: This function is _NOT_ intended to be used in
|
||||
* circumstances where the authenticity of the IP address matters. This does
|
||||
* _NOT_ guarantee that the returned address is valid or accurate, and it can
|
||||
* be easily spoofed.
|
||||
*
|
||||
* @access protected
|
||||
* @since 4.8.0
|
||||
*
|
||||
* @return false|string The anonymized address on success; the given address
|
||||
* or false on failure.
|
||||
*/
|
||||
public static function get_unsafe_client_ip() {
|
||||
$client_ip = false;
|
||||
|
||||
// In order of preference, with the best ones for this purpose first.
|
||||
$address_headers = array(
|
||||
'HTTP_CLIENT_IP',
|
||||
'HTTP_X_FORWARDED_FOR',
|
||||
'HTTP_X_FORWARDED',
|
||||
'HTTP_X_CLUSTER_CLIENT_IP',
|
||||
'HTTP_FORWARDED_FOR',
|
||||
'HTTP_FORWARDED',
|
||||
'REMOTE_ADDR',
|
||||
);
|
||||
|
||||
foreach ( $address_headers as $header ) {
|
||||
if ( array_key_exists( $header, $_SERVER ) ) {
|
||||
/*
|
||||
* HTTP_X_FORWARDED_FOR can contain a chain of comma-separated
|
||||
* addresses. The first one is the original client. It can't be
|
||||
* trusted for authenticity, but we don't need to for this purpose.
|
||||
*/
|
||||
$address_chain = explode( ',', $_SERVER[ $header ] );
|
||||
$client_ip = trim( $address_chain[0] );
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// These functions are not available on Windows until PHP 5.3.
|
||||
if ( function_exists( 'inet_pton' ) && function_exists( 'inet_ntop' ) ) {
|
||||
if ( 4 === strlen( inet_pton( $client_ip ) ) ) {
|
||||
$netmask = '255.255.255.0'; // ipv4.
|
||||
} else {
|
||||
$netmask = 'ffff:ffff:ffff:ffff:0000:0000:0000:0000'; // ipv6.
|
||||
}
|
||||
|
||||
$client_ip = inet_ntop( inet_pton( $client_ip ) & inet_pton( $netmask ) );
|
||||
}
|
||||
|
||||
return $client_ip;
|
||||
}
|
||||
|
||||
/**
|
||||
* Test if two pairs of latitude/longitude coordinates match each other.
|
||||
*
|
||||
* @since 4.8.0
|
||||
* @access protected
|
||||
*
|
||||
* @param array $a The first pair, with indexes 'latitude' and 'longitude'.
|
||||
* @param array $b The second pair, with indexes 'latitude' and 'longitude'.
|
||||
* @return bool True if they match, false if they don't.
|
||||
*/
|
||||
protected function coordinates_match( $a, $b ) {
|
||||
if ( ! isset( $a['latitude'], $a['longitude'], $b['latitude'], $b['longitude'] ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $a['latitude'] === $b['latitude'] && $a['longitude'] === $b['longitude'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates a transient key based on user location.
|
||||
*
|
||||
* This could be reduced to a one-liner in the calling functions, but it's
|
||||
* intentionally a separate function because it's called from multiple
|
||||
* functions, and having it abstracted keeps the logic consistent and DRY,
|
||||
* which is less prone to errors.
|
||||
*
|
||||
* @access protected
|
||||
* @since 4.8.0
|
||||
*
|
||||
* @param array $location Should contain 'latitude' and 'longitude' indexes.
|
||||
* @return bool|string false on failure, or a string on success.
|
||||
*/
|
||||
protected function get_events_transient_key( $location ) {
|
||||
$key = false;
|
||||
|
||||
if ( isset( $location['ip'] ) ) {
|
||||
$key = 'community-events-' . md5( $location['ip'] );
|
||||
} else if ( isset( $location['latitude'], $location['longitude'] ) ) {
|
||||
$key = 'community-events-' . md5( $location['latitude'] . $location['longitude'] );
|
||||
}
|
||||
|
||||
return $key;
|
||||
}
|
||||
|
||||
/**
|
||||
* Caches an array of events data from the Events API.
|
||||
*
|
||||
* @access protected
|
||||
* @since 4.8.0
|
||||
*
|
||||
* @param array $events Response body from the API request.
|
||||
* @param int|bool $expiration Optional. Amount of time to cache the events. Defaults to false.
|
||||
* @return bool true if events were cached; false if not.
|
||||
*/
|
||||
protected function cache_events( $events, $expiration = false ) {
|
||||
$set = false;
|
||||
$transient_key = $this->get_events_transient_key( $events['location'] );
|
||||
$cache_expiration = $expiration ? absint( $expiration ) : HOUR_IN_SECONDS * 12;
|
||||
|
||||
if ( $transient_key ) {
|
||||
$set = set_site_transient( $transient_key, $events, $cache_expiration );
|
||||
}
|
||||
|
||||
return $set;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets cached events.
|
||||
*
|
||||
* @since 4.8.0
|
||||
*
|
||||
* @return false|array false on failure; an array containing `location`
|
||||
* and `events` items on success.
|
||||
*/
|
||||
public function get_cached_events() {
|
||||
$cached_response = get_site_transient( $this->get_events_transient_key( $this->user_location ) );
|
||||
$cached_response = $this->trim_events( $cached_response );
|
||||
|
||||
return $this->format_event_data_time( $cached_response );
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds formatted date and time items for each event in an API response.
|
||||
*
|
||||
* This has to be called after the data is pulled from the cache, because
|
||||
* the cached events are shared by all users. If it was called before storing
|
||||
* the cache, then all users would see the events in the localized data/time
|
||||
* of the user who triggered the cache refresh, rather than their own.
|
||||
*
|
||||
* @access protected
|
||||
* @since 4.8.0
|
||||
*
|
||||
* @param array $response_body The response which contains the events.
|
||||
* @return array The response with dates and times formatted.
|
||||
*/
|
||||
protected function format_event_data_time( $response_body ) {
|
||||
if ( isset( $response_body['events'] ) ) {
|
||||
foreach ( $response_body['events'] as $key => $event ) {
|
||||
$timestamp = strtotime( $event['date'] );
|
||||
|
||||
/*
|
||||
* The `date_format` option is not used because it's important
|
||||
* in this context to keep the day of the week in the formatted date,
|
||||
* so that users can tell at a glance if the event is on a day they
|
||||
* are available, without having to open the link.
|
||||
*/
|
||||
/* translators: Date format for upcoming events on the dashboard. Include the day of the week. See https://secure.php.net/date. */
|
||||
$response_body['events'][ $key ]['formatted_date'] = date_i18n( __( 'l, M j, Y' ), $timestamp );
|
||||
$response_body['events'][ $key ]['formatted_time'] = date_i18n( get_option( 'time_format' ), $timestamp );
|
||||
}
|
||||
}
|
||||
|
||||
return $response_body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Discards expired events, and reduces the remaining list.
|
||||
*
|
||||
* @access protected
|
||||
* @since 4.8.0
|
||||
*
|
||||
* @param array $response_body The response body which contains the events.
|
||||
* @return array The response body with events trimmed.
|
||||
*/
|
||||
protected function trim_events( $response_body ) {
|
||||
if ( isset( $response_body['events'] ) ) {
|
||||
$current_timestamp = current_time( 'timestamp' );
|
||||
|
||||
foreach ( $response_body['events'] as $key => $event ) {
|
||||
// Skip WordCamps, because they might be multi-day events.
|
||||
if ( 'meetup' !== $event['type'] ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$event_timestamp = strtotime( $event['date'] );
|
||||
|
||||
if ( $current_timestamp > $event_timestamp && ( $current_timestamp - $event_timestamp ) > DAY_IN_SECONDS ) {
|
||||
unset( $response_body['events'][ $key ] );
|
||||
}
|
||||
}
|
||||
|
||||
$response_body['events'] = array_slice( $response_body['events'], 0, 3 );
|
||||
}
|
||||
|
||||
return $response_body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Logs responses to Events API requests.
|
||||
*
|
||||
* All responses are logged when debugging, even if they're not WP_Errors.
|
||||
* Debugging info is still needed for "successful" responses, because
|
||||
* the API might have returned a different location than the one the user
|
||||
* intended to receive. In those cases, knowing the exact `request_url` is
|
||||
* critical.
|
||||
*
|
||||
* Errors are logged instead of being triggered, to avoid breaking the JSON
|
||||
* response when called from AJAX handlers and `display_errors` is enabled.
|
||||
*
|
||||
* @access protected
|
||||
* @since 4.8.0
|
||||
*
|
||||
* @param string $message A description of what occurred.
|
||||
* @param array $details Details that provide more context for the
|
||||
* log entry.
|
||||
*/
|
||||
protected function maybe_log_events_response( $message, $details ) {
|
||||
if ( ! WP_DEBUG_LOG ) {
|
||||
return;
|
||||
}
|
||||
|
||||
error_log( sprintf(
|
||||
'%s: %s. Details: %s',
|
||||
__METHOD__,
|
||||
trim( $message, '.' ),
|
||||
wp_json_encode( $details )
|
||||
) );
|
||||
}
|
||||
}
|
||||
@@ -470,10 +470,9 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
||||
*
|
||||
* @param string $path
|
||||
* @param bool $recursive
|
||||
* @return bool
|
||||
*/
|
||||
public function rmdir($path, $recursive = false ) {
|
||||
return $this->delete($path, $recursive);
|
||||
$this->delete($path, $recursive);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -732,7 +732,7 @@ class WP_List_Table {
|
||||
*
|
||||
* @param int $per_page Number of items to be displayed. Default 20.
|
||||
*/
|
||||
return (int) apply_filters( "{$option}", $per_page );
|
||||
return (int) apply_filters( $option, $per_page );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user