A Week in Core – March 6, 2023

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 27 and March 6, 2023.

  • 45 commits
  • 79 contributors
  • 63 tickets created
  • 12 tickets reopened
  • 61 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

  • Use assertSame() in Tests_Comment::test_update_comment_from_privileged_user_by_privileged_user() – #56800
  • Use assertSame() in WP_Date_Query tests – #56800
  • Add a performance measurement workflow – #57687
  • Add test coverage for the get_posts_navigation() function – #55751
  • Add wp_check_filetype() unit tests – #57151
  • Add unit tests for Gallery blocks – #55571
  • Regenerate correctly the block-json.php file – #57471
  • Add unit tests for get_next_posts_link() and get_previous_posts_link()#55751
  • Adjust the expected mime type for WOFF fonts on PHPPHP The web scripting language in which WordPress is primarily architected. WordPress requires PHP 5.6.20 or higher 8.1.12+ – #56817
  • Ignore EOL differences in a wpautop() test for <math> 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. elements – #57718
  • Improve Tests_Media::test_wp_generate_attachment_metadata_doesnt_generate_sizes_for_150_square_image() – #56800, #57370
  • Make sure the correct query is tested for term limits in 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. queries – #57342
  • Move some data providers in Tests_Functions next to the tests they are used in – #56793
  • Second pass at merging file-level and class-level DocBlocks in various 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. files – #57723
  • Use assertSame() in Tests_Theme_wpThemeJson – #56800, #57621

Bundled Themes

  • Account for a numeric theme directory in WP_Theme::__construct()#54645
  • Twenty Nineteen: Update PostCSS to version 8.x – #57554
  • Twenty Twenty: Avoid PHP warnings in 8.1 due to incorrect usage of wp_add_inline_style()#57777

Docs

  • Fix erroneous since mention in wp_internal_hosts hook – #57796
  • Fix typo in wp_generate_password() description – #57847
  • Use the new /documentation/ URLURL A specific web address of a website or web page on the Internet, such as a website’s URL www.wordpress.org for HelpHub link in readme.html#57726

Editor

  • Correctly merge custom CSSCSS Cascading Style Sheets. into global styles – #57833
  • Deprecate _resolve_home_block_template() – #57716
  • Ensure Global styles values are reset in the site editor – #57824, #56467
  • Exclude non-sticky posts in 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. Block when set to “Only” – #57822
  • Only add layout classes to inner wrapper if block is a container – #55571, #57831
  • Partial revert of r55230#57830, #56852
  • Add ‘path’ query arg to Appearance > Template Parts menu – #57819
  • Update the WP packages with fixes prior to WP 6.2 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 – #57471

Formatting

  • Add aspect-ratio tests for safecss_filter_attr()#57664

HTMLHTML HyperText Markup Language. The semantic scripting language primarily used for outputting content in web browsers. 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.

  • Fix finding RCData and Script 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.) closers – #57852, #57575

Help/About

  • Avoid extra redirections on HelpHub Links – #57726
  • Improve help text about the WordPress URL and Site URL settings – #50886, #57759
  • Restore the correct URL for Editing Files article on Edit Themes screen – #57726
  • Update the About page for 6.2 – #57477
  • Use a consistent capitalization for “Support forums” links across WP Adminadmin (and super admin)#57726

Media

  • Rename the wp_ajax_save_attachment action hook to wp_ajax_save_attachment_updated#23148
  • Revert the addition of a $size parameter to get_attached_file()#51780
  • improve display of cropped image in media editor – #55070

Script Loader

  • Pass the asset path to the _doing_it_wrong() notice in register_block_script_handle()#53566

Users

  • Adjust the initialization of the $duplicated_keys array in wp_salt()#57121
  • Use a separate variable for the post counts query in wp_list_authors()#57011

Props

Thanks to the 79 people who contributed to WordPress Core on Trac last week: @costdev (13), @mukesh27 (12), @hellofromTonya (8), @sergeybiryukov (8), @peterwilsoncc (7), @audrasjb (7), @Mamaduka (5), @ankitmaru (4), @desrosj (4), @sabernhardt (4), @robinwpdeveloper (3), @sakibmd (3), @youknowriad (3), @flixos90 (3), @ntsekouras (3), @sc0ttkclark (3), @azaozz (2), @simongomes02 (2), @geisthanen (2), @poena (2), @wildworks (2), @johnbillion (2), @richtabor (2), @laurlittle (2), @swissspidy (2), @oandregal (2), @ironprogrammer (2), @isabel_brison (2), @lifeboat (1), @brookedot (1), @Toru (1), @thedaysse (1), @rahmohn (1), @dasnitesh780 (1), @joedolson (1), @fabiankaegy (1), @kevin940726 (1), @adityaarora010196 (1), @jongycastillo (1), @michelmany (1), @joyously (1), @sun (1), @chrisbaltazar (1), @lopo (1), @alvastar (1), @winterpsv (1), @hugodevos (1), @Ankit K Gupta (1), @ignatggeorgiev (1), @markoserb (1), @davidbaumwald (1), @jakariaistauk (1), @gziolo (1), @andy786 (1), @antpb (1), @sanketchodavadiya (1), @antonvlasenko (1), @zieladam (1), @dmsnell (1), @david.binda (1), @adamsilverstein (1), @fuadragib (1), @naeemhaque (1), @seakashdiu (1), @hasanmisbah (1), @mahbubshovan (1), @pbearne (1), @pyrobd (1), @pravinparmar2404 (1), @marybaum (1), @tobifjellner (1), @justinahinon (1), @webcommsat (1), @hellofromtonya (1), @jpantani (1), @RavanH (1), @ocean90 (1), @neychok (1), and @spacedmonkey (1).

Congrats and welcome to our 5 new contributors of the week: @lifeboat, @thedaysse, @dasnitesh780, @markoserb, @andy786 ♥️

Core committers: @sergeybiryukov (15), @hellofromtonya (10), @audrasjb (7), @gziolo (4), @peterwilsoncc (2), @ryelle (2), @adamsilverstein (1), @joemcgill (1), @desrosj (1), @azaozz (1), and @flixos90 (1).

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