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 April 25 and May 2, 2022.
- 72 commits
- 55 contributors
- 43 tickets created
- 8 tickets reopened
- 65 tickets closed
The Core team is currently working on the next major 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.0, and released Beta 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 and Beta 4 🛠
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
- Trigger a notice for incorrect
add_menu_page()
parameter – #40927
Bootstrap/Load
- Avoid a PHP The web scripting language in which WordPress is primarily architected. WordPress requires PHP 5.6.20 or higher warning when setting the
$pagenow
global in wp-includes/vars.php
– #54700 - Move some more administration-related hooks 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. to
admin-filters.php
– #54795 - Move administration related hooks to
admin-filters.php
– #54795
Build/Test Tools
- Update the NPM dependencies to the latest versions – #54727
- Reduce file size of About page texture – #48703
- Add unit tests for
wp_fuzzy_number_match()
– #54239 - Add unit tests for some XML-RPC functions – #53490
- Ignore EOL differences in Webfonts API 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 – #54725
Bundled Themes
- Note visually hidden text for translators – #55591
- Update NPM dependencies for default themes – #54727
- Twenty Twenty-One: Make translator comments referencing the post title consistent – #55564
- Twenty Twenty-Two: Add three style variations – #55433
Code Modernization
- Rename parameters that use reserved keywords in
wp-includes/class-wp-comment-query.php
– #55327 - Rename parameters that use reserved keywords in
wp-includes/class-wp-embed.php
– #55327 - Rename parameters that use reserved keywords in
wp-includes/class-wp-image-editor-gd.php
– #55327 - Rename parameters that use reserved keywords in
wp-includes/class-wp-image-editor.php
– #55327 - Rename parameters that use reserved keywords in
wp-includes/class-wp-network-query.php
– #55327 - Rename parameters that use reserved keywords in
wp-includes/class-wp-query.php
– #55327 - Rename parameters that use reserved keywords in
wp-includes/class-wp-query.php
– #55327 - Rename parameters that use reserved keywords in
wp-includes/class-wp-site-query.php
– #55327 - Rename parameters that use reserved keywords in
wp-includes/class-wp-term-query.php
– #55327 - Rename parameters that use reserved keywords in
wp-includes/class-wp-user-query.php
– #55327 - Rename parameters that use reserved keywords in
wp-includes/class.wp-scripts.php
– #55327 - Rename parameters that use reserved keywords in
wp-includes/class.wp-styles.php
– #55327 - Rename parameters that use reserved keywords in
wp-includes/comment-template.php
– #55327 - Rename parameters that use reserved keywords in
wp-includes/deprecated.php
– #55327
Coding Standards
- Remove extra alignment level in the data provider for
wp_validate_boolean()
tests – #54725, #54728 - Remove extra spaces in docblocks of the
Walker_PageDropdown
class – #54728
Comments
- Avoid DB error in comment meta 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. queries – #55218
Docs:
- Add missing documentation for
WP_*_Query::get_search_sql()
method parameters – #54729 - Adjust comments in
Gruntfile.js
per the documentation standards – #54729 - Clarify the name and description of some parameters in the
Walker
class – #54729 - Correct alignment for the
customize_nav_menu_available_items
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. DocBlock (phpdoc, xref, inline docs) – #54729 - Correct parameter types for
serialize_block()
and serialize_blocks()
– #55648, #54729 - Corrections and improvements to docblocks for function and hooks relating to fatal error handling – #54729
- Docblock adjustements in the
Walker
class – #54729 - Formatting corrections for various docblocks – #54729
- Further clarify a comment for the main part of
wp-login.php
– #54746 - Improve
plugin_install_action_links
filter’s docs – #55480 - Improve documentation of the
walker
argument for various functions – #54729 - Make the
@return
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.) for Translation_Entry::key()
more precise – #55640 - Remove
@return void
from various DocBlocks – #54729 - Remove double spaces in
tests/phpunit/README.txt
– #55637 - Use third-person singular verbs for function descriptions in Core Comment API and Comment template functions – #54729
- Various docblock corrections – #54729
- Various docblock corrections and improvements for changes introduced in 6.0 – #54729
- Various docblock improvements – #54729
Editor
- Fix core ‘Featured’ pattern category The 'category' taxonomy lets you group posts / content together that share a common bond. Categories are pre-defined and broad ranging. registration – #55567
- Register ‘lock’ attribute for every 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. on the server – #55567
- Show comment previews in the Comment Query Loop 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. – #55634
- Update WordPress packages for 6.0 Beta 3 – #55567
- Update WordPress packages for 6.0 Beta 4 – #55567
External Libraries
- Update the
underscore
library to version 1.13.3
– #55547
Mail
- Improve the docblocks for actions and functions related to the parsing of authentication cookies – #54729
Media
- Ensure
wp_crop_image()
returns correct file type – #55403 - Ensure
wp_read_image_metadata
filter returns array for $iptc
and $exif
– #54637 - Validate track number ID3 tags before use – #55204
Plugins
- Improve
plugin_install_description
filter’s docs – #55480
REST 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/.
- Correct the schema for the
wp/v2/block-directory/search
endpoint – #53621 - Fixes
/wp/v2/pattern-directory/patterns
endpoint response for slug
parameter – #55617
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.
- Increase cache hits in
WP_Term_Query
when using include and exclude parameters – #55352
Themes
- Add internal-only theme.json 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.’s webfonts handler (stopgap) – #55567, #46370
- Remove ‘gutenberg 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/’ as translation The process (or result) of changing text, words, and display formatting to support another language. Also see localization, internationalization. context in
_wp_theme_json_webfonts_handler()
– #55567, #46370
Tools
- Further automate backporting from Gutenberg to Core – #55642
Upgrade/Install
- Prevent DB errors caused by web fonts API – #55632
Users
- Validate
WP_User_Query
‘s fields
argument – #53177
Widgets
- Fix Classic Widgets screen toggle response on small screens – #48896
Props
Thanks to the 55 people who contributed to WordPress Core on Trac last week: @SergeyBiryukov (20), @aristath (15), @justinahinon (14), @poena (14), @jrf (14), @costdev (8), @peterwilsoncc (6), @zieladam (5), @hellofromTonya (4), @audrasjb (3), @sabernhardt (2), @hellofromtonya (2), @desrosj (2), @mamaduka (2), @antonvlasenko (2), @dlh (2), @darerodz (2), @ndiego (2), @pbiron (2), @afragen (2), @manooweb (2), @spacedmonkey (2), @pbearne (2), @kebbet (1), @kjellr (1), @azouamauriac (1), @inc2734 (1), @jffng (1), @gziolo (1), @bph (1), @jonoaldersonwp (1), @adamsilverstein (1), @kmix39 (1), @Boniu91 (1), @genosseeinhorn (1), @sergeybiryukov (1), @mat-lipe (1), @mjkhajeh (1), @felipeelia (1), @mukesh27 (1), @TimothyBlynJacobs (1), @johnbillion (1), @ntsekouras (1), @grandeljay (1), @Spacedmonkey (1), @chouby (1), @konradyoast (1), @timothyblynjacobs (1), @volodymyrkolesnykov (1), @sumitsingh (1), @mikeschroder (1), @bernhard-reiter (1), @czapla (1), @janh2 (1), and @azaozz (1).
Congrats and welcome to our 4 new contributors of the week: @kmix39, @genosseeinhorn, @mjkhajeh, @grandeljay, @janh2 ♥️
Core committers: @sergeybiryukov (32), @peterwilsoncc (10), @johnbillion (8), @audrasjb (7), @gziolo (5), @hellofromtonya (3), @desrosj (3), @spacedmonkey (1), @mikeschroder (1), @jffng (1), and @davidbaumwald (1).
#6-0, #core, #meta6273, #week-in-core