Welcome back to a new issue of Week in Core Core is the set of software required to run WordPress. The Core Development Team builds WordPress.. Let’s take a look at what changed on Trac An open source project by Edgewall Software that serves as a bug tracker and project management tool for WordPress. between June 21 and June 28, 2021.
- 60 commits
- 64 contributors
- 79 tickets created
- 8 tickets reopened
- 78 tickets closed
Please note that the WordPress Core team released WordPress 5.8 beta 3 and beta 4 last week. Everyone is welcome to help testing the next major release A release, identified by the first two numbers (3.6), which is the focus of a full release cycle and feature development. WordPress uses decimaling count for major release versions, so 2.8, 2.9, 3.0, and 3.1 are sequential and comparable in scope. of WordPress 🌟
Ticket Created for both bug reports and feature development on the bug tracker. numbers are based on the Trac timeline for the period above. The following is a summary of commits, organized by component and/or focus.
Code changes
Build/Test tools
- Add the
regenerator-runtime
script as a dependency to wp-polyfill
– #52941 - Correct PHPUnit version requirement in tests using
::createPartialMock()
– #52625 - Replace
assertEquals()
with assertSameSets()
in text widget A WordPress Widget is a small block that performs a specific function. You can add these widgets in sidebars also known as widget-ready areas on your web page. WordPress widgets were originally created to provide a simple and easy-to-use way of giving design and structure control of the WordPress theme to the user. tests – #52482, #52625 - Require PHPUnit >= 6 in tests using
::createPartialMock()
– #52625 - Use
assertSame()
in _wp_to_kebab_case()
tests – #52482, #52625, #53397 - Use more appropriate assertions in a few tests – #52625
Bundled Themes
- Improve display of blocks in widget areas – #53422
- Improve Gutenberg The Gutenberg project is the new Editor Interface for WordPress. The editor improves the process and experience of creating new content, making writing rich content much simpler. It uses ‘blocks’ to add richness rather than shortcodes, custom HTML etc. https://wordpress.org/gutenberg/ check before activating an FSE theme – #53410
- Prevent a Full Site Editing theme from being activated when Gutenberg is not active – #53410
- Remove mention of “FSE” in Core – #53497
- Remove unexpected border around the Theme Details button – #53473
- Twenty Nineteen: Update margins on full- and wide-aligned blocks in the editor – #53428
- Twenty Thirteen: Improve the display of the Query Loop The Loop is PHP code used by WordPress to display posts. Using The Loop, WordPress processes each post to be displayed on the current page, and formats it according to how it matches specified criteria within The Loop tags. Any HTML or PHP code in the Loop will be processed on each post. https://codex.wordpress.org/The_Loop. block Block is the abstract term used to describe units of markup that, composed together, form the content or layout of a webpage using the WordPress editor. The idea combines concepts of what in the past may have achieved with shortcodes, custom HTML, and embed discovery into a single consistent API and user experience. – #53438
- Twenty Twenty-One: Add margins around content in Post Template block – #53389, #53398
- Twenty Twenty-One: Add spacing around Query block when there is a background color – #53398
- Twenty Twenty-One: Use the theme version when enqueueing theme assets – #53502
- Twenty Twenty: Remove extra margin within the Query Loop block – #53482
Coding standards
- Apply an alignment fix from running
composer format
– #53481 - Fix WPCS A public benefit corporation and a subsidiary of the WordPress Foundation, established in 2016. issues in [51227] – #53475
- Use a consistent check for parent items in
WP_Walker
– #53474
Docs
- Document
api_version
and variations
properties in WP_Block_Type::__construct()
– #53518 - Fix typo in
widgets-block-editor
feature documentation – #53424 - Remove inaccurate
@since
tag A directory in Subversion. WordPress uses tags to store a single snapshot of a version (3.6, 3.6.1, etc.), the common convention of tags in version control systems. (Not to be confused with post tags.) – #53461, #50105 - Shorten the copyright notice for the
WP_REST_Sidebars_Controller
class – #41683 - Update documentation for
WP_Widget_Block
per the documentation standards – #52628, #53461 - Various docblock (phpdoc, xref, inline docs) corrections for code added in 5.8 – #53461
- Various filter Filters are one of the two types of Hooks https://codex.wordpress.org/Plugin_API/Hooks. They provide a way for functions to modify data of other functions. They are the counterpart to Actions. Unlike Actions, filters are meant to work in an isolated manner, and should never have side effects such as affecting global variables and output. docblock improvements – #52920
Editor
- Allow
custom-units
to be an array – #53472 - Correct variable names in
get_block_editor_settings()
– #53458 - Ports theme.json JSON, or JavaScript Object Notation, is a minimal, readable format for structuring data. It is used primarily to transmit data between a server and web application, as an alternative to XML. changes for beta A pre-release of software that is given out to a large group of users to trial under real conditions. Beta versions have gone through alpha testing in-house and are generally fairly close in look, feel and function to the final product; however, design changes often occur as part of the process. 3 – #53397
- Do not load a default font family for themes with theme.json
- Move caching to endpoint for unique responses – #53435
- Package updates for Beta 3 – #53397
- Package updates including fixes from Gutenberg for WordPress 5.8 RC1 – #53397
- Remove empty
blocks/query-loop
directory – #52991 - Send locale A locale is a combination of language and regional dialect. Usually locales correspond to countries, as is the case with Portuguese (Portugal) and Portuguese (Brazil). Other examples of locales include Canadian English and U.S. English., version with remote pattern requests – #53435
- Update the packages with a number of fixes targeted for Beta 4 – #53397
General
- Ensure
svn:eol-style
is consistently set for all recently added files – #53528
Media
- Add lazy-loading support to block-based widgets – #53463, #53464
- Correct undefined variable in wp_ajax_query_attachments – #50105
- Improve upload page media item layout on smaller screens – #51754
- Prevent uploading and show an error message when the server doesn’t support editing of WebP files and image sub-sizes cannot be created – #53475
- Prevent uploading and show an error message when the server doesn’t support editing of WebP images, take II. Add new, better error message for it – #53475
- Revert r51211 to restore
ms-files.php
assets – #53492, #53475
REST API The REST API is an acronym for the RESTful Application Program Interface (API) that uses HTTP requests to GET, PUT, POST and DELETE data. It is how the front end of an application (think “phone app” or “website”) can communicate with the data store (think “database” or “file system”) https://developer.wordpress.org/rest-api/.
- Include the sidebar A sidebar in WordPress is referred to a widget-ready area used by WordPress themes to display information that is not a part of the main content. It is not always a vertical column on the side. It can be a horizontal rectangle below or above the content area, footer, header, or any where in the theme. ID when saving a widget – #53452
- Retrieve latest widgets before loading sidebars – #53489
Site Health
- Add a unique wrapper for dashboard widget content – #53521
Widgets
- Fix non-multi widgets not appearing in wp_inactive_widgets – #53534
- Add editor styles to the widgets block editor – #53344. – #53388
- Add missing
label
and description
to Customizer Tool built into WordPress core that hooks into most modern themes. You can use it to preview and modify many of your site’s appearance settings. controls – #53487 - Add support for the Widgets Editor on
after_setup_theme
instead of widgets_init
– #53424 - Avoid a TypeError when adding a widget in the Customizer – #53488, #53421, #53419
- Fix an “Invalid A resolution on the bug tracker (and generally common in software development, sometimes also notabug) that indicates the ticket is not a bug, is a support request, or is generally invalid. value” warning when adding a new widget in the Customizer – #53479
- Fix widget preview not working if widget registered via a instance
- Remove unnecessary gutenberg_ functions – #53441
- Stop loading
wp-editor
and the Block Directory assets on the widgets screen – #53437, #53397
Props
Thanks to the 64 people who contributed to WordPress Core on Trac last week: @noisysocks (10), @desrosj (9), @ryelle (7), @hellofromTonya (5), @nosolosw (4), @zieladam (4), @SergeyBiryukov (4), @spacedmonkey (4), @aristath (3), @scruffian (3), @peterwilsoncc (3), @azaozz (3), @audrasjb (3), @gziolo (3), @johnbillion (3), @walbo (3), @caseymilne (3), @youknowriad (2), @jorbin (2), @Mamaduka (2), @dd32 (2), @joedolson (2), @kevin940726 (2), @jamesros161 (2), @chanthaboune (2), @timothyblynjacobs (2), @jorgefilipecosta (2), @marybaum (1), @ocean90 (1), @daisyo (1), @tellyworth (1), @sumaiyasiddika (1), @danieldudzic (1), @mkaz (1), @Presskopp (1), @joen (1), @sabernhardt (1), @andraganescu (1), @sunxiyuan (1), @isabel_brison (1), @kraftner (1), @onemaggie (1), @jffng (1), @otto42 (1), @Boniu91 (1), @Clorith (1), @alanjacobmathew (1), @mbabker (1), @ntsekouras (1), @strategio (1), @poena (1), @naoki0h (1), @ixkaito (1), @antpb (1), @aleperez92 (1), @iandunn (1), @barry (1), @mukesh27 (1), @herregroen (1), @jeherve (1), @hellofromtonya (1), @adamsilverstein (1), @cbringmann (1), and @AlePerez92 (1).
Congrats and welcome to our 3 new contributors of the week! @sumaiyasiddika, @sunxiyuan, and @alanjacobmathew ♥️
Core committers: @desrosj (24), @sergeybiryukov (11), @ryelle (4), @youknowriad (3), @noisysocks (3), @iandunn (3), @jorbin (2), @azaozz (2), @jorgefilipecosta (2), @clorith (1), @timothyblynjacobs (1), @joedolson (1), @flixos90 (1), @peterwilsoncc (1), and @antpb (1).
#5-8, #week-in-core