A Week in Core – April 18, 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 April 11 and April 18, 2022.

  • 87 commits
  • 102 contributors
  • 35 tickets created
  • 4 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 🛠

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

Administration

  • 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 term supplementary notice – #55078
  • Clarify some sentences after [53131]#46057
  • Remove self-reference (“we”) in WordPress Adminadmin (and super admin)#46057
  • Remove term page check from ajax-response.js#55078, #54955
  • Replace “can not” with “cannot” after [53131]
  • Replace “can not” with “cannot” after [53131] – #46057, #38913
  • Revert accidental changes made to theme.json in changeset [53131]
  • Revert unwanted spaces found in theme.json after [53131]

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

  • Prevent styles from being added in the site editor – #55567

Build/Test Tools

  • Update generated CSSCSS Cascading Style Sheets. files after [53141]#55559
  • Bring caniuse-lite to the latest version – #51750, #55505
  • Enable ReactReact React is a JavaScript library that makes it easy to reason about, construct, and maintain stateless and stateful user interfaces. https://reactjs.org/. Fast Refresh for block development – #51750, #55505
  • Build: Update webpack to v5.x – #51750
  • Add unit tests for rendering in Comment Template block – #55505
  • Improve code comments for block supports tests – #55505
  • Improve test cleanup for block supports – #55505

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

  • Improve cache key generation in WP_Comment_Query#55460

Code Modernization

  • Rename parameters that use reserved keywords in wp-admin/includes/class-wp-site-icon.php#55327
  • Rename parameters that use reserved keywords in wp-admin/includes/class-wp-terms-list-table.php#55327
  • Rename parameters that use reserved keywords in wp-admin/includes/deprecated.php#55327
  • Rename parameters that use reserved keywords in wp-admin/includes/list-table.php#55327
  • Rename parameters that use reserved keywords in wp-admin/includes/media.php#55327
  • Rename parameters that use reserved keywords in wp-admin/includes/menu.php#55327
  • Rename parameters that use reserved keywords in wp-admin/includes/meta-boxes.php#55327
  • Rename parameters that use reserved keywords in wp-admin/includes/ms.php#55327
  • Rename parameters that use reserved keywords in wp-admin/includes/nav-menu.php#55327

Coding Standards

  • Correct alignment in various files – #54728
  • Correct the $items_count variable in add_menu_classes()#54728
  • Rename the $object variable to $attachment in several files – #55327, #54728
  • Simplify long conditions in xfn_check()#54728
  • Use more descriptive variable names in add_menu_classes()#54728

Docs

  • Add missing descriptions for function parameters in wp-admin/includes/meta-boxes.php#54729
  • Add missing documentation for add_cssclass() and add_menu_classes()#54729
  • Fix @link URLs in get_merged_data() Docblockdocblock (phpdoc, xref, inline docs)#54729
  • Fix a docblock typo in get_the_modified_author#55420
  • Improve doc blocks for 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. added in [53126]#53212
  • Misc. Docblocks improvements in the Core User API – #54729
  • Misc. docblock fixes in wp-admin/includes/mic.php, as per documentation standards – #54729
  • Removes an irrelevant @link mention in Translation_Entry Class – #54729
  • Replace Codex links with the corresponding page on DevHub – #54729
  • Small fixes in WP_Theme_JSON_Resolver docblocks, as per documentation standards – #54729
  • Update MDN link in send_frame_options_header() docblock – #54729
  • Update a link to the Custom Elements spec in force_balance_tags() docblock – #54729
  • Update a link to the Custom Elements spec in unsupported_valid_tag_names() unit test docblock – #54729
  • Use third-person singular verbs for function descriptions in author-template.php, as per documentation standards – #54729
  • Use third-person singular verbs for function descriptions in wp-admin/includes/meta-boxes.php, per the documentation standards – #54729

Editor

  • Add changes for new Comments Query LoopLoop The Loop is PHP code used by WordPress to display posts. Using The Loop, WordPress processes each post to be displayed on the current page, and formats it according to how it matches specified criteria within The Loop tags. Any HTML or PHP code in the Loop will be processed on each post. https://codex.wordpress.org/The_Loop. blocks – #55505
  • Add functionality required for theme export in the site editor – #55505
  • Add missing defaultDutone changes – #55505
  • Remove block patterns from server-generated settings – #55505
  • Update WordPress packages based based on GutenbergGutenberg The Gutenberg project is the new Editor Interface for WordPress. The editor improves the process and experience of creating new content, making writing rich content much simpler. It uses ‘blocks’ to add richness rather than shortcodes, custom HTML etc. https://wordpress.org/gutenberg/ v13.0 RC3 – #55505
  • Update build_comment_query_vars_from_block from Gutenberg – #55505
  • Use block settings to pass assets for the iframed editor – #55505

Emoji

  • Update the Twemoji to version 14.0.2 – #55395

External Libraries

  • Update moment to version 2.29.2#55547
  • Update polyfill libraries – #55547
  • Update some external libraries – #55547

Feeds

  • Remove comment feed HTMLHTML HyperText Markup Language. The semantic scripting language primarily used for outputting content in web browsers. headers when empty – #54703

Formatting

  • Avoid escaping valid XML values in esc_xml()#55399
  • Make get_the_author_link pluggable – #51859

