A Week in Core – December 20, 2021

Welcome back to a new issue of Week in CoreCore 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 TracTrac An open source project by Edgewall Software that serves as a bug tracker and project management tool for WordPress. between December 13 and December 20, 2021.

  • 31 commits
  • 44 contributors
  • 57 tickets created
  • 6 tickets reopened
  • 42 tickets closed

The Core team is currently working on the next major release, WordPress 5.9, and the beta 3 was released last week 🛠

Ticketticket 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

  • Reduce the use of unnecessary randomness in tests – #37371
  • Remove the assertion in filter_rest_url_for_leading_slash()#54661
  • Add an assertion to test the WP_REST_Server::add_site_logo_to_index() method – #53516, #53363
  • Add unit tests for theme features that blockBlock 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. themes should support by default – #54597
  • Fix typo in a data provider name – #53363
  • Fix typo in a test method name – #53363
  • Mock the HTTPHTTP HTTP is an acronym for Hyper Text Transfer Protocol. HTTP is the underlying protocol used by the World Wide Web and this protocol defines how messages are formatted and transmitted, and what actions Web servers and browsers should take in response to various commands. request response in download_url() tests – #54420, #53363
  • Move the tests for theme features that block themes should support by default to a more appropriate place – #54597
  • Use shared fixtures in block theme tests – #53363

Bundled Themes

  • Twenty Twenty-Two: Sync updates from GitHubGitHub GitHub is a website that offers online implementation of git repositories that can easily be shared, copied and modified by other developers. Public repositories are free to host, private repositories require a paid subscription. GitHub introduced the concept of the ‘pull request’ where code changes done in branches by contributors can be reviewed and discussed before being merged be the repository owner. https://github.com/ for BetaBeta 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 – #54318
  • Twenty Twenty-Two: Sync updates from GitHub for Beta 4 – #54318


  • Customize: Overlay incompatible banner for block themes – #54549


  • Correct and improve documentation for properties and parameters in wpdb#53399


  • Capitalize “ID”, when referring to a widgetWidget 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. ID or sidebarSidebar 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, in a more consistent way – #53399
  • Typo correction in TinyMCE related JSJS JavaScript, a web scripting language typically executed in the browser. Often used for advanced user interfaces and behaviors. file – #53399
  • Typo correction in wp_dropdown_languages() DocBlockdocblock (phpdoc, xref, inline docs)#53399
  • Use generic references to “Database” in wp-config-sample.php#54610


  • Activate missing default theme features for block themes – #54597
  • Add “Featured” patterns from pattern directory to Patterns in block inserter – #54623
  • Update @wordpress packages – #54487
  • FilterFilter 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. custom block templates with PHPPHP The web scripting language in which WordPress is primarily architected. WordPress requires PHP 5.6.20 or higher#54335

External Libraries

  • Update the SimplePie library to version 1.5.7 – #54659


  • Use is_scalar() in sanitize_key()#54160


  • Fix selections in Media Library Featured ImageFeatured image A featured image is the main image used on your blog archive page and is pulled when the post or page is shared on social media. The image can be used to display in widget areas on your site or in a summary list of posts. modal on open – #53765

Posts, Post Types

  • Add missing translationtranslation The process (or result) of changing text, words, and display formatting to support another language. Also see localization, internationalization. context on FSE related post types labels – #54611

REST APIREST 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/.

  • Add block theme support for valid non-alphanumeric characters in theme’s directory name – #54596
  • Ensure that the get_theme_item method should respect fields param – #54595
  • Ensure that the parent link, uses the rest_get_route_for_post function – #53656

Script Loader

  • Fix deprecated usage of passing null to explode()#53635

Site Health

  • Typo correction in Site Health help tab – #54656


  • Rename public static functions in WP_Theme_JSON_Resolver to remove custom_post_type references – #54517


Thanks to the 44 people who contributed to WordPress Core on Trac last week: @hellofromTonya (11), @costdev (6), @noisysocks (4), @youknowriad (4), @SergeyBiryukov (4), @audrasjb (3), @peterwilsoncc (3), @ocean90 (2), @oandregal (2), @antonvlasenko (2), @spacedmonkey (2), @jffng (2), @desrosj (2), @jrf (2), @kjellr (2), @sabernhardt (2), @pedromendonca (1), @mamaduka (1), @Ov3rfly (1), @schlessera (1), @williampatton (1), @wppunk (1), @shaunandrews (1), @poena (1), @joyously (1), @bernhard-reiter (1), @johnillo (1), @scruffian (1), @joen (1), @szaqal21 (1), @onemaggie (1), @TimothyBlynJacobs (1), @benitolopez (1), @justinahinon (1), @joedolson (1), @mkaz (1), @ryelle (1), @circlecube (1), @danielbachhuber (1), @ignatggeorgiev (1), @PieWP (1), @sergeybiryukov (1), @dariak (1), and @Spacedmonkey (1).

Congrats and welcome to our 3 new contributors of the week: @wppunk, @johnillo, @ignatggeorgiev ♥️

Core committers: @sergeybiryukov (10), @audrasjb (6), @hellofromtonya (5), @johnbillion (3), @jffng (2), @spacedmonkey (2), @noisysocks (2), and @isabel_brison (1).

#5-9, #core, #week-in-core