A Week in Core – May 9, 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 May 2 and May 9, 2022.

  • 35 commits
  • 64 contributors
  • 61 tickets created
  • 12 tickets reopened
  • 51 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.0, and released 6.0 RCrelease candidate One of the final stages in the version release cycle, this version signals the potential to be a final release to the public. Also see alpha (beta). 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

  • Add the 6.0 branchbranch A directory in Subversion. WordPress uses branches to store the latest development code for each major release (3.9, 4.0, etc.). Branches are then updated with code for any minor releases of that branch. Sometimes, a major version of WordPress and its minor versions are collectively referred to as a "branch", such as "the 4.0 branch". to the workflow for testing branches
  • Allow the local development environment to run on Apple M1 machines without requiring local configuration changes – #52356
  • Ensure version number is in ‘X.X’ format after float math: Tests_Basic::test_security_md()#55667
  • Pass GitHubGitHub GitHub is a website that offers online implementation of git repositories that can 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/ Actions environment variables to the Docker container – #55668
  • Improve the logic of the SECURITY.md test to check all supported versions – #55667
  • Move get_inline_data() tests to a more appropriate place – #55652
  • Temporarily disable the test for “Supported Versions” section of GitHub Security Policy

Code Modernization

  • Rename parameters that use reserved keywords in wp-admin/includes/template.php#55650
  • Rename parameters to match native PHPPHP The web scripting language in which WordPress is primarily architected. WordPress requires PHP 5.6.20 or higher functions in wp-includes/compat.php#55650

Coding Standards

  • Remove extra space in wp-admin/admin-ajax.php#55692

Docs

  • Correct parameter types for serialize_block() and serialize_blocks()#55648, #54729
  • Improve plugin_install_action_links 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.’s docs – #55480
  • Remove @return void from various DocBlocks – #54729

Editor

  • Add 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 Comment Template 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.#55643, #55634
  • Sets ‘paged’ query arg only when there are comments: build_comment_query_vars_from_block()#55658
  • Update WordPress packages for 6.0 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. 4 – #55567
  • Update WordPress packages for 6.0 RC1 – #55567

General

  • Add missing strong tagtag 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.) to some error messages – #54437

Help/About

  • Add link to 6.0 Field GuideField guide The field guide is a type of blogpost published on Make/Core during the release candidate phase of the WordPress release cycle. The field guide generally lists all the dev notes published during the beta cycle. This guide is linked in the about page of the corresponding version of WordPress, in the release post and in the HelpHub version page., fix missing placeholder in string – #55434
  • Update the About section for 6.0 – #55434

Media

  • Remove error suppression in wp_filesize()#55678, #49412

Query

  • Restore late compact() call for the posts_clauses_request filter – #55699

Quick/Bulk Edit

  • Additional tests for showing taxonomies – #49701
  • Remove duplicate HTMLHTML HyperText Markup Language. The semantic scripting language primarily used for outputting content in web browsers. IDs – #55575, #35483

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

  • Fixes /wp/v2/pattern-directory/patterns endpoint response for slug parameter – #55617

Script Loader

  • Explain why 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. prevents concatenation – #55628
  • Fix i18n edge case breaking dependencies – #55628

Security

  • Update the Security Policy to include WordPress 6.0

Site Health

  • Remove unused variables in WP_Site_Health::get_test_plugin_version()#55683

Users

  • Allow any DB field to be returned by WP_User_Query#53177
  • Improve WP_User_Query tests following [53362] – #53177

Props

Thanks to the 64 people who contributed to WordPress Core on Trac last week: @costdev (6), @SergeyBiryukov (5), @audrasjb (5), @hellofromTonya (3), @ndiego (3), @justinahinon (3), @aristath (3), @gziolo (3), @mukesh27 (3), @johnbillion (3), @bernhard-reiter (2), @peterwilsoncc (2), @spacedmonkey (2), @jrf (2), @antonvlasenko (2), @poena (2), @hellofromtonya (2), @ironprogrammer (2), @darerodz (2), @afragen (2), @zieladam (2), @dlh (1), @marybaum (1), @annezazu (1), @webcommsat (1), @dansoschin (1), @chanthaboune (1), @cbringmann (1), @sergeybiryukov (1), @eidolonnight (1), @laurlittle (1), @JeffPaul (1), @NekoJonez (1), @ocean90 (1), @luisherranz (1), @czapla (1), @cbravobernal (1), @davidbaumwald (1), @timothyblynjacobs (1), @manooweb (1), @critterverse (1), @azaozz (1), @estelaris (1), @chaion07 (1), @figureone (1), @azouamauriac (1), @antpb (1), @rajeshraval786 (1), @dd32 (1), @pbearne (1), @kraftbj (1), @boniu91 (1), @jsnajdr (1), @fcoveram (1), @ugyensupport (1), @desrosj (1), @talldanwp (1), @Cybr (1), @david.binda (1), @5um17 (1), @greglone (1), @joedolson (1), @sabernhardt (1), @pbiron (1).

Congrats and welcome to our 3 new contributors of the week: @laurlittle, @rajeshraval786, @fcoveram ♥️

Core committers: @sergeybiryukov (18), @peterwilsoncc (7), @hellofromtonya (4), @ryelle (2), @audrasjb (2), @johnbillion (1), and @gziolo (1).

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