A Week in Core – August 8, 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 August 1st and August 8, 2022.

  • 54 commits
  • 78 contributors
  • 39 tickets created
  • 4 tickets reopened
  • 38 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

  • Change default site tagline to an empty string – #6479

Bundled Themes

  • Twenty Eleven: Remove a useless CSSCSS Cascading Style Sheets. comment after [53819]#56297
  • Twenty Eleven: Use more specific CSS selectors for .required styles – #56297

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

  • Validate cache key in WP_Object_Cache methods – #56198

Code Modernization

  • Let MockClass extend stdClass#56033
  • Remove dynamic properties in Tests_File#56033
  • Remove dynamic properties in Tests_Media_GetPostGalleries#56033
  • Remove dynamic properties in Tests_POMO_PO#56033
  • Remove dynamic properties in Tests_Post_Revisions#56033
  • Remove unused $undefined property in Tests_WP_Customize_Manager#56033
  • Remove unused dynamic property in Tests_WP_Customize_*#56033

Coding Standards

  • Remove extra space in two conditionals – #56134
  • Reorder global cache groups alphabetically for some consistency – #55647
  • Wrap long lines with global cache groups for better readability – #55647
  • Properly escape URLs returned by self_admin_url() calls – #56329
  • Properly escape URLs returned by self_admin_url() calls – #56329

Database

  • Suppress errors when checking the validity of table prefix during installation – #42362

Date/Time

Docs

  • Improve @since notes for some WP_Filesystem_* methods – #51170
  • Improve description for doing_filter() and doing_action()#55646
  • Improve the description of param $list in wp_list_sort() docblockdocblock (phpdoc, xref, inline docs)#56324, #55646
  • Provide a more accurate @return type for get_pages() function – #56330, #55646
  • Remove obsolete comment in object cache tests – #55646, #55652
  • Use third-person singular verbs for function descriptions in WP_REST_Posts_Controller, as per docblocks standards – #55646
  • Various corrections and improvements to inline documentation – #55646
  • Various docblock fixes in wp-admin/includes/image.php class, as per docs standards – #55646
  • Various docblock fixes in wp-includes/blocks.php, as per docs standards – #55646

Editor

  • Safeguard has_blocks() against fatal errors – #55705

Filesystem

  • Rewrite FTPFTP FTP is an acronym for File Transfer Protocol which is a way of moving computer files from one computer to another via the Internet. You can use software, known as a FTP client, to upload files to a server for a WordPress website. https://codex.wordpress.org/FTP_Clients./FTP Sockets exists() methods to implement a more stable check – #51170, #53318, #39781

Media

  • Correct a misnamed variable when creating sub sizes with multi_resize#55443

Media

  • Remove unused _wp_image_belongs_to_attachment function – #56333
  • Use original image size data for full size secondary mime generation – #55443

Plugins

  • Properly encode query string s parameter in 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 search – #56339

Posts, Post Types

  • Change variable name in wp_set_post_terms() for clarity – #56331
  • Force unique slugs for draft posts – #52422

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

  • Use latest_id as the array key for the latest revision ID – #55857

Revisions

  • Use wp_get_latest_revision_id_and_total_count() where appropriate – #56279

Rewrite rules

  • Prevent malformed date requests throwing notices – #52252

Script loader

  • Enable resource preloading with rel=’preload’ – #42438

Site Health

  • Improve the wording in plugin and theme version tests – #56134

Sitemaps

  • Prevent invalidinvalid A resolution on the bug tracker (and generally common in software development, sometimes also notabug) that indicates the ticket is not a bug, is a support request, or is generally invalid. provider names throwing errors – #56336

Tests

  • Add a test case with a float value for WP_Object_Cache::is_valid_key()#56198
  • Add a unit testunit test Code written to test a small piece of code or functionality within a larger application. Everything from themes to WordPress core have a series of unit tests. Also see regression. for WP_Object_Cache::is_valid_key()#56198
  • Add more test cases for WP_Object_Cache::is_valid_key()#56198
  • Combine test classes for get_edit_term_link() tests – #55652
  • Correct data providers for get_term_link() and get_edit_term_link() tests – #55652
  • Improve the test for not throwing a warning on malformed date queries – #52252, #45513
  • Make the comment cache group persistent in WP_UnitTestCase_Base::flush_cache()#55652
  • Move wp_cache_replace() test to a more appropriate place – #55652
  • Remove the list of global groups in Memcached implementation used in the test suite – #55652
  • Remove the list of non-persistent groups in Memcached implementation used in the test suite – #55652
  • Rename the test class for wp_preload_resources() tests – #42438
  • Simplify the list of global groups in object cache tests – #55647
  • Use named data provider for WP_Object_Cache::is_valid_key() test – #56198

Props

