wp core update 6.6
This commit is contained in:
+65
-227
@@ -41,112 +41,6 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
<a href="contribute.php" class="nav-tab"><?php _e( 'Get Involved' ); ?></a>
|
||||
</nav>
|
||||
|
||||
<div class="about__section changelog has-subtle-background-color">
|
||||
<div class="column">
|
||||
<h2><?php _e( 'Maintenance and Security Release' ); ?></h2>
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: 1: WordPress version number, 2: Plural number of bugs. */
|
||||
_n(
|
||||
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
|
||||
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.',
|
||||
3
|
||||
),
|
||||
'6.5.5',
|
||||
'3'
|
||||
);
|
||||
?>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s: HelpHub URL. */
|
||||
__( 'For more information, see <a href="%s">the release notes</a>.' ),
|
||||
sprintf(
|
||||
/* translators: %s: WordPress version. */
|
||||
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
|
||||
sanitize_title( '6.5.5' )
|
||||
)
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: 1: WordPress version number, 2: Plural number of bugs. */
|
||||
_n(
|
||||
'<strong>Version %1$s</strong> addressed %2$s bug.',
|
||||
'<strong>Version %1$s</strong> addressed %2$s bugs.',
|
||||
10
|
||||
),
|
||||
'6.5.4',
|
||||
'5'
|
||||
);
|
||||
?>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s: HelpHub URL. */
|
||||
__( 'For more information, see <a href="%s">the release notes</a>.' ),
|
||||
sprintf(
|
||||
/* translators: %s: WordPress version. */
|
||||
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
|
||||
sanitize_title( '6.5.4' )
|
||||
)
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: 1: WordPress version number, 2: Plural number of bugs. */
|
||||
_n(
|
||||
'<strong>Version %1$s</strong> addressed %2$s bug.',
|
||||
'<strong>Version %1$s</strong> addressed %2$s bugs.',
|
||||
10
|
||||
),
|
||||
'6.5.3',
|
||||
'21'
|
||||
);
|
||||
?>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s: HelpHub URL. */
|
||||
__( 'For more information, see <a href="%s">the release notes</a>.' ),
|
||||
sprintf(
|
||||
/* translators: %s: WordPress version. */
|
||||
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
|
||||
sanitize_title( '6.5.3' )
|
||||
)
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: 1: WordPress version number, 2: Plural number of bugs. */
|
||||
_n(
|
||||
'<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
|
||||
'<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.',
|
||||
12
|
||||
),
|
||||
'6.5.2',
|
||||
'12'
|
||||
);
|
||||
?>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s: HelpHub URL. */
|
||||
__( 'For more information, see <a href="%s">the release notes</a>.' ),
|
||||
sprintf(
|
||||
/* translators: %s: WordPress version. */
|
||||
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
|
||||
sanitize_title( '6.5.2' )
|
||||
)
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="about__section">
|
||||
<div class="column">
|
||||
<h2>
|
||||
@@ -159,145 +53,66 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
?>
|
||||
</h2>
|
||||
<p class="is-subheading">
|
||||
<?php _e( 'Take your site-building experience further with WordPress 6.5. Explore more avenues to make it your own, with new features and enhancements that will help fine-tune your creative work. Discover the latest additions to the developer experience, with fresh foundational tools poised to transform the future of blocks.' ); ?>
|
||||
<?php _e( 'Create and deploy beautiful and coherent design elements across your sites with WordPress 6.6. A new rollback option for auto-updating plugins gives you control, flexibility, and peace of mind.' ); ?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="about__section has-2-columns">
|
||||
<div class="column is-vertically-aligned-center">
|
||||
<div class="about__image">
|
||||
<img src="https://s.w.org/images/core/6.5/1-font-library.webp" alt="" height="436" width="436" />
|
||||
</div>
|
||||
<h3><?php _e( 'Color palettes & font sets' ); ?></h3>
|
||||
<p><strong><?php _e( 'Add more design options to any block theme.' ); ?></strong> <?php _e( 'Block theme authors can create unlimited individual color or font sets to offer more specific design options within the same theme. These sets provide more contained design possibilities, allowing for customization without changing the site’s broader styling, beyond color or typography settings.' ); ?></p>
|
||||
</div>
|
||||
<div class="column is-vertically-aligned-center">
|
||||
<h3><?php _e( 'Add and manage fonts across your site' ); ?></h3>
|
||||
<p><?php _e( 'The new Font Library puts you in control of an essential piece of your site’s design—typography—without coding or extra steps. Effortlessly install, remove, and activate local and Google Fonts across your site for any block theme. The ability to include custom typography collections gives site creators and publishers even more choice.' ); ?></p>
|
||||
<div class="about__image">
|
||||
<img src="https://s.w.org/images/core/6.6/color-palettes.webp" alt="" height="436" width="436" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="about__section has-2-columns">
|
||||
<div class="column is-vertically-aligned-center">
|
||||
<h3><?php _e( 'Get more details from your style revisions' ); ?></h3>
|
||||
<p><?php _e( 'Work through creative projects with a more comprehensive picture of what’s been done—and what you can fall back on. Get details like time stamps, quick summaries, and a paginated list of total revisions. View revisions from the Style Book to see changes outside of what you’re working on. Revisions are also now available for templates and template parts.' ); ?></p>
|
||||
<div class="about__image">
|
||||
<img src="https://s.w.org/images/core/6.6/page-previews.webp" alt="" height="436" width="436" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="column is-vertically-aligned-center">
|
||||
<h3><?php _e( 'Quick previews for pages' ); ?></h3>
|
||||
<p><strong><?php _e( 'Simplify your workflow with a new layout built for pages.' ); ?></strong> <?php _e( 'See all of your pages and a preview of any selected page before you edit via a new side-by-side layout in the Site Editor.' ); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="about__section has-2-columns">
|
||||
<div class="column is-vertically-aligned-center">
|
||||
<h3><?php _e( 'Rollbacks for plugin auto-updates' ); ?></h3>
|
||||
<p><strong><?php _e( 'Auto-update your plugins with peace of mind.' ); ?></strong> <?php _e( 'Enjoy the ease of plugin auto-updates with the safety of rollbacks if anything goes wrong, improving your site’s security while minimizing potential downtime.' ); ?></p>
|
||||
</div>
|
||||
<div class="column is-vertically-aligned-center">
|
||||
<div class="about__image">
|
||||
<img src="https://s.w.org/images/core/6.5/3-style-revisions.webp" alt="" height="436" width="436" />
|
||||
<img src="https://s.w.org/images/core/6.6/feature-rollbacks.webp" alt="" height="436" width="436" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="about__section has-3-columns">
|
||||
<div class="column">
|
||||
<div class="about__section has-2-columns">
|
||||
<div class="column is-vertically-aligned-center">
|
||||
<div class="about__image">
|
||||
<img src="https://s.w.org/images/core/6.5/4-background-images.webp" alt="" height="270" width="270" />
|
||||
<img src="https://s.w.org/images/core/6.6/overrides.webp" alt="" height="436" width="436" />
|
||||
</div>
|
||||
<h3 class="is-smaller-heading" style="margin-bottom:calc(var(--gap) / 4);"><?php _e( 'Do more with background images in Group blocks' ); ?></h3>
|
||||
<p><?php _e( 'Control size, repeat, and focal point options so you can play around with subtle or splashy ways to add visual interest to layouts.' ); ?></p>
|
||||
</div>
|
||||
<div class="column">
|
||||
<div class="about__image">
|
||||
<img src="https://s.w.org/images/core/6.5/5-cover-aspect-ratio.webp" alt="" height="270" width="270" />
|
||||
</div>
|
||||
<h3 class="is-smaller-heading" style="margin-bottom:calc(var(--gap) / 4);"><?php _e( 'Get more control over images in Cover blocks' ); ?></h3>
|
||||
<p><?php _e( 'Set aspect ratios for Cover block images and easily add color overlays that automatically source color from your chosen image.' ); ?></p>
|
||||
</div>
|
||||
<div class="column">
|
||||
<div class="about__image">
|
||||
<img src="https://s.w.org/images/core/6.5/6-box-shadow.webp" alt="" height="270" width="270" />
|
||||
</div>
|
||||
<h3 class="is-smaller-heading" style="margin-bottom:calc(var(--gap) / 4);"><?php _e( 'Add box shadow supports to even more blocks' ); ?></h3>
|
||||
<p><?php _e( 'With shadow supports enabled, you can create layouts with visual depth or add a little personality to your design.' ); ?></p>
|
||||
<div class="column is-vertically-aligned-center">
|
||||
<h3><?php _e( 'Overrides' ); ?></h3>
|
||||
<p><strong><?php _e( 'Add the ability to customize content in synced patterns.' ); ?></strong> <?php _e( 'Allow specific pieces of content to be customized in each instance of a synced pattern while keeping a consistent style for all instances, simplifying future updates. Currently, you can set overrides for Heading, Paragraph, Button, and Image blocks.' ); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="about__section has-3-columns">
|
||||
<div class="column">
|
||||
<div class="about__image">
|
||||
<img src="https://s.w.org/images/core/6.5/7-data-views.webp" alt="" height="270" width="270" />
|
||||
</div>
|
||||
<h3 class="is-smaller-heading" style="margin-bottom:calc(var(--gap) / 4);"><?php _e( 'Discover new Data Views' ); ?></h3>
|
||||
<p><?php _e( 'Find and organize your data however you like with data views for pages, templates, patterns, and template parts. Arrange it in a table or grid view with the option to toggle fields and make bulk changes.' ); ?></p>
|
||||
</div>
|
||||
<div class="column">
|
||||
<div class="about__image">
|
||||
<img src="https://s.w.org/images/core/6.5/8-drag-n-drop.webp" alt="" height="270" width="270" />
|
||||
</div>
|
||||
<h3 class="is-smaller-heading" style="margin-bottom:calc(var(--gap) / 4);"><?php _e( 'Smoother drag-and-drop' ); ?></h3>
|
||||
<p><?php _e( 'Feel the difference when you move things around, with helpful visual cues like displaced items in List View or frictionless dragging to anywhere in your workspace—from beginning to end.' ); ?></p>
|
||||
</div>
|
||||
<div class="column">
|
||||
<div class="about__image">
|
||||
<img src="https://s.w.org/images/core/6.5/9-link-controls.webp" alt="" height="270" width="270" />
|
||||
</div>
|
||||
<h3 class="is-smaller-heading" style="margin-bottom:calc(var(--gap) / 4);"><?php _e( 'Improved link controls' ); ?></h3>
|
||||
<p><?php _e( 'Create and manage links easily with a more intuitive link-building experience, like a streamlined UI and a shortcut for copying links.' ); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
<hr class="is-invisible is-large" />
|
||||
|
||||
<div class="about__section has-2-columns">
|
||||
<div class="column">
|
||||
<div class="about__image">
|
||||
<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
|
||||
<rect width="48" height="48" rx="6" fill="#ededed"/>
|
||||
<path d="M18.9167 16.5C18.2757 16.5 17.661 16.7546 17.2078 17.2078C16.7546 17.661 16.5 18.2757 16.5 18.9167V21.3333H18.3125V18.9167C18.3125 18.7564 18.3762 18.6028 18.4895 18.4895C18.6028 18.3762 18.7564 18.3125 18.9167 18.3125H21.3333V16.5H18.9167ZM21.3333 29.1875H18.9167C18.7564 29.1875 18.6028 29.1238 18.4895 29.0105C18.3762 28.8972 18.3125 28.7436 18.3125 28.5833V26.1667H16.5V28.5833C16.5 29.2243 16.7546 29.839 17.2078 30.2922C17.661 30.7454 18.2757 31 18.9167 31H21.3333V29.1875ZM26.1667 31V29.1875H28.5833C28.7436 29.1875 28.8972 29.1238 29.0105 29.0105C29.1238 28.8972 29.1875 28.7436 29.1875 28.5833V26.1667H31V28.5833C31 29.2243 30.7454 29.839 30.2922 30.2922C29.839 30.7454 29.2243 31 28.5833 31H26.1667ZM28.5833 16.5C29.2243 16.5 29.839 16.7546 30.2922 17.2078C30.7454 17.661 31 18.2757 31 18.9167V21.3333H29.1875V18.9167C29.1875 18.7564 29.1238 18.6028 29.0105 18.4895C28.8972 18.3762 28.7436 18.3125 28.5833 18.3125H26.1667V16.5H28.5833Z" fill="#1e1e1e"/>
|
||||
</svg>
|
||||
</div>
|
||||
<h3 style="margin-top:calc(var(--gap) * 0.75);margin-bottom:calc(var(--gap) * 0.5)"><?php _e( 'Bring interactions to blocks with the Interactivity API' ); ?></h3>
|
||||
<p><?php _e( 'The Interactivity API offers developers a standardized method for building interactive front-end experiences with blocks. It simplifies the process, with fewer dependencies on external tooling, while maintaining optimal performance. Use it to create memorable user experiences, like fetching search results instantly or letting visitors interact with content in real time.' ); ?></p>
|
||||
</div>
|
||||
<div class="column">
|
||||
<div class="about__image">
|
||||
<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
|
||||
<rect width="48" height="48" rx="6" fill="#ededed"/>
|
||||
<path d="M18.95 19.45H27.15L25.45 21.25L26.55 22.35L30.15 18.75L26.65 14.75L25.55 15.75L27.45 18.05H18.95C18.05 18.05 17.25 18.35 16.65 18.95C15.25 20.45 15.25 23.15 15.25 24.55V24.75H16.75V24.45C16.75 23.35 16.75 20.95 17.75 19.95C18.05 19.65 18.45 19.45 18.95 19.45ZM32.75 23.45V23.25H31.25V23.55C31.25 24.65 31.25 27.05 30.25 28.05C29.95 28.35 29.55 28.55 28.95 28.55H20.75L22.45 26.85L21.35 25.75L17.85 29.25L21.35 33.25L22.45 32.25L20.55 29.95H28.95C29.85 29.95 30.65 29.65 31.25 29.05C32.75 27.65 32.75 24.85 32.75 23.45Z" fill="#1e1e1e"/>
|
||||
</svg>
|
||||
</div>
|
||||
<h3 style="margin-top:calc(var(--gap) * 0.75);margin-bottom:calc(var(--gap) * 0.5)"><?php _e( 'Connect blocks to custom fields or other dynamic content' ); ?></h3>
|
||||
<p><?php _e( 'Link core block attributes to custom fields and use the value of custom fields without creating custom blocks. Powered by the Block Bindings API, developers can extend this capability further to connect blocks to any dynamic content—even beyond custom fields. If there’s data stored elsewhere, easily point blocks to that new source with only a few lines of code.' ); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="about__section has-2-columns">
|
||||
<div class="column">
|
||||
<div class="about__image">
|
||||
<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
|
||||
<rect width="48" height="48" rx="6" fill="#ededed"/>
|
||||
<path d="M33 18.75H23.1925C22.7954 17.7305 21.7239 17 20.4643 17C19.2047 17 18.1332 17.7305 17.736 18.75H15V20.5H17.736C18.1332 21.5195 19.2047 22.25 20.4643 22.25C21.7239 22.25 22.7954 21.5195 23.1925 20.5H33V18.75Z" fill="#1e1e1e"/>
|
||||
<path d="M33 27.5H30.264C29.8668 26.4805 28.7953 25.75 27.5357 25.75C26.2761 25.75 25.2046 26.4805 24.8075 27.5H15V29.25H24.8075C25.2046 30.2695 26.2761 31 27.5357 31C28.7953 31 29.8668 30.2695 30.264 29.25H33V27.5Z" fill="#1e1e1e"/>
|
||||
</svg>
|
||||
</div>
|
||||
<h3 style="margin-top:calc(var(--gap) * 0.75);margin-bottom:calc(var(--gap) * 0.5)"><?php _e( 'Add appearance tools to Classic themes' ); ?></h3>
|
||||
<p><?php _e( 'Give designers and creators using Classic themes access to an upgraded design experience. Opt in to support for spacing, border, typography, and color options, even without using theme.json. Once support is enabled, more tools will be automatically added as they become available.' ); ?></p>
|
||||
</div>
|
||||
<div class="column">
|
||||
<div class="about__image">
|
||||
<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
|
||||
<rect width="48" height="48" rx="6" fill="#ededed"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M22.5 16L22.5 20H25.5V16H27V20H28.5C29.0523 20 29.5 20.4477 29.5 21V25L26.5 29V31C26.5 31.5523 26.0523 32 25.5 32H22.5C21.9477 32 21.5 31.5523 21.5 31V29L18.5 25V21C18.5 20.4477 18.9477 20 19.5 20H21L21 16H22.5ZM23 28.5V30.5H25V28.5L28 24.5V21.5H20V24.5L23 28.5Z" fill="#1e1e1e"/>
|
||||
</svg>
|
||||
</div>
|
||||
<h3 style="margin-top:calc(var(--gap) * 0.75);margin-bottom:calc(var(--gap) * 0.5)"><?php _e( 'Explore improvements to the plugin experience' ); ?></h3>
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s: Requires Plugins */
|
||||
__( 'There’s now an easier way to manage plugin dependencies. Plugin authors can supply a new %s header with a comma-separated list of required plugin slugs, presenting users with links to install and activate those plugins first.' ),
|
||||
'<code lang="en">Requires Plugins</code>'
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="about__section has-2-columns">
|
||||
<div class="column">
|
||||
<div class="about__image">
|
||||
<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
|
||||
<rect width="48" height="48" rx="4" fill="#ededed"/>
|
||||
<rect width="48" height="48" rx="4"/>
|
||||
<path d="M28.4287 20.6507C28.8387 20.8874 28.9791 21.4116 28.7424 21.8215L24.7424 28.7498C24.5057 29.1597 23.9815 29.3002 23.5715 29.0635C23.1616 28.8268 23.0211 28.3026 23.2578 27.8926L27.2578 20.9644C27.4945 20.5544 28.0187 20.414 28.4287 20.6507Z" fill="#1e1e1e"/>
|
||||
<path d="M18.6433 23.579C18.2333 23.3423 17.7091 23.4828 17.4724 23.8927C17.2357 24.3027 17.3761 24.8269 17.7861 25.0636L18.281 25.3493C18.691 25.586 19.2152 25.4456 19.4519 25.0356C19.6886 24.6256 19.5481 24.1014 19.1381 23.8647L18.6433 23.579Z" fill="#1e1e1e"/>
|
||||
<path d="M20.0358 20.6508C20.4458 20.4141 20.97 20.5546 21.2067 20.9645L21.4924 21.4594C21.7291 21.8694 21.5887 22.3936 21.1787 22.6303C20.7687 22.867 20.2445 22.7265 20.0078 22.3166L19.7221 21.8217C19.4854 21.4117 19.6259 20.8875 20.0358 20.6508Z" fill="#1e1e1e"/>
|
||||
@@ -305,26 +120,49 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M14 26C14 20.4772 18.4772 16 24 16C29.5228 16 34 20.4772 34 26C34 28.0846 33.3612 30.0225 32.2686 31.6256L32.0135 32H15.9865L15.7314 31.6256C14.6388 30.0225 14 28.0846 14 26ZM24 17.7143C19.4239 17.7143 15.7143 21.4239 15.7143 26C15.7143 27.5698 16.1501 29.0357 16.9072 30.2857H31.0928C31.8499 29.0357 32.2857 27.5698 32.2857 26C32.2857 21.4239 28.5761 17.7143 24 17.7143Z" fill="#1e1e1e"/>
|
||||
</svg>
|
||||
</div>
|
||||
<h3 style="margin-top:calc(var(--gap) * 0.75);margin-bottom:calc(var(--gap) * 0.5)"><?php _e( 'Performance updates' ); ?></h3>
|
||||
<p><?php _e( 'This release includes 110+ performance updates, with an impressive increase in speed and efficiency across the Post Editor and Site Editor. Loading is over two times faster than in 6.4, with input processing speed up to five times faster than the previous release. Translated sites see up to 25% improvement in load time for this release.' ); ?></p>
|
||||
<h3><?php _e( 'Performance updates' ); ?></h3>
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %1$s: code-formatted "WP_Theme_JSON", %2$s: code-formatted "data-wp-on-async", %%: escaped percent sign, leave as %%. */
|
||||
__( 'WordPress 6.6 includes important updates like removing redundant %1$s calls, disabling autoload for large options, eliminating unnecessary polyfill dependencies, lazy loading post embeds, introducing the %2$s directive, and a 33%% reduction in template loading time in the editor.' ),
|
||||
'<code>WP_Theme_JSON</code>',
|
||||
'<code>data-wp-on-async</code>'
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
</div>
|
||||
<div class="column">
|
||||
<div class="about__image">
|
||||
<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
|
||||
<rect width="48" height="48" rx="4" fill="#ededed"/>
|
||||
<rect width="48" height="48" rx="4"/>
|
||||
<path d="M24 18.285C23.55 18.285 23.1637 18.1237 22.8412 17.8012C22.5187 17.4788 22.3575 17.0925 22.3575 16.6425C22.3575 16.1925 22.5187 15.8062 22.8412 15.4837C23.1637 15.1612 23.55 15 24 15C24.45 15 24.8362 15.1612 25.1587 15.4837C25.4812 15.8062 25.6425 16.1925 25.6425 16.6425C25.6425 17.0925 25.4812 17.4788 25.1587 17.8012C24.8362 18.1237 24.45 18.285 24 18.285ZM21.5925 33V21.0075C20.5725 20.9325 19.5862 20.8275 18.6337 20.6925C17.6812 20.5575 16.77 20.385 15.9 20.175L16.2375 18.825C17.5125 19.125 18.78 19.3387 20.04 19.4662C21.3 19.5938 22.62 19.6575 24 19.6575C25.38 19.6575 26.7 19.5938 27.96 19.4662C29.22 19.3387 30.4875 19.125 31.7625 18.825L32.1 20.175C31.23 20.385 30.3187 20.5575 29.3662 20.6925C28.4137 20.8275 27.4275 20.9325 26.4075 21.0075V33H25.0575V27.15H22.9425V33H21.5925Z" fill="#1e1e1e"/>
|
||||
</svg>
|
||||
</div>
|
||||
<h3 style="margin-top:calc(var(--gap) * 0.75);margin-bottom:calc(var(--gap) * 0.5)"><?php _e( 'Accessibility improvements' ); ?></h3>
|
||||
<p><?php _e( 'This release includes more than 65 accessibility improvements across the platform, making it more accessible than ever. This release adds fixes to contrast settings, cursor focus, submenus, and positioning of elements, among many others, that help improve the WordPress experience for everyone.' ); ?></p>
|
||||
<h3><?php _e( 'Accessibility improvements' ); ?></h3>
|
||||
<p><?php _e( '55+ accessibility fixes and enhancements focus on foundational aspects of the WordPress experience, particularly the data views component powering the new site editing experience and areas like the Inserter that provide a key way of interacting with blocks and patterns.' ); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
<hr class="is-invisible is-large" style="margin-bottom:calc(2 * var(--gap));" />
|
||||
|
||||
<div class="about__section has-2-columns is-wider-left is-feature" style="background-color:var(--background);border-radius:var(--border-radius);">
|
||||
<h3 class="is-section-header"><?php _e( 'And much more' ); ?></h3>
|
||||
<div class="column">
|
||||
<p><?php _e( 'For a comprehensive overview of all the new features and enhancements in WordPress 6.6, please visit the feature-showcase website.' ); ?></p>
|
||||
</div>
|
||||
<div class="column aligncenter">
|
||||
<div class="about__image">
|
||||
<a href="<?php echo esc_url( __( 'https://wordpress.org/download/releases/6-6/' ) ); ?>" class="button button-primary button-hero"><?php _e( 'See everything new' ); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr class="is-large" style="margin-top:calc(2 * var(--gap));" />
|
||||
|
||||
<div class="about__section has-3-columns">
|
||||
<div class="column about__image is-vertically-aligned-top">
|
||||
<img src="<?php echo esc_url( admin_url( 'images/about-release-badge.svg?ver=6.5' ) ); ?>" alt="" height="280" width="280" />
|
||||
<img src="<?php echo esc_url( admin_url( 'images/about-release-badge.svg?ver=6.6' ) ); ?>" alt="" height="280" width="280" />
|
||||
</div>
|
||||
<div class="column is-vertically-aligned-center" style="grid-column-end:span 2">
|
||||
<h3>
|
||||
@@ -353,7 +191,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
<div class="column">
|
||||
<div class="about__image">
|
||||
<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
|
||||
<rect width="48" height="48" rx="4" fill="#ededed"/>
|
||||
<rect width="48" height="48" rx="4"/>
|
||||
<path d="M23 34v-4h-5l-2.293-2.293a1 1 0 0 1 0-1.414L18 24h5v-2h-7v-6h7v-2h2v2h5l2.293 2.293a1 1 0 0 1 0 1.414L30 22h-5v2h7v6h-7v4h-2Zm-5-14h11.175l.646-.646a.5.5 0 0 0 0-.708L29.175 18H18v2Zm.825 8H30v-2H18.825l-.646.646a.5.5 0 0 0 0 .708l.646.646Z" fill="#1e1e1e"/>
|
||||
</svg>
|
||||
</div>
|
||||
@@ -362,8 +200,8 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
printf(
|
||||
/* translators: 1: WordPress Field Guide link, 2: WordPress version number. */
|
||||
__( 'Explore the <a href="%1$s">WordPress %2$s Field Guide</a>. Learn about the changes in this release with detailed developer notes to help you build with WordPress.' ),
|
||||
esc_url( __( 'https://make.wordpress.org/core/wordpress-6-5-field-guide/' ) ),
|
||||
'6.5'
|
||||
esc_url( __( 'https://make.wordpress.org/core/wordpress-6-6-field-guide/' ) ),
|
||||
'6.6'
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
@@ -371,7 +209,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
<div class="column">
|
||||
<div class="about__image">
|
||||
<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
|
||||
<rect width="48" height="48" rx="4" fill="#ededed"/>
|
||||
<rect width="48" height="48" rx="4"/>
|
||||
<path d="M28 19.75h-8v1.5h8v-1.5ZM20 23h8v1.5h-8V23ZM26 26.25h-6v1.5h6v-1.5Z" fill="#151515"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M29 16H19a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V18a2 2 0 0 0-2-2Zm-10 1.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H19a.5.5 0 0 1-.5-.5V18a.5.5 0 0 1 .5-.5Z" fill="#1e1e1e"/>
|
||||
</svg>
|
||||
@@ -384,9 +222,9 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
sprintf(
|
||||
/* translators: %s: WordPress version number. */
|
||||
esc_url( __( 'https://wordpress.org/documentation/wordpress-version/version-%s/' ) ),
|
||||
'6-5'
|
||||
'6-6'
|
||||
),
|
||||
'6.5'
|
||||
'6.6'
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @package WordPress
|
||||
* @subpackage Administration
|
||||
*
|
||||
* @link https://codex.wordpress.org/AJAX_in_Plugins
|
||||
* @link https://developer.wordpress.org/plugins/javascript/ajax
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
@@ -14,7 +14,7 @@ if ( ! defined( 'WP_ADMIN' ) ) {
|
||||
/**
|
||||
* In case admin-header.php is included in a function.
|
||||
*
|
||||
* @global string $title
|
||||
* @global string $title The title of the current screen.
|
||||
* @global string $hook_suffix
|
||||
* @global WP_Screen $current_screen WordPress current screen object.
|
||||
* @global WP_Locale $wp_locale WordPress date and time locale object.
|
||||
|
||||
@@ -29,7 +29,7 @@ nocache_headers();
|
||||
/** This action is documented in wp-admin/admin.php */
|
||||
do_action( 'admin_init' );
|
||||
|
||||
$action = ! empty( $_REQUEST['action'] ) ? $_REQUEST['action'] : '';
|
||||
$action = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : '';
|
||||
|
||||
// Reject invalid parameters.
|
||||
if ( ! is_scalar( $action ) ) {
|
||||
|
||||
@@ -64,22 +64,22 @@ if ( isset( $_REQUEST['attachment_id'] ) && (int) $_REQUEST['attachment_id'] &&
|
||||
?>
|
||||
<div class="filename new">
|
||||
<span class="media-list-title"><strong><?php echo esc_html( wp_html_excerpt( $title, 60, '…' ) ); ?></strong></span>
|
||||
<span class="media-list-subtitle"><?php echo wp_basename( $file ); ?></span>
|
||||
<span class="media-list-subtitle"><?php echo esc_html( wp_basename( $file ) ); ?></span>
|
||||
<div class="attachment-tools">
|
||||
<?php
|
||||
if ( current_user_can( 'edit_post', $id ) ) {
|
||||
echo '<a class="edit-attachment" href="' . esc_url( get_edit_post_link( $id ) ) . '">' . _x( 'Edit', 'media item' ) . '</a>';
|
||||
} else {
|
||||
echo '<span class="edit-attachment">' . _x( 'Success', 'media item' ) . '</span>';
|
||||
}
|
||||
?>
|
||||
<span class="media-item-copy-container copy-to-clipboard-container edit-attachment">
|
||||
<button type="button" class="button button-small copy-attachment-url" data-clipboard-text="<?php echo $file_url; ?>"><?php _e( 'Copy URL to clipboard' ); ?></button>
|
||||
<span class="success hidden" aria-hidden="true"><?php _e( 'Copied!' ); ?></span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="attachment-tools">
|
||||
<span class="media-item-copy-container copy-to-clipboard-container edit-attachment">
|
||||
<button type="button" class="button button-small copy-attachment-url" data-clipboard-text="<?php echo $file_url; ?>"><?php _e( 'Copy URL to clipboard' ); ?></button>
|
||||
<span class="success hidden" aria-hidden="true"><?php _e( 'Copied!' ); ?></span>
|
||||
</span>
|
||||
<?php
|
||||
if ( current_user_can( 'edit_post', $id ) ) {
|
||||
echo '<a class="edit-attachment" href="' . esc_url( get_edit_post_link( $id ) ) . '">' . _x( 'Edit', 'media item' ) . '</a>';
|
||||
} else {
|
||||
echo '<span class="edit-attachment">' . _x( 'Success', 'media item' ) . '</span>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
break;
|
||||
|
||||
@@ -16,7 +16,8 @@ $submenu_file = 'edit-comments.php';
|
||||
* @global string $action
|
||||
*/
|
||||
global $action;
|
||||
wp_reset_vars( array( 'action' ) );
|
||||
|
||||
$action = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : '';
|
||||
|
||||
if ( isset( $_POST['deletecomment'] ) ) {
|
||||
$action = 'deletecomment';
|
||||
|
||||
@@ -341,7 +341,8 @@
|
||||
}
|
||||
|
||||
@media screen and (max-width: 480px) {
|
||||
.about__section.is-feature .column {
|
||||
.about__section.is-feature .column,
|
||||
.about__section .is-section-header {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
@@ -379,7 +380,7 @@
|
||||
.about__container h2,
|
||||
.about__container h3.is-larger-heading {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0.5em;
|
||||
margin-bottom: calc(0.5 * var(--gap));
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.16;
|
||||
@@ -389,6 +390,7 @@
|
||||
.about__container h1.is-smaller-heading,
|
||||
.about__container h2.is-smaller-heading {
|
||||
margin-top: 0;
|
||||
margin-bottom: calc(0.5 * var(--gap));
|
||||
font-size: 1.625rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.4;
|
||||
@@ -448,6 +450,10 @@
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.about__section a.button.button-hero {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.about__container ul {
|
||||
list-style: disc;
|
||||
margin-right: calc(var(--gap) / 2);
|
||||
@@ -489,7 +495,7 @@
|
||||
}
|
||||
|
||||
.about__container .about__image + h3 {
|
||||
margin-top: 1.5em;
|
||||
margin-top: calc(0.75 * var(--gap));
|
||||
}
|
||||
|
||||
.about__container hr {
|
||||
@@ -508,6 +514,10 @@
|
||||
margin: var(--gap) auto;
|
||||
}
|
||||
|
||||
.about__container hr.is-invisible {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.about__container div.updated,
|
||||
.about__container div.error,
|
||||
.about__container .notice {
|
||||
@@ -586,7 +596,7 @@
|
||||
.privacy-php .about__header-title h1,
|
||||
.contribute-php .about__header-title h1 {
|
||||
/* Fluid font size scales on browser size 960px - 1200px. */
|
||||
font-size: clamp(2rem, 10vw - 3rem, 4rem);
|
||||
font-size: clamp(2rem, 20vw - 9rem, 4rem);
|
||||
}
|
||||
|
||||
.about__header-text {
|
||||
@@ -656,7 +666,7 @@
|
||||
.privacy-php .about__header-title h1,
|
||||
.contribute-php .about__header-title h1 {
|
||||
/* Fluid font size scales on browser size 600px - 960px. */
|
||||
font-size: clamp(3rem, 6.67vw - 0.5rem, 4.5rem);
|
||||
font-size: clamp(2rem, 20vw - 9rem, 4rem);
|
||||
}
|
||||
|
||||
.about__header-navigation .nav-tab {
|
||||
@@ -1281,24 +1291,6 @@
|
||||
margin: 0.6em 0;
|
||||
}
|
||||
|
||||
.freedoms-php .column .freedoms-image {
|
||||
background-image: url('../images/freedoms.png');
|
||||
background-size: 100%;
|
||||
padding-top: 100%;
|
||||
}
|
||||
|
||||
.freedoms-php .column:nth-of-type(2) .freedoms-image {
|
||||
background-position: 100% 34%;
|
||||
}
|
||||
|
||||
.freedoms-php .column:nth-of-type(3) .freedoms-image {
|
||||
background-position: 100% 66%;
|
||||
}
|
||||
|
||||
.freedoms-php .column:nth-of-type(4) .freedoms-image {
|
||||
background-position: 100% 100%;
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------------------
|
||||
x.5.0 - Legacy About Styles: Media Queries
|
||||
------------------------------------------------------------------------------*/
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+15
-23
@@ -340,7 +340,8 @@
|
||||
}
|
||||
|
||||
@media screen and (max-width: 480px) {
|
||||
.about__section.is-feature .column {
|
||||
.about__section.is-feature .column,
|
||||
.about__section .is-section-header {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
@@ -378,7 +379,7 @@
|
||||
.about__container h2,
|
||||
.about__container h3.is-larger-heading {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0.5em;
|
||||
margin-bottom: calc(0.5 * var(--gap));
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.16;
|
||||
@@ -388,6 +389,7 @@
|
||||
.about__container h1.is-smaller-heading,
|
||||
.about__container h2.is-smaller-heading {
|
||||
margin-top: 0;
|
||||
margin-bottom: calc(0.5 * var(--gap));
|
||||
font-size: 1.625rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.4;
|
||||
@@ -447,6 +449,10 @@
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.about__section a.button.button-hero {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.about__container ul {
|
||||
list-style: disc;
|
||||
margin-left: calc(var(--gap) / 2);
|
||||
@@ -488,7 +494,7 @@
|
||||
}
|
||||
|
||||
.about__container .about__image + h3 {
|
||||
margin-top: 1.5em;
|
||||
margin-top: calc(0.75 * var(--gap));
|
||||
}
|
||||
|
||||
.about__container hr {
|
||||
@@ -507,6 +513,10 @@
|
||||
margin: var(--gap) auto;
|
||||
}
|
||||
|
||||
.about__container hr.is-invisible {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.about__container div.updated,
|
||||
.about__container div.error,
|
||||
.about__container .notice {
|
||||
@@ -585,7 +595,7 @@
|
||||
.privacy-php .about__header-title h1,
|
||||
.contribute-php .about__header-title h1 {
|
||||
/* Fluid font size scales on browser size 960px - 1200px. */
|
||||
font-size: clamp(2rem, 10vw - 3rem, 4rem);
|
||||
font-size: clamp(2rem, 20vw - 9rem, 4rem);
|
||||
}
|
||||
|
||||
.about__header-text {
|
||||
@@ -655,7 +665,7 @@
|
||||
.privacy-php .about__header-title h1,
|
||||
.contribute-php .about__header-title h1 {
|
||||
/* Fluid font size scales on browser size 600px - 960px. */
|
||||
font-size: clamp(3rem, 6.67vw - 0.5rem, 4.5rem);
|
||||
font-size: clamp(2rem, 20vw - 9rem, 4rem);
|
||||
}
|
||||
|
||||
.about__header-navigation .nav-tab {
|
||||
@@ -1280,24 +1290,6 @@
|
||||
margin: 0.6em 0;
|
||||
}
|
||||
|
||||
.freedoms-php .column .freedoms-image {
|
||||
background-image: url('../images/freedoms.png');
|
||||
background-size: 100%;
|
||||
padding-top: 100%;
|
||||
}
|
||||
|
||||
.freedoms-php .column:nth-of-type(2) .freedoms-image {
|
||||
background-position: 0 34%;
|
||||
}
|
||||
|
||||
.freedoms-php .column:nth-of-type(3) .freedoms-image {
|
||||
background-position: 0 66%;
|
||||
}
|
||||
|
||||
.freedoms-php .column:nth-of-type(4) .freedoms-image {
|
||||
background-position: 0 100%;
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------------------
|
||||
x.5.0 - Legacy About Styles: Media Queries
|
||||
------------------------------------------------------------------------------*/
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -124,7 +124,6 @@
|
||||
.ui-helper-hidden-accessible {
|
||||
border: 0;
|
||||
clip: rect(1px, 1px, 1px, 1px);
|
||||
-webkit-clip-path: inset(50%);
|
||||
clip-path: inset(50%);
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
@@ -1091,7 +1090,9 @@ th.action-links {
|
||||
|
||||
.wp-filter .search-form {
|
||||
float: left;
|
||||
margin: 10px 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
column-gap: .5rem;
|
||||
}
|
||||
|
||||
.wp-filter .search-form input[type="search"] {
|
||||
@@ -1120,7 +1121,6 @@ th.action-links {
|
||||
.wp-filter .search-form.search-plugins .wp-filter-search,
|
||||
.no-js .wp-filter .search-form.search-plugins .button {
|
||||
display: inline-block;
|
||||
margin-top: 10px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
@@ -1361,6 +1361,11 @@ th.action-links {
|
||||
position: relative;
|
||||
max-width: 100%;
|
||||
}
|
||||
.wp-filter .search-form {
|
||||
margin: 11px 0;
|
||||
flex-wrap: wrap;
|
||||
row-gap: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 782px) {
|
||||
@@ -4133,7 +4138,6 @@ img {
|
||||
}
|
||||
|
||||
.wp-filter .search-form input[type="search"] {
|
||||
width: 100%;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
@@ -4187,6 +4191,10 @@ img {
|
||||
.nav-tab-active:focus:active {
|
||||
border-bottom: 1px solid #c3c4c7;
|
||||
}
|
||||
|
||||
.wp-filter .search-form.search-plugins label {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 480px) {
|
||||
|
||||
Vendored
+2
-2
File diff suppressed because one or more lines are too long
@@ -123,7 +123,6 @@
|
||||
.ui-helper-hidden-accessible {
|
||||
border: 0;
|
||||
clip: rect(1px, 1px, 1px, 1px);
|
||||
-webkit-clip-path: inset(50%);
|
||||
clip-path: inset(50%);
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
@@ -1090,7 +1089,9 @@ th.action-links {
|
||||
|
||||
.wp-filter .search-form {
|
||||
float: right;
|
||||
margin: 10px 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
column-gap: .5rem;
|
||||
}
|
||||
|
||||
.wp-filter .search-form input[type="search"] {
|
||||
@@ -1119,7 +1120,6 @@ th.action-links {
|
||||
.wp-filter .search-form.search-plugins .wp-filter-search,
|
||||
.no-js .wp-filter .search-form.search-plugins .button {
|
||||
display: inline-block;
|
||||
margin-top: 10px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
@@ -1360,6 +1360,11 @@ th.action-links {
|
||||
position: relative;
|
||||
max-width: 100%;
|
||||
}
|
||||
.wp-filter .search-form {
|
||||
margin: 11px 0;
|
||||
flex-wrap: wrap;
|
||||
row-gap: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 782px) {
|
||||
@@ -4132,7 +4137,6 @@ img {
|
||||
}
|
||||
|
||||
.wp-filter .search-form input[type="search"] {
|
||||
width: 100%;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
@@ -4186,6 +4190,10 @@ img {
|
||||
.nav-tab-active:focus:active {
|
||||
border-bottom: 1px solid #c3c4c7;
|
||||
}
|
||||
|
||||
.wp-filter .search-form.search-plugins label {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 480px) {
|
||||
|
||||
Vendored
+2
-2
File diff suppressed because one or more lines are too long
@@ -1083,14 +1083,24 @@ p.customize-section-description {
|
||||
float: right;
|
||||
}
|
||||
|
||||
#available-menu-items .accordion-section-content .new-content-item,
|
||||
.customize-control-dropdown-pages .new-content-item {
|
||||
#available-menu-items .accordion-section-content .new-content-item-wrapper,
|
||||
.customize-control-dropdown-pages .new-content-item-wrapper {
|
||||
width: calc(100% - 30px);
|
||||
padding: 8px 15px;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
z-index: 10;
|
||||
background: #f0f0f1;
|
||||
}
|
||||
|
||||
.customize-control-dropdown-pages .new-content-item-wrapper {
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
position: static;
|
||||
}
|
||||
|
||||
#available-menu-items .accordion-section-content .new-content-item,
|
||||
.customize-control-dropdown-pages .new-content-item {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
@@ -1100,6 +1110,14 @@ p.customize-section-description {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.customize-control-dropdown-pages .new-content-item-wrapper .new-content-item {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.customize-control-dropdown-pages .new-content-item-wrapper .new-content-item label {
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
#available-menu-items .new-content-item .create-item-input,
|
||||
.customize-control-dropdown-pages .new-content-item .create-item-input {
|
||||
flex-grow: 10;
|
||||
@@ -1816,11 +1834,6 @@ p.customize-section-description {
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.themes-filter-bar .feature-filter-toggle {
|
||||
float: left;
|
||||
margin: 3px 25px 3px 0;
|
||||
}
|
||||
|
||||
.themes-filter-bar .feature-filter-toggle:before {
|
||||
content: "\f111";
|
||||
margin: 0 0 0 5px;
|
||||
@@ -1881,12 +1894,6 @@ p.customize-section-description {
|
||||
animation: .6s themes-fade-in 1;
|
||||
}
|
||||
|
||||
.control-panel-themes .filter-themes-count {
|
||||
position: relative;
|
||||
float: left;
|
||||
line-height: 2.6;
|
||||
}
|
||||
|
||||
.control-panel-themes .filter-themes-count .themes-displayed {
|
||||
font-weight: 600;
|
||||
color: #50575e;
|
||||
@@ -2098,6 +2105,28 @@ p.customize-section-description {
|
||||
box-sizing: border-box;
|
||||
border-bottom: 1px solid #dcdcde;
|
||||
}
|
||||
.customize-preview-header.themes-filter-bar,
|
||||
.customize-preview-header.themes-filter-bar .search-form {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.customize-preview-header.themes-filter-bar .search-form-input {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.customize-preview-header .filter-themes-wrapper {
|
||||
display: grid;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
grid-template-columns: auto 1fr;
|
||||
}
|
||||
|
||||
.customize-preview-header .filter-themes-wrapper .filter-themes-count {
|
||||
justify-self: end;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1670px) {
|
||||
.customize-preview-header.themes-filter-bar {
|
||||
@@ -2110,6 +2139,9 @@ p.customize-section-description {
|
||||
.themes-filter-bar .themes-filter-container {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.themes-filter-bar .wp-filter-search {
|
||||
@@ -2118,11 +2150,10 @@ p.customize-section-description {
|
||||
max-width: 100%;
|
||||
width: 40%;
|
||||
min-width: 300px;
|
||||
position: absolute;
|
||||
top: 6px;
|
||||
right: 25px;
|
||||
height: 32px;
|
||||
margin: 1px 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
/* Unstick the filter bar on short windows/screens. This breakpoint is based on the
|
||||
@@ -2156,18 +2187,31 @@ p.customize-section-description {
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 900px) {
|
||||
@media screen and (max-width: 960px) {
|
||||
.customize-preview-header.themes-filter-bar {
|
||||
height: 86px;
|
||||
padding-top: 46px;
|
||||
height: 96px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 900px) {
|
||||
.themes-filter-bar .wp-filter-search {
|
||||
width: calc(100% - 50px);
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
min-width: 200px;
|
||||
}
|
||||
|
||||
.customize-preview-header.themes-filter-bar,
|
||||
.customize-preview-header.themes-filter-bar .search-form
|
||||
.themes-filter-bar .themes-filter-container {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.customize-preview-header.themes-filter-bar .search-form-input {
|
||||
display: flex;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.filter-drawer {
|
||||
top: 86px;
|
||||
}
|
||||
@@ -2581,7 +2625,7 @@ body.adding-widget .add-new-widget:before,
|
||||
}
|
||||
|
||||
#available-widgets-list {
|
||||
top: 60px;
|
||||
top: 82px;
|
||||
position: absolute;
|
||||
overflow: auto;
|
||||
bottom: 0;
|
||||
@@ -2625,7 +2669,7 @@ body.adding-widget .add-new-widget:before,
|
||||
#available-widgets-filter .search-icon {
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 15px; /* 13 container padding +1 input margin +1 input border */
|
||||
bottom: 15px; /* 13 container padding +1 input margin +1 input border */
|
||||
right: 16px;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
@@ -2635,9 +2679,9 @@ body.adding-widget .add-new-widget:before,
|
||||
}
|
||||
|
||||
#available-widgets-filter .clear-results,
|
||||
#available-menu-items-search .clear-results {
|
||||
#available-menu-items-search .accordion-section-title .clear-results {
|
||||
position: absolute;
|
||||
top: 15px; /* 13 container padding +1 input margin +1 input border */
|
||||
top: 36px; /* 13 container padding +1 input margin +1 input border */
|
||||
left: 16px;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
@@ -2696,8 +2740,8 @@ body.adding-widget .add-new-widget:before,
|
||||
|
||||
.themes-filter-bar .search-icon {
|
||||
position: absolute;
|
||||
top: 7px;
|
||||
right: 26px;
|
||||
top: 2px;
|
||||
right: 2px;
|
||||
z-index: 1;
|
||||
color: #646970;
|
||||
height: 30px;
|
||||
@@ -2815,8 +2859,8 @@ body.adding-widget .add-new-widget:before,
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.wp-core-ui .themes-filter-bar .feature-filter-toggle {
|
||||
margin: 3px 25px 3px 0;
|
||||
.customize-preview-header.themes-filter-bar .search-icon {
|
||||
top: 6px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2953,22 +2997,18 @@ body.adding-widget .add-new-widget:before,
|
||||
}
|
||||
|
||||
#available-widgets-list {
|
||||
top: 130px;
|
||||
top: 152px;
|
||||
}
|
||||
|
||||
#available-menu-items-search .clear-results,
|
||||
#available-menu-items-search .search-icon {
|
||||
top: 85px; /* 70 section title height + 13 container padding +1 input margin +1 input border */
|
||||
#available-menu-items-search .clear-results {
|
||||
top: 36px;
|
||||
left: 16px;
|
||||
}
|
||||
|
||||
.reorder,
|
||||
.reordering .reorder-done {
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.wp-core-ui .themes-filter-bar .feature-filter-toggle {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 600px) {
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -1082,14 +1082,24 @@ p.customize-section-description {
|
||||
float: left;
|
||||
}
|
||||
|
||||
#available-menu-items .accordion-section-content .new-content-item,
|
||||
.customize-control-dropdown-pages .new-content-item {
|
||||
#available-menu-items .accordion-section-content .new-content-item-wrapper,
|
||||
.customize-control-dropdown-pages .new-content-item-wrapper {
|
||||
width: calc(100% - 30px);
|
||||
padding: 8px 15px;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
z-index: 10;
|
||||
background: #f0f0f1;
|
||||
}
|
||||
|
||||
.customize-control-dropdown-pages .new-content-item-wrapper {
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
position: static;
|
||||
}
|
||||
|
||||
#available-menu-items .accordion-section-content .new-content-item,
|
||||
.customize-control-dropdown-pages .new-content-item {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
@@ -1099,6 +1109,14 @@ p.customize-section-description {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.customize-control-dropdown-pages .new-content-item-wrapper .new-content-item {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.customize-control-dropdown-pages .new-content-item-wrapper .new-content-item label {
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
#available-menu-items .new-content-item .create-item-input,
|
||||
.customize-control-dropdown-pages .new-content-item .create-item-input {
|
||||
flex-grow: 10;
|
||||
@@ -1815,11 +1833,6 @@ p.customize-section-description {
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.themes-filter-bar .feature-filter-toggle {
|
||||
float: right;
|
||||
margin: 3px 0 3px 25px;
|
||||
}
|
||||
|
||||
.themes-filter-bar .feature-filter-toggle:before {
|
||||
content: "\f111";
|
||||
margin: 0 5px 0 0;
|
||||
@@ -1880,12 +1893,6 @@ p.customize-section-description {
|
||||
animation: .6s themes-fade-in 1;
|
||||
}
|
||||
|
||||
.control-panel-themes .filter-themes-count {
|
||||
position: relative;
|
||||
float: right;
|
||||
line-height: 2.6;
|
||||
}
|
||||
|
||||
.control-panel-themes .filter-themes-count .themes-displayed {
|
||||
font-weight: 600;
|
||||
color: #50575e;
|
||||
@@ -2097,6 +2104,28 @@ p.customize-section-description {
|
||||
box-sizing: border-box;
|
||||
border-bottom: 1px solid #dcdcde;
|
||||
}
|
||||
.customize-preview-header.themes-filter-bar,
|
||||
.customize-preview-header.themes-filter-bar .search-form {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.customize-preview-header.themes-filter-bar .search-form-input {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.customize-preview-header .filter-themes-wrapper {
|
||||
display: grid;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
grid-template-columns: auto 1fr;
|
||||
}
|
||||
|
||||
.customize-preview-header .filter-themes-wrapper .filter-themes-count {
|
||||
justify-self: end;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1670px) {
|
||||
.customize-preview-header.themes-filter-bar {
|
||||
@@ -2109,6 +2138,9 @@ p.customize-section-description {
|
||||
.themes-filter-bar .themes-filter-container {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.themes-filter-bar .wp-filter-search {
|
||||
@@ -2117,11 +2149,10 @@ p.customize-section-description {
|
||||
max-width: 100%;
|
||||
width: 40%;
|
||||
min-width: 300px;
|
||||
position: absolute;
|
||||
top: 6px;
|
||||
left: 25px;
|
||||
height: 32px;
|
||||
margin: 1px 0;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
/* Unstick the filter bar on short windows/screens. This breakpoint is based on the
|
||||
@@ -2155,18 +2186,31 @@ p.customize-section-description {
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 900px) {
|
||||
@media screen and (max-width: 960px) {
|
||||
.customize-preview-header.themes-filter-bar {
|
||||
height: 86px;
|
||||
padding-top: 46px;
|
||||
height: 96px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 900px) {
|
||||
.themes-filter-bar .wp-filter-search {
|
||||
width: calc(100% - 50px);
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
min-width: 200px;
|
||||
}
|
||||
|
||||
.customize-preview-header.themes-filter-bar,
|
||||
.customize-preview-header.themes-filter-bar .search-form
|
||||
.themes-filter-bar .themes-filter-container {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.customize-preview-header.themes-filter-bar .search-form-input {
|
||||
display: flex;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.filter-drawer {
|
||||
top: 86px;
|
||||
}
|
||||
@@ -2580,7 +2624,7 @@ body.adding-widget .add-new-widget:before,
|
||||
}
|
||||
|
||||
#available-widgets-list {
|
||||
top: 60px;
|
||||
top: 82px;
|
||||
position: absolute;
|
||||
overflow: auto;
|
||||
bottom: 0;
|
||||
@@ -2624,7 +2668,7 @@ body.adding-widget .add-new-widget:before,
|
||||
#available-widgets-filter .search-icon {
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 15px; /* 13 container padding +1 input margin +1 input border */
|
||||
bottom: 15px; /* 13 container padding +1 input margin +1 input border */
|
||||
left: 16px;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
@@ -2634,9 +2678,9 @@ body.adding-widget .add-new-widget:before,
|
||||
}
|
||||
|
||||
#available-widgets-filter .clear-results,
|
||||
#available-menu-items-search .clear-results {
|
||||
#available-menu-items-search .accordion-section-title .clear-results {
|
||||
position: absolute;
|
||||
top: 15px; /* 13 container padding +1 input margin +1 input border */
|
||||
top: 36px; /* 13 container padding +1 input margin +1 input border */
|
||||
right: 16px;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
@@ -2695,8 +2739,8 @@ body.adding-widget .add-new-widget:before,
|
||||
|
||||
.themes-filter-bar .search-icon {
|
||||
position: absolute;
|
||||
top: 7px;
|
||||
left: 26px;
|
||||
top: 2px;
|
||||
left: 2px;
|
||||
z-index: 1;
|
||||
color: #646970;
|
||||
height: 30px;
|
||||
@@ -2814,8 +2858,8 @@ body.adding-widget .add-new-widget:before,
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.wp-core-ui .themes-filter-bar .feature-filter-toggle {
|
||||
margin: 3px 0 3px 25px;
|
||||
.customize-preview-header.themes-filter-bar .search-icon {
|
||||
top: 6px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2952,22 +2996,18 @@ body.adding-widget .add-new-widget:before,
|
||||
}
|
||||
|
||||
#available-widgets-list {
|
||||
top: 130px;
|
||||
top: 152px;
|
||||
}
|
||||
|
||||
#available-menu-items-search .clear-results,
|
||||
#available-menu-items-search .search-icon {
|
||||
top: 85px; /* 70 section title height + 13 container padding +1 input margin +1 input border */
|
||||
#available-menu-items-search .clear-results {
|
||||
top: 36px;
|
||||
right: 16px;
|
||||
}
|
||||
|
||||
.reorder,
|
||||
.reordering .reorder-done {
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.wp-core-ui .themes-filter-bar .feature-filter-toggle {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 600px) {
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -558,7 +558,7 @@
|
||||
|
||||
#available-menu-items .accordion-section-title .no-items,
|
||||
#available-menu-items .cannot-expand .accordion-section-title .spinner,
|
||||
#available-menu-items .cannot-expand .accordion-section-title > button {
|
||||
#available-menu-items .cannot-expand .accordion-section-title > button:not(#available-menu-items-search button.is-visible) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -582,7 +582,7 @@
|
||||
}
|
||||
|
||||
#available-menu-items .accordion-section-content .available-menu-items-list {
|
||||
margin: 0 0 45px;
|
||||
margin: 0 0 64px;
|
||||
padding: 1px 15px 15px;
|
||||
}
|
||||
|
||||
@@ -681,7 +681,7 @@
|
||||
|
||||
#available-menu-items-search .spinner {
|
||||
position: absolute;
|
||||
top: 20px; /* 13 container padding +1 input margin +6 ( ( 32 input height - 20 spinner height ) / 2 ) */
|
||||
bottom: 20px; /* 13 container padding +1 input margin +6 ( ( 32 input height - 20 spinner height ) / 2 ) */
|
||||
left: 21px;
|
||||
margin: 0 !important;
|
||||
}
|
||||
@@ -690,7 +690,7 @@
|
||||
#available-menu-items #available-menu-items-search .accordion-section-content {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 60px; /* below title div / search input */
|
||||
top: 75px; /* below title div / search input */
|
||||
bottom: 0; /* 100% height that still triggers lazy load */
|
||||
max-height: none;
|
||||
width: 100%;
|
||||
@@ -879,6 +879,6 @@ li.assigned-to-menu-location .add-new-menu-item {
|
||||
|
||||
@media screen and (max-width: 640px) {
|
||||
#available-menu-items #available-menu-items-search .accordion-section-content {
|
||||
top: 130px;
|
||||
top: 146px;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -557,7 +557,7 @@
|
||||
|
||||
#available-menu-items .accordion-section-title .no-items,
|
||||
#available-menu-items .cannot-expand .accordion-section-title .spinner,
|
||||
#available-menu-items .cannot-expand .accordion-section-title > button {
|
||||
#available-menu-items .cannot-expand .accordion-section-title > button:not(#available-menu-items-search button.is-visible) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -581,7 +581,7 @@
|
||||
}
|
||||
|
||||
#available-menu-items .accordion-section-content .available-menu-items-list {
|
||||
margin: 0 0 45px;
|
||||
margin: 0 0 64px;
|
||||
padding: 1px 15px 15px;
|
||||
}
|
||||
|
||||
@@ -680,7 +680,7 @@
|
||||
|
||||
#available-menu-items-search .spinner {
|
||||
position: absolute;
|
||||
top: 20px; /* 13 container padding +1 input margin +6 ( ( 32 input height - 20 spinner height ) / 2 ) */
|
||||
bottom: 20px; /* 13 container padding +1 input margin +6 ( ( 32 input height - 20 spinner height ) / 2 ) */
|
||||
right: 21px;
|
||||
margin: 0 !important;
|
||||
}
|
||||
@@ -689,7 +689,7 @@
|
||||
#available-menu-items #available-menu-items-search .accordion-section-content {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 60px; /* below title div / search input */
|
||||
top: 75px; /* below title div / search input */
|
||||
bottom: 0; /* 100% height that still triggers lazy load */
|
||||
max-height: none;
|
||||
width: 100%;
|
||||
@@ -878,6 +878,6 @@ li.assigned-to-menu-location .add-new-menu-item {
|
||||
|
||||
@media screen and (max-width: 640px) {
|
||||
#available-menu-items #available-menu-items-search .accordion-section-content {
|
||||
top: 130px;
|
||||
top: 146px;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -1272,13 +1272,23 @@ label.post-format-icon {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.categorydiv,
|
||||
.customlinkdiv,
|
||||
.posttypediv,
|
||||
.taxonomydiv {
|
||||
max-height: inherit;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.wp-tab-panel,
|
||||
.categorydiv div.tabs-panel,
|
||||
.customlinkdiv div.tabs-panel,
|
||||
.posttypediv div.tabs-panel,
|
||||
.taxonomydiv div.tabs-panel {
|
||||
min-height: 42px;
|
||||
max-height: 200px;
|
||||
/* Allow space for content after tab panels in nav menu editor. */
|
||||
max-height: calc( 100% - 75px );
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
padding: 0 0.9em;
|
||||
border: solid 1px #dcdcde;
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -1271,13 +1271,23 @@ label.post-format-icon {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.categorydiv,
|
||||
.customlinkdiv,
|
||||
.posttypediv,
|
||||
.taxonomydiv {
|
||||
max-height: inherit;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.wp-tab-panel,
|
||||
.categorydiv div.tabs-panel,
|
||||
.customlinkdiv div.tabs-panel,
|
||||
.posttypediv div.tabs-panel,
|
||||
.taxonomydiv div.tabs-panel {
|
||||
min-height: 42px;
|
||||
max-height: 200px;
|
||||
/* Allow space for content after tab panels in nav menu editor. */
|
||||
max-height: calc( 100% - 75px );
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
padding: 0 0.9em;
|
||||
border: solid 1px #dcdcde;
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -721,8 +721,13 @@ fieldset label,
|
||||
}
|
||||
|
||||
p.search-box {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
column-gap: 0.5rem;
|
||||
position: relative;
|
||||
float: left;
|
||||
margin: 0;
|
||||
margin: 11px 0;
|
||||
}
|
||||
|
||||
.network-admin.themes-php p.search-box {
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -720,8 +720,13 @@ fieldset label,
|
||||
}
|
||||
|
||||
p.search-box {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
column-gap: 0.5rem;
|
||||
position: relative;
|
||||
float: right;
|
||||
margin: 0;
|
||||
margin: 11px 0;
|
||||
}
|
||||
|
||||
.network-admin.themes-php p.search-box {
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -351,7 +351,6 @@ body.language-chooser {
|
||||
.screen-reader-text {
|
||||
border: 0;
|
||||
clip: rect(1px, 1px, 1px, 1px);
|
||||
-webkit-clip-path: inset(50%);
|
||||
clip-path: inset(50%);
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -350,7 +350,6 @@ body.language-chooser {
|
||||
.screen-reader-text {
|
||||
border: 0;
|
||||
clip: rect(1px, 1px, 1px, 1px);
|
||||
-webkit-clip-path: inset(50%);
|
||||
clip-path: inset(50%);
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -67,6 +67,14 @@ body.locale-he-il .press-this a.wp-switch-editor {
|
||||
.locale-de-de-formal #customize-header-actions .spinner {
|
||||
margin: 16px 3px 0; /* default 16px 4px 0 5px */
|
||||
}
|
||||
body[class*="locale-de-"] .inline-edit-row fieldset label span.title,
|
||||
body[class*="locale-de-"] .inline-edit-row fieldset.inline-edit-date legend {
|
||||
width: 7em; /* default 6em */
|
||||
}
|
||||
body[class*="locale-de-"] .inline-edit-row fieldset label span.input-text-wrap,
|
||||
body[class*="locale-de-"] .inline-edit-row fieldset .timestamp-wrap {
|
||||
margin-right: 7em; /* default 6em */
|
||||
}
|
||||
|
||||
/* ru_RU: Text needs more room to breathe. */
|
||||
.locale-ru-ru #adminmenu {
|
||||
@@ -111,7 +119,16 @@ body.locale-he-il .press-this a.wp-switch-editor {
|
||||
margin-right: 8em; /* default 6em */
|
||||
}
|
||||
|
||||
/* Fix overridden width for adjusted locales */
|
||||
body[class*="locale-de-"] .quick-edit-row-post fieldset.inline-edit-col-right label span.title,
|
||||
.locale-ru-ru .quick-edit-row-post fieldset.inline-edit-col-right label span.title,
|
||||
.locale-lt-lt .quick-edit-row-post fieldset.inline-edit-col-right label span.title {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 782px) {
|
||||
body[class*="locale-de-"] .inline-edit-row fieldset label span.input-text-wrap,
|
||||
body[class*="locale-de-"] .inline-edit-row fieldset .timestamp-wrap,
|
||||
.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap,
|
||||
.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap,
|
||||
.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap,
|
||||
|
||||
Vendored
+1
-1
@@ -1,2 +1,2 @@
|
||||
/*! This file is auto-generated */
|
||||
body.rtl,body.rtl .press-this a.wp-switch-editor{font-family:Tahoma,Arial,sans-serif}.rtl h1,.rtl h2,.rtl h3,.rtl h4,.rtl h5,.rtl h6{font-family:Arial,sans-serif;font-weight:600}body.locale-he-il,body.locale-he-il .press-this a.wp-switch-editor{font-family:Arial,sans-serif}.locale-he-il em{font-style:normal;font-weight:600}.locale-zh-cn #local-time,.locale-zh-cn #utc-time,.locale-zh-cn .form-wrap p,.locale-zh-cn .howto,.locale-zh-cn .inline-edit-row fieldset span.checkbox-title,.locale-zh-cn .inline-edit-row fieldset span.title,.locale-zh-cn .js .input-with-default-title,.locale-zh-cn .link-to-original,.locale-zh-cn .tablenav .displaying-num,.locale-zh-cn p.description,.locale-zh-cn p.help,.locale-zh-cn p.install-help,.locale-zh-cn span.description{font-style:normal}.locale-zh-cn .hdnle a{font-size:12px}.locale-zh-cn form.upgrade .hint{font-style:normal;font-size:100%}.locale-zh-cn #sort-buttons{font-size:1em!important}.locale-de-de #customize-header-actions .button,.locale-de-de-formal #customize-header-actions .button{padding:0 5px 1px}.locale-de-de #customize-header-actions .spinner,.locale-de-de-formal #customize-header-actions .spinner{margin:16px 3px 0}.locale-ru-ru #adminmenu{width:inherit}.locale-ru-ru #adminmenu,.locale-ru-ru #wpbody{margin-right:0}.locale-ru-ru .inline-edit-row fieldset label span.title,.locale-ru-ru .inline-edit-row fieldset.inline-edit-date legend{width:8em}.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap,.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap{margin-right:8em}.locale-ru-ru.post-new-php .tagsdiv .newtag,.locale-ru-ru.post-php .tagsdiv .newtag{width:165px}.locale-ru-ru.press-this .posting{margin-left:277px}.locale-ru-ru .press-this-sidebar{width:265px}.locale-ru-ru #customize-header-actions .button{padding:0 5px 1px}.locale-ru-ru #customize-header-actions .spinner{margin:16px 3px 0}.locale-lt-lt .inline-edit-row fieldset label span.title,.locale-lt-lt .inline-edit-row fieldset.inline-edit-date legend{width:8em}.locale-lt-lt .inline-edit-row fieldset .timestamp-wrap,.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap{margin-right:8em}@media screen and (max-width:782px){.locale-lt-lt .inline-edit-row fieldset .timestamp-wrap,.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap,.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap,.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap{margin-right:0}}
|
||||
body.rtl,body.rtl .press-this a.wp-switch-editor{font-family:Tahoma,Arial,sans-serif}.rtl h1,.rtl h2,.rtl h3,.rtl h4,.rtl h5,.rtl h6{font-family:Arial,sans-serif;font-weight:600}body.locale-he-il,body.locale-he-il .press-this a.wp-switch-editor{font-family:Arial,sans-serif}.locale-he-il em{font-style:normal;font-weight:600}.locale-zh-cn #local-time,.locale-zh-cn #utc-time,.locale-zh-cn .form-wrap p,.locale-zh-cn .howto,.locale-zh-cn .inline-edit-row fieldset span.checkbox-title,.locale-zh-cn .inline-edit-row fieldset span.title,.locale-zh-cn .js .input-with-default-title,.locale-zh-cn .link-to-original,.locale-zh-cn .tablenav .displaying-num,.locale-zh-cn p.description,.locale-zh-cn p.help,.locale-zh-cn p.install-help,.locale-zh-cn span.description{font-style:normal}.locale-zh-cn .hdnle a{font-size:12px}.locale-zh-cn form.upgrade .hint{font-style:normal;font-size:100%}.locale-zh-cn #sort-buttons{font-size:1em!important}.locale-de-de #customize-header-actions .button,.locale-de-de-formal #customize-header-actions .button{padding:0 5px 1px}.locale-de-de #customize-header-actions .spinner,.locale-de-de-formal #customize-header-actions .spinner{margin:16px 3px 0}body[class*=locale-de-] .inline-edit-row fieldset label span.title,body[class*=locale-de-] .inline-edit-row fieldset.inline-edit-date legend{width:7em}body[class*=locale-de-] .inline-edit-row fieldset .timestamp-wrap,body[class*=locale-de-] .inline-edit-row fieldset label span.input-text-wrap{margin-right:7em}.locale-ru-ru #adminmenu{width:inherit}.locale-ru-ru #adminmenu,.locale-ru-ru #wpbody{margin-right:0}.locale-ru-ru .inline-edit-row fieldset label span.title,.locale-ru-ru .inline-edit-row fieldset.inline-edit-date legend{width:8em}.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap,.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap{margin-right:8em}.locale-ru-ru.post-new-php .tagsdiv .newtag,.locale-ru-ru.post-php .tagsdiv .newtag{width:165px}.locale-ru-ru.press-this .posting{margin-left:277px}.locale-ru-ru .press-this-sidebar{width:265px}.locale-ru-ru #customize-header-actions .button{padding:0 5px 1px}.locale-ru-ru #customize-header-actions .spinner{margin:16px 3px 0}.locale-lt-lt .inline-edit-row fieldset label span.title,.locale-lt-lt .inline-edit-row fieldset.inline-edit-date legend{width:8em}.locale-lt-lt .inline-edit-row fieldset .timestamp-wrap,.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap{margin-right:8em}.locale-lt-lt .quick-edit-row-post fieldset.inline-edit-col-right label span.title,.locale-ru-ru .quick-edit-row-post fieldset.inline-edit-col-right label span.title,body[class*=locale-de-] .quick-edit-row-post fieldset.inline-edit-col-right label span.title{width:auto}@media screen and (max-width:782px){.locale-lt-lt .inline-edit-row fieldset .timestamp-wrap,.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap,.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap,.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap,body[class*=locale-de-] .inline-edit-row fieldset .timestamp-wrap,body[class*=locale-de-] .inline-edit-row fieldset label span.input-text-wrap{margin-right:0}}
|
||||
@@ -66,6 +66,14 @@ body.locale-he-il .press-this a.wp-switch-editor {
|
||||
.locale-de-de-formal #customize-header-actions .spinner {
|
||||
margin: 16px 3px 0; /* default 16px 4px 0 5px */
|
||||
}
|
||||
body[class*="locale-de-"] .inline-edit-row fieldset label span.title,
|
||||
body[class*="locale-de-"] .inline-edit-row fieldset.inline-edit-date legend {
|
||||
width: 7em; /* default 6em */
|
||||
}
|
||||
body[class*="locale-de-"] .inline-edit-row fieldset label span.input-text-wrap,
|
||||
body[class*="locale-de-"] .inline-edit-row fieldset .timestamp-wrap {
|
||||
margin-left: 7em; /* default 6em */
|
||||
}
|
||||
|
||||
/* ru_RU: Text needs more room to breathe. */
|
||||
.locale-ru-ru #adminmenu {
|
||||
@@ -110,7 +118,16 @@ body.locale-he-il .press-this a.wp-switch-editor {
|
||||
margin-left: 8em; /* default 6em */
|
||||
}
|
||||
|
||||
/* Fix overridden width for adjusted locales */
|
||||
body[class*="locale-de-"] .quick-edit-row-post fieldset.inline-edit-col-right label span.title,
|
||||
.locale-ru-ru .quick-edit-row-post fieldset.inline-edit-col-right label span.title,
|
||||
.locale-lt-lt .quick-edit-row-post fieldset.inline-edit-col-right label span.title {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 782px) {
|
||||
body[class*="locale-de-"] .inline-edit-row fieldset label span.input-text-wrap,
|
||||
body[class*="locale-de-"] .inline-edit-row fieldset .timestamp-wrap,
|
||||
.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap,
|
||||
.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap,
|
||||
.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap,
|
||||
|
||||
Vendored
+1
-1
@@ -1,2 +1,2 @@
|
||||
/*! This file is auto-generated */
|
||||
body.rtl,body.rtl .press-this a.wp-switch-editor{font-family:Tahoma,Arial,sans-serif}.rtl h1,.rtl h2,.rtl h3,.rtl h4,.rtl h5,.rtl h6{font-family:Arial,sans-serif;font-weight:600}body.locale-he-il,body.locale-he-il .press-this a.wp-switch-editor{font-family:Arial,sans-serif}.locale-he-il em{font-style:normal;font-weight:600}.locale-zh-cn #local-time,.locale-zh-cn #utc-time,.locale-zh-cn .form-wrap p,.locale-zh-cn .howto,.locale-zh-cn .inline-edit-row fieldset span.checkbox-title,.locale-zh-cn .inline-edit-row fieldset span.title,.locale-zh-cn .js .input-with-default-title,.locale-zh-cn .link-to-original,.locale-zh-cn .tablenav .displaying-num,.locale-zh-cn p.description,.locale-zh-cn p.help,.locale-zh-cn p.install-help,.locale-zh-cn span.description{font-style:normal}.locale-zh-cn .hdnle a{font-size:12px}.locale-zh-cn form.upgrade .hint{font-style:normal;font-size:100%}.locale-zh-cn #sort-buttons{font-size:1em!important}.locale-de-de #customize-header-actions .button,.locale-de-de-formal #customize-header-actions .button{padding:0 5px 1px}.locale-de-de #customize-header-actions .spinner,.locale-de-de-formal #customize-header-actions .spinner{margin:16px 3px 0}.locale-ru-ru #adminmenu{width:inherit}.locale-ru-ru #adminmenu,.locale-ru-ru #wpbody{margin-left:0}.locale-ru-ru .inline-edit-row fieldset label span.title,.locale-ru-ru .inline-edit-row fieldset.inline-edit-date legend{width:8em}.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap,.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap{margin-left:8em}.locale-ru-ru.post-new-php .tagsdiv .newtag,.locale-ru-ru.post-php .tagsdiv .newtag{width:165px}.locale-ru-ru.press-this .posting{margin-right:277px}.locale-ru-ru .press-this-sidebar{width:265px}.locale-ru-ru #customize-header-actions .button{padding:0 5px 1px}.locale-ru-ru #customize-header-actions .spinner{margin:16px 3px 0}.locale-lt-lt .inline-edit-row fieldset label span.title,.locale-lt-lt .inline-edit-row fieldset.inline-edit-date legend{width:8em}.locale-lt-lt .inline-edit-row fieldset .timestamp-wrap,.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap{margin-left:8em}@media screen and (max-width:782px){.locale-lt-lt .inline-edit-row fieldset .timestamp-wrap,.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap,.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap,.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap{margin-left:0}}
|
||||
body.rtl,body.rtl .press-this a.wp-switch-editor{font-family:Tahoma,Arial,sans-serif}.rtl h1,.rtl h2,.rtl h3,.rtl h4,.rtl h5,.rtl h6{font-family:Arial,sans-serif;font-weight:600}body.locale-he-il,body.locale-he-il .press-this a.wp-switch-editor{font-family:Arial,sans-serif}.locale-he-il em{font-style:normal;font-weight:600}.locale-zh-cn #local-time,.locale-zh-cn #utc-time,.locale-zh-cn .form-wrap p,.locale-zh-cn .howto,.locale-zh-cn .inline-edit-row fieldset span.checkbox-title,.locale-zh-cn .inline-edit-row fieldset span.title,.locale-zh-cn .js .input-with-default-title,.locale-zh-cn .link-to-original,.locale-zh-cn .tablenav .displaying-num,.locale-zh-cn p.description,.locale-zh-cn p.help,.locale-zh-cn p.install-help,.locale-zh-cn span.description{font-style:normal}.locale-zh-cn .hdnle a{font-size:12px}.locale-zh-cn form.upgrade .hint{font-style:normal;font-size:100%}.locale-zh-cn #sort-buttons{font-size:1em!important}.locale-de-de #customize-header-actions .button,.locale-de-de-formal #customize-header-actions .button{padding:0 5px 1px}.locale-de-de #customize-header-actions .spinner,.locale-de-de-formal #customize-header-actions .spinner{margin:16px 3px 0}body[class*=locale-de-] .inline-edit-row fieldset label span.title,body[class*=locale-de-] .inline-edit-row fieldset.inline-edit-date legend{width:7em}body[class*=locale-de-] .inline-edit-row fieldset .timestamp-wrap,body[class*=locale-de-] .inline-edit-row fieldset label span.input-text-wrap{margin-left:7em}.locale-ru-ru #adminmenu{width:inherit}.locale-ru-ru #adminmenu,.locale-ru-ru #wpbody{margin-left:0}.locale-ru-ru .inline-edit-row fieldset label span.title,.locale-ru-ru .inline-edit-row fieldset.inline-edit-date legend{width:8em}.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap,.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap{margin-left:8em}.locale-ru-ru.post-new-php .tagsdiv .newtag,.locale-ru-ru.post-php .tagsdiv .newtag{width:165px}.locale-ru-ru.press-this .posting{margin-right:277px}.locale-ru-ru .press-this-sidebar{width:265px}.locale-ru-ru #customize-header-actions .button{padding:0 5px 1px}.locale-ru-ru #customize-header-actions .spinner{margin:16px 3px 0}.locale-lt-lt .inline-edit-row fieldset label span.title,.locale-lt-lt .inline-edit-row fieldset.inline-edit-date legend{width:8em}.locale-lt-lt .inline-edit-row fieldset .timestamp-wrap,.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap{margin-left:8em}.locale-lt-lt .quick-edit-row-post fieldset.inline-edit-col-right label span.title,.locale-ru-ru .quick-edit-row-post fieldset.inline-edit-col-right label span.title,body[class*=locale-de-] .quick-edit-row-post fieldset.inline-edit-col-right label span.title{width:auto}@media screen and (max-width:782px){.locale-lt-lt .inline-edit-row fieldset .timestamp-wrap,.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap,.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap,.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap,body[class*=locale-de-] .inline-edit-row fieldset .timestamp-wrap,body[class*=locale-de-] .inline-edit-row fieldset label span.input-text-wrap{margin-left:0}}
|
||||
@@ -905,7 +905,7 @@ tr:hover .row-actions,
|
||||
|
||||
tr.inline-edit-row td {
|
||||
padding: 0;
|
||||
/* Prevents the focus style on .inline-edit-wrapper from being cutted-off */
|
||||
/* Prevents the focus style on .inline-edit-wrapper from being cut-off */
|
||||
position: relative;
|
||||
}
|
||||
|
||||
@@ -2004,7 +2004,6 @@ div.action-links,
|
||||
/* Show comment bubble as text instead */
|
||||
.post-com-count .screen-reader-text {
|
||||
position: static;
|
||||
-webkit-clip-path: none;
|
||||
clip-path: none;
|
||||
width: auto;
|
||||
height: auto;
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -904,7 +904,7 @@ tr:hover .row-actions,
|
||||
|
||||
tr.inline-edit-row td {
|
||||
padding: 0;
|
||||
/* Prevents the focus style on .inline-edit-wrapper from being cutted-off */
|
||||
/* Prevents the focus style on .inline-edit-wrapper from being cut-off */
|
||||
position: relative;
|
||||
}
|
||||
|
||||
@@ -2003,7 +2003,6 @@ div.action-links,
|
||||
/* Show comment bubble as text instead */
|
||||
.post-com-count .screen-reader-text {
|
||||
position: static;
|
||||
-webkit-clip-path: none;
|
||||
clip-path: none;
|
||||
width: auto;
|
||||
height: auto;
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -142,7 +142,7 @@ p {
|
||||
.login form {
|
||||
margin-top: 20px;
|
||||
margin-right: 0;
|
||||
padding: 26px 24px 34px;
|
||||
padding: 26px 24px;
|
||||
font-weight: 400;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
@@ -409,7 +409,6 @@ body.interim-login {
|
||||
.screen-reader-text span {
|
||||
border: 0;
|
||||
clip: rect(1px, 1px, 1px, 1px);
|
||||
-webkit-clip-path: inset(50%);
|
||||
clip-path: inset(50%);
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -141,7 +141,7 @@ p {
|
||||
.login form {
|
||||
margin-top: 20px;
|
||||
margin-left: 0;
|
||||
padding: 26px 24px 34px;
|
||||
padding: 26px 24px;
|
||||
font-weight: 400;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
@@ -408,7 +408,6 @@ body.interim-login {
|
||||
.screen-reader-text span {
|
||||
border: 0;
|
||||
clip: rect(1px, 1px, 1px, 1px);
|
||||
-webkit-clip-path: inset(50%);
|
||||
clip-path: inset(50%);
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -113,14 +113,8 @@
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.media-item-wrapper {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
|
||||
.media-item .attachment-tools {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
@@ -191,15 +185,10 @@
|
||||
display: none;
|
||||
}
|
||||
|
||||
.media-item .original {
|
||||
position: relative;
|
||||
min-height: 34px;
|
||||
}
|
||||
|
||||
.media-item .progress {
|
||||
float: left;
|
||||
display: inline-block;
|
||||
height: 22px;
|
||||
margin: 7px 6px;
|
||||
margin: 0 6px 7px;
|
||||
width: 200px;
|
||||
line-height: 2em;
|
||||
padding: 0;
|
||||
@@ -586,15 +575,9 @@ border color while dragging a file over the uploader drop area */
|
||||
}
|
||||
|
||||
.media-frame-content .media-search-input-label {
|
||||
margin: 0 0 0 .2em;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
.media-frame.mode-grid .media-search-input-label {
|
||||
position: static;
|
||||
margin: 0 0 0 .5em;
|
||||
}
|
||||
|
||||
.attachments-browser .media-toolbar-secondary > .media-button {
|
||||
margin-left: 10px;
|
||||
}
|
||||
@@ -908,7 +891,7 @@ border color while dragging a file over the uploader drop area */
|
||||
}
|
||||
|
||||
.imgedit-settings {
|
||||
max-width: 400px; /* Prevent reflow when help info is expanded. */
|
||||
max-width: 240px; /* Prevent reflow when help info is expanded. */
|
||||
}
|
||||
|
||||
.imgedit-group-controls > * {
|
||||
@@ -1374,6 +1357,12 @@ audio, video {
|
||||
width: 100%;
|
||||
margin-bottom: 20px;
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
column-gap: 0;
|
||||
}
|
||||
|
||||
.wp-filter p.search-box #media-search-input {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1437,3 +1426,17 @@ audio, video {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 375px) {
|
||||
.media-item .attachment-tools {
|
||||
align-items: baseline;
|
||||
}
|
||||
.media-item .edit-attachment.copy-to-clipboard-container {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.copy-to-clipboard-container .success {
|
||||
line-height: normal;
|
||||
margin-top: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+23
-20
@@ -112,14 +112,8 @@
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.media-item-wrapper {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
|
||||
.media-item .attachment-tools {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
@@ -190,15 +184,10 @@
|
||||
display: none;
|
||||
}
|
||||
|
||||
.media-item .original {
|
||||
position: relative;
|
||||
min-height: 34px;
|
||||
}
|
||||
|
||||
.media-item .progress {
|
||||
float: right;
|
||||
display: inline-block;
|
||||
height: 22px;
|
||||
margin: 7px 6px;
|
||||
margin: 0 6px 7px;
|
||||
width: 200px;
|
||||
line-height: 2em;
|
||||
padding: 0;
|
||||
@@ -585,15 +574,9 @@ border color while dragging a file over the uploader drop area */
|
||||
}
|
||||
|
||||
.media-frame-content .media-search-input-label {
|
||||
margin: 0 .2em 0 0;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
.media-frame.mode-grid .media-search-input-label {
|
||||
position: static;
|
||||
margin: 0 .5em 0 0;
|
||||
}
|
||||
|
||||
.attachments-browser .media-toolbar-secondary > .media-button {
|
||||
margin-right: 10px;
|
||||
}
|
||||
@@ -907,7 +890,7 @@ border color while dragging a file over the uploader drop area */
|
||||
}
|
||||
|
||||
.imgedit-settings {
|
||||
max-width: 400px; /* Prevent reflow when help info is expanded. */
|
||||
max-width: 240px; /* Prevent reflow when help info is expanded. */
|
||||
}
|
||||
|
||||
.imgedit-group-controls > * {
|
||||
@@ -1373,6 +1356,12 @@ audio, video {
|
||||
width: 100%;
|
||||
margin-bottom: 20px;
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
column-gap: 0;
|
||||
}
|
||||
|
||||
.wp-filter p.search-box #media-search-input {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1436,3 +1425,17 @@ audio, video {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 375px) {
|
||||
.media-item .attachment-tools {
|
||||
align-items: baseline;
|
||||
}
|
||||
.media-item .edit-attachment.copy-to-clipboard-container {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.copy-to-clipboard-container .success {
|
||||
line-height: normal;
|
||||
margin-top: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -22,6 +22,7 @@ ul.add-menu-item-tabs li {
|
||||
|
||||
#nav-menu-meta .accordion-section-content {
|
||||
padding: 18px 13px;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
#nav-menu-meta .button-controls {
|
||||
@@ -49,6 +50,8 @@ ul.add-menu-item-tabs li {
|
||||
#menu-settings-column .inside {
|
||||
clear: both;
|
||||
margin: 10px 0 0;
|
||||
height: 100%;
|
||||
max-height: inherit;
|
||||
}
|
||||
|
||||
.metabox-holder-disabled .postbox,
|
||||
@@ -175,7 +178,6 @@ input.bulk-select-switcher:focus + .bulk-select-button-label {
|
||||
}
|
||||
|
||||
.bulk-actions input.menu-items-delete {
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
font-size: inherit;
|
||||
border: 0;
|
||||
@@ -705,7 +707,6 @@ body.menu-max-depth-11 { min-width: 1280px !important; }
|
||||
|
||||
.no-js.nav-menus-php .item-edit .screen-reader-text {
|
||||
position: static;
|
||||
-webkit-clip-path: none;
|
||||
clip-path: none;
|
||||
width: auto;
|
||||
height: auto;
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -21,6 +21,7 @@ ul.add-menu-item-tabs li {
|
||||
|
||||
#nav-menu-meta .accordion-section-content {
|
||||
padding: 18px 13px;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
#nav-menu-meta .button-controls {
|
||||
@@ -48,6 +49,8 @@ ul.add-menu-item-tabs li {
|
||||
#menu-settings-column .inside {
|
||||
clear: both;
|
||||
margin: 10px 0 0;
|
||||
height: 100%;
|
||||
max-height: inherit;
|
||||
}
|
||||
|
||||
.metabox-holder-disabled .postbox,
|
||||
@@ -174,7 +177,6 @@ input.bulk-select-switcher:focus + .bulk-select-button-label {
|
||||
}
|
||||
|
||||
.bulk-actions input.menu-items-delete {
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
font-size: inherit;
|
||||
border: 0;
|
||||
@@ -704,7 +706,6 @@ body.menu-max-depth-11 { min-width: 1280px !important; }
|
||||
|
||||
.no-js.nav-menus-php .item-edit .screen-reader-text {
|
||||
position: static;
|
||||
-webkit-clip-path: none;
|
||||
clip-path: none;
|
||||
width: auto;
|
||||
height: auto;
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -20,23 +20,23 @@ body.js .theme-browser.search-loading {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.themes-php:not(.network-admin) .wrap h1 {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.themes-php .wrap h1 .button {
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
/* Search form */
|
||||
.themes-php .search-form {
|
||||
display: inline;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
top: 0;
|
||||
gap: .5rem;
|
||||
width: 100%;
|
||||
justify-content: end;
|
||||
}
|
||||
|
||||
.themes-php .wp-filter-search {
|
||||
position: relative;
|
||||
top: -2px;
|
||||
right: 20px;
|
||||
margin: 0;
|
||||
width: 280px;
|
||||
}
|
||||
@@ -956,11 +956,15 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
|
||||
clear: both;
|
||||
right: 0;
|
||||
left: 0;
|
||||
margin: -5px 0 20px;
|
||||
width: 100%;
|
||||
max-width: 280px;
|
||||
}
|
||||
|
||||
.theme-install-php .wp-filter p.search-box {
|
||||
display: grid;
|
||||
row-gap: .5rem;
|
||||
}
|
||||
|
||||
.theme-browser .theme.add-new-theme span:after {
|
||||
font: normal 60px/90px dashicons;
|
||||
width: 80px;
|
||||
@@ -1030,6 +1034,13 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
/* Override column gap adjustment in media library. */
|
||||
@media only screen and (max-width: 1000px) {
|
||||
.theme-install-php .wp-filter p.search-box {
|
||||
column-gap: .5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.theme-install-php a.upload,
|
||||
.theme-install-php a.browse-themes {
|
||||
cursor: pointer;
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -19,23 +19,23 @@ body.js .theme-browser.search-loading {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.themes-php:not(.network-admin) .wrap h1 {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.themes-php .wrap h1 .button {
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
/* Search form */
|
||||
.themes-php .search-form {
|
||||
display: inline;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
top: 0;
|
||||
gap: .5rem;
|
||||
width: 100%;
|
||||
justify-content: end;
|
||||
}
|
||||
|
||||
.themes-php .wp-filter-search {
|
||||
position: relative;
|
||||
top: -2px;
|
||||
left: 20px;
|
||||
margin: 0;
|
||||
width: 280px;
|
||||
}
|
||||
@@ -955,11 +955,15 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
|
||||
clear: both;
|
||||
left: 0;
|
||||
right: 0;
|
||||
margin: -5px 0 20px;
|
||||
width: 100%;
|
||||
max-width: 280px;
|
||||
}
|
||||
|
||||
.theme-install-php .wp-filter p.search-box {
|
||||
display: grid;
|
||||
row-gap: .5rem;
|
||||
}
|
||||
|
||||
.theme-browser .theme.add-new-theme span:after {
|
||||
font: normal 60px/90px dashicons;
|
||||
width: 80px;
|
||||
@@ -1029,6 +1033,13 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
/* Override column gap adjustment in media library. */
|
||||
@media only screen and (max-width: 1000px) {
|
||||
.theme-install-php .wp-filter p.search-box {
|
||||
column-gap: .5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.theme-install-php a.upload,
|
||||
.theme-install-php a.browse-themes {
|
||||
cursor: pointer;
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -84,8 +84,10 @@ if ( $wp_customize->changeset_post_id() ) {
|
||||
}
|
||||
}
|
||||
|
||||
$url = ! empty( $_REQUEST['url'] ) ? sanitize_text_field( $_REQUEST['url'] ) : '';
|
||||
$return = ! empty( $_REQUEST['return'] ) ? sanitize_text_field( $_REQUEST['return'] ) : '';
|
||||
$autofocus = ! empty( $_REQUEST['autofocus'] ) ? sanitize_text_field( $_REQUEST['autofocus'] ) : '';
|
||||
|
||||
wp_reset_vars( array( 'url', 'return', 'autofocus' ) );
|
||||
if ( ! empty( $url ) ) {
|
||||
$wp_customize->set_preview_url( wp_unslash( $url ) );
|
||||
}
|
||||
|
||||
@@ -12,8 +12,8 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @global string $post_type
|
||||
* @global WP_Post_Type $post_type_object
|
||||
* @global string $post_type Global post type.
|
||||
* @global WP_Post_Type $post_type_object Global post type object.
|
||||
* @global WP_Post $post Global post object.
|
||||
*/
|
||||
global $post_type, $post_type_object, $post;
|
||||
@@ -377,7 +377,7 @@ if ( 'post' === $post_type ) {
|
||||
'</li>';
|
||||
|
||||
if ( current_theme_supports( 'post-formats' ) && post_type_supports( 'post', 'post-formats' ) ) {
|
||||
$publish_box .= '<li>' . __( '<strong>Format</strong> — Post Formats designate how your theme will display a specific post. For example, you could have a <em>standard</em> blog post with a title and paragraphs, or a short <em>aside</em> that omits the title and contains a short text blurb. Your theme could enable all or some of 10 possible formats. <a href="https://wordpress.org/documentation/article/post-formats/#supported-formats">Learn more about each post format</a>.' ) . '</li>';
|
||||
$publish_box .= '<li>' . __( '<strong>Format</strong> — Post Formats designate how your theme will display a specific post. For example, you could have a <em>standard</em> blog post with a title and paragraphs, or a short <em>aside</em> that omits the title and contains a short text blurb. Your theme could enable all or some of 10 possible formats. <a href="https://developer.wordpress.org/advanced-administration/wordpress/post-formats/#supported-formats">Learn more about each post format</a>.' ) . '</li>';
|
||||
}
|
||||
|
||||
if ( current_theme_supports( 'post-thumbnails' ) && post_type_supports( 'post', 'thumbnail' ) ) {
|
||||
|
||||
@@ -14,11 +14,11 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @global string $post_type
|
||||
* @global WP_Post_Type $post_type_object
|
||||
* @global string $post_type Global post type.
|
||||
* @global WP_Post_Type $post_type_object Global post type object.
|
||||
* @global WP_Post $post Global post object.
|
||||
* @global string $title
|
||||
* @global array $wp_meta_boxes
|
||||
* @global string $title The title of the current screen.
|
||||
* @global array $wp_meta_boxes Global meta box state.
|
||||
*/
|
||||
global $post_type, $post_type_object, $post, $title, $wp_meta_boxes;
|
||||
|
||||
@@ -72,6 +72,9 @@ $preload_paths = array(
|
||||
sprintf( '%s/autosaves?context=edit', $rest_path ),
|
||||
'/wp/v2/settings',
|
||||
array( '/wp/v2/settings', 'OPTIONS' ),
|
||||
'/wp/v2/global-styles/themes/' . get_stylesheet(),
|
||||
'/wp/v2/themes?context=edit&status=active',
|
||||
'/wp/v2/global-styles/' . WP_Theme_JSON_Resolver::get_user_global_styles_post_id() . '?context=edit',
|
||||
);
|
||||
|
||||
block_editor_rest_api_preload( $preload_paths, $block_editor_context );
|
||||
|
||||
@@ -44,11 +44,7 @@ if ( 'category' === $taxonomy ) {
|
||||
do_action_deprecated( 'edit_tag_form_pre', array( $tag ), '3.0.0', '{$taxonomy}_pre_edit_form' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Use with caution, see https://developer.wordpress.org/reference/functions/wp_reset_vars/
|
||||
*/
|
||||
wp_reset_vars( array( 'wp_http_referer' ) );
|
||||
|
||||
$wp_http_referer = ! empty( $_REQUEST['wp_http_referer'] ) ? sanitize_text_field( $_REQUEST['wp_http_referer'] ) : '';
|
||||
$wp_http_referer = remove_query_arg( array( 'action', 'message', 'tag_ID' ), $wp_http_referer );
|
||||
|
||||
// Also used by Edit Tags.
|
||||
|
||||
@@ -32,9 +32,9 @@ if ( ! current_user_can( $tax->cap->manage_terms ) ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* $post_type is set when the WP_Terms_List_Table instance is created
|
||||
* $post_type is set when the WP_Terms_List_Table instance is created.
|
||||
*
|
||||
* @global string $post_type
|
||||
* @global string $post_type Global post type.
|
||||
*/
|
||||
global $post_type;
|
||||
|
||||
|
||||
@@ -29,8 +29,8 @@ if ( 'attachment' === $typenow ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @global string $post_type
|
||||
* @global WP_Post_Type $post_type_object
|
||||
* @global string $post_type Global post type.
|
||||
* @global WP_Post_Type $post_type_object Global post type object.
|
||||
*/
|
||||
global $post_type, $post_type_object;
|
||||
|
||||
|
||||
@@ -55,8 +55,8 @@ get_current_screen()->add_help_tab(
|
||||
'title' => __( 'Plugin Data' ),
|
||||
'content' =>
|
||||
'<p>' . __( 'Many plugins may collect or store personal data either in the WordPress database or remotely. Any Erase Personal Data request should delete data from plugins as well.' ) . '</p>' .
|
||||
'<p>' . __( 'If you are a plugin author, you can <a href="https://developer.wordpress.org/plugins/privacy/adding-the-personal-data-eraser-to-your-plugin/" target="_blank">learn more about how to add support for the Personal Data Eraser to a plugin here</a>.' ) . '</p>' .
|
||||
$privacy_policy_guide,
|
||||
$privacy_policy_guide .
|
||||
'<p>' . __( 'If you are a plugin author, you can learn more about <a href="https://developer.wordpress.org/plugins/privacy/adding-the-personal-data-eraser-to-your-plugin/">how to add the Personal Data Eraser to a plugin</a>.' ) . '</p>',
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
@@ -55,8 +55,8 @@ get_current_screen()->add_help_tab(
|
||||
'title' => __( 'Plugin Data' ),
|
||||
'content' =>
|
||||
'<p>' . __( 'Many plugins may collect or store personal data either in the WordPress database or remotely. Any Export Personal Data request should include data from plugins as well.' ) . '</p>' .
|
||||
'<p>' . __( 'Plugin authors can <a href="https://developer.wordpress.org/plugins/privacy/adding-the-personal-data-exporter-to-your-plugin/" target="_blank">learn more about how to add the Personal Data Exporter to a plugin here</a>.' ) . '</p>' .
|
||||
$privacy_policy_guide,
|
||||
$privacy_policy_guide .
|
||||
'<p>' . __( 'If you are a plugin author, you can learn more about <a href="https://developer.wordpress.org/plugins/privacy/adding-the-personal-data-exporter-to-your-plugin/">how to add the Personal Data Exporter to a plugin</a>.' ) . '</p>',
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
@@ -129,11 +129,11 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
/**
|
||||
* Creates the date options fields for exporting a given post type.
|
||||
*
|
||||
* @since 3.1.0
|
||||
*
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
* @global WP_Locale $wp_locale WordPress date and time locale object.
|
||||
*
|
||||
* @since 3.1.0
|
||||
*
|
||||
* @param string $post_type The post type. Default 'post'.
|
||||
*/
|
||||
function export_date_options( $post_type = 'post' ) {
|
||||
@@ -238,8 +238,8 @@ function export_date_options( $post_type = 'post' ) {
|
||||
<select name="post_status" id="post-status">
|
||||
<option value="0"><?php _e( 'All' ); ?></option>
|
||||
<?php
|
||||
$post_stati = get_post_stati( array( 'internal' => false ), 'objects' );
|
||||
foreach ( $post_stati as $status ) :
|
||||
$post_statuses = get_post_stati( array( 'internal' => false ), 'objects' );
|
||||
foreach ( $post_statuses as $status ) :
|
||||
?>
|
||||
<option value="<?php echo esc_attr( $status->name ); ?>"><?php echo esc_html( $status->label ); ?></option>
|
||||
<?php endforeach; ?>
|
||||
@@ -289,7 +289,7 @@ function export_date_options( $post_type = 'post' ) {
|
||||
<label for="page-status" class="label-responsive"><?php _e( 'Status:' ); ?></label>
|
||||
<select name="page_status" id="page-status">
|
||||
<option value="0"><?php _e( 'All' ); ?></option>
|
||||
<?php foreach ( $post_stati as $status ) : ?>
|
||||
<?php foreach ( $post_statuses as $status ) : ?>
|
||||
<option value="<?php echo esc_attr( $status->name ); ?>"><?php echo esc_html( $status->label ); ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<svg width="280" height="280" viewBox="0 0 280 280" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M0 16C0 7.16344 7.16344 0 16 0H264C272.837 0 280 7.16344 280 16V264C280 272.837 272.837 280 264 280H16C7.16344 280 0 272.837 0 264V16Z" fill="#EDEDED"/>
|
||||
<path d="M97.5341 176.994C94.054 176.971 90.6567 176.367 87.3423 175.183C84.0279 173.976 81.045 172.023 78.3935 169.324C75.742 166.601 73.6349 162.991 72.0724 158.493C70.5099 153.971 69.7405 148.372 69.7642 141.696C69.7642 135.47 70.4271 129.918 71.7528 125.041C73.0786 120.164 74.9844 116.045 77.4702 112.683C79.956 109.298 82.9508 106.717 86.4545 104.942C89.982 103.166 93.9238 102.278 98.2798 102.278C102.849 102.278 106.897 103.178 110.425 104.977C113.976 106.777 116.84 109.239 119.018 112.364C121.196 115.465 122.546 118.969 123.067 122.875H110.105C109.442 120.081 108.081 117.856 106.021 116.199C103.985 114.518 101.405 113.678 98.2798 113.678C93.2372 113.678 89.3546 115.867 86.6321 120.247C83.9332 124.627 82.572 130.64 82.5483 138.287H83.0455C84.2055 136.204 85.7088 134.416 87.5554 132.925C89.402 131.433 91.4853 130.285 93.8054 129.48C96.1491 128.652 98.6231 128.237 101.227 128.237C105.489 128.237 109.312 129.255 112.697 131.291C116.107 133.327 118.805 136.133 120.794 139.707C122.783 143.259 123.765 147.33 123.741 151.923C123.765 156.705 122.676 161.002 120.474 164.814C118.273 168.602 115.207 171.585 111.277 173.763C107.347 175.941 102.766 177.018 97.5341 176.994ZM97.4631 166.341C100.044 166.341 102.352 165.714 104.388 164.459C106.424 163.204 108.034 161.511 109.217 159.381C110.401 157.25 110.981 154.859 110.957 152.207C110.981 149.603 110.413 147.248 109.253 145.141C108.116 143.034 106.542 141.365 104.53 140.134C102.518 138.902 100.221 138.287 97.6406 138.287C95.723 138.287 93.9356 138.654 92.2784 139.388C90.6212 140.122 89.1771 141.14 87.946 142.442C86.715 143.72 85.7443 145.212 85.0341 146.916C84.3475 148.597 83.9924 150.396 83.9688 152.314C83.9924 154.847 84.5843 157.179 85.7443 159.31C86.9044 161.44 88.5024 163.145 90.5384 164.423C92.5743 165.702 94.8826 166.341 97.4631 166.341ZM138.68 176.781C136.526 176.781 134.679 176.024 133.141 174.509C131.602 172.993 130.844 171.147 130.868 168.969C130.844 166.838 131.602 165.015 133.141 163.5C134.679 161.985 136.526 161.227 138.68 161.227C140.764 161.227 142.575 161.985 144.114 163.5C145.676 165.015 146.469 166.838 146.493 168.969C146.469 170.413 146.09 171.727 145.357 172.911C144.646 174.094 143.699 175.041 142.516 175.751C141.356 176.438 140.077 176.781 138.68 176.781ZM182.028 176.994C177.294 176.994 173.056 176.107 169.315 174.331C165.575 172.532 162.604 170.07 160.402 166.945C158.224 163.82 157.064 160.245 156.922 156.22H169.706C169.943 159.203 171.233 161.642 173.577 163.536C175.92 165.406 178.738 166.341 182.028 166.341C184.609 166.341 186.905 165.749 188.918 164.565C190.93 163.382 192.516 161.736 193.676 159.629C194.836 157.522 195.404 155.119 195.381 152.42C195.404 149.674 194.824 147.236 193.641 145.105C192.457 142.974 190.835 141.305 188.776 140.098C186.716 138.867 184.348 138.251 181.673 138.251C179.495 138.228 177.353 138.63 175.246 139.459C173.139 140.287 171.47 141.376 170.239 142.726L158.342 140.773L162.142 103.273H204.33V114.281H173.044L170.949 133.564H171.375C172.724 131.978 174.63 130.664 177.092 129.622C179.554 128.557 182.253 128.024 185.189 128.024C189.592 128.024 193.522 129.066 196.979 131.149C200.435 133.209 203.158 136.05 205.146 139.672C207.135 143.294 208.129 147.437 208.129 152.101C208.129 156.907 207.017 161.192 204.791 164.956C202.589 168.696 199.524 171.644 195.594 173.798C191.688 175.929 187.166 176.994 182.028 176.994Z" fill="#1E1E1E"/>
|
||||
<path d="M0 16C0 7.16344 7.16344 0 16 0H264C272.837 0 280 7.16344 280 16V264C280 272.837 272.837 280 264 280H16C7.16344 280 0 272.837 0 264V16Z" fill="#ECECEC"/>
|
||||
<path d="M103.026 173C99.9002 172.979 96.8486 172.437 93.8715 171.374C90.8943 170.289 88.2149 168.535 85.8332 166.11C83.4515 163.665 81.5588 160.422 80.1553 156.381C78.7518 152.32 78.0607 147.291 78.082 141.294C78.082 135.701 78.6774 130.714 79.8683 126.334C81.0591 121.953 82.771 118.253 85.0038 115.233C87.2367 112.192 89.9268 109.874 93.074 108.279C96.2426 106.684 99.7833 105.887 103.696 105.887C107.8 105.887 111.437 106.695 114.605 108.311C117.795 109.927 120.368 112.139 122.325 114.946C124.281 117.732 125.493 120.879 125.961 124.388H114.318C113.723 121.878 112.5 119.879 110.65 118.391C108.821 116.881 106.503 116.126 103.696 116.126C99.1666 116.126 95.679 118.093 93.2335 122.027C90.8093 125.961 89.5865 131.363 89.5653 138.231H90.0118C91.0538 136.36 92.4042 134.755 94.0629 133.415C95.7216 132.075 97.5929 131.044 99.6769 130.321C101.782 129.576 104.004 129.204 106.344 129.204C110.171 129.204 113.606 130.119 116.647 131.948C119.709 133.776 122.133 136.296 123.919 139.507C125.706 142.697 126.588 146.355 126.567 150.48C126.588 154.776 125.61 158.636 123.632 162.059C121.655 165.462 118.901 168.141 115.371 170.098C111.841 172.054 107.726 173.022 103.026 173ZM102.962 163.431C105.28 163.431 107.354 162.867 109.183 161.74C111.011 160.613 112.457 159.093 113.521 157.179C114.584 155.265 115.105 153.117 115.084 150.735C115.105 148.396 114.595 146.28 113.553 144.388C112.532 142.495 111.118 140.996 109.31 139.89C107.503 138.784 105.44 138.231 103.122 138.231C101.399 138.231 99.7939 138.561 98.3053 139.22C96.8167 139.88 95.5196 140.794 94.4138 141.964C93.308 143.112 92.4361 144.452 91.7981 145.983C91.1814 147.493 90.8624 149.109 90.8412 150.831C90.8624 153.107 91.3941 155.201 92.4361 157.115C93.4781 159.029 94.9135 160.56 96.7423 161.708C98.5711 162.857 100.644 163.431 102.962 163.431ZM139.088 172.809C137.152 172.809 135.494 172.128 134.111 170.767C132.729 169.406 132.049 167.748 132.07 165.791C132.049 163.877 132.729 162.24 134.111 160.879C135.494 159.518 137.152 158.838 139.088 158.838C140.959 158.838 142.586 159.518 143.968 160.879C145.371 162.24 146.084 163.877 146.105 165.791C146.084 167.089 145.744 168.269 145.084 169.332C144.446 170.395 143.596 171.246 142.533 171.884C141.491 172.501 140.342 172.809 139.088 172.809ZM176.584 173C173.458 172.979 170.407 172.437 167.43 171.374C164.452 170.289 161.773 168.535 159.391 166.11C157.01 163.665 155.117 160.422 153.713 156.381C152.31 152.32 151.619 147.291 151.64 141.294C151.64 135.701 152.236 130.714 153.426 126.334C154.617 121.953 156.329 118.253 158.562 115.233C160.795 112.192 163.485 109.874 166.632 108.279C169.801 106.684 173.341 105.887 177.254 105.887C181.358 105.887 184.995 106.695 188.163 108.311C191.353 109.927 193.926 112.139 195.883 114.946C197.839 117.732 199.051 120.879 199.519 124.388H187.876C187.281 121.878 186.058 119.879 184.208 118.391C182.379 116.881 180.061 116.126 177.254 116.126C172.725 116.126 169.237 118.093 166.792 122.027C164.367 125.961 163.145 131.363 163.123 138.231H163.57C164.612 136.36 165.962 134.755 167.621 133.415C169.28 132.075 171.151 131.044 173.235 130.321C175.34 129.576 177.563 129.204 179.902 129.204C183.73 129.204 187.164 130.119 190.205 131.948C193.267 133.776 195.691 136.296 197.478 139.507C199.264 142.697 200.146 146.355 200.125 150.48C200.146 154.776 199.168 158.636 197.19 162.059C195.213 165.462 192.459 168.141 188.929 170.098C185.399 172.054 181.284 173.022 176.584 173ZM176.521 163.431C178.838 163.431 180.912 162.867 182.741 161.74C184.569 160.613 186.016 159.093 187.079 157.179C188.142 155.265 188.663 153.117 188.642 150.735C188.663 148.396 188.153 146.28 187.111 144.388C186.09 142.495 184.676 140.996 182.868 139.89C181.061 138.784 178.998 138.231 176.68 138.231C174.958 138.231 173.352 138.561 171.863 139.22C170.375 139.88 169.078 140.794 167.972 141.964C166.866 143.112 165.994 144.452 165.356 145.983C164.74 147.493 164.421 149.109 164.399 150.831C164.421 153.107 164.952 155.201 165.994 157.115C167.036 159.029 168.472 160.56 170.3 161.708C172.129 162.857 174.203 163.431 176.521 163.431Z" fill="black"/>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 4.2 KiB |
@@ -148,7 +148,7 @@ function wp_ajax_ajax_tag_search() {
|
||||
* Require $term_search_min_chars chars for matching (default: 2)
|
||||
* ensure it's a non-negative, non-zero integer.
|
||||
*/
|
||||
if ( ( 0 == $term_search_min_chars ) || ( strlen( $search ) < $term_search_min_chars ) ) {
|
||||
if ( ( 0 === $term_search_min_chars ) || ( strlen( $search ) < $term_search_min_chars ) ) {
|
||||
wp_die();
|
||||
}
|
||||
|
||||
@@ -192,7 +192,7 @@ function wp_ajax_wp_compression_test() {
|
||||
if ( is_multisite() ) {
|
||||
update_site_option( 'can_compress_scripts', 0 );
|
||||
} else {
|
||||
update_option( 'can_compress_scripts', 0, 'yes' );
|
||||
update_option( 'can_compress_scripts', 0, true );
|
||||
}
|
||||
wp_die( 0 );
|
||||
}
|
||||
@@ -205,10 +205,10 @@ function wp_ajax_wp_compression_test() {
|
||||
$force_gzip = ( defined( 'ENFORCE_GZIP' ) && ENFORCE_GZIP );
|
||||
$test_str = '"wpCompressionTest Lorem ipsum dolor sit amet consectetuer mollis sapien urna ut a. Eu nonummy condimentum fringilla tempor pretium platea vel nibh netus Maecenas. Hac molestie amet justo quis pellentesque est ultrices interdum nibh Morbi. Cras mattis pretium Phasellus ante ipsum ipsum ut sociis Suspendisse Lorem. Ante et non molestie. Porta urna Vestibulum egestas id congue nibh eu risus gravida sit. Ac augue auctor Ut et non a elit massa id sodales. Elit eu Nulla at nibh adipiscing mattis lacus mauris at tempus. Netus nibh quis suscipit nec feugiat eget sed lorem et urna. Pellentesque lacus at ut massa consectetuer ligula ut auctor semper Pellentesque. Ut metus massa nibh quam Curabitur molestie nec mauris congue. Volutpat molestie elit justo facilisis neque ac risus Ut nascetur tristique. Vitae sit lorem tellus et quis Phasellus lacus tincidunt nunc Fusce. Pharetra wisi Suspendisse mus sagittis libero lacinia Integer consequat ac Phasellus. Et urna ac cursus tortor aliquam Aliquam amet tellus volutpat Vestibulum. Justo interdum condimentum In augue congue tellus sollicitudin Quisque quis nibh."';
|
||||
|
||||
if ( 1 == $_GET['test'] ) {
|
||||
if ( '1' === $_GET['test'] ) {
|
||||
echo $test_str;
|
||||
wp_die();
|
||||
} elseif ( 2 == $_GET['test'] ) {
|
||||
} elseif ( '2' === $_GET['test'] ) {
|
||||
if ( ! isset( $_SERVER['HTTP_ACCEPT_ENCODING'] ) ) {
|
||||
wp_die( -1 );
|
||||
}
|
||||
@@ -231,7 +231,7 @@ function wp_ajax_wp_compression_test() {
|
||||
if ( is_multisite() ) {
|
||||
update_site_option( 'can_compress_scripts', 0 );
|
||||
} else {
|
||||
update_option( 'can_compress_scripts', 0, 'yes' );
|
||||
update_option( 'can_compress_scripts', 0, true );
|
||||
}
|
||||
} elseif ( 'yes' === $_GET['test'] ) {
|
||||
check_ajax_referer( 'update_can_compress_scripts' );
|
||||
@@ -239,7 +239,7 @@ function wp_ajax_wp_compression_test() {
|
||||
if ( is_multisite() ) {
|
||||
update_site_option( 'can_compress_scripts', 1 );
|
||||
} else {
|
||||
update_option( 'can_compress_scripts', 1, 'yes' );
|
||||
update_option( 'can_compress_scripts', 1, true );
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -274,7 +274,7 @@ function wp_ajax_imgedit_preview() {
|
||||
*
|
||||
* @since 3.1.0
|
||||
*
|
||||
* @global WP_Embed $wp_embed
|
||||
* @global WP_Embed $wp_embed WordPress Embed object.
|
||||
*/
|
||||
function wp_ajax_oembed_cache() {
|
||||
$GLOBALS['wp_embed']->cache_oembed( $_GET['post'] );
|
||||
@@ -513,7 +513,7 @@ function _wp_ajax_delete_comment_response( $comment_id, $delta = -1 ) {
|
||||
}
|
||||
|
||||
// Only do the expensive stuff on a page-break, and about 1 other time per page.
|
||||
if ( 0 == $total % $per_page || 1 == mt_rand( 1, $per_page ) ) {
|
||||
if ( 0 === $total % $per_page || 1 === mt_rand( 1, $per_page ) ) {
|
||||
$post_id = 0;
|
||||
// What type of comment count are we looking for?
|
||||
$status = 'all';
|
||||
@@ -733,13 +733,13 @@ function wp_ajax_delete_comment() {
|
||||
$status = wp_get_comment_status( $comment );
|
||||
$delta = -1;
|
||||
|
||||
if ( isset( $_POST['trash'] ) && 1 == $_POST['trash'] ) {
|
||||
if ( isset( $_POST['trash'] ) && '1' === $_POST['trash'] ) {
|
||||
if ( 'trash' === $status ) {
|
||||
wp_die( time() );
|
||||
}
|
||||
|
||||
$r = wp_trash_comment( $comment );
|
||||
} elseif ( isset( $_POST['untrash'] ) && 1 == $_POST['untrash'] ) {
|
||||
} elseif ( isset( $_POST['untrash'] ) && '1' === $_POST['untrash'] ) {
|
||||
if ( 'trash' !== $status ) {
|
||||
wp_die( time() );
|
||||
}
|
||||
@@ -750,13 +750,13 @@ function wp_ajax_delete_comment() {
|
||||
if ( ! isset( $_POST['comment_status'] ) || 'trash' !== $_POST['comment_status'] ) {
|
||||
$delta = 1;
|
||||
}
|
||||
} elseif ( isset( $_POST['spam'] ) && 1 == $_POST['spam'] ) {
|
||||
} elseif ( isset( $_POST['spam'] ) && '1' === $_POST['spam'] ) {
|
||||
if ( 'spam' === $status ) {
|
||||
wp_die( time() );
|
||||
}
|
||||
|
||||
$r = wp_spam_comment( $comment );
|
||||
} elseif ( isset( $_POST['unspam'] ) && 1 == $_POST['unspam'] ) {
|
||||
} elseif ( isset( $_POST['unspam'] ) && '1' === $_POST['unspam'] ) {
|
||||
if ( 'spam' !== $status ) {
|
||||
wp_die( time() );
|
||||
}
|
||||
@@ -767,7 +767,7 @@ function wp_ajax_delete_comment() {
|
||||
if ( ! isset( $_POST['comment_status'] ) || 'spam' !== $_POST['comment_status'] ) {
|
||||
$delta = 1;
|
||||
}
|
||||
} elseif ( isset( $_POST['delete'] ) && 1 == $_POST['delete'] ) {
|
||||
} elseif ( isset( $_POST['delete'] ) && '1' === $_POST['delete'] ) {
|
||||
$r = wp_delete_comment( $comment );
|
||||
} else {
|
||||
wp_die( -1 );
|
||||
@@ -1000,7 +1000,7 @@ function wp_ajax_dim_comment() {
|
||||
|
||||
$current = wp_get_comment_status( $comment );
|
||||
|
||||
if ( isset( $_POST['new'] ) && $_POST['new'] == $current ) {
|
||||
if ( isset( $_POST['new'] ) && $_POST['new'] === $current ) {
|
||||
wp_die( time() );
|
||||
}
|
||||
|
||||
@@ -1339,7 +1339,7 @@ function wp_ajax_replyto_comment( $action ) {
|
||||
$_POST['_wp_unfiltered_html_comment'] = '';
|
||||
}
|
||||
|
||||
if ( wp_create_nonce( 'unfiltered-html-comment' ) != $_POST['_wp_unfiltered_html_comment'] ) {
|
||||
if ( wp_create_nonce( 'unfiltered-html-comment' ) !== $_POST['_wp_unfiltered_html_comment'] ) {
|
||||
kses_remove_filters(); // Start with a clean slate.
|
||||
kses_init_filters(); // Set up the filters.
|
||||
remove_filter( 'pre_comment_content', 'wp_filter_post_kses' );
|
||||
@@ -1384,7 +1384,7 @@ function wp_ajax_replyto_comment( $action ) {
|
||||
if ( ! empty( $_POST['approve_parent'] ) ) {
|
||||
$parent = get_comment( $comment_parent );
|
||||
|
||||
if ( $parent && '0' === $parent->comment_approved && $parent->comment_post_ID == $comment_post_id ) {
|
||||
if ( $parent && '0' === $parent->comment_approved && (int) $parent->comment_post_ID === $comment_post_id ) {
|
||||
if ( ! current_user_can( 'edit_comment', $parent->comment_ID ) ) {
|
||||
wp_die( -1 );
|
||||
}
|
||||
@@ -1482,8 +1482,12 @@ function wp_ajax_edit_comment() {
|
||||
wp_die( $updated->get_error_message() );
|
||||
}
|
||||
|
||||
$position = ( isset( $_POST['position'] ) && (int) $_POST['position'] ) ? (int) $_POST['position'] : '-1';
|
||||
$checkbox = ( isset( $_POST['checkbox'] ) && true == $_POST['checkbox'] ) ? 1 : 0;
|
||||
$position = ( isset( $_POST['position'] ) && (int) $_POST['position'] ) ? (int) $_POST['position'] : '-1';
|
||||
/*
|
||||
* Checkbox is used to differentiate between the Edit Comments screen (1)
|
||||
* and the Comments section on the Edit Post screen (0).
|
||||
*/
|
||||
$checkbox = ( isset( $_POST['checkbox'] ) && '1' === $_POST['checkbox'] ) ? 1 : 0;
|
||||
$wp_list_table = _get_list_table( $checkbox ? 'WP_Comments_List_Table' : 'WP_Post_Comments_List_Table', array( 'screen' => 'edit-comments' ) );
|
||||
|
||||
$comment = get_comment( $comment_id );
|
||||
@@ -1699,7 +1703,7 @@ function wp_ajax_add_meta() {
|
||||
wp_die( -1 );
|
||||
}
|
||||
|
||||
if ( $meta->meta_value != $value || $meta->meta_key != $key ) {
|
||||
if ( $meta->meta_value !== $value || $meta->meta_key !== $key ) {
|
||||
$u = update_metadata_by_mid( 'post', $mid, $value, $key );
|
||||
if ( ! $u ) {
|
||||
wp_die( 0 ); // We know meta exists; we also know it's unchanged (or DB error, in which case there are bigger problems).
|
||||
@@ -1797,7 +1801,7 @@ function wp_ajax_closed_postboxes() {
|
||||
|
||||
$page = isset( $_POST['page'] ) ? $_POST['page'] : '';
|
||||
|
||||
if ( sanitize_key( $page ) != $page ) {
|
||||
if ( sanitize_key( $page ) !== $page ) {
|
||||
wp_die( 0 );
|
||||
}
|
||||
|
||||
@@ -1828,7 +1832,7 @@ function wp_ajax_hidden_columns() {
|
||||
check_ajax_referer( 'screen-options-nonce', 'screenoptionnonce' );
|
||||
$page = isset( $_POST['page'] ) ? $_POST['page'] : '';
|
||||
|
||||
if ( sanitize_key( $page ) != $page ) {
|
||||
if ( sanitize_key( $page ) !== $page ) {
|
||||
wp_die( 0 );
|
||||
}
|
||||
|
||||
@@ -1983,7 +1987,7 @@ function wp_ajax_meta_box_order() {
|
||||
|
||||
$page = isset( $_POST['page'] ) ? $_POST['page'] : '';
|
||||
|
||||
if ( sanitize_key( $page ) != $page ) {
|
||||
if ( sanitize_key( $page ) !== $page ) {
|
||||
wp_die( 0 );
|
||||
}
|
||||
|
||||
@@ -2412,7 +2416,7 @@ function wp_ajax_save_widget() {
|
||||
|
||||
foreach ( (array) $wp_registered_widget_updates as $name => $control ) {
|
||||
|
||||
if ( $name == $id_base ) {
|
||||
if ( $name === $id_base ) {
|
||||
if ( ! is_callable( $control['callback'] ) ) {
|
||||
continue;
|
||||
}
|
||||
@@ -2742,7 +2746,7 @@ function wp_ajax_set_post_thumbnail() {
|
||||
check_ajax_referer( "set_post_thumbnail-$post_id" );
|
||||
}
|
||||
|
||||
if ( '-1' == $thumbnail_id ) {
|
||||
if ( -1 === $thumbnail_id ) {
|
||||
if ( delete_post_thumbnail( $post_id ) ) {
|
||||
$return = _wp_post_thumbnail_html( null, $post_id );
|
||||
$json ? wp_send_json_success( $return ) : wp_die( $return );
|
||||
@@ -2926,7 +2930,7 @@ function wp_ajax_wp_remove_post_lock() {
|
||||
|
||||
$active_lock = array_map( 'absint', explode( ':', $_POST['active_post_lock'] ) );
|
||||
|
||||
if ( get_current_user_id() != $active_lock[1] ) {
|
||||
if ( get_current_user_id() !== $active_lock[1] ) {
|
||||
wp_die( 0 );
|
||||
}
|
||||
|
||||
@@ -2951,7 +2955,7 @@ function wp_ajax_wp_remove_post_lock() {
|
||||
function wp_ajax_dismiss_wp_pointer() {
|
||||
$pointer = $_POST['pointer'];
|
||||
|
||||
if ( sanitize_key( $pointer ) != $pointer ) {
|
||||
if ( sanitize_key( $pointer ) !== $pointer ) {
|
||||
wp_die( 0 );
|
||||
}
|
||||
|
||||
@@ -3323,7 +3327,7 @@ function wp_ajax_send_attachment_to_editor() {
|
||||
// If this attachment is unattached, attach it. Primarily a back compat thing.
|
||||
$insert_into_post_id = (int) $_POST['post_id'];
|
||||
|
||||
if ( 0 == $post->post_parent && $insert_into_post_id ) {
|
||||
if ( 0 === $post->post_parent && $insert_into_post_id ) {
|
||||
wp_update_post(
|
||||
array(
|
||||
'ID' => $id,
|
||||
@@ -3381,7 +3385,7 @@ function wp_ajax_send_attachment_to_editor() {
|
||||
* @since 3.5.0
|
||||
*
|
||||
* @global WP_Post $post Global post object.
|
||||
* @global WP_Embed $wp_embed
|
||||
* @global WP_Embed $wp_embed WordPress Embed object.
|
||||
*/
|
||||
function wp_ajax_send_link_to_editor() {
|
||||
global $post, $wp_embed;
|
||||
@@ -3733,8 +3737,8 @@ function wp_ajax_query_themes() {
|
||||
*
|
||||
* @since 4.0.0
|
||||
*
|
||||
* @global WP_Post $post Global post object.
|
||||
* @global WP_Embed $wp_embed Embed API instance.
|
||||
* @global WP_Post $post Global post object.
|
||||
* @global WP_Embed $wp_embed WordPress Embed object.
|
||||
* @global WP_Scripts $wp_scripts
|
||||
* @global int $content_width
|
||||
*/
|
||||
@@ -4024,7 +4028,7 @@ function wp_ajax_crop_image() {
|
||||
$wp_site_icon = new WP_Site_Icon();
|
||||
|
||||
// Skip creating a new attachment if the attachment is a Site Icon.
|
||||
if ( get_post_meta( $attachment_id, '_wp_attachment_context', true ) == $context ) {
|
||||
if ( get_post_meta( $attachment_id, '_wp_attachment_context', true ) === $context ) {
|
||||
|
||||
// Delete the temporary cropped file, we don't need it.
|
||||
wp_delete_file( $cropped );
|
||||
|
||||
@@ -23,10 +23,16 @@ class Bulk_Plugin_Upgrader_Skin extends Bulk_Upgrader_Skin {
|
||||
* The Plugin_Upgrader::bulk_upgrade() method will fill this in
|
||||
* with info retrieved from the get_plugin_data() function.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @var array Plugin data. Values will be empty if not supplied by the plugin.
|
||||
*/
|
||||
public $plugin_info = array();
|
||||
|
||||
/**
|
||||
* Sets up the strings used in the update process.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*/
|
||||
public function add_strings() {
|
||||
parent::add_strings();
|
||||
/* translators: 1: Plugin name, 2: Number of the plugin, 3: Total number of plugins being updated. */
|
||||
@@ -34,6 +40,10 @@ class Bulk_Plugin_Upgrader_Skin extends Bulk_Upgrader_Skin {
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs an action before a bulk plugin update.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param string $title
|
||||
*/
|
||||
public function before( $title = '' ) {
|
||||
@@ -41,6 +51,10 @@ class Bulk_Plugin_Upgrader_Skin extends Bulk_Upgrader_Skin {
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs an action following a bulk plugin update.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param string $title
|
||||
*/
|
||||
public function after( $title = '' ) {
|
||||
@@ -49,6 +63,9 @@ class Bulk_Plugin_Upgrader_Skin extends Bulk_Upgrader_Skin {
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays the footer following the bulk update process.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*/
|
||||
public function bulk_footer() {
|
||||
parent::bulk_footer();
|
||||
|
||||
@@ -24,10 +24,16 @@ class Bulk_Theme_Upgrader_Skin extends Bulk_Upgrader_Skin {
|
||||
* with info retrieved from the Theme_Upgrader::theme_info() method,
|
||||
* which in turn calls the wp_get_theme() function.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @var WP_Theme|false The theme's info object, or false.
|
||||
*/
|
||||
public $theme_info = false;
|
||||
|
||||
/**
|
||||
* Sets up the strings used in the update process.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*/
|
||||
public function add_strings() {
|
||||
parent::add_strings();
|
||||
/* translators: 1: Theme name, 2: Number of the theme, 3: Total number of themes being updated. */
|
||||
@@ -35,6 +41,10 @@ class Bulk_Theme_Upgrader_Skin extends Bulk_Upgrader_Skin {
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs an action before a bulk theme update.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param string $title
|
||||
*/
|
||||
public function before( $title = '' ) {
|
||||
@@ -42,6 +52,10 @@ class Bulk_Theme_Upgrader_Skin extends Bulk_Upgrader_Skin {
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs an action following a bulk theme update.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param string $title
|
||||
*/
|
||||
public function after( $title = '' ) {
|
||||
@@ -50,6 +64,9 @@ class Bulk_Theme_Upgrader_Skin extends Bulk_Upgrader_Skin {
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays the footer following the bulk update process.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*/
|
||||
public function bulk_footer() {
|
||||
parent::bulk_footer();
|
||||
|
||||
@@ -16,13 +16,30 @@
|
||||
* @see WP_Upgrader_Skin
|
||||
*/
|
||||
class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||
public $in_loop = false;
|
||||
|
||||
/**
|
||||
* Whether the bulk update process has started.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @var bool
|
||||
*/
|
||||
public $in_loop = false;
|
||||
|
||||
/**
|
||||
* Stores an error message about the update.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @var string|false
|
||||
*/
|
||||
public $error = false;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* Sets up the generic skin for the Bulk Upgrader classes.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param array $args
|
||||
*/
|
||||
public function __construct( $args = array() ) {
|
||||
@@ -36,6 +53,9 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets up the strings used in the update process.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*/
|
||||
public function add_strings() {
|
||||
$this->upgrader->strings['skin_upgrade_start'] = __( 'The update process is starting. This process may take a while on some hosts, so please be patient.' );
|
||||
@@ -49,6 +69,9 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays a message about the update.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 5.9.0 Renamed `$string` (a PHP reserved keyword) to `$feedback` for PHP 8 named parameter support.
|
||||
*
|
||||
* @param string $feedback Message data.
|
||||
@@ -77,18 +100,27 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays the header before the update process.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*/
|
||||
public function header() {
|
||||
// Nothing. This will be displayed within an iframe.
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays the footer following the update process.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*/
|
||||
public function footer() {
|
||||
// Nothing. This will be displayed within an iframe.
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays an error message about the update.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 5.9.0 Renamed `$error` to `$errors` for PHP 8 named parameter support.
|
||||
*
|
||||
* @param string|WP_Error $errors Errors.
|
||||
@@ -113,18 +145,28 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays the header before the bulk update process.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*/
|
||||
public function bulk_header() {
|
||||
$this->feedback( 'skin_upgrade_start' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays the footer following the bulk update process.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*/
|
||||
public function bulk_footer() {
|
||||
$this->feedback( 'skin_upgrade_end' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs an action before a bulk update.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param string $title
|
||||
*/
|
||||
public function before( $title = '' ) {
|
||||
@@ -137,6 +179,10 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs an action following a bulk update.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param string $title
|
||||
*/
|
||||
public function after( $title = '' ) {
|
||||
@@ -172,6 +218,9 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||
}
|
||||
|
||||
/**
|
||||
* Resets the properties used in the update process.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*/
|
||||
public function reset() {
|
||||
$this->in_loop = false;
|
||||
@@ -179,6 +228,9 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||
}
|
||||
|
||||
/**
|
||||
* Flushes all output buffers.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*/
|
||||
public function flush_output() {
|
||||
wp_ob_end_flush_all();
|
||||
|
||||
@@ -121,7 +121,7 @@ class Core_Upgrader extends WP_Upgrader {
|
||||
return new WP_Error( 'locked', $this->strings['locked'] );
|
||||
}
|
||||
|
||||
$download = $this->download_package( $current->packages->$to_download, true );
|
||||
$download = $this->download_package( $current->packages->$to_download, false );
|
||||
|
||||
/*
|
||||
* Allow for signature soft-fail.
|
||||
|
||||
@@ -72,7 +72,24 @@ class File_Upload_Upgrader {
|
||||
if ( 'pluginzip' === $form || 'themezip' === $form ) {
|
||||
if ( ! wp_zip_file_is_valid( $file['file'] ) ) {
|
||||
wp_delete_file( $file['file'] );
|
||||
wp_die( __( 'Incompatible Archive.' ) );
|
||||
|
||||
if ( 'pluginzip' === $form ) {
|
||||
$plugins_page = sprintf(
|
||||
'<a href="%s">%s</a>',
|
||||
self_admin_url( 'plugin-install.php' ),
|
||||
__( 'Return to the Plugin Installer' )
|
||||
);
|
||||
wp_die( __( 'Incompatible Archive.' ) . '<br />' . $plugins_page );
|
||||
}
|
||||
|
||||
if ( 'themezip' === $form ) {
|
||||
$themes_page = sprintf(
|
||||
'<a href="%s" target="_parent">%s</a>',
|
||||
self_admin_url( 'theme-install.php' ),
|
||||
__( 'Return to the Theme Installer' )
|
||||
);
|
||||
wp_die( __( 'Incompatible Archive.' ) . '<br />' . $themes_page );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -22,6 +22,12 @@ class Language_Pack_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||
public $display_footer_actions = true;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* Sets up the language pack upgrader skin.
|
||||
*
|
||||
* @since 3.7.0
|
||||
*
|
||||
* @param array $args
|
||||
*/
|
||||
public function __construct( $args = array() ) {
|
||||
@@ -41,6 +47,9 @@ class Language_Pack_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs an action before a language pack update.
|
||||
*
|
||||
* @since 3.7.0
|
||||
*/
|
||||
public function before() {
|
||||
$name = $this->upgrader->get_name_for_update( $this->language_update );
|
||||
@@ -52,6 +61,9 @@ class Language_Pack_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays an error message about the update.
|
||||
*
|
||||
* @since 3.7.0
|
||||
* @since 5.9.0 Renamed `$error` to `$errors` for PHP 8 named parameter support.
|
||||
*
|
||||
* @param string|WP_Error $errors Errors.
|
||||
@@ -63,12 +75,18 @@ class Language_Pack_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs an action following a language pack update.
|
||||
*
|
||||
* @since 3.7.0
|
||||
*/
|
||||
public function after() {
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays the footer following the bulk update process.
|
||||
*
|
||||
* @since 3.7.0
|
||||
*/
|
||||
public function bulk_footer() {
|
||||
$this->decrement_update_count( 'translation' );
|
||||
|
||||
@@ -332,26 +332,34 @@ class Language_Pack_Upgrader extends WP_Upgrader {
|
||||
// Check that the folder contains a valid language.
|
||||
$files = $wp_filesystem->dirlist( $remote_source );
|
||||
|
||||
// Check to see if a .po and .mo exist in the folder.
|
||||
$po = false;
|
||||
$mo = false;
|
||||
// Check to see if the expected files exist in the folder.
|
||||
$po = false;
|
||||
$mo = false;
|
||||
$php = false;
|
||||
foreach ( (array) $files as $file => $filedata ) {
|
||||
if ( str_ends_with( $file, '.po' ) ) {
|
||||
$po = true;
|
||||
} elseif ( str_ends_with( $file, '.mo' ) ) {
|
||||
$mo = true;
|
||||
} elseif ( str_ends_with( $file, '.l10n.php' ) ) {
|
||||
$php = true;
|
||||
}
|
||||
}
|
||||
|
||||
if ( $php ) {
|
||||
return $source;
|
||||
}
|
||||
|
||||
if ( ! $mo || ! $po ) {
|
||||
return new WP_Error(
|
||||
'incompatible_archive_pomo',
|
||||
$this->strings['incompatible_archive'],
|
||||
sprintf(
|
||||
/* translators: 1: .po, 2: .mo */
|
||||
__( 'The language pack is missing either the %1$s or %2$s files.' ),
|
||||
/* translators: 1: .po, 2: .mo, 3: .l10n.php */
|
||||
__( 'The language pack is missing either the %1$s, %2$s, or %3$s files.' ),
|
||||
'<code>.po</code>',
|
||||
'<code>.mo</code>'
|
||||
'<code>.mo</code>',
|
||||
'<code>.l10n.php</code>'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
// 0 : PclZip Class integrated error handling
|
||||
// 1 : PclError external library error handling. By enabling this
|
||||
// you must ensure that you have included PclError library.
|
||||
// [2,...] : reserved for futur use
|
||||
// [2,...] : reserved for future use
|
||||
if (!defined('PCLZIP_ERROR_EXTERNAL')) {
|
||||
define( 'PCLZIP_ERROR_EXTERNAL', 0 );
|
||||
}
|
||||
@@ -166,7 +166,7 @@
|
||||
define( 'PCLZIP_CB_POST_EXTRACT', 78002 );
|
||||
define( 'PCLZIP_CB_PRE_ADD', 78003 );
|
||||
define( 'PCLZIP_CB_POST_ADD', 78004 );
|
||||
/* For futur use
|
||||
/* For future use
|
||||
define( 'PCLZIP_CB_PRE_LIST', 78005 );
|
||||
define( 'PCLZIP_CB_POST_LIST', 78006 );
|
||||
define( 'PCLZIP_CB_PRE_DELETE', 78007 );
|
||||
@@ -1364,12 +1364,12 @@
|
||||
// Function : privCheckFormat()
|
||||
// Description :
|
||||
// This method check that the archive exists and is a valid zip archive.
|
||||
// Several level of check exists. (futur)
|
||||
// Several level of check exists. (future)
|
||||
// Parameters :
|
||||
// $p_level : Level of check. Default 0.
|
||||
// 0 : Check the first bytes (magic codes) (default value))
|
||||
// 1 : 0 + Check the central directory (futur)
|
||||
// 2 : 1 + Check each file header (futur)
|
||||
// 1 : 0 + Check the central directory (future)
|
||||
// 2 : 1 + Check each file header (future)
|
||||
// Return Values :
|
||||
// true on success,
|
||||
// false on error, the error code is set.
|
||||
@@ -1748,7 +1748,7 @@
|
||||
case PCLZIP_CB_POST_EXTRACT :
|
||||
case PCLZIP_CB_PRE_ADD :
|
||||
case PCLZIP_CB_POST_ADD :
|
||||
/* for futur use
|
||||
/* for future use
|
||||
case PCLZIP_CB_PRE_DELETE :
|
||||
case PCLZIP_CB_POST_DELETE :
|
||||
case PCLZIP_CB_PRE_LIST :
|
||||
|
||||
@@ -24,6 +24,12 @@ class Plugin_Installer_Skin extends WP_Upgrader_Skin {
|
||||
private $is_downgrading = false;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* Sets up the plugin installer skin.
|
||||
*
|
||||
* @since 2.8.0
|
||||
*
|
||||
* @param array $args
|
||||
*/
|
||||
public function __construct( $args = array() ) {
|
||||
@@ -293,13 +299,13 @@ class Plugin_Installer_Skin extends WP_Upgrader_Skin {
|
||||
$warning = sprintf(
|
||||
/* translators: %s: Documentation URL. */
|
||||
__( 'You are uploading an older version of a current plugin. You can continue to install the older version, but be sure to <a href="%s">back up your database and files</a> first.' ),
|
||||
__( 'https://wordpress.org/documentation/article/wordpress-backups/' )
|
||||
__( 'https://developer.wordpress.org/advanced-administration/security/backup/' )
|
||||
);
|
||||
} else {
|
||||
$warning = sprintf(
|
||||
/* translators: %s: Documentation URL. */
|
||||
__( 'You are updating a plugin. Be sure to <a href="%s">back up your database and files</a> first.' ),
|
||||
__( 'https://wordpress.org/documentation/article/wordpress-backups/' )
|
||||
__( 'https://developer.wordpress.org/advanced-administration/security/backup/' )
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -24,6 +24,12 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
|
||||
private $is_downgrading = false;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* Sets up the theme installer skin.
|
||||
*
|
||||
* @since 2.8.0
|
||||
*
|
||||
* @param array $args
|
||||
*/
|
||||
public function __construct( $args = array() ) {
|
||||
@@ -328,13 +334,13 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
|
||||
$warning = sprintf(
|
||||
/* translators: %s: Documentation URL. */
|
||||
__( 'You are uploading an older version of the active theme. You can continue to install the older version, but be sure to <a href="%s">back up your database and files</a> first.' ),
|
||||
__( 'https://wordpress.org/documentation/article/wordpress-backups/' )
|
||||
__( 'https://developer.wordpress.org/advanced-administration/security/backup/' )
|
||||
);
|
||||
} else {
|
||||
$warning = sprintf(
|
||||
/* translators: %s: Documentation URL. */
|
||||
__( 'You are updating a theme. Be sure to <a href="%s">back up your database and files</a> first.' ),
|
||||
__( 'https://wordpress.org/documentation/article/wordpress-backups/' )
|
||||
__( 'https://developer.wordpress.org/advanced-administration/security/backup/' )
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -233,7 +233,7 @@ class WP_Automatic_Updater {
|
||||
|
||||
// If the `disable_autoupdate` flag is set, override any user-choice, but allow filters.
|
||||
if ( ! empty( $item->disable_autoupdate ) ) {
|
||||
$update = $item->disable_autoupdate;
|
||||
$update = false;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -446,6 +446,34 @@ class WP_Automatic_Updater {
|
||||
$allow_relaxed_file_ownership = true;
|
||||
}
|
||||
|
||||
$is_debug = WP_DEBUG && WP_DEBUG_LOG;
|
||||
if ( 'plugin' === $type ) {
|
||||
$was_active = is_plugin_active( $upgrader_item );
|
||||
if ( $is_debug ) {
|
||||
error_log( ' Upgrading plugin ' . var_export( $item->slug, true ) . '...' );
|
||||
}
|
||||
}
|
||||
|
||||
if ( 'theme' === $type && $is_debug ) {
|
||||
error_log( ' Upgrading theme ' . var_export( $item->theme, true ) . '...' );
|
||||
}
|
||||
|
||||
/*
|
||||
* Enable maintenance mode before upgrading the plugin or theme.
|
||||
*
|
||||
* This avoids potential non-fatal errors being detected
|
||||
* while scraping for a fatal error if some files are still
|
||||
* being moved.
|
||||
*
|
||||
* While these checks are intended only for plugins,
|
||||
* maintenance mode is enabled for all upgrade types as any
|
||||
* update could contain an error or warning, which could cause
|
||||
* the scrape to miss a fatal error in the plugin update.
|
||||
*/
|
||||
if ( 'translation' !== $type ) {
|
||||
$upgrader->maintenance_mode( true );
|
||||
}
|
||||
|
||||
// Boom, this site's about to get a whole new splash of paint!
|
||||
$upgrade_result = $upgrader->upgrade(
|
||||
$upgrader_item,
|
||||
@@ -460,6 +488,19 @@ class WP_Automatic_Updater {
|
||||
)
|
||||
);
|
||||
|
||||
/*
|
||||
* After WP_Upgrader::upgrade() completes, maintenance mode is disabled.
|
||||
*
|
||||
* Re-enable maintenance mode while attempting to detect fatal errors
|
||||
* and potentially rolling back.
|
||||
*
|
||||
* This avoids errors if the site is visited while fatal errors exist
|
||||
* or while files are still being moved.
|
||||
*/
|
||||
if ( 'translation' !== $type ) {
|
||||
$upgrader->maintenance_mode( true );
|
||||
}
|
||||
|
||||
// If the filesystem is unavailable, false is returned.
|
||||
if ( false === $upgrade_result ) {
|
||||
$upgrade_result = new WP_Error( 'fs_unavailable', __( 'Could not access filesystem.' ) );
|
||||
@@ -470,6 +511,9 @@ class WP_Automatic_Updater {
|
||||
&& ( 'up_to_date' === $upgrade_result->get_error_code()
|
||||
|| 'locked' === $upgrade_result->get_error_code() )
|
||||
) {
|
||||
// Allow visitors to browse the site again.
|
||||
$upgrader->maintenance_mode( false );
|
||||
|
||||
/*
|
||||
* These aren't actual errors, treat it as a skipped-update instead
|
||||
* to avoid triggering the post-core update failure routines.
|
||||
@@ -486,6 +530,100 @@ class WP_Automatic_Updater {
|
||||
}
|
||||
}
|
||||
|
||||
$is_debug = WP_DEBUG && WP_DEBUG_LOG;
|
||||
|
||||
if ( 'theme' === $type && $is_debug ) {
|
||||
error_log( ' Theme ' . var_export( $item->theme, true ) . ' has been upgraded.' );
|
||||
}
|
||||
|
||||
if ( 'plugin' === $type ) {
|
||||
if ( $is_debug ) {
|
||||
error_log( ' Plugin ' . var_export( $item->slug, true ) . ' has been upgraded.' );
|
||||
if ( is_plugin_inactive( $upgrader_item ) ) {
|
||||
error_log( ' ' . var_export( $upgrader_item, true ) . ' is inactive and will not be checked for fatal errors.' );
|
||||
}
|
||||
}
|
||||
|
||||
if ( $was_active && ! is_wp_error( $upgrade_result ) ) {
|
||||
|
||||
/*
|
||||
* The usual time limit is five minutes. However, as a loopback request
|
||||
* is about to be performed, increase the time limit to account for this.
|
||||
*/
|
||||
if ( function_exists( 'set_time_limit' ) ) {
|
||||
set_time_limit( 10 * MINUTE_IN_SECONDS );
|
||||
}
|
||||
|
||||
/*
|
||||
* Avoids a race condition when there are 2 sequential plugins that have
|
||||
* fatal errors. It seems a slight delay is required for the loopback to
|
||||
* use the updated plugin code in the request. This can cause the second
|
||||
* plugin's fatal error checking to be inaccurate, and may also affect
|
||||
* subsequent plugin checks.
|
||||
*/
|
||||
sleep( 2 );
|
||||
|
||||
if ( $this->has_fatal_error() ) {
|
||||
$upgrade_result = new WP_Error();
|
||||
$temp_backup = array(
|
||||
array(
|
||||
'dir' => 'plugins',
|
||||
'slug' => $item->slug,
|
||||
'src' => WP_PLUGIN_DIR,
|
||||
),
|
||||
);
|
||||
|
||||
$backup_restored = $upgrader->restore_temp_backup( $temp_backup );
|
||||
if ( is_wp_error( $backup_restored ) ) {
|
||||
$upgrade_result->add(
|
||||
'plugin_update_fatal_error_rollback_failed',
|
||||
sprintf(
|
||||
/* translators: %s: The plugin's slug. */
|
||||
__( "The update for '%s' contained a fatal error. The previously installed version could not be restored." ),
|
||||
$item->slug
|
||||
)
|
||||
);
|
||||
|
||||
$upgrade_result->merge_from( $backup_restored );
|
||||
} else {
|
||||
$upgrade_result->add(
|
||||
'plugin_update_fatal_error_rollback_successful',
|
||||
sprintf(
|
||||
/* translators: %s: The plugin's slug. */
|
||||
__( "The update for '%s' contained a fatal error. The previously installed version has been restored." ),
|
||||
$item->slug
|
||||
)
|
||||
);
|
||||
|
||||
$backup_deleted = $upgrader->delete_temp_backup( $temp_backup );
|
||||
if ( is_wp_error( $backup_deleted ) ) {
|
||||
$upgrade_result->merge_from( $backup_deleted );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Should emails not be working, log the message(s) so that
|
||||
* the log file contains context for the fatal error,
|
||||
* and whether a rollback was performed.
|
||||
*
|
||||
* `trigger_error()` is not used as it outputs a stack trace
|
||||
* to this location rather than to the fatal error, which will
|
||||
* appear above this entry in the log file.
|
||||
*/
|
||||
if ( $is_debug ) {
|
||||
error_log( ' ' . implode( "\n", $upgrade_result->get_error_messages() ) );
|
||||
}
|
||||
} elseif ( $is_debug ) {
|
||||
error_log( ' The update for ' . var_export( $item->slug, true ) . ' has no fatal errors.' );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// All processes are complete. Allow visitors to browse the site again.
|
||||
if ( 'translation' !== $type ) {
|
||||
$upgrader->maintenance_mode( false );
|
||||
}
|
||||
|
||||
$this->update_results[ $type ][] = (object) array(
|
||||
'item' => $item,
|
||||
'result' => $upgrade_result,
|
||||
@@ -514,6 +652,12 @@ class WP_Automatic_Updater {
|
||||
return;
|
||||
}
|
||||
|
||||
$is_debug = WP_DEBUG && WP_DEBUG_LOG;
|
||||
|
||||
if ( $is_debug ) {
|
||||
error_log( 'Automatic updates starting...' );
|
||||
}
|
||||
|
||||
// Don't automatically run these things, as we'll handle it ourselves.
|
||||
remove_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20 );
|
||||
remove_action( 'upgrader_process_complete', 'wp_version_check' );
|
||||
@@ -524,22 +668,43 @@ class WP_Automatic_Updater {
|
||||
wp_update_plugins(); // Check for plugin updates.
|
||||
$plugin_updates = get_site_transient( 'update_plugins' );
|
||||
if ( $plugin_updates && ! empty( $plugin_updates->response ) ) {
|
||||
if ( $is_debug ) {
|
||||
error_log( ' Automatic plugin updates starting...' );
|
||||
}
|
||||
|
||||
foreach ( $plugin_updates->response as $plugin ) {
|
||||
$this->update( 'plugin', $plugin );
|
||||
}
|
||||
|
||||
// Force refresh of plugin update information.
|
||||
wp_clean_plugins_cache();
|
||||
|
||||
if ( $is_debug ) {
|
||||
error_log( ' Automatic plugin updates complete.' );
|
||||
}
|
||||
}
|
||||
|
||||
// Next, those themes we all love.
|
||||
wp_update_themes(); // Check for theme updates.
|
||||
$theme_updates = get_site_transient( 'update_themes' );
|
||||
if ( $theme_updates && ! empty( $theme_updates->response ) ) {
|
||||
if ( $is_debug ) {
|
||||
error_log( ' Automatic theme updates starting...' );
|
||||
}
|
||||
|
||||
foreach ( $theme_updates->response as $theme ) {
|
||||
$this->update( 'theme', (object) $theme );
|
||||
}
|
||||
// Force refresh of theme update information.
|
||||
wp_clean_themes_cache();
|
||||
|
||||
if ( $is_debug ) {
|
||||
error_log( ' Automatic theme updates complete.' );
|
||||
}
|
||||
}
|
||||
|
||||
if ( $is_debug ) {
|
||||
error_log( 'Automatic updates complete.' );
|
||||
}
|
||||
|
||||
// Next, process any core update.
|
||||
@@ -1163,7 +1328,7 @@ class WP_Automatic_Updater {
|
||||
|
||||
// List failed plugin updates.
|
||||
if ( ! empty( $failed_updates['plugin'] ) ) {
|
||||
$body[] = __( 'These plugins failed to update:' );
|
||||
$body[] = __( 'The following plugins failed to update. If there was a fatal error in the update, the previously installed version has been restored.' );
|
||||
|
||||
foreach ( $failed_updates['plugin'] as $item ) {
|
||||
$body_message = '';
|
||||
@@ -1551,4 +1716,91 @@ Thanks! -- The WordPress Team"
|
||||
|
||||
wp_mail( $email['to'], wp_specialchars_decode( $email['subject'] ), $email['body'], $email['headers'] );
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs a loopback request to check for potential fatal errors.
|
||||
*
|
||||
* Fatal errors cannot be detected unless maintenance mode is enabled.
|
||||
*
|
||||
* @since 6.6.0
|
||||
*
|
||||
* @global int $upgrading The Unix timestamp marking when upgrading WordPress began.
|
||||
*
|
||||
* @return bool Whether a fatal error was detected.
|
||||
*/
|
||||
protected function has_fatal_error() {
|
||||
global $upgrading;
|
||||
|
||||
$maintenance_file = ABSPATH . '.maintenance';
|
||||
if ( ! file_exists( $maintenance_file ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
require $maintenance_file;
|
||||
if ( ! is_int( $upgrading ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$scrape_key = md5( $upgrading );
|
||||
$scrape_nonce = (string) $upgrading;
|
||||
$transient = 'scrape_key_' . $scrape_key;
|
||||
set_transient( $transient, $scrape_nonce, 30 );
|
||||
|
||||
$cookies = wp_unslash( $_COOKIE );
|
||||
$scrape_params = array(
|
||||
'wp_scrape_key' => $scrape_key,
|
||||
'wp_scrape_nonce' => $scrape_nonce,
|
||||
);
|
||||
$headers = array(
|
||||
'Cache-Control' => 'no-cache',
|
||||
);
|
||||
|
||||
/** This filter is documented in wp-includes/class-wp-http-streams.php */
|
||||
$sslverify = apply_filters( 'https_local_ssl_verify', false );
|
||||
|
||||
// Include Basic auth in the loopback request.
|
||||
if ( isset( $_SERVER['PHP_AUTH_USER'] ) && isset( $_SERVER['PHP_AUTH_PW'] ) ) {
|
||||
$headers['Authorization'] = 'Basic ' . base64_encode( wp_unslash( $_SERVER['PHP_AUTH_USER'] ) . ':' . wp_unslash( $_SERVER['PHP_AUTH_PW'] ) );
|
||||
}
|
||||
|
||||
// Time to wait for loopback request to finish.
|
||||
$timeout = 50; // 50 seconds.
|
||||
|
||||
$is_debug = WP_DEBUG && WP_DEBUG_LOG;
|
||||
if ( $is_debug ) {
|
||||
error_log( ' Scraping home page...' );
|
||||
}
|
||||
|
||||
$needle_start = "###### wp_scraping_result_start:$scrape_key ######";
|
||||
$needle_end = "###### wp_scraping_result_end:$scrape_key ######";
|
||||
$url = add_query_arg( $scrape_params, home_url( '/' ) );
|
||||
$response = wp_remote_get( $url, compact( 'cookies', 'headers', 'timeout', 'sslverify' ) );
|
||||
|
||||
if ( is_wp_error( $response ) ) {
|
||||
if ( $is_debug ) {
|
||||
error_log( 'Loopback request failed: ' . $response->get_error_message() );
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// If this outputs `true` in the log, it means there were no fatal errors detected.
|
||||
if ( $is_debug ) {
|
||||
error_log( var_export( substr( $response['body'], strpos( $response['body'], '###### wp_scraping_result_start:' ) ), true ) );
|
||||
}
|
||||
|
||||
$body = wp_remote_retrieve_body( $response );
|
||||
$scrape_result_position = strpos( $body, $needle_start );
|
||||
$result = null;
|
||||
|
||||
if ( false !== $scrape_result_position ) {
|
||||
$error_output = substr( $body, $scrape_result_position + strlen( $needle_start ) );
|
||||
$error_output = substr( $error_output, 0, strpos( $error_output, $needle_end ) );
|
||||
$result = json_decode( trim( $error_output ), true );
|
||||
}
|
||||
|
||||
delete_transient( $transient );
|
||||
|
||||
// Only fatal errors will result in a 'type' key.
|
||||
return isset( $result['type'] );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -237,7 +237,7 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||
$status_links = array();
|
||||
$num_comments = ( $post_id ) ? wp_count_comments( $post_id ) : wp_count_comments();
|
||||
|
||||
$stati = array(
|
||||
$statuses = array(
|
||||
/* translators: %s: Number of comments. */
|
||||
'all' => _nx_noop(
|
||||
'All <span class="count">(%s)</span>',
|
||||
@@ -282,7 +282,7 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||
);
|
||||
|
||||
if ( ! EMPTY_TRASH_DAYS ) {
|
||||
unset( $stati['trash'] );
|
||||
unset( $statuses['trash'] );
|
||||
}
|
||||
|
||||
$link = admin_url( 'edit-comments.php' );
|
||||
@@ -291,7 +291,7 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||
$link = add_query_arg( 'comment_type', $comment_type, $link );
|
||||
}
|
||||
|
||||
foreach ( $stati as $status => $label ) {
|
||||
foreach ( $statuses as $status => $label ) {
|
||||
if ( 'mine' === $status ) {
|
||||
$current_user_id = get_current_user_id();
|
||||
$num_comments->mine = get_comments(
|
||||
|
||||
@@ -134,6 +134,7 @@ class WP_Debug_Data {
|
||||
|
||||
if ( ! $is_multisite ) {
|
||||
$info['wp-paths-sizes'] = array(
|
||||
/* translators: Filesystem directory paths and storage sizes. */
|
||||
'label' => __( 'Directories and Sizes' ),
|
||||
'fields' => array(),
|
||||
);
|
||||
@@ -346,6 +347,7 @@ class WP_Debug_Data {
|
||||
$is_writable_upload_dir = wp_is_writable( $upload_dir['basedir'] );
|
||||
$is_writable_wp_plugin_dir = wp_is_writable( WP_PLUGIN_DIR );
|
||||
$is_writable_template_directory = wp_is_writable( get_theme_root( get_template() ) );
|
||||
$is_writable_fonts_dir = wp_is_writable( wp_get_font_dir()['basedir'] );
|
||||
|
||||
$info['wp-filesystem'] = array(
|
||||
'label' => __( 'Filesystem Permissions' ),
|
||||
@@ -376,6 +378,11 @@ class WP_Debug_Data {
|
||||
'value' => ( $is_writable_template_directory ? __( 'Writable' ) : __( 'Not writable' ) ),
|
||||
'debug' => ( $is_writable_template_directory ? 'writable' : 'not writable' ),
|
||||
),
|
||||
'fonts' => array(
|
||||
'label' => __( 'The fonts directory' ),
|
||||
'value' => ( $is_writable_fonts_dir ? __( 'Writable' ) : __( 'Not writable' ) ),
|
||||
'debug' => ( $is_writable_fonts_dir ? 'writable' : 'not writable' ),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
@@ -482,6 +489,15 @@ class WP_Debug_Data {
|
||||
'value' => $loading,
|
||||
'debug' => 'loading...',
|
||||
),
|
||||
'fonts_path' => array(
|
||||
'label' => __( 'Fonts directory location' ),
|
||||
'value' => wp_get_font_dir()['basedir'],
|
||||
),
|
||||
'fonts_size' => array(
|
||||
'label' => __( 'Fonts directory size' ),
|
||||
'value' => $loading,
|
||||
'debug' => 'loading...',
|
||||
),
|
||||
'database_size' => array(
|
||||
'label' => __( 'Database size' ),
|
||||
'value' => $loading,
|
||||
@@ -1636,6 +1652,7 @@ class WP_Debug_Data {
|
||||
'themes_size' => get_theme_root(),
|
||||
'plugins_size' => WP_PLUGIN_DIR,
|
||||
'uploads_size' => $upload_dir['basedir'],
|
||||
'fonts_size' => wp_get_font_dir()['basedir'],
|
||||
);
|
||||
|
||||
$exclude = $paths;
|
||||
|
||||
@@ -50,7 +50,10 @@ class WP_Links_List_Table extends WP_List_Table {
|
||||
public function prepare_items() {
|
||||
global $cat_id, $s, $orderby, $order;
|
||||
|
||||
wp_reset_vars( array( 'action', 'cat_id', 'link_id', 'orderby', 'order', 's' ) );
|
||||
$cat_id = ! empty( $_REQUEST['cat_id'] ) ? absint( $_REQUEST['cat_id'] ) : 0;
|
||||
$orderby = ! empty( $_REQUEST['orderby'] ) ? sanitize_text_field( $_REQUEST['orderby'] ) : '';
|
||||
$order = ! empty( $_REQUEST['order'] ) ? sanitize_text_field( $_REQUEST['order'] ) : '';
|
||||
$s = ! empty( $_REQUEST['s'] ) ? sanitize_text_field( $_REQUEST['s'] ) : '';
|
||||
|
||||
$args = array(
|
||||
'hide_invisible' => 0,
|
||||
|
||||
@@ -388,7 +388,13 @@ class WP_List_Table {
|
||||
$input_id = $input_id . '-search-input';
|
||||
|
||||
if ( ! empty( $_REQUEST['orderby'] ) ) {
|
||||
echo '<input type="hidden" name="orderby" value="' . esc_attr( $_REQUEST['orderby'] ) . '" />';
|
||||
if ( is_array( $_REQUEST['orderby'] ) ) {
|
||||
foreach ( $_REQUEST['orderby'] as $key => $value ) {
|
||||
echo '<input type="hidden" name="orderby[' . esc_attr( $key ) . ']" value="' . esc_attr( $value ) . '" />';
|
||||
}
|
||||
} else {
|
||||
echo '<input type="hidden" name="orderby" value="' . esc_attr( $_REQUEST['orderby'] ) . '" />';
|
||||
}
|
||||
}
|
||||
if ( ! empty( $_REQUEST['order'] ) ) {
|
||||
echo '<input type="hidden" name="order" value="' . esc_attr( $_REQUEST['order'] ) . '" />';
|
||||
@@ -635,7 +641,7 @@ class WP_List_Table {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( isset( $_REQUEST['action'] ) && -1 != $_REQUEST['action'] ) {
|
||||
if ( isset( $_REQUEST['action'] ) && '-1' !== $_REQUEST['action'] ) {
|
||||
return $_REQUEST['action'];
|
||||
}
|
||||
|
||||
@@ -753,7 +759,7 @@ class WP_List_Table {
|
||||
|
||||
$month_count = count( $months );
|
||||
|
||||
if ( ! $month_count || ( 1 == $month_count && 0 == $months[0]->month ) ) {
|
||||
if ( ! $month_count || ( 1 === $month_count && 0 === (int) $months[0]->month ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -764,7 +770,7 @@ class WP_List_Table {
|
||||
<option<?php selected( $m, 0 ); ?> value="0"><?php _e( 'All dates' ); ?></option>
|
||||
<?php
|
||||
foreach ( $months as $arc_row ) {
|
||||
if ( 0 == $arc_row->year ) {
|
||||
if ( 0 === (int) $arc_row->year ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -989,10 +995,10 @@ class WP_List_Table {
|
||||
* - `edit_comments_per_page`
|
||||
* - `sites_network_per_page`
|
||||
* - `site_themes_network_per_page`
|
||||
* - `themes_network_per_page'`
|
||||
* - `themes_network_per_page`
|
||||
* - `users_network_per_page`
|
||||
* - `edit_post_per_page`
|
||||
* - `edit_page_per_page'`
|
||||
* - `edit_page_per_page`
|
||||
* - `edit_{$post_type}_per_page`
|
||||
* - `edit_post_tag_per_page`
|
||||
* - `edit_category_per_page`
|
||||
@@ -1053,11 +1059,11 @@ class WP_List_Table {
|
||||
$disable_prev = false;
|
||||
$disable_next = false;
|
||||
|
||||
if ( 1 == $current ) {
|
||||
if ( 1 === $current ) {
|
||||
$disable_first = true;
|
||||
$disable_prev = true;
|
||||
}
|
||||
if ( $total_pages == $current ) {
|
||||
if ( $total_pages === $current ) {
|
||||
$disable_last = true;
|
||||
$disable_next = true;
|
||||
}
|
||||
|
||||
@@ -99,7 +99,9 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
||||
public function prepare_items() {
|
||||
global $status, $totals, $page, $orderby, $order, $s;
|
||||
|
||||
wp_reset_vars( array( 'orderby', 'order', 's' ) );
|
||||
$orderby = ! empty( $_REQUEST['orderby'] ) ? sanitize_text_field( $_REQUEST['orderby'] ) : '';
|
||||
$order = ! empty( $_REQUEST['order'] ) ? sanitize_text_field( $_REQUEST['order'] ) : '';
|
||||
$s = ! empty( $_REQUEST['s'] ) ? sanitize_text_field( $_REQUEST['s'] ) : '';
|
||||
|
||||
$themes = array(
|
||||
/**
|
||||
|
||||
@@ -92,7 +92,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
|
||||
|
||||
global $tabs, $tab, $paged, $type, $term;
|
||||
|
||||
wp_reset_vars( array( 'tab' ) );
|
||||
$tab = ! empty( $_REQUEST['tab'] ) ? sanitize_text_field( $_REQUEST['tab'] ) : '';
|
||||
|
||||
$paged = $this->get_pagenum();
|
||||
|
||||
@@ -626,7 +626,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
|
||||
} elseif ( ! $compatible_wp ) {
|
||||
$incompatible_notice_message .= __( 'This plugin does not work with your version of WordPress.' );
|
||||
if ( current_user_can( 'update_core' ) ) {
|
||||
$incompatible_notice_message .= printf(
|
||||
$incompatible_notice_message .= sprintf(
|
||||
/* translators: %s: URL to WordPress Updates screen. */
|
||||
' ' . __( '<a href="%s">Please update WordPress</a>.' ),
|
||||
self_admin_url( 'update-core.php' )
|
||||
|
||||
@@ -90,7 +90,8 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
||||
public function prepare_items() {
|
||||
global $status, $plugins, $totals, $page, $orderby, $order, $s;
|
||||
|
||||
wp_reset_vars( array( 'orderby', 'order' ) );
|
||||
$orderby = ! empty( $_REQUEST['orderby'] ) ? sanitize_text_field( $_REQUEST['orderby'] ) : '';
|
||||
$order = ! empty( $_REQUEST['order'] ) ? sanitize_text_field( $_REQUEST['order'] ) : '';
|
||||
|
||||
/**
|
||||
* Filters the full array of plugins to list in the Plugins list table.
|
||||
@@ -452,8 +453,8 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
||||
}
|
||||
?>
|
||||
<p class="search-box">
|
||||
<label class="screen-reader-text" for="<?php echo esc_attr( $input_id ); ?>"><?php echo $text; ?>:</label>
|
||||
<input type="search" id="<?php echo esc_attr( $input_id ); ?>" class="wp-filter-search" name="s" value="<?php _admin_search_query(); ?>" placeholder="<?php esc_attr_e( 'Search installed plugins...' ); ?>" />
|
||||
<label for="<?php echo esc_attr( $input_id ); ?>"><?php echo $text; ?></label>
|
||||
<input type="search" id="<?php echo esc_attr( $input_id ); ?>" class="wp-filter-search" name="s" value="<?php _admin_search_query(); ?>" />
|
||||
<?php submit_button( $text, 'hide-if-js', '', false, array( 'id' => 'search-submit' ) ); ?>
|
||||
</p>
|
||||
<?php
|
||||
|
||||
@@ -65,7 +65,7 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||
*
|
||||
* @see WP_List_Table::__construct() for more information on default arguments.
|
||||
*
|
||||
* @global WP_Post_Type $post_type_object
|
||||
* @global WP_Post_Type $post_type_object Global post type object.
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param array $args An associative array of arguments.
|
||||
|
||||
@@ -984,7 +984,7 @@ final class WP_Screen {
|
||||
}
|
||||
|
||||
/**
|
||||
* @global array $wp_meta_boxes
|
||||
* @global array $wp_meta_boxes Global meta box state.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
@@ -1103,7 +1103,7 @@ final class WP_Screen {
|
||||
*
|
||||
* @since 4.4.0
|
||||
*
|
||||
* @global array $wp_meta_boxes
|
||||
* @global array $wp_meta_boxes Global meta box state.
|
||||
*/
|
||||
public function render_meta_boxes_preferences() {
|
||||
global $wp_meta_boxes;
|
||||
|
||||
@@ -18,7 +18,7 @@ class WP_Site_Health {
|
||||
private $mysql_server_version = '';
|
||||
private $mysql_required_version = '5.5';
|
||||
private $mysql_recommended_version = '8.0';
|
||||
private $mariadb_recommended_version = '10.4';
|
||||
private $mariadb_recommended_version = '10.5';
|
||||
|
||||
public $php_memory_limit;
|
||||
|
||||
@@ -1283,120 +1283,6 @@ class WP_Site_Health {
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests if the database server is capable of using utf8mb4.
|
||||
*
|
||||
* @since 5.2.0
|
||||
*
|
||||
* @return array The test results.
|
||||
*/
|
||||
public function get_test_utf8mb4_support() {
|
||||
if ( ! $this->mysql_server_version ) {
|
||||
$this->prepare_sql_data();
|
||||
}
|
||||
|
||||
$result = array(
|
||||
'label' => __( 'UTF8MB4 is supported' ),
|
||||
'status' => 'good',
|
||||
'badge' => array(
|
||||
'label' => __( 'Performance' ),
|
||||
'color' => 'blue',
|
||||
),
|
||||
'description' => sprintf(
|
||||
'<p>%s</p>',
|
||||
__( 'UTF8MB4 is the character set WordPress prefers for database storage because it safely supports the widest set of characters and encodings, including Emoji, enabling better support for non-English languages.' )
|
||||
),
|
||||
'actions' => '',
|
||||
'test' => 'utf8mb4_support',
|
||||
);
|
||||
|
||||
if ( ! $this->is_mariadb ) {
|
||||
if ( version_compare( $this->mysql_server_version, '5.5.3', '<' ) ) {
|
||||
$result['status'] = 'recommended';
|
||||
|
||||
$result['label'] = __( 'utf8mb4 requires a MySQL update' );
|
||||
|
||||
$result['description'] .= sprintf(
|
||||
'<p>%s</p>',
|
||||
sprintf(
|
||||
/* translators: %s: Version number. */
|
||||
__( 'WordPress’ utf8mb4 support requires MySQL version %s or greater. Please contact your server administrator.' ),
|
||||
'5.5.3'
|
||||
)
|
||||
);
|
||||
} else {
|
||||
$result['description'] .= sprintf(
|
||||
'<p>%s</p>',
|
||||
__( 'Your MySQL version supports utf8mb4.' )
|
||||
);
|
||||
}
|
||||
} else { // MariaDB introduced utf8mb4 support in 5.5.0.
|
||||
if ( version_compare( $this->mysql_server_version, '5.5.0', '<' ) ) {
|
||||
$result['status'] = 'recommended';
|
||||
|
||||
$result['label'] = __( 'utf8mb4 requires a MariaDB update' );
|
||||
|
||||
$result['description'] .= sprintf(
|
||||
'<p>%s</p>',
|
||||
sprintf(
|
||||
/* translators: %s: Version number. */
|
||||
__( 'WordPress’ utf8mb4 support requires MariaDB version %s or greater. Please contact your server administrator.' ),
|
||||
'5.5.0'
|
||||
)
|
||||
);
|
||||
} else {
|
||||
$result['description'] .= sprintf(
|
||||
'<p>%s</p>',
|
||||
__( 'Your MariaDB version supports utf8mb4.' )
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// phpcs:ignore WordPress.DB.RestrictedFunctions.mysql_mysqli_get_client_info
|
||||
$mysql_client_version = mysqli_get_client_info();
|
||||
|
||||
/*
|
||||
* libmysql has supported utf8mb4 since 5.5.3, same as the MySQL server.
|
||||
* mysqlnd has supported utf8mb4 since 5.0.9.
|
||||
*/
|
||||
if ( str_contains( $mysql_client_version, 'mysqlnd' ) ) {
|
||||
$mysql_client_version = preg_replace( '/^\D+([\d.]+).*/', '$1', $mysql_client_version );
|
||||
if ( version_compare( $mysql_client_version, '5.0.9', '<' ) ) {
|
||||
$result['status'] = 'recommended';
|
||||
|
||||
$result['label'] = __( 'utf8mb4 requires a newer client library' );
|
||||
|
||||
$result['description'] .= sprintf(
|
||||
'<p>%s</p>',
|
||||
sprintf(
|
||||
/* translators: 1: Name of the library, 2: Number of version. */
|
||||
__( 'WordPress’ utf8mb4 support requires MySQL client library (%1$s) version %2$s or newer. Please contact your server administrator.' ),
|
||||
'mysqlnd',
|
||||
'5.0.9'
|
||||
)
|
||||
);
|
||||
}
|
||||
} else {
|
||||
if ( version_compare( $mysql_client_version, '5.5.3', '<' ) ) {
|
||||
$result['status'] = 'recommended';
|
||||
|
||||
$result['label'] = __( 'utf8mb4 requires a newer client library' );
|
||||
|
||||
$result['description'] .= sprintf(
|
||||
'<p>%s</p>',
|
||||
sprintf(
|
||||
/* translators: 1: Name of the library, 2: Number of version. */
|
||||
__( 'WordPress’ utf8mb4 support requires MySQL client library (%1$s) version %2$s or newer. Please contact your server administrator.' ),
|
||||
'libmysql',
|
||||
'5.5.3'
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests if the site can communicate with WordPress.org.
|
||||
*
|
||||
@@ -1489,7 +1375,7 @@ class WP_Site_Health {
|
||||
'actions' => sprintf(
|
||||
'<p><a href="%s" target="_blank" rel="noopener">%s<span class="screen-reader-text"> %s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
|
||||
/* translators: Documentation explaining debugging in WordPress. */
|
||||
esc_url( __( 'https://wordpress.org/documentation/article/debugging-in-wordpress/' ) ),
|
||||
esc_url( __( 'https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/' ) ),
|
||||
__( 'Learn more about debugging in WordPress.' ),
|
||||
/* translators: Hidden accessibility text. */
|
||||
__( '(opens in a new tab)' )
|
||||
@@ -1953,11 +1839,19 @@ class WP_Site_Health {
|
||||
$result['description'] = __( 'Could not determine available disk space for updates.' );
|
||||
$result['status'] = 'recommended';
|
||||
} elseif ( $available_space < 20 * MB_IN_BYTES ) {
|
||||
$result['description'] = __( 'Available disk space is critically low, less than 20 MB available. Proceed with caution, updates may fail.' );
|
||||
$result['status'] = 'critical';
|
||||
$result['description'] = sprintf(
|
||||
/* translators: %s: Available disk space in MB or GB. */
|
||||
__( 'Available disk space is critically low, less than %s available. Proceed with caution, updates may fail.' ),
|
||||
size_format( 20 * MB_IN_BYTES )
|
||||
);
|
||||
$result['status'] = 'critical';
|
||||
} elseif ( $available_space < 100 * MB_IN_BYTES ) {
|
||||
$result['description'] = __( 'Available disk space is low, less than 100 MB available.' );
|
||||
$result['status'] = 'recommended';
|
||||
$result['description'] = sprintf(
|
||||
/* translators: %s: Available disk space in MB or GB. */
|
||||
__( 'Available disk space is low, less than %s available.' ),
|
||||
size_format( 100 * MB_IN_BYTES )
|
||||
);
|
||||
$result['status'] = 'recommended';
|
||||
}
|
||||
|
||||
return $result;
|
||||
@@ -2504,7 +2398,7 @@ class WP_Site_Health {
|
||||
'label' => '',
|
||||
'actions' => sprintf(
|
||||
'<p><a href="%1$s" target="_blank" rel="noopener noreferrer">%2$s<span class="screen-reader-text"> %3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
|
||||
__( 'https://wordpress.org/documentation/article/optimization/#Caching' ),
|
||||
__( 'https://developer.wordpress.org/advanced-administration/performance/optimization/#caching' ),
|
||||
__( 'Learn more about page cache' ),
|
||||
/* translators: Hidden accessibility text. */
|
||||
__( '(opens in a new tab)' )
|
||||
@@ -2613,7 +2507,7 @@ class WP_Site_Health {
|
||||
$action_url = apply_filters(
|
||||
'site_status_persistent_object_cache_url',
|
||||
/* translators: Localized Support reference. */
|
||||
__( 'https://wordpress.org/documentation/article/optimization/#persistent-object-cache' )
|
||||
__( 'https://developer.wordpress.org/advanced-administration/performance/optimization/#persistent-object-cache' )
|
||||
);
|
||||
|
||||
$result = array(
|
||||
@@ -2692,6 +2586,107 @@ class WP_Site_Health {
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Calculates total amount of autoloaded data.
|
||||
*
|
||||
* @since 6.6.0
|
||||
*
|
||||
* @return int Autoloaded data in bytes.
|
||||
*/
|
||||
public function get_autoloaded_options_size() {
|
||||
$alloptions = wp_load_alloptions();
|
||||
|
||||
$total_length = 0;
|
||||
|
||||
foreach ( $alloptions as $option_value ) {
|
||||
if ( is_array( $option_value ) || is_object( $option_value ) ) {
|
||||
$option_value = maybe_serialize( $option_value );
|
||||
}
|
||||
$total_length += strlen( (string) $option_value );
|
||||
}
|
||||
|
||||
return $total_length;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests the number of autoloaded options.
|
||||
*
|
||||
* @since 6.6.0
|
||||
*
|
||||
* @return array The test results.
|
||||
*/
|
||||
public function get_test_autoloaded_options() {
|
||||
$autoloaded_options_size = $this->get_autoloaded_options_size();
|
||||
$autoloaded_options_count = count( wp_load_alloptions() );
|
||||
|
||||
$base_description = __( 'Autoloaded options are configuration settings for plugins and themes that are automatically loaded with every page load in WordPress. Having too many autoloaded options can slow down your site.' );
|
||||
|
||||
$result = array(
|
||||
'label' => __( 'Autoloaded options are acceptable' ),
|
||||
'status' => 'good',
|
||||
'badge' => array(
|
||||
'label' => __( 'Performance' ),
|
||||
'color' => 'blue',
|
||||
),
|
||||
'description' => sprintf(
|
||||
/* translators: 1: Number of autoloaded options, 2: Autoloaded options size. */
|
||||
'<p>' . esc_html( $base_description ) . ' ' . __( 'Your site has %1$s autoloaded options (size: %2$s) in the options table, which is acceptable.' ) . '</p>',
|
||||
$autoloaded_options_count,
|
||||
size_format( $autoloaded_options_size )
|
||||
),
|
||||
'actions' => '',
|
||||
'test' => 'autoloaded_options',
|
||||
);
|
||||
|
||||
/**
|
||||
* Filters max bytes threshold to trigger warning in Site Health.
|
||||
*
|
||||
* @since 6.6.0
|
||||
*
|
||||
* @param int $limit Autoloaded options threshold size. Default 800000.
|
||||
*/
|
||||
$limit = apply_filters( 'site_status_autoloaded_options_size_limit', 800000 );
|
||||
|
||||
if ( $autoloaded_options_size < $limit ) {
|
||||
return $result;
|
||||
}
|
||||
|
||||
$result['status'] = 'critical';
|
||||
$result['label'] = __( 'Autoloaded options could affect performance' );
|
||||
$result['description'] = sprintf(
|
||||
/* translators: 1: Number of autoloaded options, 2: Autoloaded options size. */
|
||||
'<p>' . esc_html( $base_description ) . ' ' . __( 'Your site has %1$s autoloaded options (size: %2$s) in the options table, which could cause your site to be slow. You can review the options being autoloaded in your database and remove any options that are no longer needed by your site.' ) . '</p>',
|
||||
$autoloaded_options_count,
|
||||
size_format( $autoloaded_options_size )
|
||||
);
|
||||
|
||||
/**
|
||||
* Filters description to be shown on Site Health warning when threshold is met.
|
||||
*
|
||||
* @since 6.6.0
|
||||
*
|
||||
* @param string $description Description message when autoloaded options bigger than threshold.
|
||||
*/
|
||||
$result['description'] = apply_filters( 'site_status_autoloaded_options_limit_description', $result['description'] );
|
||||
|
||||
$result['actions'] = sprintf(
|
||||
/* translators: 1: HelpHub URL, 2: Link description. */
|
||||
'<p><a target="_blank" rel="noopener" href="%1$s">%2$s</a></p>',
|
||||
esc_url( __( 'https://developer.wordpress.org/advanced-administration/performance/optimization/#autoloaded-options' ) ),
|
||||
__( 'More info about optimizing autoloaded options' )
|
||||
);
|
||||
|
||||
/**
|
||||
* Filters actionable information to tackle the problem. It can be a link to an external guide.
|
||||
*
|
||||
* @since 6.6.0
|
||||
*
|
||||
* @param string $actions Call to Action to be used to point to the right direction to solve the issue.
|
||||
*/
|
||||
$result['actions'] = apply_filters( 'site_status_autoloaded_options_action_to_perform', $result['actions'] );
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a set of tests that belong to the site status page.
|
||||
*
|
||||
@@ -2739,10 +2734,6 @@ class WP_Site_Health {
|
||||
'label' => __( 'Database Server version' ),
|
||||
'test' => 'sql_server',
|
||||
),
|
||||
'utf8mb4_support' => array(
|
||||
'label' => __( 'MySQL utf8mb4 support' ),
|
||||
'test' => 'utf8mb4_support',
|
||||
),
|
||||
'ssl_support' => array(
|
||||
'label' => __( 'Secure communication' ),
|
||||
'test' => 'ssl_support',
|
||||
@@ -2780,6 +2771,10 @@ class WP_Site_Health {
|
||||
'label' => __( 'Available disk space' ),
|
||||
'test' => 'available_updates_disk_space',
|
||||
),
|
||||
'autoloaded_options' => array(
|
||||
'label' => __( 'Autoloaded options' ),
|
||||
'test' => 'autoloaded_options',
|
||||
),
|
||||
),
|
||||
'async' => array(
|
||||
'dotorg_communication' => array(
|
||||
@@ -3443,12 +3438,12 @@ class WP_Site_Health {
|
||||
* @since 6.1.0
|
||||
*
|
||||
* @return WP_Error|array {
|
||||
* Page cache detail or else a WP_Error if unable to determine.
|
||||
* Page cache detail or else a WP_Error if unable to determine.
|
||||
*
|
||||
* @type string $status Page cache status. Good, Recommended or Critical.
|
||||
* @type bool $advanced_cache_present Whether page cache plugin is available or not.
|
||||
* @type string[] $headers Client caching response headers detected.
|
||||
* @type float $response_time Response time of site.
|
||||
* @type string $status Page cache status. Good, Recommended or Critical.
|
||||
* @type bool $advanced_cache_present Whether page cache plugin is available or not.
|
||||
* @type string[] $headers Client caching response headers detected.
|
||||
* @type float $response_time Response time of site.
|
||||
* }
|
||||
*/
|
||||
private function get_page_cache_detail() {
|
||||
|
||||
@@ -27,8 +27,8 @@ class WP_Terms_List_Table extends WP_List_Table {
|
||||
*
|
||||
* @see WP_List_Table::__construct() for more information on default arguments.
|
||||
*
|
||||
* @global string $post_type
|
||||
* @global string $taxonomy
|
||||
* @global string $post_type Global post type.
|
||||
* @global string $taxonomy Global taxonomy.
|
||||
* @global string $action
|
||||
* @global object $tax
|
||||
*
|
||||
@@ -330,7 +330,8 @@ class WP_Terms_List_Table extends WP_List_Table {
|
||||
}
|
||||
|
||||
/**
|
||||
* @global string $taxonomy
|
||||
* @global string $taxonomy Global taxonomy.
|
||||
*
|
||||
* @param WP_Term $tag Term object.
|
||||
* @param int $level
|
||||
*/
|
||||
|
||||
@@ -36,7 +36,8 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {
|
||||
require ABSPATH . 'wp-admin/includes/theme-install.php';
|
||||
|
||||
global $tabs, $tab, $paged, $type, $theme_field_defaults;
|
||||
wp_reset_vars( array( 'tab' ) );
|
||||
|
||||
$tab = ! empty( $_REQUEST['tab'] ) ? sanitize_text_field( $_REQUEST['tab'] ) : '';
|
||||
|
||||
$search_terms = array();
|
||||
$search_string = '';
|
||||
|
||||
@@ -20,7 +20,6 @@ class WP_Upgrader_Skin {
|
||||
* Holds the upgrader data.
|
||||
*
|
||||
* @since 2.8.0
|
||||
*
|
||||
* @var WP_Upgrader
|
||||
*/
|
||||
public $upgrader;
|
||||
@@ -29,7 +28,6 @@ class WP_Upgrader_Skin {
|
||||
* Whether header is done.
|
||||
*
|
||||
* @since 2.8.0
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
public $done_header = false;
|
||||
@@ -38,7 +36,6 @@ class WP_Upgrader_Skin {
|
||||
* Whether footer is done.
|
||||
*
|
||||
* @since 2.8.0
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
public $done_footer = false;
|
||||
@@ -47,7 +44,6 @@ class WP_Upgrader_Skin {
|
||||
* Holds the result of an upgrade.
|
||||
*
|
||||
* @since 2.8.0
|
||||
*
|
||||
* @var string|bool|WP_Error
|
||||
*/
|
||||
public $result = false;
|
||||
@@ -56,7 +52,6 @@ class WP_Upgrader_Skin {
|
||||
* Holds the options of an upgrade.
|
||||
*
|
||||
* @since 2.8.0
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public $options = array();
|
||||
@@ -82,6 +77,8 @@ class WP_Upgrader_Skin {
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the relationship between the skin being used and the upgrader.
|
||||
*
|
||||
* @since 2.8.0
|
||||
*
|
||||
* @param WP_Upgrader $upgrader
|
||||
@@ -94,6 +91,8 @@ class WP_Upgrader_Skin {
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets up the strings used in the update process.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*/
|
||||
public function add_strings() {
|
||||
@@ -141,6 +140,8 @@ class WP_Upgrader_Skin {
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays the header before the update process.
|
||||
*
|
||||
* @since 2.8.0
|
||||
*/
|
||||
public function header() {
|
||||
@@ -153,6 +154,8 @@ class WP_Upgrader_Skin {
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays the footer following the update process.
|
||||
*
|
||||
* @since 2.8.0
|
||||
*/
|
||||
public function footer() {
|
||||
@@ -164,6 +167,8 @@ class WP_Upgrader_Skin {
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays an error message about the update.
|
||||
*
|
||||
* @since 2.8.0
|
||||
*
|
||||
* @param string|WP_Error $errors Errors.
|
||||
@@ -186,6 +191,8 @@ class WP_Upgrader_Skin {
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays a message about the update.
|
||||
*
|
||||
* @since 2.8.0
|
||||
* @since 5.9.0 Renamed `$string` (a PHP reserved keyword) to `$feedback` for PHP 8 named parameter support.
|
||||
*
|
||||
@@ -218,7 +225,7 @@ class WP_Upgrader_Skin {
|
||||
public function before() {}
|
||||
|
||||
/**
|
||||
* Performs and action following an update.
|
||||
* Performs an action following an update.
|
||||
*
|
||||
* @since 2.8.0
|
||||
*/
|
||||
@@ -262,11 +269,15 @@ class WP_Upgrader_Skin {
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays the header before the bulk update process.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*/
|
||||
public function bulk_header() {}
|
||||
|
||||
/**
|
||||
* Displays the footer following the bulk update process.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*/
|
||||
public function bulk_footer() {}
|
||||
|
||||
@@ -196,6 +196,7 @@ class WP_Upgrader {
|
||||
/* translators: %s: Directory name. */
|
||||
$this->strings['fs_no_folder'] = __( 'Unable to locate needed folder (%s).' );
|
||||
|
||||
$this->strings['no_package'] = __( 'Package not available.' );
|
||||
$this->strings['download_failed'] = __( 'Download failed.' );
|
||||
$this->strings['installing_package'] = __( 'Installing the latest version…' );
|
||||
$this->strings['no_files'] = __( 'The package contains no files.' );
|
||||
@@ -527,7 +528,10 @@ class WP_Upgrader {
|
||||
set_time_limit( 300 );
|
||||
}
|
||||
|
||||
if ( empty( $source ) || empty( $destination ) ) {
|
||||
if (
|
||||
( ! is_string( $source ) || '' === $source || trim( $source ) !== $source ) ||
|
||||
( ! is_string( $destination ) || '' === $destination || trim( $destination ) !== $destination )
|
||||
) {
|
||||
return new WP_Error( 'bad_request', $this->strings['bad_request'] );
|
||||
}
|
||||
$this->skin->feedback( 'installing_package' );
|
||||
@@ -824,7 +828,7 @@ class WP_Upgrader {
|
||||
* Download the package. Note: If the package is the full path
|
||||
* to an existing local file, it will be returned untouched.
|
||||
*/
|
||||
$download = $this->download_package( $options['package'], true, $options['hook_extra'] );
|
||||
$download = $this->download_package( $options['package'], false, $options['hook_extra'] );
|
||||
|
||||
/*
|
||||
* Allow for signature soft-fail.
|
||||
@@ -897,6 +901,7 @@ class WP_Upgrader {
|
||||
$this->skin->set_result( $result );
|
||||
|
||||
if ( is_wp_error( $result ) ) {
|
||||
// An automatic plugin update will have already performed its rollback.
|
||||
if ( ! empty( $options['hook_extra']['temp_backup'] ) ) {
|
||||
$this->temp_restores[] = $options['hook_extra']['temp_backup'];
|
||||
|
||||
@@ -905,8 +910,12 @@ class WP_Upgrader {
|
||||
* Actions running on `shutdown` are immune to PHP timeouts,
|
||||
* so in case the failure was due to a PHP timeout,
|
||||
* it will still be able to properly restore the previous version.
|
||||
*
|
||||
* Zero arguments are accepted as a string can sometimes be passed
|
||||
* internally during actions, causing an error because
|
||||
* `WP_Upgrader::restore_temp_backup()` expects an array.
|
||||
*/
|
||||
add_action( 'shutdown', array( $this, 'restore_temp_backup' ) );
|
||||
add_action( 'shutdown', array( $this, 'restore_temp_backup' ), 10, 0 );
|
||||
}
|
||||
$this->skin->error( $result );
|
||||
|
||||
@@ -979,15 +988,25 @@ class WP_Upgrader {
|
||||
*/
|
||||
public function maintenance_mode( $enable = false ) {
|
||||
global $wp_filesystem;
|
||||
|
||||
if ( ! $wp_filesystem ) {
|
||||
require_once ABSPATH . 'wp-admin/includes/file.php';
|
||||
WP_Filesystem();
|
||||
}
|
||||
|
||||
$file = $wp_filesystem->abspath() . '.maintenance';
|
||||
if ( $enable ) {
|
||||
$this->skin->feedback( 'maintenance_start' );
|
||||
if ( ! wp_doing_cron() ) {
|
||||
$this->skin->feedback( 'maintenance_start' );
|
||||
}
|
||||
// Create maintenance file to signal that we are upgrading.
|
||||
$maintenance_string = '<?php $upgrading = ' . time() . '; ?>';
|
||||
$wp_filesystem->delete( $file );
|
||||
$wp_filesystem->put_contents( $file, $maintenance_string, FS_CHMOD_FILE );
|
||||
} elseif ( ! $enable && $wp_filesystem->exists( $file ) ) {
|
||||
$this->skin->feedback( 'maintenance_end' );
|
||||
if ( ! wp_doing_cron() ) {
|
||||
$this->skin->feedback( 'maintenance_end' );
|
||||
}
|
||||
$wp_filesystem->delete( $file );
|
||||
}
|
||||
}
|
||||
@@ -1012,7 +1031,7 @@ class WP_Upgrader {
|
||||
$lock_option = $lock_name . '.lock';
|
||||
|
||||
// Try to lock.
|
||||
$lock_result = $wpdb->query( $wpdb->prepare( "INSERT IGNORE INTO `$wpdb->options` ( `option_name`, `option_value`, `autoload` ) VALUES (%s, %s, 'no') /* LOCK */", $lock_option, time() ) );
|
||||
$lock_result = $wpdb->query( $wpdb->prepare( "INSERT IGNORE INTO `$wpdb->options` ( `option_name`, `option_value`, `autoload` ) VALUES (%s, %s, 'off') /* LOCK */", $lock_option, time() ) );
|
||||
|
||||
if ( ! $lock_result ) {
|
||||
$lock_result = get_option( $lock_option );
|
||||
@@ -1129,17 +1148,33 @@ class WP_Upgrader {
|
||||
* Restores the plugin or theme from temporary backup.
|
||||
*
|
||||
* @since 6.3.0
|
||||
* @since 6.6.0 Added the `$temp_backups` parameter.
|
||||
*
|
||||
* @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
|
||||
*
|
||||
* @param array[] $temp_backups {
|
||||
* Optional. An array of temporary backups.
|
||||
*
|
||||
* @type array ...$0 {
|
||||
* Information about the backup.
|
||||
*
|
||||
* @type string $dir The temporary backup location in the upgrade-temp-backup directory.
|
||||
* @type string $slug The item's slug.
|
||||
* @type string $src The directory where the original is stored. For example, `WP_PLUGIN_DIR`.
|
||||
* }
|
||||
* }
|
||||
* @return bool|WP_Error True on success, false on early exit, otherwise WP_Error.
|
||||
*/
|
||||
public function restore_temp_backup() {
|
||||
public function restore_temp_backup( array $temp_backups = array() ) {
|
||||
global $wp_filesystem;
|
||||
|
||||
$errors = new WP_Error();
|
||||
|
||||
foreach ( $this->temp_restores as $args ) {
|
||||
if ( empty( $temp_backups ) ) {
|
||||
$temp_backups = $this->temp_restores;
|
||||
}
|
||||
|
||||
foreach ( $temp_backups as $args ) {
|
||||
if ( empty( $args['slug'] ) || empty( $args['src'] ) || empty( $args['dir'] ) ) {
|
||||
return false;
|
||||
}
|
||||
@@ -1182,17 +1217,33 @@ class WP_Upgrader {
|
||||
* Deletes a temporary backup.
|
||||
*
|
||||
* @since 6.3.0
|
||||
* @since 6.6.0 Added the `$temp_backups` parameter.
|
||||
*
|
||||
* @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
|
||||
*
|
||||
* @param array[] $temp_backups {
|
||||
* Optional. An array of temporary backups.
|
||||
*
|
||||
* @type array ...$0 {
|
||||
* Information about the backup.
|
||||
*
|
||||
* @type string $dir The temporary backup location in the upgrade-temp-backup directory.
|
||||
* @type string $slug The item's slug.
|
||||
* @type string $src The directory where the original is stored. For example, `WP_PLUGIN_DIR`.
|
||||
* }
|
||||
* }
|
||||
* @return bool|WP_Error True on success, false on early exit, otherwise WP_Error.
|
||||
*/
|
||||
public function delete_temp_backup() {
|
||||
public function delete_temp_backup( array $temp_backups = array() ) {
|
||||
global $wp_filesystem;
|
||||
|
||||
$errors = new WP_Error();
|
||||
|
||||
foreach ( $this->temp_backups as $args ) {
|
||||
if ( empty( $temp_backups ) ) {
|
||||
$temp_backups = $this->temp_backups;
|
||||
}
|
||||
|
||||
foreach ( $temp_backups as $args ) {
|
||||
if ( empty( $args['slug'] ) || empty( $args['dir'] ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -401,7 +401,7 @@ function export_wp( $args = array() ) {
|
||||
*
|
||||
* @param int[] $post_ids Optional. Array of post IDs to filter the query by.
|
||||
*/
|
||||
function wxr_authors_list( array $post_ids = null ) {
|
||||
function wxr_authors_list( ?array $post_ids = null ) {
|
||||
global $wpdb;
|
||||
|
||||
if ( ! empty( $post_ids ) ) {
|
||||
|
||||
@@ -326,7 +326,7 @@ function wp_print_file_editor_templates() {
|
||||
printf(
|
||||
/* translators: %s: Documentation URL. */
|
||||
__( 'You need to make this file writable before you can save your changes. See <a href="%s">Changing File Permissions</a> for more information.' ),
|
||||
__( 'https://wordpress.org/documentation/article/changing-file-permissions/' )
|
||||
__( 'https://developer.wordpress.org/advanced-administration/server/file-permissions/' )
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
@@ -1089,7 +1089,7 @@ function _wp_handle_upload( &$file, $overrides, $time, $action ) {
|
||||
* @param array|false $overrides Optional. An associative array of names => values
|
||||
* to override default variables. Default false.
|
||||
* See _wp_handle_upload() for accepted values.
|
||||
* @param string $time Optional. Time formatted in 'yyyy/mm'. Default null.
|
||||
* @param string|null $time Optional. Time formatted in 'yyyy/mm'. Default null.
|
||||
* @return array See _wp_handle_upload() for return value.
|
||||
*/
|
||||
function wp_handle_upload( &$file, $overrides = false, $time = null ) {
|
||||
@@ -1120,7 +1120,7 @@ function wp_handle_upload( &$file, $overrides = false, $time = null ) {
|
||||
* @param array|false $overrides Optional. An associative array of names => values
|
||||
* to override default variables. Default false.
|
||||
* See _wp_handle_upload() for accepted values.
|
||||
* @param string $time Optional. Time formatted in 'yyyy/mm'. Default null.
|
||||
* @param string|null $time Optional. Time formatted in 'yyyy/mm'. Default null.
|
||||
* @return array See _wp_handle_upload() for return value.
|
||||
*/
|
||||
function wp_handle_sideload( &$file, $overrides = false, $time = null ) {
|
||||
@@ -1155,7 +1155,7 @@ function wp_handle_sideload( &$file, $overrides = false, $time = null ) {
|
||||
function download_url( $url, $timeout = 300, $signature_verification = false ) {
|
||||
// WARNING: The file is not automatically deleted, the script must delete or move the file.
|
||||
if ( ! $url ) {
|
||||
return new WP_Error( 'http_no_url', __( 'Invalid URL Provided.' ) );
|
||||
return new WP_Error( 'http_no_url', __( 'No URL Provided.' ) );
|
||||
}
|
||||
|
||||
$url_path = parse_url( $url, PHP_URL_PATH );
|
||||
@@ -2249,7 +2249,7 @@ function WP_Filesystem( $args = false, $context = false, $allow_relaxed_file_own
|
||||
* The return value can be overridden by defining the `FS_METHOD` constant in `wp-config.php`,
|
||||
* or filtering via {@see 'filesystem_method'}.
|
||||
*
|
||||
* @link https://wordpress.org/documentation/article/editing-wp-config-php/#wordpress-upgrade-constants
|
||||
* @link https://developer.wordpress.org/advanced-administration/wordpress/wp-config/#wordpress-upgrade-constants
|
||||
*
|
||||
* Plugins may define a custom transport handler, See WP_Filesystem().
|
||||
*
|
||||
@@ -2664,7 +2664,7 @@ function request_filesystem_credentials( $form_post, $type = '', $error = false,
|
||||
<p class="request-filesystem-credentials-action-buttons">
|
||||
<?php wp_nonce_field( 'filesystem-credentials', '_fs_nonce', false, true ); ?>
|
||||
<button class="button cancel-button" data-js-action="close" type="button"><?php _e( 'Cancel' ); ?></button>
|
||||
<?php submit_button( __( 'Proceed' ), '', 'upgrade', false ); ?>
|
||||
<?php submit_button( __( 'Proceed' ), 'primary', 'upgrade', false ); ?>
|
||||
</p>
|
||||
</div>
|
||||
</form>
|
||||
@@ -2795,7 +2795,7 @@ function wp_opcache_invalidate_directory( $dir ) {
|
||||
__( '%s expects a non-empty string.' ),
|
||||
'<code>wp_opcache_invalidate_directory()</code>'
|
||||
);
|
||||
trigger_error( $error_message );
|
||||
wp_trigger_error( '', $error_message );
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -159,8 +159,8 @@ function wp_image_editor( $post_id, $msg = false ) {
|
||||
<label for="imgedit-scale-height-<?php echo $post_id; ?>" class="screen-reader-text"><?php _e( 'scale height' ); ?></label>
|
||||
<input type="number" step="1" min="0" max="<?php echo isset( $meta['height'] ) ? $meta['height'] : ''; ?>" aria-describedby="imgedit-scale-warn-<?php echo $post_id; ?>" id="imgedit-scale-height-<?php echo $post_id; ?>" onkeyup="imageEdit.scaleChanged(<?php echo $post_id; ?>, 0, this)" onblur="imageEdit.scaleChanged(<?php echo $post_id; ?>, 0, this)" value="<?php echo isset( $meta['height'] ) ? $meta['height'] : 0; ?>" />
|
||||
<button id="imgedit-scale-button" type="button" onclick="imageEdit.action(<?php echo "$post_id, '$nonce'"; ?>, 'scale')" class="button button-primary"><?php esc_html_e( 'Scale' ); ?></button>
|
||||
<span class="imgedit-scale-warn" id="imgedit-scale-warn-<?php echo $post_id; ?>"><span class="dashicons dashicons-warning" aria-hidden="true"></span><?php esc_html_e( 'Images cannot be scaled to a size larger than the original.' ); ?></span>
|
||||
</div>
|
||||
<span class="imgedit-scale-warn" id="imgedit-scale-warn-<?php echo $post_id; ?>"><span class="dashicons dashicons-warning" aria-hidden="true"></span><?php esc_html_e( 'Images cannot be scaled to a size larger than the original.' ); ?></span>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
@@ -736,7 +736,7 @@ function image_edit_apply_changes( $image, $changes ) {
|
||||
$h = $size['height'];
|
||||
|
||||
$scale = 1 / _image_get_preview_ratio( $w, $h ); // Discard preview scaling.
|
||||
$image->crop( $sel->x * $scale, $sel->y * $scale, $sel->w * $scale, $sel->h * $scale );
|
||||
$image->crop( (int) ( $sel->x * $scale ), (int) ( $sel->y * $scale ), (int) ( $sel->w * $scale ), (int) ( $sel->h * $scale ) );
|
||||
} else {
|
||||
$scale = 1 / _image_get_preview_ratio( imagesx( $image ), imagesy( $image ) ); // Discard preview scaling.
|
||||
$image = _crop_image_resource( $image, $sel->x * $scale, $sel->y * $scale, $sel->w * $scale, $sel->h * $scale );
|
||||
|
||||
@@ -1664,7 +1664,8 @@ function get_media_item( $attachment_id, $args = null ) {
|
||||
$meta = wp_get_attachment_metadata( $post->ID );
|
||||
|
||||
if ( isset( $meta['width'], $meta['height'] ) ) {
|
||||
$media_dims .= "<span id='media-dims-$post->ID'>{$meta['width']} × {$meta['height']}</span> ";
|
||||
/* translators: 1: A number of pixels wide, 2: A number of pixels tall. */
|
||||
$media_dims .= "<span id='media-dims-$post->ID'>" . sprintf( __( '%1$s by %2$s pixels' ), $meta['width'], $meta['height'] ) . '</span>';
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3240,7 +3241,8 @@ function edit_form_image_editor( $post ) {
|
||||
printf(
|
||||
/* translators: 1: Link to tutorial, 2: Additional link attributes, 3: Accessibility text. */
|
||||
__( '<a href="%1$s" %2$s>Learn how to describe the purpose of the image%3$s</a>. Leave empty if the image is purely decorative.' ),
|
||||
esc_url( 'https://www.w3.org/WAI/tutorials/images/decision-tree' ),
|
||||
/* translators: Localized tutorial, if one exists. W3C Web Accessibility Initiative link has list of existing translations. */
|
||||
esc_url( __( 'https://www.w3.org/WAI/tutorials/images/decision-tree/' ) ),
|
||||
'target="_blank" rel="noopener"',
|
||||
sprintf(
|
||||
'<span class="screen-reader-text"> %s</span>',
|
||||
@@ -3265,7 +3267,14 @@ function edit_form_image_editor( $post ) {
|
||||
'textarea_name' => 'content',
|
||||
'textarea_rows' => 5,
|
||||
'media_buttons' => false,
|
||||
'tinymce' => false,
|
||||
/**
|
||||
* Filters the TinyMCE argument for the media description field on the attachment details screen.
|
||||
*
|
||||
* @since 6.6.0
|
||||
*
|
||||
* @param bool $tinymce Whether to activate TinyMCE in media description field. Default false.
|
||||
*/
|
||||
'tinymce' => apply_filters( 'activate_tinymce_for_media_description', false ),
|
||||
'quicktags' => $quicktags_settings,
|
||||
);
|
||||
|
||||
@@ -3306,7 +3315,8 @@ function attachment_submitbox_metadata() {
|
||||
$meta = wp_get_attachment_metadata( $attachment_id );
|
||||
|
||||
if ( isset( $meta['width'], $meta['height'] ) ) {
|
||||
$media_dims .= "<span id='media-dims-$attachment_id'>{$meta['width']} × {$meta['height']}</span> ";
|
||||
/* translators: 1: A number of pixels wide, 2: A number of pixels tall. */
|
||||
$media_dims .= "<span id='media-dims-$attachment_id'>" . sprintf( __( '%1$s by %2$s pixels' ), $meta['width'], $meta['height'] ) . '</span>';
|
||||
}
|
||||
/** This filter is documented in wp-admin/includes/media.php */
|
||||
$media_dims = apply_filters( 'media_meta', $media_dims, $post );
|
||||
@@ -3441,6 +3451,9 @@ function attachment_submitbox_metadata() {
|
||||
echo ' ' . strtoupper( esc_html( $meta['bitrate_mode'] ) );
|
||||
}
|
||||
break;
|
||||
case 'length_formatted':
|
||||
echo human_readable_duration( $meta['length_formatted'] );
|
||||
break;
|
||||
default:
|
||||
echo esc_html( $meta[ $key ] );
|
||||
break;
|
||||
|
||||
@@ -1354,7 +1354,7 @@ function link_xfn_meta_box( $link ) {
|
||||
<input class="valinp" type="radio" name="friendship" value="friend" id="friend" <?php xfn_check( 'friendship', 'friend' ); ?> /> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'friend' ); ?>
|
||||
</label>
|
||||
<label for="friendship">
|
||||
<input name="friendship" type="radio" class="valinp" value="" id="friendship" <?php xfn_check( 'friendship' ); ?> /> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'none' ); ?>
|
||||
<input name="friendship" type="radio" class="valinp" value="" id="friendship" <?php xfn_check( 'friendship' ); ?> /> <?php /* translators: xfn (friendship relation): http://gmpg.org/xfn/ */ _x( 'none', 'Type of relation' ); ?>
|
||||
</label>
|
||||
</fieldset></td>
|
||||
</tr>
|
||||
@@ -1405,7 +1405,7 @@ function link_xfn_meta_box( $link ) {
|
||||
<input class="valinp" type="radio" name="geographical" value="neighbor" id="neighbor" <?php xfn_check( 'geographical', 'neighbor' ); ?> /> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'neighbor' ); ?>
|
||||
</label>
|
||||
<label for="geographical">
|
||||
<input class="valinp" type="radio" name="geographical" value="" id="geographical" <?php xfn_check( 'geographical' ); ?> /> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'none' ); ?>
|
||||
<input class="valinp" type="radio" name="geographical" value="" id="geographical" <?php xfn_check( 'geographical' ); ?> /> <?php /* translators: xfn (geographical relation): http://gmpg.org/xfn/ */ _x( 'none', 'Type of relation' ); ?>
|
||||
</label>
|
||||
</fieldset></td>
|
||||
</tr>
|
||||
@@ -1434,7 +1434,7 @@ function link_xfn_meta_box( $link ) {
|
||||
<input class="valinp" type="radio" name="family" value="spouse" id="spouse" <?php xfn_check( 'family', 'spouse' ); ?> /> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'spouse' ); ?>
|
||||
</label>
|
||||
<label for="family">
|
||||
<input class="valinp" type="radio" name="family" value="" id="family" <?php xfn_check( 'family' ); ?> /> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'none' ); ?>
|
||||
<input class="valinp" type="radio" name="family" value="" id="family" <?php xfn_check( 'family' ); ?> /> <?php /* translators: xfn (family relation): http://gmpg.org/xfn/ */ _x( 'none', 'Type of relation' ); ?>
|
||||
</label>
|
||||
</fieldset></td>
|
||||
</tr>
|
||||
@@ -1679,13 +1679,15 @@ function register_and_do_post_meta_boxes( $post ) {
|
||||
add_meta_box( 'commentstatusdiv', __( 'Discussion' ), 'post_comment_status_meta_box', null, 'normal', 'core', array( '__back_compat_meta_box' => true ) );
|
||||
}
|
||||
|
||||
$stati = get_post_stati( array( 'public' => true ) );
|
||||
if ( empty( $stati ) ) {
|
||||
$stati = array( 'publish' );
|
||||
}
|
||||
$stati[] = 'private';
|
||||
$statuses = get_post_stati( array( 'public' => true ) );
|
||||
|
||||
if ( in_array( get_post_status( $post ), $stati, true ) ) {
|
||||
if ( empty( $statuses ) ) {
|
||||
$statuses = array( 'publish' );
|
||||
}
|
||||
|
||||
$statuses[] = 'private';
|
||||
|
||||
if ( in_array( get_post_status( $post ), $statuses, true ) ) {
|
||||
/*
|
||||
* If the post type support comments, or the post has comments,
|
||||
* allow the Comments meta box.
|
||||
|
||||
@@ -556,7 +556,7 @@ function wp_print_plugin_file_tree( $tree, $label = '', $level = 2, $size = 1, $
|
||||
}
|
||||
|
||||
/**
|
||||
* Flushes rewrite rules if siteurl, home or page_on_front changed.
|
||||
* Flushes rewrite rules if `siteurl`, `home` or `page_on_front` changed.
|
||||
*
|
||||
* @since 2.1.0
|
||||
*
|
||||
@@ -575,13 +575,12 @@ function update_home_siteurl( $old_value, $value ) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Resets global variables based on $_GET and $_POST.
|
||||
* Resets global variables based on `$_GET` and `$_POST`.
|
||||
*
|
||||
* This function resets global variables based on the names passed
|
||||
* in the $vars array to the value of $_POST[$var] or $_GET[$var] or ''
|
||||
* if neither is defined.
|
||||
* in the `$vars` array to the value of `$_POST[$var]` or `$_GET[$var]` or an
|
||||
* empty string if neither is defined.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*
|
||||
@@ -755,7 +754,7 @@ function set_screen_options() {
|
||||
/**
|
||||
* Filters a screen option value before it is set.
|
||||
*
|
||||
* The filter can also be used to modify non-standard [items]_per_page
|
||||
* The filter can also be used to modify non-standard `[items]_per_page`
|
||||
* settings. See the parent function for a full list of standard options.
|
||||
*
|
||||
* Returning false from the filter will skip saving the current option.
|
||||
@@ -1305,7 +1304,7 @@ function wp_refresh_metabox_loader_nonces( $response, $data ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the latest Heartbeat and REST-API nonce to the Heartbeat response.
|
||||
* Adds the latest Heartbeat and REST API nonce to the Heartbeat response.
|
||||
*
|
||||
* @since 5.0.0
|
||||
*
|
||||
@@ -1399,11 +1398,11 @@ function wp_admin_canonical_url() {
|
||||
$filtered_url = remove_query_arg( $removable_query_args, $current_url );
|
||||
|
||||
/**
|
||||
* Filters the admin canonical url value.
|
||||
* Filters the admin canonical URL value.
|
||||
*
|
||||
* @since 6.5.0
|
||||
*
|
||||
* @param string $filtered_url The admin canonical url value.
|
||||
* @param string $filtered_url The admin canonical URL value.
|
||||
*/
|
||||
$filtered_url = apply_filters( 'wp_admin_canonical_url', $filtered_url );
|
||||
?>
|
||||
@@ -1647,8 +1646,8 @@ function wp_check_php_version() {
|
||||
|
||||
$response['is_lower_than_future_minimum'] = false;
|
||||
|
||||
// The minimum supported PHP version will be updated to 7.2. Check if the current version is lower.
|
||||
if ( version_compare( $version, '7.2', '<' ) ) {
|
||||
// The minimum supported PHP version will be updated to 7.4 in the future. Check if the current version is lower.
|
||||
if ( version_compare( $version, '7.4', '<' ) ) {
|
||||
$response['is_lower_than_future_minimum'] = true;
|
||||
|
||||
// Force showing of warnings.
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user