A Week in Core – May 31, 2021

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 May 24 and May 31, 2021.

  • 65 commits
  • 98 contributors
  • 48 tickets created
  • 11 tickets reopened
  • 83 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

Administration

  • Improve the message about installing the Link Manager 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 to use legacy Links screen – #52669

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

  • Load the classic layout stylesheet conditionallty – #53175
  • Add the layout block support – #53175
  • Declare the wp_template post type as built-in – #53176
  • Only load the WP_Theme_JSON_Resolver class once – #53175, #51104
  • Add support for the pattern directory – #53246
  • Fix logic to enable custom colors, gradients, and font sizes – #53175
  • Update the 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/ branchbranch A directory in Subversion. WordPress uses branches to store the latest development code for each major release (3.9, 4.0, etc.). Branches are then updated with code for any minor releases of that branch. Sometimes, a major version of WordPress and its minor versions are collectively referred to as a "branch", such as "the 4.0 branch". used to launch Gutenberg e2e tests – #52991
  • Update packages and backportbackport A port is when code from one branch (or trunk) is merged into another branch or trunk. Some changes in WordPress point releases are the result of backporting code from trunk to the release branch. the latest Gutenberg fixes – #52991
  • Introduce block templates for classic themes – #53176
  • Load theme resolver class in script loader – #53175

Build/Test Tools

  • Update the several dependencies – #52624
  • Minimize the chances of signature conflicts for assertEqualsWithDelta()#52625
  • Use deterministic module ids in webpack for media – #53192
  • Remove the ::append_to_selector() method from Tests_Theme_wpThemeJson#52991
  • Use the Composer-installed version of PHPUnit for Grunt tasks – #53015
  • Use hashed module IDs for minified files – #53192

Bundled Themes

  • Introduce block patterns for Twenty Fourteen – #51103
  • Introduce block patterns for Twenty Fifteen – #51102
  • Update the “Tested up to” value – #53276
  • Introduce block patterns for Twenty Twelve – #51105
  • Twenty Thirteen: Fix missing translations in block patterns, add image credits – #51104

Coding Standards

  • Move assignment out of condition in phpunit/includes/speed-trap-listener.php#52625
  • Further update the code for bulk menu items deletion to better follow WordPress coding standardsWordPress 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.#21603
  • Apply some minor coding standards fixes – #21603
  • Simplify a condition in wp-admin/admin-footer.php#53306
  • Use strict comparison in wp-includes/class-wp-customize-nav-menus.php#52627
  • Apply some minor coding standards adjustments – #41683, #53156, #53175

Comments

  • Include a “View Post” link on the Comments screen for a single post – #52353

Documentation

  • Improve documentation for get_option(). Clean up, clarify the returned types and the exceptions, and add few
  • Improve documentation for the wp_resource_hints 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.#52842
  • Document that has_block() does not check reusable blocks – #53140
  • Improve documentation for wp_list_filter() and wp_filter_object_list()#52808
  • Use a duplicate hook reference for widgets_admin_page in wp-admin/widgets-form-blocks.php#51506

External Libraries

  • Update two polyfill libraries to their latest versions – #52854
  • Update the phpass library to version 0.5#51549

Formatting

  • Add ‘main’ 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.) to kses – #53156
  • Introduce the document_title filter – #51643

General

  • Correct the inline code examples for _wp_array_get() and _wp_array_set()#53264
  • Avoid a PHPPHP The web scripting language in which WordPress is primarily architected. WordPress requires PHP 5.6.20 or higher warning when checking the mbstring.func_overload PHP value – #53282
  • Pass the scheme to the *_url filters – #52813

Media

  • Replace basename() usage on media upload screen with wp_basename() for better multibyte filenames support – #51754
  • Add button in media upload page for copying the media url – #51754

Menus

  • Add bulk delete for menu items – #21603

Posts, Post Types

  • Improve post_exists() query – #34012
  • Speed cached get_pages() calls – #51469
  • Remove some unused strings from built-in post type declarations – #53176

Site Health, Privacy

  • Combine shared CSSCSS Cascading Style Sheets. for Site Health & Privacy Settings – #52429

Themes

  • Display the number of available theme updates in the adminadmin (and super admin) menu – #43697

Toolbar

  • Prevent username from wrapping when avatars are disabled – #26933

Upgrade/Install

  • Update sodium_compat to v1.16.1 – #53274