Thanks to the 78 people who contributed to WordPress Core on Trac last week: @costdev (12), @peterwilsoncc (10), @SergeyBiryukov (9), @jrf (7), @audrasjb (7), @mukesh27 (5), @dd32 (4), @tillkruess (3), @spacedmonkey (3), @malthert (3), @desrosj (3), @krishaweb (2), @sabernhardt (2), @johnbillion (2), @azaozz (2), @hellofromTonya (2), @rafiahmedd (1), @martinkrcho (1), @Toro_Unit (1), @boemedia (1), @khag7 (1), @melchoyce (1), @lukecavanagh (1), @karmatosed (1), @hyperbrand (1), @tyxla (1), @h2ham (1), @lazam786 (1), @antonvlasenko (1), @burgiuk (1), @pbearne (1), @rherault (1), @deksar (1), @sumitsingh (1), @maythamalsudany (1), @mdrago (1), @psykro (1), @ironprogrammer (1), @codewhy (1), @blackawxs (1), @mikemanzo (1), @irecinius (1), @Velochicdunord (1), @kovshenin (1), @pento (1), @chriscct7 (1), @flixos90 (1), @RyanMurphy (1), @igrigorik (1), @1naveengiri (1), @giox069 (1), @mkox (1), @afragen (1), @pbiron (1), @Howdy_McGee (1), @colonelphantom (1), @dlh (1), @ovidiul (1), @tremidkhar (1), @mehulkaklotar (1), @nico23 (1), @swissspidy (1), @westonruter (1), @westi (1), @furi3r (1), @aristath (1), @mihai2u (1), @gziolo (1), @praful2111 (1), @jigar-bhanushali (1), @hilayt24 (1), @umesh84 (1), @Presskopp (1), @martin.krcho (1), @Clorith (1), @markjaquith (1), @Denis-de-Bernardy (1), and @rarst (1).

Congrats and welcome to our 19 (!) new contributors of the week: @hyperbrand, @h2ham, @lazam786, @burgiuk, @rherault, @deksar, @maythamalsudany, @mdrago, @codewhy, @blackawxs, @mikemanzo, @irecinius, @Velochicdunord, @RyanMurphy, @igrigorik, @giox069, @colonelphantom, @tremidkhar, @praful2111 ♥️

Core committers: @sergeybiryukov (31), @audrasjb (14), @adamsilverstein (4), @peterwilsoncc (3), @johnbillion (1), @desrosj (1).

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

