A Week in Core – October 10, 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 October 3 and October 10, 2022.

  • 75 commits
  • 120 contributors
  • 66 tickets created
  • 6 tickets reopened
  • 113 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.1 🛠

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

  • Avoid menu/sub-menu overlap on small screens – #32747
  • Guard against undefined $GLOBALS['hook_suffix'] in WP_Screen::get()#49089
  • Remove private delegation from list tables – #18449

Build/Test Tools

  • Add missing newline character on unit tests files after [54443]#56611
  • Add tests coverage for _wp_check_alternate_file_names()#55199
  • Add tests for WP_List_Util::pluck and WP_List_Util::sort#55300
  • Add tests for wp_nonce_field() and wp_referer_field()#55578
  • Display PHPCSPHP Code Sniffer PHP Code Sniffer, a popular tool for analyzing code quality. The WordPress Coding Standards rely on PHPCS. results in the GitHubGitHub GitHub is a website that offers online implementation of git repositories that can easily be shared, copied and modified by other developers. Public repositories are free to host, private repositories require a paid subscription. GitHub introduced the concept of the ‘pull request’ where code changes done in branches by contributors can be reviewed and discussed before being merged be the repository owner. https://github.com/ Action logs – #55652
  • Expand unit tests for theme.json#56611
  • Note the versions of NodeJS and npm supported – #55903
  • Remove PHPPHP The web scripting language in which WordPress is primarily architected. WordPress requires PHP 7.4 or higher 8.1 and 8.2 from allowed failures – #55652, #55656, #56009, #56681
  • Update github-script action to the latest version – #55652
  • Update npm dependencies to their latest versions – #56641
  • Use require_once instead of require#56738, #56179
  • Add tests for wp_nonce_url()#55652, #54870
  • Add wp_cache_*_multiple() functions to Memcached implementation used in the test suite – #54864
  • Add comments to clarify a 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/. test for password protected posts – #56681
  • Bring some consistency to WP_Image_Editor_GD and WP_Image_Editor_Imagick tests – #55652
  • Clean up test image for site icon in Tests_REST_Server on teardown – #55652
  • Clean up test images in WP_Customize_Manager tests – #55652
  • Ignore EOL differences in Style Engine 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. tests – #56467, #55652
  • Minimize file copying in WP_REST_Attachments_Controller tests – #55652
  • Remove unnecessary file copying in WP_Customize_Manager tests – #55652
  • Replace some occurrences of assertEquals() with assertSame()#55654
  • Use assertSame() in some WP_Theme_JSON tests – #55654

Bundled Themes

  • Properly escape URLs – #56696
  • Twenty Eleven: Pass template directory URLs through esc_url()#56717, #56696
  • Twenty Nineteen: Add missing compiled CSSCSS Cascading Style Sheets. declarations after [54413]#55981
  • Twenty Nineteen: Ensure Pullquote 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. text color is reflected on front-end – #55981
  • Twenty Seventeen: Prevent scaling issues on featured images using Safari on iPadOS – #48195
  • Twenty Seventeen: Update the scrollTo jQuery 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#56702
  • Twenty Sixteen: Improve Pullquote Block text color consistency between editor and front-end – #56008
  • Twenty Twenty-Three: Bug fixes and improvements for 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. 3 – #56383
  • Twenty Twenty: Improve Separator Block rendering – #55910

Cache API

  • Introduce wp_cache_supports() function – #56605

Code Modernization

Coding Standards

  • Correct alignment in test_import_theme_starter_content()#55652

Customize

  • Prevent PHP notice 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. when using block theme – #54888, #54905

Database

  • Correct MariaDB version check in wpdb::has_cap()#54841

Docs

  • Correct docblocks for get_block_file_template()#55929
  • Improve wp_get_object_terms() return type – #56327, #55646
  • Various docblockdocblock (phpdoc, xref, inline docs) fixes in WP_Rewrite class, as per documentation standards – #55646
  • Various docblock fixes in WP_Theme_JSON class, as per documentation standards – #55646
  • Various docblock fixes in global-styles-and-settings.php, as per documentation standards – #55646

Editor

  • Add PHPUnit tests for 5.9.0 new functions – #56266
  • Avoid extra calls to realpath() in block scripts and styles registration – #56758
  • Add missing blocks origin to theme.json#56467
  • Dynamic site editor template names performance improvements – #56467
  • Ensure block script is enqueued, regardless of ronder_callback#56408
  • Ensure block styles in theme.json are rendered – #56736
  • Fix server-side attribute registration via typography support – #56467
  • Invalidate blocks metadata cache when needed in WP_Theme_JSON::get_blocks_metadata()#56644
  • Make template names and descriptions dynamic, again – #56467
  • Sync latest @wordpress/edit-site package to include dynamic template names updates – #56467
  • Update packages for 6.1 Beta 3 – #56467
  • cite styles declared via 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. not working – #56467

