A Week in Core – September 27, 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 September 20 and September 27, 2021.

  • 22 commits
  • 23 contributors
  • 49 tickets created
  • 6 tickets reopened
  • 57 tickets closed

The Core team is currently working on the next point (5.8.2) and major (5.9) releases 🛠

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

  • Remove the PHPUnit container from local Docker environment – #54112
  • Splits and improves compat tests – #39265, #53363
  • Update PHPUnit configuration for PHPUnit 9.5.10/8.5.21+ – #54183
  • Upgrades Tests_Multisite_MS_Permalink_Collision fixture methods and strict assertion – #51147

Code Modernization

  • Fix “passing null to non-nullable” deprecation in _mb_substr()#53635

Coding Standards

  • Fix the alignment of the array – [51855]
  • Remove duplicate assignment from a ternary operator in WP_MS_Sites_List_Table::site_states()#38296

Docs

  • Add @since notes to register_setting() for the deprecated misc and privacy option groups – #53399
  • Document some more common names for dynamic hooksHooks In WordPress theme and development, hooks are functions that can be applied to an action or a Filter in WordPress. Actions are functions performed when a certain event occurs in WordPress. Filters allow you to modify certain functions. Arguments used to hook both filters and actions look the same. and standardise the phrasing used – #53581
  • Fix typo in the $clear_working parameter description in WP_Upgrader methods – #54163
  • Miscellaneous docblockdocblock (phpdoc, xref, inline docs) corrections and improvements – #52217, #53399
  • Update description for retrieve_widgets() per the documentation standards – #53811
  • Update and enhance the docs for retrieve_widgets()#53811

Formatting

  • Pass the 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. instance as a parameter to the render_block filters – #53596

General

  • Fix code quality issues which were identified by static analysis – #52217

Posts, Post Types

  • Don’t add a trailing number when there is a unique post parent – #51147

Tests

  • Correct the @ticket reference in wp_terms_checklist() tests – #53363, #51137
  • Don’t skip some Ajax tests on multisitemultisite Used to describe a WordPress installation with a network of multiple blogs, grouped by sites. This installation type has shared users tables, and creates separate database tables for each blog (wp_posts becomes wp_0_posts). See also network, blog, site, add them to the ms-excluded group instead – #53363
  • Further improve the tests for avoid_blog_page_permalink_collision(): – #51147
  • Remove unnecessary setUp() and tearDown() methods in multisite tests – #53363
  • Rename classes in phpunit/tests/multisite/ per the naming conventions – #53363
  • Update the Services_JSON test for PHPUnit 9.5.10/8.5.21+ – #54183, #54029, #53363

Props

Thanks to the 23 people who contributed to WordPress Core on Trac last week: @hellofromTonya (5), @jrf (5), @SergeyBiryukov (3), @netweb (2), @joelcj91 (1), @MaximeCulea (1), @zieladam (1), @mukesh27 (1), @pbiron (1), @aezazshekh (1), @zenithcity (1), @whyisjake (1), @knutsp (1), @tubys (1), @Daschmi (1), @jeremyfelt (1), @audrasjb (1), @terriann (1), @stormrockwell (1), @johnbillion (1), @costdev (1), @desrosj (1), and @hellofromtonya (1).

Congrats and welcome to our 4 new contributors of the week: @aezazshekh, @zenithcity, @tubys, and @Daschmi ♥️

Core committers: @sergeybiryukov (11), @hellofromtonya (4), @johnbillion (4), @whyisjake (2), and @azaozz (1).

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