Two Weeks in Core – December 19, 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 December 5 and December 19, 2022. This post exceptionally covers two weeks since we weren’t able to put together the recap last week.

  • 50 commits
  • 50 contributors
  • 81 tickets created
  • 7 tickets reopened
  • 70 tickets closed

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

  • Run Xdebug tests on PHPPHP The web scripting language in which WordPress is primarily architected. WordPress requires PHP 7.4 or higher 8.2 – #56009
  • Remove 3.7-4.0 branches from scheduled test runs – #57228
  • Refactor test for multiple location headers – #57306, #56793
  • Change the wp_cache_get_multiple function to get cache keys in a single request – #54864
  • Correct a flaky wp_nonce_field() test – #56793
  • Temporarily disable a WP_Http test for multiple Location headers – #57306
  • Use more descriptive name for a wp_new_comment() test – #56793

Bundled Themes

  • Twenty Seventeen: Document the $twentyseventeencounter global – #57069, #56792

Code Modernization

  • Rename parameters that use reserved keywords in wp-includes/class-wpdb.php#56788
  • Rename parameters that use reserved keywords in wp-includes/l10n.php#56788
  • Rename parameters that use reserved keywords in wp-includes/link-template.php#56788
  • Rename parameters that use reserved keywords in wp-includes/load.php#56788
  • Rename parameters that use reserved keywords in wp-includes/ms-blogs.php#56788
  • Rename parameters that use reserved keywords in wp-includes/ms-deprecated.php#56788
  • Rename parameters that use reserved keywords in wp-includes/ms-site.php#56788
  • Rename parameters that use reserved keywords in wp-includes/option.php#56788
  • Rename parameters that use reserved keywords in wp-includes/php-compat/readonly.php#56788
  • Rename parameters that use reserved keywords in wp-includes/pluggable.php#56788
  • Rename parameters that use reserved keywords in wp-includes/pomo/po.php#56788
  • Rename parameters that use reserved keywords in wp-includes/pomo/streams.php#56788
  • Rename parameters that use reserved keywords in wp-includes/post-template.php#56788
  • Rename parameters that use reserved keywords in wp-includes/post.php#56788
  • Rename parameters that use reserved keywords in wp-includes/query.php#56788
  • Rename parameters that use reserved keywords in wp-includes/rest-api.php#56788
  • Rename parameters that use reserved keywords in wp-includes/rest-api/class-wp-rest-server.php#56788
  • Rename parameters that use reserved keywords in wp-includes/rest-api/endpoints/class-wp-rest-controller.php#56788
  • Rename parameters that use reserved keywords in wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php#56788
  • Rename parameters that use reserved keywords in wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php#56788
  • Rename parameters that use reserved keywords in wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php#56788
  • Rename parameters that use reserved keywords in wp-includes/rewrite.php#56788
  • Rename parameters that use reserved keywords in wp-includes/sitemaps/class-wp-sitemaps.php#56788

Docs

  • Add missing type for $_wp_theme_features in WP_Debug_Data::debug_data()#57069, #56792
  • Improve DocBlockdocblock (phpdoc, xref, inline docs) formatting for get_post_class()#56792
  • Improve various globals documentation, as per docblock standards – #57069, #56792
  • Improve various globals documentation, as per documentation standards – #57069, #56792
  • Mark some optional parameters as such in wp-includes/comment-template.php#56792
  • Update docs for image_sideload_extensions 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. to include webp in the list of allowed extensions – #57346, #56792

External Libraries

  • Update Requests library to version 2.0.0 – #54504
  • Upgrade PHPMailer to version 6.7 – #57281

HTTPHTTP HTTP is an acronym for Hyper Text Transfer Protocol. HTTP is the underlying protocol used by the World Wide Web and this protocol defines how messages are formatted and transmitted, and what actions Web servers and browsers should take in response to various commands. 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.

  • Adds BC-layer /library/Requests.php file – #57341

Media

  • Use featured imageFeatured image A featured image is the main image used on your blog archive page and is pulled when the post or page is shared on social media. The image can be used to display in widget areas on your site or in a summary list of posts. if available for attachment as preview instead of icon – #49852
  • Account for legacy calls to nav_menu_css_class filter – #56926, #28620
  • Prevent infinite 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. in menus – #56926, #28620
  • Reset menu_item_parent to 0 when the parent is set to the item itself – #57169

Options, 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. APIs

  • Correct the documented return type for get_settings_errors()#57323

Quick edit

  • Fix cases where the author field is empty when the user no longer has edit capabilities – #56819

RevisionsRevisions The WordPress revisions system stores a record of each saved draft or published update. The revision system allows you to see what changes were made in each revision by dragging a slider (or using the Next/Previous buttons). The display indicates what has changed in each revision.

  • Use update_post_author_caches in wp_prepare_revisions_for_js function – #56978

Site Health

  • Remove the WordPress 5.2 reference from the email sent on fatal errors – #57327, #54961

Themes

  • Adds outline CSSCSS Cascading Style Sheets. properties support in theme.jsonJSON JSON, or JavaScript Object Notation, is a minimal, readable format for structuring data. It is used primarily to transmit data between a server and web application, as an alternative to XML.#57354
  • Improve performance of _add_block_template_part_area_info and _add_block_template_info functions – #57077

Users

  • Clear the user_meta cache when clean_user_cache function is called – #54316

Props

Thanks to the 50 people who contributed to WordPress Core on Trac last week: @sergeybiryukov (32), @jrf (26), @justinahinon (23), @poena (23), @aristath (23), @peterwilsoncc (9), @spacedmonkey (5), @costdev (5), @azaozz (4), @dd32 (4), @hellofromTonya (4), @audrasjb (3), @ironprogrammer (3), @desrosj (2), @johnbillion (2), @JeffPaul (2), @upadalavipul (2), @NekoJonez (2), @mukesh27 (2), @samful (1), @mcaskill (1), @TobiasBg (1), @swissspidy (1), @JavierCasares (1), @onemaggie (1), @cadic (1), @seanchayes (1), @antpb (1), @szepeviktor (1), @benjgrolleau (1), @Synchro (1), @OllieJones (1), @sabernhardt (1), @antonvlasenko (1), @jmdodd (1), @soulseekah (1), @dustinrue (1), @wojsmol (1), @datagutten (1), @schlessera (1), @flixos90 (1), @priethor (1), @mhkuu (1), @david.binda (1), @mrwweb (1), @kebbet (1), @jb510 (1), @dimadin (1), @bjorsch (1), and @iamjaydip (1).

Congrats and welcome to our 2 new contributors of the week: @mcaskill, @cadic ♥️

Core committers: @sergeybiryukov (32), @peterwilsoncc (4), @spacedmonkey (4), @hellofromtonya (3), @audrasjb (3), @azaozz (2), @desrosj (1), and @johnbillion (1).

#6-2, #core, #week-in-core