Welcome back to a new issue of Week in Core 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 Trac An open source project by Edgewall Software that serves as a bug tracker and project management tool for WordPress. between March 14 and March 21, 2022.
- 40 commits
- 53 contributors
- 49 tickets created
- 5 tickets reopened
- 44 tickets closed
The Core team is currently working on the next minor release A set of releases or versions having the same minor version number may be collectively referred to as .x , for example version 5.2.x to refer to versions 5.2, 5.2.1, 5.2.3, and all other versions in the 5.2 (five dot two) branch of that software. Minor Releases often make improvements to existing features and functionality., WP 5.9.3, and on the next major, WP 6.0 🛠
Ticket 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
- Add a
media_date_column_time
filter 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 the media list table date column – #42942
Code Modernization
- Rename parameters that use reserved keywords in
wp-admin/includes/class-custom-image-header.php
– #55327
Coding Standards
- Escape the comment post URL A specific web address of a website or web page on the Internet, such as a website’s URL www.wordpress.org in
_wp_dashboard_recent_comments_row()
– #54728 - Remove a one-time
$pieces
variable in wp-includes/class-wp-*-query.php
– #54728 - Rename the
$bodyStarted
variable to $body_started
in WP_Http_Streams::request()
– #54728 - Rename the
$cat_ID
argument to $cat_id
in get_the_category_by_ID()
– #54728 - Rename the
$headerValue
variable to $header_value
in WP_Http_Streams::request()
– #54728 - Rename the
$requestPath
variable to $request_path
in WP_Http_Streams::request()
– #54728 - Rename the
$strHeaders
variable to $headers
in WP_Http_Streams::request()
– #54728 - Rename the
$strResponse
variable to $response
in WP_Http_Streams::request()
– #54728 - Rename the
$theBody
variable to $body
in WP_Http_Curl::request()
– #54728 - Simplify some long conditions in
wp-includes/class-wp-term-query.php
– #55352, #54728 - Use
esc_url()
instead of esc_attr()
for some URLs – #54728 - Use strict comparison in
wp-includes/class-wp-http-curl.php
– #54728 - Wrap the
$this->request
property in wp-includes/class-wp-*-query.php
– #54728
Comments
- Disable “close on escape” for inline replies when using an IME – #54548
Docs
- Add a
@since
note about Twenty Twenty-Two for WP_Theme::$default_themes
– #54729 - Correct variable references in
get_category_feed_link()
and get_term_feed_link()
@return
tags – #54729 - Misc. fixes in
wp-includes/post-template.php
and wp-includes/post-thumbnail-template.php
– #54729
Editor
- Add
blockTypes
argument to WP_Block_Patterns_Registry::register()
docblock (phpdoc, xref, inline docs) – #55303, #54729 - Fix broken asset URLs when using WP outside of the regular directory – #55311
- Add WP_Block_Editor_Context::$name – #55301
Formatting
- Add support for formatting sizes as PB, EB, ZB, and YB – #40875
I18N Internationalization, or the act of writing and preparing code to be fully translatable into other languages. Also see localization. Often written with a lowercase i so it is not confused with a lowercase L or the numeral 1. Often an acquired skill.
- Don’t register empty locale A locale is a combination of language and regional dialect. Usually locales correspond to countries, as is the case with Portuguese (Portugal) and Portuguese (Brazil). Other examples of locales include Canadian English and U.S. English. data objects – #55250
- Avoid translating
wp_locale
strings several times – #54564
KSES
- Add support for
ruby
and related elements – #54698 - Allow
lang
, xml:lang
, dir
attributes globally – #54699
Login and Registration
Menus
- Improve padding on bulk action labels for small screens – #54855
Plugins
- Convert
apply_filters()
into a proper variadic function – #53218 - Move the introduction text from
install_dashboard()
to display_plugins_table()
– #55389
Taxonomy 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.
- Consider HTML5 input types when resetting form values after adding a new tag 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.) – #48030
- Increase cache hits in
WP_Term_Query
– #55352
Tests
- Include special characters in term names for
wp_set_term_objects()
– #53152, #54725
Themes
- Add version to theme screenshot URL for better browser cache handling – #53370
- Add version to theme screenshot URL in
WP_Themes_List_Table
– #53370 - Allow block 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. themes to be activated without
index.php
– #54272 - Use
esc_url()
for theme screenshots on the Themes screen – #53370 - Use pointer when hovering on theme details button – #54971
Users
- Check maximum length of
user_nicename
after filters are applied – #54987
Props
Thanks to the 53 people who contributed to WordPress Core on Trac last week: @azouamauriac (9), @SergeyBiryukov (7), @audrasjb (7), @sabernhardt (3), @mukesh27 (3), @ravipatel (2), @andraganescu (2), @poena (2), @Presskopp (2), @kebbet (2), @ryokuhi (2), @upsuper (2), @jrf (2), @sabbirshouvo (1), @rehanali (1), @vlad.olaru (1), @multidots1896 (1), @alkesh7 (1), @talldanwp (1), @gziolo (1), @sumitsingh (1), @scruffian (1), @manfcarlo (1), @overclokk (1), @pgpagely (1), @Mamaduka (1), @kapacity (1), @costdev (1), @jsnajdr (1), @sabbir1991 (1), @justinahinon (1), @rafiahmedd (1), @aristath (1), @davidbaumwald (1), @priyank9033 (1), @pbiron (1), @spacedmonkey (1), @Chouby (1), @henry.wright (1), @muhammadfaizanhaidar (1), @csesumonpro (1), @stevegrunwell (1), @mauriac (1), @desrosj (1), @johnbillion (1), @BettyJJ (1), @alexstine (1), @konradyoast (1), @afercia (1), @ivanlutrov (1), @lopo (1), @codente (1), and @kapilpaul (1).
Congrats and welcome to our 8 new contributors of the week: @upsuper, @alkesh7, @kapacity, @sabbir1991, @csesumonpro, @ivanlutrov, @lopo, @codente ♥️
Core committers: @sergeybiryukov (20), @peterwilsoncc (6), @audrasjb (4), @davidbaumwald (4), @johnbillion (3), @noisysocks (1), @gziolo (1), and @ocean90 (1).
#5-9-3, #6-0, #core, #week-in-core