Help/about

  • Improve text in help tabs of the Personal Data Exporter/Eraser – #52970

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.

  • Move code out of a translatable string in WP_Theme::__construct()#55405
  • Remove wp-config.php file name from translatable strings – #46057

Media

  • Enable edits to custom image sizes – #28277
  • Fix editing controls covering image edit region – #30154
  • Run the wp_content_img_tag 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. once per image – #55510, #55347

Options

  • Show error when updating all options exceeds max_input_vars#45438

Permalinks

  • Improve settings page error messages – #53141

Plugins

  • Avoid translating empty pluginPlugin A plugin is a piece of software containing a group of functions that can be added to a WordPress website. They can extend functionality or add new features to your WordPress websites. WordPress plugins are written in the PHP programming language and integrate seamlessly with WordPress. These can be free in the WordPress.org Plugin Directory https://wordpress.org/plugins/ or can be cost-based plugin from a third-party headers – #54586
  • Update item count when plugin deleted – #55316

Posts, Post Types/Taxonomies

  • Add object type specific registration filters – #53212

Query

  • Restore late compact() call for SQL clauses in wp-includes/class-wp-*-query.php#54728, #meta6273

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

  • Bring new endpoints for Block Patterns from Gutenberg plugin – #55505
  • Fix incorrect casing of patterns endpoint schema properties – #55505
  • Fix the wrong name in the comments controller – #55505
  • Use snake case convention for field names in Block Patterns – #55505

Script Loader

  • Specify the version of the clipboard library included when registering – #55565

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.

  • Only reset non-button form field values after adding a 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.)#48030

Text Changes

  • Fix various inconsistent capitalization issues – #53028

Themes

  • Use consistent thumbnail sizes in CustomizerCustomizer Tool built into WordPress core that hooks into most modern themes. You can use it to preview and modify many of your site’s appearance settings. preview screen – #54188

Upgrade/Install

  • Prevent JSJS JavaScript, a web scripting language typically executed in the browser. Often used for advanced user interfaces and behaviors. bugbug A bug is an error or unexpected result. Performance improvements, code optimization, and are considered enhancements, not defects. After feature freeze, only bugs are dealt with, with regressions (adverse changes from the previous version) being the highest priority. filling new passwords – #53974, #52086

Users

  • Avoid warning on the_modified_author when get_userdata() returns false#55420
  • Improve wording of the “New Admin Email Address” email – #45915
  • Update parameters passed to the new send_retrieve_password_email and retrieve_password_notification_email filters – #54690

Widgets

  • Avoid 27 duplicate translations in Media Widgets constructor – #54561

Props

Thanks to the 102 (!) people who contributed to WordPress Core on Trac last week: @SergeyBiryukov (17), @poena (11), @audrasjb (11), @peterwilsoncc (11), @jrf (10), @justinahinon (10), @aristath (9), @costdev (9), @desrosj (5), @timothyblynjacobs (5), @zieladam (4), @antonvlasenko (4), @oandregal (3), @joedolson (3), @ramonopoly (3), @jsnajdr (3), @mukesh27 (3), @walbo (3), @marybaum (3), @pbiron (3), @milana_cap (2), @dlh (2), @sabernhardt (2), @ajlende (2), @davidbaumwald (2), @kebbet (2), @spacedmonkey (2), @darerodz (2), @johnbillion (2), @Presskopp (2), @Chouby (2), @azouamauriac (2), @thomasplevy (1), @scruffian (1), @zieleadam (1), @Synchro (1), @adi64bit (1), @hellofromTonya (1), @barryceelen (1), @waterfire (1), @rachelbaker (1), @Boniu91 (1), @mitogh (1), @swissspidy (1), @ryokuhi (1), @johnregan3 (1), @agepcom (1), @afragen (1), @cbigler (1), @kubiq (1), @lkraav (1), @espiat (1), @Eric3D (1), @drago239 (1), @charlyox (1), @michelangelovandam (1), @jadpm (1), @mirkolofio (1), @brookedot (1), @mkox (1), @sbossarte (1), @sebastienserre (1), @bedas (1), @chaion07 (1), @sergeybiryukov (1), @johnjamesjacoby (1), @nextend_ramona (1), @certainstrings (1), @HristoK (1), @mor10 (1), @uday17035 (1), @talldanwp (1), @elifvish (1), @paapst (1), @ocean90 (1), @azaozz (1), @webcommsat (1), @dimadin (1), @arpitgshah (1), @juanlopez4691 (1), @kapilpaul (1), @karpstrucking (1), @silb3r (1), @hellofromtonya (1), @shital-patel (1), @superpoincare (1), @rumpel2116 (1), @TwisterMc (1), @donmhico (1), @dshanske (1), @pbearne (1), @flixos90 (1), @dd32 (1), @ntsekouras (1), @kraftbj (1), @youknowriad (1), @pento (1), @maguijo (1), @jorbin (1), @ishitaka (1), @ironprogrammer (1), and @wpmakenorg (1).

Congrats and welcome to our 4 new contributors of the week: @nextend_ramona, @HristoK, @elifvish, @maguijo ♥️

Core committers: @audrasjb (26), @sergeybiryukov (22), @gziolo (17), @peterwilsoncc (11), @desrosj (5), @joedolson (3), @davidbaumwald (2), and @jorgefilipecosta (1).

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