A Week in Core – February 14, 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 February 7 and February 14, 2022.

  • 31 commits
  • 41 contributors
  • 62 tickets created
  • 10 tickets reopened
  • 54 tickets closed

The Core team is currently working on the next minor releaseMinor Release A set of releases or versions having the same minor version number may be collectively referred to as .x , for example version 5.2.x to refer to versions 5.2, 5.2.1, 5.2.3, and all other versions in the 5.2 (five dot two) branch of that software. Minor Releases often make improvements to existing features and functionality., WP 5.9.1, and on the next major, 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

Bundled Themes

  • Twenty Fifteen: Add gradient background options using the theme color scheme – #49760
  • Twenty Twelve: Typo correction a bundled pattern – #55099
  • Twenty Twenty-One: Allow editor styles to control 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. margins – #54250
  • Twenty Twenty-Two: Restore custom padding for group blocks with a background color – #55103, #54944

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.

  • Reorder object cache functions and methods for consistency – #54728, #54574
  • Add wp_cache_*_multiple functionsFixes – #54574
  • Use wp_cache_*_multiple() in core functions – #55029

Code Modernization

  • Use file_get_contents() in get_file_data()#55069
  • Use file_get_contents() in wp_get_image_mime()#55069
  • Use file_get_contents() in wp_get_webp_info()#55069
  • Use stream_get_contents() in POMO_FileReader::read_all()#55069

Coding Standards

  • Fix WPCSWordPress Coding Standards A collection of PHP_CodeSniffer rules (sniffs) to validate code developed for WordPress. It ensures code quality and adherence to coding conventions, especially the official standards for WordPress Core. issues in wp-admin/includes/misc.php#54728
  • Remove unnecessary try/catch block in wp_get_webp_info()#54728
  • Rename $r variable to $args for clarity in walk_nav_menu_tree()#54728
  • Rename $r variable to $args for clarity in walk_page_tree()#54728
  • Rename the $profileuser variable to $profile_user in wp-admin/user-edit.php#54728
  • Use strict comparison in wp-admin/user-edit.php#54728

Docs

  • Correct @since 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.) for wp_cache_reset()#54729
  • Correct the suggested alternative for the deprecated wp_cache_reset() function – #54729
  • Fix an error in wp_kses_attr() docblockdocblock (phpdoc, xref, inline docs)#54729
  • Fix typo in a comment in wp_get_image_mime()#55154
  • Improve @return tags for wp_cache_*_multiple() functions – #54729, #54574
  • Typo correction in class-wp-theme-json docblocks – #54729
  • Update DocBlocks for some object cache functions per the documentation standards – #54729, #54574

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.

  • Standardize the script paths for blocks – #54797

Media

  • Display an error message in grid view if the attachment could not be deleted – #55158

Options

  • Disable transients while installing – #54849

Posts, Post Types

  • Pass the $update parameter to wp_insert_post_data and wp_insert_attachment_data filters – #46228

Query

  • Check if the theme supports block-templates before calling locate_block_template() in get_query_template()#54844

Script Loader

  • Prevent normalizing HTMLHTML HyperText Markup Language. The semantic scripting language primarily used for outputting content in web browsers. IDs in _wp_normalize_relative_css_links()#54922

Tests

  • Remove some extra wp_cache_set() calls from wp_cache_set_multiple() test – #54574

Props

Thanks to the 41 people who contributed to WordPress Core on Trac last week: @SergeyBiryukov (4), @maxkellermann (4), @audrasjb (4), @azouamauriac (3), @costdev (3), @mukesh27 (3), @flixos90 (2), @mitogh (2), @kebbet (2), @spacedmonkey (2), @adamsilverstein (2), @kapilpaul (2), @rafiahmedd (2), @tnolte (1), @dd32 (1), @mahype (1), @stacimc (1), @noisysocks (1), @antonvlasenko (1), @dolphingg (1), @peterwilsoncc (1), @nhadsall (1), @tobifjellner (1), @kjellr (1), @madeinua (1), @tillkruess (1), @manfcarlo (1), @Mamaduka (1), @ianatkins (1), @johnbillion (1), @Rahe (1), @pbearne (1), @Boniu91 (1), @dilipbheda (1), @pls78 (1), @itsamoreh (1), @ianbelanger (1), @nidhidhandhukiya (1), @ironprogrammer (1), @aristath (1), and @uzumymw (1).

Congrats and welcome to our 8 new contributors of the week: @maxkellermann, @mahype, @dolphingg, @nhadsall, @madeinua, @pls78, @nidhidhandhukiya, @uzumymw ♥️

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

#5-9-1, #6-0, #core, #week-in-core