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

  • 44 commits
  • 50 contributors
  • 34 tickets created
  • 6 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.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

Autosave

  • Compare heartbeat intervals in same unit – #54825

Build/Test Tools

  • Test PHPPHP The web scripting language in which WordPress is primarily architected. WordPress requires PHP 5.6.20 or higher and WP compatibility functions – #54257
  • Typo correction in rss2 unit tests – #47968
  • Update the constant used to remove experimental 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/ code – #55567
  • Improve version compatibility tests – #54257
  • Add missing unit tests to 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.#55567
  • Update Gallery block unit tests to new gallery format – #55571
  • Update the test for wp_install() signature – #55327

Bundled Themes

  • Twenty Fifteen: Use #page height instead of body height in sidebarSidebar A sidebar in WordPress is referred to a widget-ready area used by WordPress themes to display information that is not a part of the main content. It is not always a vertical column on the side. It can be a horizontal rectangle below or above the content area, footer, header, or any where in the theme. scroll calculation – #40492
  • Twenty Twenty-One: Correct translator comment in twenty_twenty_one_continue_reading_text#55564

Code Modernization

  • Rename parameters that use reserved keywords in swp-includes/class-wp-customize-setting.php#55327
  • Rename parameters that use reserved keywords in wp-admin/includes/plugin.php#55327
  • Rename parameters that use reserved keywords in wp-admin/includes/taxonomy.php#55327
  • Rename parameters that use reserved keywords in wp-admin/includes/template.php#55327
  • Rename parameters that use reserved keywords in wp-admin/includes/upgrade.php#55327
  • Rename parameters that use reserved keywords in wp-admin/install-helper.php#55327
  • Rename parameters that use reserved keywords in wp-includes/atomlib.php#55327
  • Rename parameters that use reserved keywords in wp-includes/block-supports/border.php#55327
  • Rename parameters that use reserved keywords in wp-includes/class-wp-customize-manager.php#55327
  • Rename parameters that use reserved keywords in wp-includes/class-wp-customize-nav-menus.php#55327
  • Rename parameters that use reserved keywords in wp-includes/class-wp-customize-widgets.php#55327
  • Rename parameters that use reserved keywords in wp_die_*_handler filters – #55327
  • Rename parameters that use reserved keywords in bundled themes – #55327
  • Fix reported undefined $script_uri variable notice – 55567

Comments

  • Improve accuracy of get_comment_count() docblockdocblock (phpdoc, xref, inline docs)#19901

Docs

  • Correct the expected parameter type for WP_Customize_Manager::remove_preview_signature()#54729
  • Use third-person singular verbs for function descriptions in wp-includes/blocks.php and wp-includes/script-loader.php, per the documentation standards – #54729
  • Misc fixes and improvements in the Administration Media 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. docblocks, as per documentation standards – #54729
  • Typo correction in wp-includes/ms-functions.php docblock – #54729
  • Use third-person singular verbs for function descriptions in Multisitemultisite Used to describe a WordPress installation with a network of multiple blogs, grouped by sites. This installation type has shared users tables, and creates separate database tables for each blog (wp_posts becomes wp_0_posts). See also network, blog, site WordPress API, as per docs standards – #54729
  • Use third-person singular verbs for function descriptions in WP_Theme Class, as per docs standards – #54729
  • Use third-person singular verbs for function descriptions in WP_User_Query Class, as per docs standards – #54729
  • Use third-person singular verbs for function descriptions in wp-includes/capabilities.php, as per docs standards – #54729
  • Use third-person singular verbs for function descriptions in wp-includes/ms-load.php, as per docs standards – #54729
  • Use third-person singular verbs for function descriptions in wp-includes/nav-menu.php, as per docs standards – #54729

Editor

  • Add default comment status to discussion settings – #55567
  • Correctly register the dynamic Cover block – #55580
  • Fix Comment Query block isn’t lazy loading metaMeta Meta is a term that refers to the inside workings of a group. For us, this is the team that works on internal WordPress sites like WordCamp Central and Make WordPress. data – #55567
  • Fix styles for nested elements (link color) – #55567
  • Include the PHP file for the Cover block – #55580
  • Move wp_enqueue_block_style() to wp-includes/script-loader.php, for better consistency – #55182, #55148
  • 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. 2 – #55567

Feeds

  • Use latest comment date for the Last-Modified headerHeader The header of your site is typically the first thing people will experience. The masthead or header art located across the top of your page is part of the look and feel of your website. It can influence a visitor’s opinion about your content and you/ your organization’s brand. It may also look different on different screen sizes. of comments feed – #47968

Media

  • Remove attachment_fields_to_save 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. and deprecate image_attachment_fields_to_save()#39108
  • Use correct parameter in _wp_nav_menu_meta_box_object()#55327

Posts, Post Types

  • Fix option validation in stick_post()#55176

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

  • Add inserter field to the schema of Patterns endpoint – #55567
  • Add array argument to getItems for Pattern Directory endopoint – #55574
  • Don’t load remote patterns twice in the controller – #55567
  • Respect _fields query arg in preloaded requests – #55213, #55567

Themes

  • Ensure WP_Theme::get_files() doesn’t return unexpected values – #53599

Users

  • Make sure WP_User_Query can be filtered using the fields parameter – #53177

Props

Thanks to the 50 people who contributed to WordPress Core on Trac last week: @SergeyBiryukov (18), @jrf (13), @aristath (13), @poena (13), @justinahinon (13), @audrasjb (7), @costdev (5), @peterwilsoncc (4), @sabernhardt (3), @azouamauriac (3), @mamaduka (2), @antonvlasenko (2), @Boniu91 (2), @ndiego (2), @hellofromTonya (2), @rilwis (2), @toro_unit (1), @tabrisrp (1), @davidbaumwald (1), @pbearne (1), @etaproducto (1), @mikeschroder (1), @cbravobernal (1), @zieladam (1), @jsnajdr (1), @timothyblynjacobs (1), @antpb (1), @ironprogrammer (1), @Mamaduka (1), @chaion07 (1), @aadilali (1), @glendaviesnz (1), @francina (1), @stephenharris (1), @luisherranz (1), @darerodz (1), @NomNom99 (1), @dd32 (1), @opurockey (1), @Rahmohn (1), @denishua (1), @Junaidkbr (1), @kajalgohel (1), @sergeybiryukov (1), @oandregal (1), @xiven (1), @mauteri (1), @dromero20 (1), @desrosj (1), and @mukesh27 (1).

Congrats and welcome to our 4 new contributors of the week: @etaproducto, @kajalgohel, @xiven, @dromero20 ♥️

Core committers: @sergeybiryukov (18), @audrasjb (16), @gziolo (14), @peterwilsoncc (5), and @davidbaumwald (1).

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