A Week in Core – August 1, 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 July 25 and August 1st, 2022.

  • 30 commits
  • 29 contributors
  • 36 tickets created
  • 6 tickets reopened
  • 36 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

  • Add labels to read-only form fields – #54302
  • Correct the escaping in documentation lookup for 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 and theme editor – #56007
  • Remove unused CSSCSS 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 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.) pattern matching for the testing NPM workflow – #55652
  • Correctly detect the first workflow run for a 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". or tag – #55652
  • Make 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 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 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.#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 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. type suggestions to block patterns – #53647
  • Twenty Twenty-One: Rebuild the IE specific stylesheet – #55989
  • Twenty Twenty-One: Update NPM dependencies – #55652

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

  • 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 docblockdocblock (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 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/.

  • 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

RevisionsRevisions 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 headerHeader 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 URLURL 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
  • track php extensions and image library support for WebP and AVIF – #48116

Props

Thanks to the 29 people who contributed to WordPress Core on Trac last week: @audrasjb (4), @SergeyBiryukov (3), @jrf (3), @costdev (2), @mukesh27 (2), @mordauk (1), @ironprogrammer (1), @grandeljay (1), @Mamaduka (1), @aaemnnosttv (1), @flixos90 (1), @mitogh (1), @eugenemanuilov (1), @thakkarhardik (1), @ryelle (1), @ndiego (1), @joedolson (1), @lopo (1), @chriscct7 (1), @juliemoynat (1), @sabernhardt (1), @whaze (1), @Soean (1), @azouamauriac (1), @markparnell (1), @dd32 (1), @nacin (1), @andykeith (1), and @milana_cap (1).

Congrats and welcome to our new contributor of the week: @aaemnnosttv ♥️

Core committers: @sergeybiryukov (18), @audrasjb (9), @peterwilsoncc (1), @flixos90 (1), @gziolo (1).

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

A Week in Core – July 25, 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 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 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

  • Add labels to read-only form fields – #54302
  • Correct the escaping in documentation lookup for 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 and theme editor – #56007
  • Remove unused CSSCSS 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 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.) pattern matching for the testing NPM workflow – #55652
  • Correctly detect the first workflow run for a 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". or tag – #55652
  • Make 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 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 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.#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 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. type suggestions to block patterns – #53647
  • Twenty Twenty-One: Rebuild the IE specific stylesheet – #55989
  • Twenty Twenty-One: Update NPM dependencies – #55652

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

  • 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 docblockdocblock (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 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/.

  • 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

RevisionsRevisions 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 headerHeader 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 URLURL 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

A Week in Core – June 27, 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 June 20 and June 27, 2022.

  • 49 commits
  • 43 contributors
  • 71 tickets created
  • 9 tickets reopened
  • 44 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 and on the next minor, WP 6.0.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

Application Passwords

  • Ensure long passwords don’t break the “new password” notice – #54581

Build/Test Tools

  • Add missing @covers tags and fix the docs for the Cron test group – #39265
  • Add missing @covers tags for the AJAX test group – #39265
  • Adjust SlackSlack Slack is a Collaborative Group Chat Platform https://slack.com/. The WordPress community has its own Slack Channel at https://make.wordpress.org/chat/. notifications logic to account for expected non push events – #55652
  • Allow changes to the code coverage workflow to run on pull request – #55652
  • Configure Xdebug modes in the local Docker environment – #56022
  • Fix erroneous file name, from convertInvalidEntries.php to convertInvalidEntities.php#55652
  • Return an error when uploading a test coverage report fails – #55652
  • Update 3rd party 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/ Actions – #55652
  • Update NPM devDependencies to their latest versions – #55652
  • Update the actions/cache action – #55652
  • Always include the error message in assertNotWPError() and assertNotIXRError()#55652
  • Correct the expected result for wp_ajax_replyto_comment() test with a draft post – #39265
  • Further improve Tests_Image_Functions::test_wp_crop_image*() tests – #55652
  • Give the tests for adding empty post metaMeta 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. values more consistent names – #55652
  • Improve Tests_Image_Functions::test_wp_crop_image*() tests – #55652
  • Improve the test for sticky posts not being moved to the front in sitemaps – #55633
  • Move assertQueryTrue() closer to the other custom assertions in WP_UnitTestCase_Base#55652
  • Put @covers tags before @params in Ajax and Formatting groups – #39265
  • Refactor Tests_Image_Functions::test_load_directory() to split the tests and use a data provider – #55652
  • Remove multiple $wpdb::placeholder_escape() calls in wpdb tests – #55652
  • Replace esc_url_raw() calls with sanitize_url()#39265, #55652
  • Use consistent punctuation in failure messages in Tests_Image_Functions#55652
  • Use more consistent wording when referring to PHPPHP The web scripting language in which WordPress is primarily architected. WordPress requires PHP 5.6.20 or higher deprecation notices – #55652

Code Modernization

  • Remove dynamic properties in Tests_*_Slashes#56033
  • Remove dynamic properties in Tests_Media#56033
  • Use the integer portion of an item position in add_submenu_page()#55656, #54798

Comments

  • Add contextual autocomplete attributes to comment form fields – #55779

Database

  • Add %i placeholder support to $wpdb->prepare to escape table and column names – #52506
  • Add missing @since mention in get_posts_query_args()#55633
  • Correct the return type for wp_save_image_file()#55646
  • Improve documentation for WP_Image_Editor::save() and related functions – #55646
  • Use third-person singular verbs for function descriptions in Bookmark related files, as per docblockdocblock (phpdoc, xref, inline docs) standards – #55646
  • Use third-person singular verbs for function descriptions in Tests_Image_Functions, per the documentation standards – #55646
  • Use third-person singular verbs for function descriptions in Tests_Sitemaps_wpSitemapsPosts, as per docblock standard – #55646
  • Use third-person singular verbs for function descriptions in the Feed 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., as per docblock standards – #55646

Editor

  • Add utility classnames back to blocks that have layout attributes specified – #56058
  • Universalize functions for checking 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 status – #51819

Embeds

  • Remove MeetupMeetup All local/regional gatherings that are officially a part of the WordPress world but are not WordCamps are organized through https://www.meetup.com/. A meetup is typically a chance for local WordPress users to get together and share new ideas and seek help from one another. Searching for ‘WordPress’ on meetup.com will help you find options in your area. as an oEmbed source since the related endpoint has been deprecated – #55997

External Libraries

  • Upgrade PHPMailer to version 6.6.3 – #56016

General

  • Revert an earlier define of the WPINC constant in src/index.php#54233

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

  • Correct and improve inline docsinline docs (phpdoc, docblock, xref) and tests for functionality related to nooped plurals – #55646, #55652

Media

  • Use correct escaping function for URLs in some legacy media functions – #56064

Posts, Post Types

  • Add caching to _find_post_by_old_slug and _find_post_by_old_date functions. – #36723

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

  • Move all links to prepare_links method in theme REST API controller – #56018

Sitemaps

  • Remove duplicate sticky Posts from Sitemap Post Query – #55633

Themes

  • Add actions to template loading to assist with collecting debug info – #54541

Upgrade/Install

  • Add a conditional to facilitate testing of the Rollbacks feature project – #56057, #51857, #54166

Props

Thanks to the 43 people who contributed to WordPress Core on Trac last week: @jrf (9), @SergeyBiryukov (9), @costdev (5), @hellofromTonya (4), @pbeane (4), @antonvlasenko (4), @ironprogrammer (4), @audrasjb (4), @peterwilsoncc (4), @afragen (3), @johnbillion (3), @mukesh27 (2), @Spacedmonkey (2), @desrosj (2), @swissspidy (2), @pbiron (2), @dd32 (1), @pbearne (1), @jorbin (1), @ethitter (1), @flixos90 (1), @tabrisrp (1), @rmccue (1), @RavanH (1), @aristath (1), @zieladam (1), @yannielsen (1), @craigfrancis (1), @davidbaumwald (1), @juliemoynat (1), @bhrugesh96 (1), @sabernhardt (1), @tellyworth (1), @iandunn (1), @apokalyptik (1), @hasanuzzamanshamim (1), @smit08 (1), @glendaviesnz (1), @andrewserong (1), @matveb (1), @samikeijonen (1), @Presskopp (1), and @Synchro (1).

Congrats and welcome to our new contributor of the week: @yannielsen ♥️

Core committers: @sergeybiryukov (24), @desrosj (7), @audrasjb (7), @azaozz (4), @davidbaumwald (2), @johnbillion (2), @spacedmonkey (2), and @jorbin (1).

#6-0, #core, #week-in-core

Let’s update the Core handbook! Sprints start June 20, 2022

In just a few weeks, the community empanels a new release squad to take on the focused work of WordPress 6.1, due in mid-October.

Some parts of the CoreCore Core is the set of software required to run WordPress. The Core Development Team builds WordPress. handbook are need of review and update, especially to reflect big changes in how WordPress works — and in the way WordPress is made. This is hoped to also assist more people to be able to follow or get involved with releases and tickets. During the last few months, there has been some time spent on going through the handbook in preparation for contributor events at WordCampWordCamp WordCamps are casual, locally-organized conferences covering everything related to WordPress. They're one of the places where the WordPress community comes together to teach one another what they’ve learned throughout the year and share the joy. Learn more. Europe and WordCamp US, as well as exploring how it can help new contributors get involved with the project. During recent release cycles, a number of handbook updates have been made or identified for further work.

So on Monday June 20, 2022 at 20:00 UTC, @webcommsat and @marybaum will host the first of a series of sprints devoted to the Core handbook. It will be held in the #core SlackSlack Slack is a Collaborative Group Chat Platform https://slack.com/. The WordPress community has its own Slack Channel at https://make.wordpress.org/chat/.. There will be opportunities to continue with the sprint asynchronously.

@webcommsat has been working behind the scenes to support contributors in different timezones get involved in the review, information gathering, and editing process. She is also identifying cross-links with relevant materials in the documentation and support blogs, and Learn WordPress. A spreadsheet and google docs will be shared on Monday and will be available for asynchronous contribution, and added to this post. The first sprint will be reviewed on Wednesday June 22, 2022 before the weekly dev chat meeting.

Please consider this post your personal invitation to get involved!

Finding a live collaboration session time that will suit everyone is always difficult, so we are proposing a series of dates and will be promoting asynchronous opportunities too:

It is also hoped to get feedback from the new contributor sessions.

If you want to help, have input for a particular page in the handbook, or can help with facilitating a live sprint, please add a comment to this post.

Thank you to @webcommsat for helping organize the events and to @meher and others for the review of the post.

#core-contributor-handbook

A Week in Core – June 13, 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 June 6 and June 13, 2022.

  • 27 commits
  • 48 contributors
  • 45 tickets created
  • 10 tickets reopened
  • 36 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

Build/Tests Tools

  • Add a unit testunit test Code written to test a small piece of code or functionality within a larger application. Everything from themes to WordPress core have a series of unit tests. Also see regression. for PHPPHP The web scripting language in which WordPress is primarily architected. WordPress requires PHP 5.6.20 or higher 8.1 deprecation notice in wp_user_settings()#54914
  • Correct an assertion in wp_rand() tests – #55194
  • Move helper functions in Tests_Image_Functions to more appropriate places – #55652
  • Move the tests for individual pluggable functions into their own directory – #55652
  • Re-initialize WP_Rewrite before running wp_list_authors() tests – #55652
  • Rename classes in phpunit/tests/option/ per the naming conventions – #55652
  • Rename classes in phpunit/tests/user/ per the naming conventions – #55652
  • Rename the test file and class for wp_list_authors() tests – #55652
  • Use a consistent URLURL A specific web address of a website or web page on the Internet, such as a website’s URL www.wordpress.org in HTTPHTTP HTTP is an acronym for Hyper Text Transfer Protocol. HTTP is the underlying protocol used by the World Wide Web and this protocol defines how messages are formatted and transmitted, and what actions Web servers and browsers should take in response to various commands. response cookie tests – #51568
  • Use more consistent wording when referring to PHP deprecation notices – #55652
  • Use more descriptive names for wp_rand() test methods – #55194

Bundled Themes

  • Twenty-Twenty: Fix a width/alignement issue on “Wide Line” Separator style variation – #53643
  • Twenty-Twenty: Fix paragraph 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. alignment issues when used on a RTL website – #49447
  • Twenty-Twenty: Improve Quote block style consistency between front and back-end – #55931

Code Modernization

  • Pass correct default value to setcookie() in wp_user_settings()#54914

Docs

  • Correct method reference format in some DocBlocks – #55928
  • Use third-person singular verbs for function descriptions in the Core Translation 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.#55646
  • Use typed array notation in some post function DocBlocks: – #55646
  • Various fixes in wp-includes/pluggable.php docblocks, as per documentation standards – #55646

General

  • Ensure wp_rand() returns 0 when $min and $max values are equal to 0#55194

Media

  • Add decoding="async" to image attributes – #53232
  • Some documentation and test improvements for wp_img_tag_add_decoding_attr()#53232

Query

  • Prime users cache in WP_Query and post 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/. controller – #55716
  • Add a hook to 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. author full name from wp_list_authors()#17025
  • Some documentation and test improvements for update_post_author_caches(): – #55716

REST API

  • Improve post cache priming in WP_REST_Post_Search_Handler class – #55674

Text Changes

  • Improve consistency of adminadmin (and super admin) error notices in wp-admin/options.php#50785

Props

Thanks to the 48 people who contributed to WordPress Core on Trac last week: @audrasjb (5), @peterwilsoncc (4), @spacedmonkey (3), @jrf (2), @costdev (2), @sabernhardt (2), @TimothyBlynJacobs (2), @mlajo (1), @acoulombe (1), @azouamauriac (1), @swissspidy (1), @tobifjellner (1), @marekdedic (1), @SergeyBiryukov (1), @kjellr (1), @sergiomdgomes (1), @matthiaspabst (1), @amirkamizi (1), @mayankmajeji (1), @ianbelanger (1), @hasanuzzamanshamim (1), @kajalgohel (1), @iamjaydip (1), @whaze (1), @mukesh27 (1), @westonruter (1), @michaelbourne (1), @mitogh (1), @afercia (1), @shenyanzhi (1), @meysamnorouzi (1), @kevinB (1), @wonderboymusic (1), @DrewAPicture (1), @nacin (1), @Mte90 (1), @jorbin (1), @rafiahmedd (1), @mihai2u (1), @furi3r (1), @adamsilverstein (1), @ayeshrajans (1), @flixos90 (1), @hellofromtonya (1), @isaumya (1), @ocean90 (1), and @dd32 (1).

Congrats and welcome to our 6 new contributors of the week: @mlajo, @acoulombe, @matthiaspabst, @shenyanzhi, @meysamnorouzi, @isaumya ♥️

Core committers: @sergeybiryukov (16), @audrasjb (8), @spacedmonkey (2), and @peterwilsoncc (1).

#6-0, #core, #week-in-core

A Week in Core – June 6, 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 May 30 and June 6, 2022.

  • 23 commits
  • 24 contributors
  • 65 tickets created
  • 3 tickets reopened
  • 41 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 🛠

Worth noting that the WordCampWordCamp WordCamps are casual, locally-organized conferences covering everything related to WordPress. They're one of the places where the WordPress community comes together to teach one another what they’ve learned throughout the year and share the joy. Learn more. Europe 2022 contributors day gathered more than 800 contributors in Porto last week. This was the largest Contributor DayContributor Day Contributor Days are standalone days, frequently held before or after WordCamps but they can also happen at any time. They are events where people get together to work on various areas of https://make.wordpress.org/ There are many teams that people can participate in, each with a different focus. https://2017.us.wordcamp.org/contributor-day/ https://make.wordpress.org/support/handbook/getting-started/getting-started-at-a-contributor-day/. ever held!

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

Build/Test Tools

  • Add some test cases for path_join() with Windows paths – #55897
  • Add unit tests for path_join()#55897
  • Clean up test images before performing assertions in image resize tests – #55652
  • Consistently pass the $force_delete parameter to wp_delete_attachment()#55652
  • Correctly confirm the previous workflow run was triggered by a push event – #55652
  • Don’t overwrite image metadata in a wp_calculate_image_srcset() test for zero width – #55652
  • Prevent inaccurate “fixed” notifications in SlackSlack Slack is a Collaborative Group Chat Platform https://slack.com/. The WordPress community has its own Slack Channel at https://make.wordpress.org/chat/.#55652
  • Require the zip PHPPHP The web scripting language in which WordPress is primarily architected. WordPress requires PHP 5.6.20 or higher extension in 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. templates export file test – #55652
  • Update the URLURL A specific web address of a website or web page on the Internet, such as a website’s URL www.wordpress.org to the documentation on 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/ Actions environment variables – #55652

Bundled Themes

  • Twenty-Twenty: Alignment fix on Separator Block editor styles – #55896
  • Twenty-Twenty: Fix paragraph block alignment issues when used on a RTL website – #49447
  • Twenty-Twenty: Improve Quote block style consistency between front and back-end – #55931

Docs

  • Correct method reference format in some DocBlocks – #55928
  • Replace “updated” with “deleted” in wpdb::delete return description – #55646
  • Use third-person singular verbs for method descriptions in wp-includes/post.php, as per docs standards – #55646
  • Various fixes in wp-includes/pluggable.php docblocks, as per documentation standards – #55646

Formatting

  • Make sanitize_url() the recommended function for sanitizing a URL – #55852

General

  • Ensure wp_rand() returns 0 when $min and $max values are equal to 0#55194
  • Remove redundant ltrim() from path_join()#55897
  • Replace all esc_url_raw() calls in core with sanitize_url()#55852

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

  • Use consistent context for the “Add New” string when referring to media – #55876

Media

  • Add support for WebP images in the Thickbox library – #55786

Text Changes

  • Improve consistency of adminadmin (and super admin) error notices – #50785

Props

Thanks to the 24 people who contributed to WordPress Core on Trac last week: @SergeyBiryukov (5), @audrasjb (4), @mukesh27 (3), @benjgrolleau (3), @sabernhardt (2), @peterwilsoncc (2), @iamjaydip (2), @whaze (2), @karlijnbk (2), @amirkamizi (1), @larrach (1), @ilunabar (1), @tobifjellner (1), @mihaidumitrascu (1), @transl8or (1), @cadlec (1), @umesh84 (1), @joyously (1), @mayankmajeji (1), @dd32 (1), @kajalgohel (1), @hasanuzzamanshamim (1), @ianbelanger (1), and @graham73may (1).

Congrats and welcome to our 6 new contributors of the week: @benjgrolleau, @whaze, @karlijnbk, @amirkamizi, @mihaidumitrascu, @cadlec ♥️

Core committers: @sergeybiryukov (13), @audrasjb (8), and @desrosj (2).

#6-0, #core, #week-in-core

Two Weeks in Core – May 30, 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.. This is a special edition since it exceptionally covers two weeks.

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 16 and May 30, 2022.

  • 31 commits
  • 62 contributors
  • 136 tickets created
  • 13 tickets reopened
  • 100 tickets closed

WordPress 6.0 “Arturo” was released !

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

AccessibilityAccessibility Accessibility (commonly shortened to a11y) refers to the design of products, devices, services, or environments for people with disabilities. The concept of accessible design ensures both “direct access” (i.e. unassisted) and “indirect access” meaning compatibility with a person’s assistive technology (for example, computer screen readers). (https://en.wikipedia.org/wiki/Accessibility)

  • List Tables: Hide the Comments column icon and title attribute from screen readers – #55555, #24766

Administration

  • Fix image overlap in Dashboard welcome panel – #55793

Build/Test Tools

  • Fix comments odd/even instabilities (test leaks) – #54725
  • Link to a specific run attempt in 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 SlackSlack Slack is a Collaborative Group Chat Platform https://slack.com/. The WordPress community has its own Slack Channel at https://make.wordpress.org/chat/. notifications – #55652
  • Temporarily skip MariaDB version test – #55791

Bundled themes

  • Bump versions for WordPress 6.0 release – #55754
  • Revert the Twenty Ten theme version to 3.6 – #55810, #55754
  • Twenty Twenty-Two: Fix typo in Dark Footer pattern docblockdocblock (phpdoc, xref, inline docs)#55772

Code Modernization

  • Replace phpversion() function calls with PHP_VERSION constant – #55680

Coding Standards

  • Correct alignment in various files – #55647

Docs

  • Add missing documentation for fallback_gap_value param – #55567
  • Add missing documentation for some Customize class properties – #55646
  • Correct the type for WP_Post::$post_category and ::$tags_input#55785
  • Explicitly declare some globals for clarity – #51439
  • Use third-person singular verbs for method descriptions in wp-includes/class-wp-roles.php, per the documentation standards – #55646

Editor

  • Fix opinionated 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. styles loading in editor – #55567
  • Return additional block patterns to server-generated settings – #55567
  • Update WordPress packages for 6.0 RCrelease candidate One of the final stages in the version release cycle, this version signals the potential to be a final release to the public. Also see alpha (beta). 3 – #55567
  • Update WordPress packages for 6.0 RC 4 – #55567

General

Help/About

  • Add cache busting string to video thumbnail – #55808
  • Ensure about page shows current headerHeader 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.#55750
  • Finalise links on about page – #55775

Media

  • Add support for WebP images in the Thickbox library – #55786

Query

  • Check if $wp_query is set in query loopLoop 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. functions – #55722

Quick/Bulk Edit

Site Editor

  • Include style parameter in home template redirect – #55752

Tests

  • Improve the assertions in recommended MySQLMySQL MySQL is a relational database management system. A database is a structured collection of data where content, configuration and other options are stored. https://www.mysql.com/. and MariaDB version tests – #55791, #55652

Themes

  • Accept valid block themes – #55754

Upgrade/Install

  • Update $_old_files for 6.0 – #55794

Users

  • Fail gracefully when checking mapped capabilities without providing the required object ID – #44591

Props

Thanks to the 62 people who contributed to WordPress Core on Trac: @SergeyBiryukov (11), @hellofromTonya (8), @costdev (8), @peterwilsoncc (7), @ryelle (4), @zieladam (4), @sabernhardt (3), @mukesh27 (3), @JeffPaul (2), @ironprogrammer (2), @desrosj (2), @hellofromtonya (2), @audrasjb (2), @johnstonphilip (2), @azaozz (2), @ravipatel (2), @ryokuhi (1), @karlgroves (1), @grantmkin (1), @mamaduka (1), @iamjaydip (1), @passoniate (1), @jeherve (1), @afercia (1), @ilunabar (1), @henry.wright (1), @johnbillion (1), @aristath (1), @mattheweppelsheimer (1), @azouamauriac (1), @Ninos Ego (1), @TobiasBg (1), @wpsmith (1), @GaryJ (1), @nacin (1), @jsnajdr (1), @poena (1), @jrf (1), @Boniu91 (1), @dd32 (1), @davidbaumwald (1), @Chouby (1), @nalininonstopnewsuk (1), @webcommsat (1), @marybaum (1), @meher (1), @wparslan (1), @annezazu (1), @critterverse (1), @vdankbaar (1), @FlorianBrinkmann (1), @thijso (1), @teunvgisteren (1), @timkersten655 (1), @omaeyusuke (1), @ayeshrajans (1), @graham73may (1), @jffng (1), @mehedi890 (1), @sergeybiryukov (1), @gziolo (1), and @ndiego (1).

Core committers: @sergeybiryukov (14), @peterwilsoncc (7), @gziolo (5), @hellofromtonya (2), @ryelle (1), @desrosj (1), and @audrasjb (1).

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

A Week in Core – May 9, 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 May 2 and May 9, 2022.

  • 35 commits
  • 64 contributors
  • 61 tickets created
  • 12 tickets reopened
  • 51 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.0, and released 6.0 RCrelease candidate One of the final stages in the version release cycle, this version signals the potential to be a final release to the public. Also see alpha (beta). 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

Build/Test Tools

  • Add the 6.0 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". to the workflow for testing branches
  • Allow the local development environment to run on Apple M1 machines without requiring local configuration changes – #52356
  • Ensure version number is in ‘X.X’ format after float math: Tests_Basic::test_security_md()#55667
  • Pass 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/ Actions environment variables to the Docker container – #55668
  • Improve the logic of the SECURITY.md test to check all supported versions – #55667
  • Move get_inline_data() tests to a more appropriate place – #55652
  • Temporarily disable the test for “Supported Versions” section of GitHub Security Policy

Code Modernization

  • Rename parameters that use reserved keywords in wp-admin/includes/template.php#55650
  • Rename parameters to match native PHPPHP The web scripting language in which WordPress is primarily architected. WordPress requires PHP 5.6.20 or higher functions in wp-includes/compat.php#55650

Coding Standards

  • Remove extra space in wp-admin/admin-ajax.php#55692

Docs

  • Correct parameter types for serialize_block() and serialize_blocks()#55648, #54729
  • Improve plugin_install_action_links 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.’s docs – #55480
  • Remove @return void from various DocBlocks – #54729

Editor

  • Add unit testunit test Code written to test a small piece of code or functionality within a larger application. Everything from themes to WordPress core have a series of unit tests. Also see regression. for Comment Template 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.#55643, #55634
  • Sets ‘paged’ query arg only when there are comments: build_comment_query_vars_from_block()#55658
  • Update WordPress packages for 6.0 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. 4 – #55567
  • Update WordPress packages for 6.0 RC1 – #55567

General

  • Add missing strong 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 some error messages – #54437

Help/About

  • Add link to 6.0 Field GuideField guide The field guide is a type of blogpost published on Make/Core during the release candidate phase of the WordPress release cycle. The field guide generally lists all the dev notes published during the beta cycle. This guide is linked in the about page of the corresponding version of WordPress, in the release post and in the HelpHub version page., fix missing placeholder in string – #55434
  • Update the About section for 6.0 – #55434

Media

  • Remove error suppression in wp_filesize()#55678, #49412

Query

  • Restore late compact() call for the posts_clauses_request filter – #55699

Quick/Bulk Edit

  • Additional tests for showing taxonomies – #49701
  • Remove duplicate HTMLHTML HyperText Markup Language. The semantic scripting language primarily used for outputting content in web browsers. IDs – #55575, #35483

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

  • Fixes /wp/v2/pattern-directory/patterns endpoint response for slug parameter – #55617

Script Loader

  • Explain why i18ni18n 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. prevents concatenation – #55628
  • Fix i18n edge case breaking dependencies – #55628

Security

  • Update the Security Policy to include WordPress 6.0

Site Health

  • Remove unused variables in WP_Site_Health::get_test_plugin_version()#55683

Users

  • Allow any DB field to be returned by WP_User_Query#53177
  • Improve WP_User_Query tests following [53362] – #53177

Props

Thanks to the 64 people who contributed to WordPress Core on Trac last week: @costdev (6), @SergeyBiryukov (5), @audrasjb (5), @hellofromTonya (3), @ndiego (3), @justinahinon (3), @aristath (3), @gziolo (3), @mukesh27 (3), @johnbillion (3), @bernhard-reiter (2), @peterwilsoncc (2), @spacedmonkey (2), @jrf (2), @antonvlasenko (2), @poena (2), @hellofromtonya (2), @ironprogrammer (2), @darerodz (2), @afragen (2), @zieladam (2), @dlh (1), @marybaum (1), @annezazu (1), @webcommsat (1), @dansoschin (1), @chanthaboune (1), @cbringmann (1), @sergeybiryukov (1), @eidolonnight (1), @laurlittle (1), @JeffPaul (1), @NekoJonez (1), @ocean90 (1), @luisherranz (1), @czapla (1), @cbravobernal (1), @davidbaumwald (1), @timothyblynjacobs (1), @manooweb (1), @critterverse (1), @azaozz (1), @estelaris (1), @chaion07 (1), @figureone (1), @azouamauriac (1), @antpb (1), @rajeshraval786 (1), @dd32 (1), @pbearne (1), @kraftbj (1), @boniu91 (1), @jsnajdr (1), @fcoveram (1), @ugyensupport (1), @desrosj (1), @talldanwp (1), @Cybr (1), @david.binda (1), @5um17 (1), @greglone (1), @joedolson (1), @sabernhardt (1), @pbiron (1).

Congrats and welcome to our 3 new contributors of the week: @laurlittle, @rajeshraval786, @fcoveram ♥️

Core committers: @sergeybiryukov (18), @peterwilsoncc (7), @hellofromtonya (4), @ryelle (2), @audrasjb (2), @johnbillion (1), and @gziolo (1).

#6-0, #core, #week-in-core

A Week in Core – April 25, 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 April 18 and April 25, 2022.

  • 44 commits
  • 50 contributors
  • 34 tickets created
  • 6 tickets reopened
  • 36 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.0 🛠

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

Autosave

  • Compare heartbeat intervals in same unit – #54825

Build/Test Tools

  • Test PHPPHP The web scripting language in which WordPress is primarily architected. WordPress requires PHP 5.6.20 or higher and WP compatibility functions – #54257
  • Typo correction in rss2 unit tests – #47968
  • Update the constant used to remove experimental 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/ code – #55567
  • Improve version compatibility tests – #54257
  • Add missing unit tests to Comment Template 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.#55567
  • Update Gallery block unit tests to new gallery format – #55571
  • Update the test for wp_install() signature – #55327

Bundled Themes

  • Twenty Fifteen: Use #page height instead of body height in sidebarSidebar A sidebar in WordPress is referred to a widget-ready area used by WordPress themes to display information that is not a part of the main content. It is not always a vertical column on the side. It can be a horizontal rectangle below or above the content area, footer, header, or any where in the theme. scroll calculation – #40492
  • Twenty Twenty-One: Correct translator comment in twenty_twenty_one_continue_reading_text#55564

Code Modernization

  • Rename parameters that use reserved keywords in swp-includes/class-wp-customize-setting.php#55327
  • Rename parameters that use reserved keywords in wp-admin/includes/plugin.php#55327
  • Rename parameters that use reserved keywords in wp-admin/includes/taxonomy.php#55327
  • Rename parameters that use reserved keywords in wp-admin/includes/template.php#55327
  • Rename parameters that use reserved keywords in wp-admin/includes/upgrade.php#55327
  • Rename parameters that use reserved keywords in wp-admin/install-helper.php#55327
  • Rename parameters that use reserved keywords in wp-includes/atomlib.php#55327
  • Rename parameters that use reserved keywords in wp-includes/block-supports/border.php#55327
  • Rename parameters that use reserved keywords in wp-includes/class-wp-customize-manager.php#55327
  • Rename parameters that use reserved keywords in wp-includes/class-wp-customize-nav-menus.php#55327
  • Rename parameters that use reserved keywords in wp-includes/class-wp-customize-widgets.php#55327
  • Rename parameters that use reserved keywords in wp_die_*_handler filters – #55327
  • Rename parameters that use reserved keywords in bundled themes – #55327
  • Fix reported undefined $script_uri variable notice – 55567

Comments

  • Improve accuracy of get_comment_count() docblockdocblock (phpdoc, xref, inline docs)#19901

Docs

  • Correct the expected parameter type for WP_Customize_Manager::remove_preview_signature()#54729
  • Use third-person singular verbs for function descriptions in wp-includes/blocks.php and wp-includes/script-loader.php, per the documentation standards – #54729
  • Misc fixes and improvements in the Administration Media 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. docblocks, as per documentation standards – #54729
  • Typo correction in wp-includes/ms-functions.php docblock – #54729
  • Use third-person singular verbs for function descriptions in Multisitemultisite Used to describe a WordPress installation with a network of multiple blogs, grouped by sites. This installation type has shared users tables, and creates separate database tables for each blog (wp_posts becomes wp_0_posts). See also network, blog, site WordPress API, as per docs standards – #54729
  • Use third-person singular verbs for function descriptions in WP_Theme Class, as per docs standards – #54729
  • Use third-person singular verbs for function descriptions in WP_User_Query Class, as per docs standards – #54729
  • Use third-person singular verbs for function descriptions in wp-includes/capabilities.php, as per docs standards – #54729
  • Use third-person singular verbs for function descriptions in wp-includes/ms-load.php, as per docs standards – #54729
  • Use third-person singular verbs for function descriptions in wp-includes/nav-menu.php, as per docs standards – #54729

Editor

  • Add default comment status to discussion settings – #55567
  • Correctly register the dynamic Cover block – #55580
  • Fix Comment Query block isn’t lazy loading metaMeta 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. data – #55567
  • Fix styles for nested elements (link color) – #55567
  • Include the PHP file for the Cover block – #55580
  • Move wp_enqueue_block_style() to wp-includes/script-loader.php, for better consistency – #55182, #55148
  • Update WordPress packages for 6.0 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. 2 – #55567

Feeds

  • Use latest comment date for the Last-Modified headerHeader 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. of comments feed – #47968

Media

  • Remove attachment_fields_to_save 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. and deprecate image_attachment_fields_to_save()#39108
  • Use correct parameter in _wp_nav_menu_meta_box_object()#55327

Posts, Post Types

  • Fix option validation in stick_post()#55176

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

  • Add inserter field to the schema of Patterns endpoint – #55567
  • Add array argument to getItems for Pattern Directory endopoint – #55574
  • Don’t load remote patterns twice in the controller – #55567
  • Respect _fields query arg in preloaded requests – #55213, #55567

Themes

  • Ensure WP_Theme::get_files() doesn’t return unexpected values – #53599

Users

  • Make sure WP_User_Query can be filtered using the fields parameter – #53177

Props

Thanks to the 50 people who contributed to WordPress Core on Trac last week: @SergeyBiryukov (18), @jrf (13), @aristath (13), @poena (13), @justinahinon (13), @audrasjb (7), @costdev (5), @peterwilsoncc (4), @sabernhardt (3), @azouamauriac (3), @mamaduka (2), @antonvlasenko (2), @Boniu91 (2), @ndiego (2), @hellofromTonya (2), @rilwis (2), @toro_unit (1), @tabrisrp (1), @davidbaumwald (1), @pbearne (1), @etaproducto (1), @mikeschroder (1), @cbravobernal (1), @zieladam (1), @jsnajdr (1), @timothyblynjacobs (1), @antpb (1), @ironprogrammer (1), @Mamaduka (1), @chaion07 (1), @aadilali (1), @glendaviesnz (1), @francina (1), @stephenharris (1), @luisherranz (1), @darerodz (1), @NomNom99 (1), @dd32 (1), @opurockey (1), @Rahmohn (1), @denishua (1), @Junaidkbr (1), @kajalgohel (1), @sergeybiryukov (1), @oandregal (1), @xiven (1), @mauteri (1), @dromero20 (1), @desrosj (1), and @mukesh27 (1).

Congrats and welcome to our 4 new contributors of the week: @etaproducto, @kajalgohel, @xiven, @dromero20 ♥️

Core committers: @sergeybiryukov (18), @audrasjb (16), @gziolo (14), @peterwilsoncc (5), and @davidbaumwald (1).

#6-0, #core, #meta6273, #week-in-core