Users

  • Pass on the user data received by wp_insert_user() to related hooksHooks In WordPress theme and development, hooks are functions that can be applied to an action or a Filter in WordPress. Actions are functions performed when a certain event occurs in WordPress. Filters allow you to modify certain functions. Arguments used to hook both filters and actions look the same.#53110

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

  • Update “object” strings to use the appropriate nouns – #40720
  • Add widgetWidget A WordPress Widget is a small block that performs a specific function. You can add these widgets in sidebars also known as widget-ready areas on your web page. WordPress widgets were originally created to provide a simple and easy-to-use way of giving design and structure control of the WordPress theme to the user. endpoints – #41683
  • Revert widget endpoints – #41683
  • Add widget endpoints – #41683
  • Add support for modifying the term relation when querying posts – #41287
  • Remove WP_Test_REST_Widgets_Controller tests – #41683
  • Re-introduce WP_Test_REST_Widgets_Controller tests – #41683
  • Remove duplicates in the widget types endpoint – #53305

Widgets

  • Adds the widgets block editor to widgets.php and customize.php – #51506
  • Ignore CSS files in legacy widgets block – #51506
  • Perform ‘widgets_admin_page’ action in block widget editor – #51506
  • Remove unnecessary enqueue of ‘format-library’ assets – #51506

Props

Thanks to the 98 people who contributed to WordPress Core on Trac last week:

@SergeyBiryukov (7), @peterwilsoncc (7), @audrasjb (6), @melchoyce (6), @isabel_brison (5), @TimothyBlynJacobs (5), @onemaggie (4), @desrosj (4), @nosolosw (4), @kjellr (4), @johnbillion (3), @mukesh27 (3), @kevin940726 (3), @noisysocks (3), @youknowriad (2), @ayeshrajans (2), @jnylen0 (2), @gziolo (2), @francina (2), @lukecarbis (2), @talldanwp (2), @spacedmonkey (2), @beafialho (2), @andraganescu (2), @hareesh-pillai (1), @dd32 (1), @tw2113 (1), @joen (1), @ocean90 (1), @hellofromTonya (1), @david.binda (1), @jorgefilipecosta (1), @zieladam (1), @paaggeli (1), @jeremyfelt (1), @dragunoff (1), @timothyblynjacobs (1), @glendaviesnz (1), @otto42 (1), @maxpertici (1), @wphound (1), @paragoninitiativeenterprises (1), @chaion07 (1), @vladytimy (1), @trejder (1), @lephleg (1), @ryelle (1), @oxyrealm (1), @carlomanf (1), @welcher (1), @bernhard-reiter (1), @boniu91 (1), @sabernhardt (1), @5um17 (1), @bhwebworks (1), @paaljoachim (1), @iandunn (1), @jamil95 (1), @joyously (1), @jeffikus (1), @boonebgorges (1), @apokalyptik (1), @ntsekouras (1), @djbu (1), @thomasplevy (1), @akabarikalpesh (1), @ribaricplusplus (1), @jffng (1), @DrewAPicture (1), @poena (1), @vyskoczilova (1), @Rahmohn (1), @vanyukov (1), @imath (1), @azaozz (1), @ReneHermi (1), @brettshumaker (1), @MikeHansenMe (1), @sannevndrmeulen (1), @Mista-Flo (1), @Boniu91 (1), @pixolin (1), @zodiac1978 (1), @joedolson (1), @shaunandrews (1), @claytoncollie (1), @antpb (1), @ryokuhi (1), @whyisjake (1), @anotia (1), @clorith (1), @notlaura (1), @xkon (1), @sebbb (1), @Clorith (1), @earnjam (1), @dlh (1), and @jrf (1).

Congrats and welcome to our 13 new contributors of the week! @dragunoff, @wphound, @trejder, @lephleg, @oxyrealm, @carlomanf, @bhwebworks, @jamil95, @djbu, @brettshumaker, @sannevndrmeulen, @anotia, and @sebbb ♥️

Core committers: @sergeybiryukov (22), @ryelle (8), @desrosj (8), @noisysocks (7), @youknowriad (6), @peterwilsoncc (6), @timothyblynjacobs (2), @joedolson (2), @azaozz (1), @jorgefilipecosta (1), @antpb (1), and @jorbin (1).

#5-8, #week-in-core