A Week in Core – June 13, 2022

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 June 6 and June 13, 2022.

  • 27 commits
  • 48 contributors
  • 45 tickets created
  • 10 tickets reopened
  • 36 tickets closed

The Core team is currently working on the next major releasemajor 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., WP 6.1 🛠

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/Tests Tools

  • Add a unit testunit test Code written to test a small piece of code or functionality within a larger application. Everything from themes to WordPress core have a series of unit tests. Also see regression. for PHPPHP The web scripting language in which WordPress is primarily architected. WordPress requires PHP 5.6.20 or higher 8.1 deprecation notice in wp_user_settings()#54914
  • Correct an assertion in wp_rand() tests – #55194
  • Move helper functions in Tests_Image_Functions to more appropriate places – #55652
  • Move the tests for individual pluggable functions into their own directory – #55652
  • Re-initialize WP_Rewrite before running wp_list_authors() tests – #55652
  • Rename classes in phpunit/tests/option/ per the naming conventions – #55652
  • Rename classes in phpunit/tests/user/ per the naming conventions – #55652
  • Rename the test file and class for wp_list_authors() tests – #55652
  • Use a consistent URLURL A specific web address of a website or web page on the Internet, such as a website’s URL www.wordpress.org in 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. response cookie tests – #51568
  • Use more consistent wording when referring to PHP deprecation notices – #55652
  • Use more descriptive names for wp_rand() test methods – #55194

Bundled Themes

  • Twenty-Twenty: Fix a width/alignement issue on “Wide Line” Separator style variation – #53643
  • Twenty-Twenty: Fix paragraph 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. alignment issues when used on a RTL website – #49447
  • Twenty-Twenty: Improve Quote block style consistency between front and back-end – #55931

Code Modernization

  • Pass correct default value to setcookie() in wp_user_settings()#54914


  • Correct method reference format in some DocBlocks – #55928
  • Use third-person singular verbs for function descriptions in the Core Translation APIAPI An API or Application Programming Interface is a software intermediary that allows programs to interact with each other and share data in limited, clearly defined ways.#55646
  • Use typed array notation in some post function DocBlocks: – #55646
  • Various fixes in wp-includes/pluggable.php docblocks, as per documentation standards – #55646


  • Ensure wp_rand() returns 0 when $min and $max values are equal to 0#55194


  • Add decoding="async" to image attributes – #53232
  • Some documentation and test improvements for wp_img_tag_add_decoding_attr()#53232


  • Prime users cache in WP_Query and post 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/. controller – #55716
  • Add a hook to 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. author full name from wp_list_authors()#17025
  • Some documentation and test improvements for update_post_author_caches(): – #55716


  • Improve post cache priming in WP_REST_Post_Search_Handler class – #55674

Text Changes

  • Improve consistency of adminadmin (and super admin) error notices in wp-admin/options.php#50785


Thanks to the 48 people who contributed to WordPress Core on Trac last week: @audrasjb (5), @peterwilsoncc (4), @spacedmonkey (3), @jrf (2), @costdev (2), @sabernhardt (2), @TimothyBlynJacobs (2), @mlajo (1), @acoulombe (1), @azouamauriac (1), @swissspidy (1), @tobifjellner (1), @marekdedic (1), @SergeyBiryukov (1), @kjellr (1), @sergiomdgomes (1), @matthiaspabst (1), @amirkamizi (1), @mayankmajeji (1), @ianbelanger (1), @hasanuzzamanshamim (1), @kajalgohel (1), @iamjaydip (1), @whaze (1), @mukesh27 (1), @westonruter (1), @michaelbourne (1), @mitogh (1), @afercia (1), @shenyanzhi (1), @meysamnorouzi (1), @kevinB (1), @wonderboymusic (1), @DrewAPicture (1), @nacin (1), @Mte90 (1), @jorbin (1), @rafiahmedd (1), @mihai2u (1), @furi3r (1), @adamsilverstein (1), @ayeshrajans (1), @flixos90 (1), @hellofromtonya (1), @isaumya (1), @ocean90 (1), and @dd32 (1).

Congrats and welcome to our 6 new contributors of the week: @mlajo, @acoulombe, @matthiaspabst, @shenyanzhi, @meysamnorouzi, @isaumya ♥️

Core committers: @sergeybiryukov (16), @audrasjb (8), @spacedmonkey (2), and @peterwilsoncc (1).

#6-0, #core, #week-in-core