Embeds

  • Add support for Tumblr Dashboard URLs – #56733
  • Revert Google Data Studio as trusted provider – #55771

External Libraries

  • Update clipboard and polyfill-library#56670
  • Update getID3 to version 1.9.22#56692
  • Upgrade PHPMailer to version 6.6.5 – #56772

General

  • Add a default font-style value for Adminbar links – #56737
  • Remove instances of _wp_http_referer from GET forms in the adminadmin (and super admin)#54106

Login and Registration

  • Rename is_login_screen() function to is_login()#19898, #56400

Media

  • Ensure the wp_editor_set_quality 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. consistently passes the correct output mime type – #56442
  • Improve image engine detection when using the output format filter – #54476

Posts, Post types

  • Prevent get_page_by_title() parsing query twice – #56721
  • Move call to update_menu_item_cache in WP_Query#55620
  • Prevent PHP notice when get_post_type_object() returns null in is_post_type_archive()#56287

Security

  • Additional translations of salt default phrase – #55937

Themes

  • Replace array_map() usage in WP_Theme_JSON::get_default_slugs()#56745

Upgrade/Install

  • Provide dirpath in error messages when _unzip_file_pclzip() cannot create directories – #54477

Users

  • Fix Users list bottom filters margins on small screens – #54813
  • Revert use of shared objects for current user – #54984

Props

Thanks to the 120 (!) people who contributed to WordPress Core on Trac last week: @costdev (14), @mukesh27 (11), @audrasjb (11), @sabernhardt (9), @SergeyBiryukov (9), @desrosj (9), @peterwilsoncc (7), @aristath (5), @spacedmonkey (5), @bernhard-reiter (5), @pbearne (5), @poena (4), @oandregal (4), @hellofromTonya (4), @jrf (4), @cbravobernal (4), @ironprogrammer (3), @dd32 (3), @scruffian (3), @jorgefilipecosta (3), @czapla (2), @nithins53 (2), @mehedi890 (2), @wildworks (2), @andrewserong (2), @ndiego (2), @nidhidhandhukiya (2), @alberuni-azad (2), @mikachan (2), @robinwpdeveloper (2), @hztyfoon (2), @chaion07 (2), @mikeschroder (2), @gunterer (2), @westonruter (1), @sirzooro (1), @sergeybiryukov (1), @scribu (1), @nacin (1), @miqrogroove (1), @milana_cap (1), @rsiddharth (1), @jrbeilke (1), @johnbillion (1), @faison (1), @birgire (1), @JeffPaul (1), @felipeelia (1), @antonvlasenko (1), @isabel_brison (1), @jamieburchell (1), @talldanwp (1), @kurtpayne (1), @wonderboymusic (1), @JarretC (1), @colorful tones (1), @ntsekouras (1), @bernie (1), @collet (1), @mayuge (1), @zoonini (1), @taskotr (1), @joen (1), @tahmidulkarim (1), @beafialho (1), @david.binda (1), @madhudollu (1), @sarahricker (1), @fuadragib (1), @rudlinkon (1), @seakashdiu (1), @jakariaistauk (1), @robinwpwebdeveloper (1), @elpanda13gmailcom (1), @sean212 (1), @upadalavipul (1), @ryokuhi (1), @mamaduka (1), @kajalgohel (1), @johnjamesjacoby (1), @deepakvijayan (1), @umesh84 (1), @tillkruess (1), @htdat (1), @splendorstudio (1), @azaozz (1), @flixos90 (1), @johnregan3 (1), @carolinan (1), @kmadhak (1), @afragen (1), @tillkruss (1), @petitphp (1), @Synchro (1), @ayeshrajans (1), @shreyasikhar26 (1), @sumitsingh (1), @adamsilverstein (1), @davidbaumwald (1), @aaronrobertshaw (1), @xknown (1), @ugyensupport (1), @n8finch (1), @webcommsat (1), @markparnell (1), @mrfoxtalbot (1), @hilayt24 (1), @collieit (1), @turtlepod (1), @cu121 (1), @Clorith (1), @tykoted (1), @ravipatel (1), @oztaser (1), @dkotter (1), @msolution (1), @whaze (1), @bph (1), @justinahinon (1), and @jameskoster (1).

Congrats and welcome to our 10 new contributors of the week: @alberuni-azad, @gunterer, @jamieburchell, @mayuge, @taskotr, @seakashdiu, @elpanda13gmailcom, @deepakvijayan, @n8finch, @msolution ♥️

Core committers: @audrasjb (21), @sergeybiryukov (17), @desrosj (12), @davidbaumwald (11), @peterwilsoncc (7), @adamsilverstein (2), @westonruter (1), @spacedmonkey (1), @jorgefilipecosta (1), @pento (1), and @hellofromtonya (1).

#6-1, #core, #week-in-core