A Week in Core – June 20, 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 13 and June 20, 2022.

  • 52 commits
  • 31 contributors
  • 51 tickets created
  • 8 tickets reopened
  • 37 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/Test Tools

  • Adjust SlackSlack Slack is a Collaborative Group Chat Platform https://slack.com/. The WordPress community has its own Slack Channel at https://make.wordpress.org/chat/. notifications logic to account for expected non push events – #55652
  • Add a helper method for for creating named data providers in WP_UnitTestCase_Base#55652
  • 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
  • Always include the error message in assertNotWPError() and assertNotIXRError()#55652
  • Consistently check that an image was loaded in image saving tests – #55652
  • Further improve Tests_Image_Functions::test_wp_crop_image*() tests – #55652
  • Improve Tests_Image_Functions::test_wp_crop_image*() tests – #55652
  • Move helper functions in Tests_Image_Functions to more appropriate places – #55652
  • Move the filter_image_editor_output_format() helper method next to the test it’s used in – #55652
  • Re-enable failing 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/. test for update_post_parent_caches()#55593
  • Refactor Tests_Image_Functions::test_inferred_mime_types() to use a data provider – #55652
  • Refactor Tests_Image_Functions::test_is_displayable_image_negative() to use a data provider – #55652
  • Refactor Tests_Image_Functions::test_is_displayable_image_positive() to use a data provider – #55652
  • Refactor Tests_Image_Functions::test_is_image_negative() to use a data provider – #55652
  • Refactor Tests_Image_Functions::test_is_image_positive() to use a data provider – #55652
  • Refactor Tests_Image_Functions::test_load_directory() to split the tests and use a data provider – #55652
  • Refactor Tests_Image_Functions::test_mime_overrides_filename() to use a data provider – #55652
  • Refactor Tests_Image_Functions::test_wp_save_image_file() to use a data provider – #55652
  • Remove redundant skip call in Tests_Image_Functions::get_image_editor_engine_classes()#55652
  • Rename classes in phpunit/tests/option/ per the naming conventions – #55652
  • Rename some test methods in Tests_Image_Functions for consistency – #55652
  • Reorder is_gd_image() test methods for consistency – #55652
  • Some improvements for REST API cache priming – #55593, #55652
  • Temporarily disable the failing REST API test for update_post_parent_caches()#55593
  • Use assertSameSets() in some newly introduced tests – #55652
  • Use consistent punctuation in failure messages in Tests_Image_Functions#55652
  • Use more consistent wording when referring to PHP deprecation notices – #55652

Bundled Themes

  • Twenty Nineteen: Ensure custom text color is reflected in the Editor for Quote 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.#55992
  • Twenty Twenty-One: Ensure custom text color is reflected in the Editor for Quote block – #55989

Coding Standards


  • Don’t translate the “WordPress database error” message in the error log – #53125


  • Add @since notes for html5 theme feature changes in add_theme_support()#51657, #55646
  • Add a comment for stripping the leading AND from SQL clauses in some query classes – #55646
  • Add a missing word in pre_months_dropdown_query 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. description – #55646
  • Consistently declare the $wp_query global in link template functions – #43164
  • Use third-person singular verbs for function descriptions in Tests_Image_Functions, per the documentation standards – #55646
  • Use third-person singular verbs for function descriptions in the Feed 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., as per docblockdocblock (phpdoc, xref, inline docs) standards – #55646
  • Use third-person singular verbs for function descriptions in the TaxonomyTaxonomy A taxonomy is a way to group things together. In WordPress, some common taxonomies are category, link, tag, or post format. https://codex.wordpress.org/Taxonomies#Default_Taxonomies. Administration API – #55646
  • Use third-person singular verbs for function descriptions in the WP_Screen API – #55646


  • Remove MeetupMeetup All local/regional gatherings that are officially a part of the WordPress world but are not WordCamps are organized through https://www.meetup.com/. A meetup is typically a chance for local WordPress users to get together and share new ideas and seek help from one another. Searching for ‘WordPress’ on meetup.com will help you find options in your area. as an oEmbed source since the related endpoint has been deprecated – #55997

External Libraries

  • Upgrade PHPMailer to version 6.6.2 – #55976
  • Upgrade PHPMailer to version 6.6.3 – #56016


  • Use WPINC as a shorter reference to wp-includes in some files – #54233

I18Ni18n Internationalization, or the act of writing and preparing code to be fully translatable into other languages. Also see localization. Often written with a lowercase i so it is not confused with a lowercase L or the numeral 1. Often an acquired skill.

  • Correct and improve inline docsinline docs (phpdoc, docblock, xref) and tests for functionality related to nooped plurals – #55646, #55652
  • Use a translatable string for displaying a user’s first name and last name – #17025


  • Avoid duplicated query in post collections – #55677
  • Prime caches for featured images in post controller – #55592
  • Prime caches for linked objects in menu item REST API controller – #55620
  • Prime caches for post parents in post REST API controller – #55593
  • Some documentation and test improvements for update_menu_item_cache()#55620
  • Some documentation and test improvements for update_post_parent_caches()#55593


  • Fix caching issues in WP_Term_Query class – #55837


Thanks to the 31 people who contributed to WordPress Core on Trac last week: @jrf (15), @peterwilsoncc (4), @SergeyBiryukov (4), @spacedmonkey (4), @TimothyBlynJacobs (3), @mitogh (3), @furi3r (3), @audrasjb (3), @evildon (2), @malthert (2), @hellofromTonya (2), @oztaser (1), @denishua (1), @georgestephanis (1), @gdetassigny (1), @Spacedmonkey (1), @jnz31 (1), @knutsp (1), @mukesh27 (1), @ayeshrajans (1), @bobbingwide (1), @madpixels (1), @nithi22 (1), @kajalgohel (1), @jyolsna (1), @sabernhardt (1), @mt8.biz (1), @adamsilverstein (1), @Synchro (1), @swissspidy (1), and @costdev (1).

Congrats and welcome to our 5 new contributors of the week: @evildon, @gdetassigny, @madpixels, @nithi22, @jyolsna ♥️

Core committers: @sergeybiryukov (37), @audrasjb (6), @spacedmonkey (6), @desrosj (2), and @johnbillion (1).

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