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 July 18 and July 25, 2022.
It was quite a busy week, with 121 people contributing to 62 commits!
Worth noting that we never had so many new contributors in a week since we restarted the Week in Core blogposts 2 years ago! 😱😍
- 62 commits
- 121 contributors
- 46 tickets created
- 6 tickets reopened
- 49 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.1 🛠
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 labels to read-only form fields – #54302
- Correct the escaping in documentation lookup for plugin 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 and theme editor – #56007
- Remove unused CSS Cascading Style Sheets. selectors related to old format menu icons – #35717
Application Passwords
- Link a more accurate documentation page in User profile edit screen – #56267
Build/Test Tools
- Add 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.) pattern matching for the testing NPM workflow – #55652
- Correctly detect the first workflow run for a branch 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". or tag – #55652
- Make the GitHub 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 pattern matching for tags more specific – #55652
- Add failure messages for site icon and custom logo tests – #55652
- Correct the test for passing all expected parameters to the
preprocess_comment
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. – #55647, #56244
- Declare
custom-logo
theme support for custom logo tests – #55652
Bundled Themes
- Update NPM dependencies for Twenty Twenty and Twenty Nineteen – #55652
- Twenty Twenty-One: Add 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. type suggestions to block patterns – #53647
- Twenty Twenty-One: Rebuild the IE specific stylesheet – #55989
- Twenty Twenty-One: Update NPM dependencies – #55652
Cache 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.
- Add
wp_cache_flush_group
function – #4476
- Make the placement of
wp_cache_flush_group()
more consistent – #55647, #4476
Coding Standards
- Adjust the logic slightly in
wp_ajax_replyto_comment()
– #55647
- Check if the
_deprecated_file()
function exists in wp-db.php
– #56268, #55647
- Improve variable names in
wp-trackback.php
– #55647, #56244
- Move
wp-includes/wp-db.php
to wp-includes/class-wpdb.php
– #56268, #55647
- Remove extra comma in a
compact()
call – #55647, #56244
- Remove unused variable in
wp-trackback.php
– #55647
- Rename
$comment_post_ID
and $comment_author_IP
variables in various files – #55647, #56244
- Replace the old
wp-db.php
filename in phpcompat.xml.dist
– #56268, #55647
- Standardize on
user_id
when passing data to comment functions – #55647, #56244
- Use
__DIR__
instead of ABSPATH
in wp-db.php
– #56268, #55647
- Use consistent placement for
::prepare_links()
methods – #55647
Docs
- Add a
@since
note for get_post_permalink()
returning false
on failure – #45329
- Add function description and
@since
mention for get_upload_iframe_src()
– #55646
- Add missing function description in
wp-admin/includes/comment.php
– #55646
- Add missing function description in
wp-admin/includes/template.php
– #55646
- Document that the
$file_format
parameter of metadata filters can be null – #55646, #55828
- Fix indentation issues in
block-template-utils.php
docblocks, as per docs standards – #55646
- Fix indentation issues in
wp_read_video_metadata
and wp_read_audio_metadata
docblocks – #55646
- List the expected type first in a few functions: – #55646
- Provide a more accurate description for
wp_is_theme_directory_ignored()
– #56257, #55646
- Refine
@return
docblock (phpdoc, xref, inline docs) mentions for esc_sql()
, wp_slash()
and wp_unslash()
– #53946, #55646
- Remove an obsolete function description in
addslashes_gpc()
– #56233, #55646
- Update
do_action()
docblock code example – #55977
- Use third-person singular verbs for function descriptions in
block-template.php
and block-template-utils.php
– #55646
- Use third-person singular verbs for function descriptions in
general-template.php
, as per docblocks standards – #55646
- Use third-person singular verbs for function descriptions in
wp-admin/includes/comment.php
, as per docblocks standards – #55646
Editor
- Fix
register_block_type
does not recognise ancestor
block setting – #56184
Embeds
- Add Pocket Casts as a trusted oEmbed provider – #55860
External Libraries
- Update the Moment library to version 2.29.4 – #56031
Formatting
Media
- Allow filtering audio file metadata in
wp_read_audio_metadata()
– #55828
- Prevent URLs from overflowing their container in the media editor – #55393
- enable generating multiple mime types for image uploads; specifically WebP versions for JPEG images by default – #55443
Plugins
- Improve color contrast on plugins screen when recovery mode is activated – #56190
Posts, Post Types
- Check if the post type exists in
wp_insert_post()
– #55877
- Correct the check for non-existing post in
get_post_permalink()
– #45329
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/.
- Add
prepare_links
method to WP_REST_Post_Types_Controller
class – #56019
- Add
prepare_links
method to WP_REST_Taxonomies_Controller
class – #56020
- Avoid unnecessarily preparing item links – #52992
- Prime post caches in comments endpoint – #56272
- Use
wp_get_lastest_revision_id_and_total_count
function in WP_REST_Posts_Controller
class – #55857
Revisions The WordPress revisions system stores a record of each saved draft or published update. The revision system allows you to see what changes were made in each revision by dragging a slider (or using the Next/Previous buttons). The display indicates what has changed in each revision.
- Correct the function name for retrieving the last revision ID and total count – #55857
- Rename the function for retrieving the latest revision ID and total count – #55857
- Update the “last revision” wording to “latest revision” in various files – #55857
Themes
- Add a hook to filter theme header The header of your site is typically the first thing people will experience. The masthead or header art located across the top of your page is part of the look and feel of your website. It can influence a visitor’s opinion about your content and you/ your organization’s brand. It may also look different on different screen sizes. image URL A specific web address of a website or web page on the Internet, such as a website’s URL www.wordpress.org – #56180
Upgrade/Install
- Improve plugin update icon alignment – #56123
- Upgrade/Install: track php extensions and image library support for WebP and AVIF – #48116
Props
Thanks to the 121 (wow!) people who contributed to WordPress Core on Trac last week: @audrasjb (11), @SergeyBiryukov (11), @peterwilsoncc (6), @timothyblynjacobs (5), @Spacedmonkey (5), @mukesh27 (5), @sabernhardt (4), @mikeschroder (3), @dlh (3), @costdev (3), @desrosj (3), @pento (2), @mitogh (2), @pbiron (2), @dd32 (2), @joedolson (2), @poena (2), @flixos90 (2), @spacedmonkey (2), @johnbillion (2), @rafiahmedd (2), @afercia (2), @kasparsd (1), @dainemawer (1), @karinclimber (1), @cagsmith (1), @seedsca (1), @scofennellgmailcom (1), @jb510 (1), @annezazu (1), @trevorpfromsandee (1), @clorith (1), @grapplerulrich (1), @codekraft (1), @Presskopp (1), @clarkeemily (1), @mxbclang (1), @eugenemanuilov (1), @akshitsethi (1), @tweetythierry (1), @eherman24 (1), @mehulkaklotar (1), @joegrainger (1), @baxbridge (1), @chynnabenton (1), @sobatkras (1), @masteradhoc (1), @isabel_brison (1), @manzoorwanijk (1), @renegeuze (1), @hztyfoon (1), @mattwondra (1), @kebbet (1), @ryokuhi (1), @thakkarhardik (1), @dilipbheda (1), @leogermani (1), @webbeetle (1), @mmaumio (1), @feastdesignco (1), @jeffpaul (1), @markhowellsmead (1), @imarkinteractive (1), @olliejones (1), @garymatthews919 (1), @kwillmorth (1), @barneydavey (1), @tonylocalword (1), @lovor (1), @eatingrules (1), @azaozz (1), @studiolxv (1), @ryan (1), @pbearne (1), @tillkruess (1), @dg12345 (1), @lucasbustamante (1), @dougal (1), @dhilditch (1), @Ste_95 (1), @scribu (1), @sc0ttkclark (1), @filosofo (1), @hellofromTonya (1), @luigipulcini (1), @JustinSainton (1), @Chouby (1), @byohann6 (1), @malthert (1), @mitweka (1), @circlecube (1), @anantajitjg (1), @alamgircsebd (1), @kapilpaul (1), @rachelbaker (1), @furi3r (1), @MatthiasReinholz (1), @helen (1), @whaze (1), @greg24 (1), @onnimonni (1), @dxd5001 (1), @virgar (1), @nuryko (1), @laboiteare (1), @ironprogrammer (1), @zodiac1978 (1), @rodrigosevero (1), @ocean90 (1), @aristath (1), @markoheijnen (1), @gitlost (1), @p_enrique (1), @nunomorgadinho (1), @nacin (1), @targz (1), @NumidWasNotAvailable (1), @nareshbheda (1), @pratiweb (1), @justinahinon (1), and @ryelle (1).
Congrats and welcome to our 41 (!!) new contributors of the week: @dainemawer, @karinclimber, @cagsmith, @scofennellgmailcom, @trevorpfromsandee, @codekraft, @clarkeemily, @mxbclang, @eugenemanuilov, @akshitsethi, @joegrainger, @baxbridge, @chynnabenton, @sobatkras, @masteradhoc, @renegeuze, @mattwondra, @webbeetle, @feastdesignco, @imarkinteractive, @olliejones, @garymatthews919, @kwillmorth, @barneydavey, @tonylocalword, @studiolxv, @dg12345, @dhilditch, @Ste_95, @byohann6, @mitweka, @alamgircsebd, @MatthiasReinholz, @greg24, @dxd5001, @virgar, @nuryko, @laboiteare, @rodrigosevero, @targz, @nareshbheda ♥️
Core committers: @sergeybiryukov (23), @audrasjb (21), @desrosj (8), @spacedmonkey (5), @peterwilsoncc (2), @adamsilverstein (2), and @gziolo (1).
#6-0-1, #6-1, #core, #week-in-core