Title: A Week in Core – June 21, 2021
Author: Jb Audras
Published: June 22, 2021

---

 [  ](https://profiles.wordpress.org/audrasjb/) [Jb Audras](https://profiles.wordpress.org/audrasjb/)
8:47 pm _on_ June 22, 2021     
Tags: [5.8 ( 99 )](https://make.wordpress.org/core/tag/5-8/),
[week in core ( 245 )](https://make.wordpress.org/core/tag/week-in-core/)   

# A Week in Core – June 21, 2021

Welcome back to a new issue of _Week in CoreCore Core is the set of software required
to run WordPress. The Core Development Team builds WordPress._. Let’s take a look
at what changed on TracTrac An open source project by Edgewall Software that serves
as a bug tracker and project management tool for WordPress. between June 14 and 
June 21, 2021.

 * 58 commits
 * 61 contributors
 * 83 tickets created
 * 7 tickets reopened
 * 52 tickets closed

Please note that the WordPress Core team released [WordPress 5.8 beta 2](https://wordpress.org/news/2021/06/wordpress-5-8-beta-2/)
last week. Everyone is welcome to help testing 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.
of WordPress 🌟

Ticketticket Created for both bug reports and feature development on the bug tracker.
numbers are based on the [Trac timeline for the period above](https://core.trac.wordpress.org/timeline?from=06%2F21%2F2021&daysback=7&authors=&ticket=on&changeset=on&repo-=on&repo-design=on&repo-tests=on&sfp_email=&sfph_mail=&update=Update).
The following is a summary of commits, organized by component and/or focus.

## Code changes

### Administration

 * Consistently escape `admin_url()` links – [#53426](https://core.trac.wordpress.org/ticket/53426)
 * Consistently escape `network_admin_url()` links – [#53459](https://core.trac.wordpress.org/ticket/53459)

### Build/Test Tools

 * Ignore sourceMaps for non WordPress Core files – [#52689](https://core.trac.wordpress.org/ticket/52689)
 * Replace the deprecated `@babel/polyfill` – [#52941](https://core.trac.wordpress.org/ticket/52941)
 * Use GitGit Git is a free and open source distributed version control system designed
   to handle everything from small to very large projects with speed and efficiency.
   Git is easy to learn and has a tiny footprint with lightning fast performance.
   Most modern plugin and theme development is being done with this version control
   system. [https://git-scm.com/](https://git-scm.com/) when fetching the WordPress
   Importer for use in tests – [#52909](https://core.trac.wordpress.org/ticket/52909)
 * Correct `svn:eol-style` property for test data with CR line endings – [#52625](https://core.trac.wordpress.org/ticket/52625)
 * Make some optional parameters required in unit tests for previous/next attachment
   links – [#45708](https://core.trac.wordpress.org/ticket/45708), [#52625](https://core.trac.wordpress.org/ticket/52625)
 * Use more appropriate assertions in `clean_dirsize_cache()` tests – [#52625](https://core.trac.wordpress.org/ticket/52625)
 * Use more appropriate assertions in a few tests – [#52625](https://core.trac.wordpress.org/ticket/52625)

### Bundled Themes

 * Improve 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/](https://wordpress.org/gutenberg/)
   check before activating an FSE theme – [#53410](https://core.trac.wordpress.org/ticket/53410)
 * Make sure `get_file_data()` recognizes headers prefixed by `<?php` 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.) – [#33387](https://core.trac.wordpress.org/ticket/33387)
 * Prevent a Full Site Editing theme from being activated when Gutenberg is not 
   active – [#53410](https://core.trac.wordpress.org/ticket/53410)
 * Remove unexpected border around the Theme Details button – [#53473](https://core.trac.wordpress.org/ticket/53473)
 * Twenty Thirteen: Improve the display of the 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](https://codex.wordpress.org/The_Loop)
   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. – [#53438](https://core.trac.wordpress.org/ticket/53438)
 * Twenty Twenty-One: Add margins around content in Post Template block – [#53389](https://core.trac.wordpress.org/ticket/53389),
   [#53398](https://core.trac.wordpress.org/ticket/53398)

### Coding Standards

 * Apply some alignment fixes – [#50105](https://core.trac.wordpress.org/ticket/50105)
 * Bring some consistency to HTMLHTML HyperText Markup Language. The semantic scripting
   language primarily used for outputting content in web browsers. formatting in`
   wp-admin/comment.php` – [#52627](https://core.trac.wordpress.org/ticket/52627)
 * Fix WPCSWordPress Community Support A public benefit corporation and a subsidiary
   of the WordPress Foundation, [established](https://wordpressfoundation.org/news/2016/introducing-wordpress-community-support-a-public-benefit-subsidiary/)
   in 2016. issue in [[51174]](https://core.trac.wordpress.org/changeset/51174) –
   [#53407](https://core.trac.wordpress.org/ticket/53407)
 * Remove a one-time `$message` variable in WordPress version requirement notices
   for bundled themes – [#52627](https://core.trac.wordpress.org/ticket/52627)
 * Remove a one-time `$message` variable in some `_doing_it_wrong()` calls – [#52627](https://core.trac.wordpress.org/ticket/52627)
 * Use consistent formatting for `_wp_posts_page_notice()` and `_wp_block_editor_posts_page_notice()`–
   [#45537](https://core.trac.wordpress.org/ticket/45537), [#52627](https://core.trac.wordpress.org/ticket/52627)

### Documentation

 * Add a reference to `WP_Site_Query::__construct()` for information on accepted
   arguments in `get_sites()` – [#42156](https://core.trac.wordpress.org/ticket/42156)
 * Add missing documentation for `wp_migrate_old_typography_shape()` – [#52991](https://core.trac.wordpress.org/ticket/52991),
   [#52628](https://core.trac.wordpress.org/ticket/52628)
 * Correct DocBlockdocblock (phpdoc, xref, inline docs) formatting for `Core_Upgrader::
   upgrade()` – [#52628](https://core.trac.wordpress.org/ticket/52628)
 * Correct `@since` version in the `wp-includes/version.php` file 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. – [#52628](https://core.trac.wordpress.org/ticket/52628)
 * Document the `VALID_ORIGINS` constant in `WP_Theme_JSON` – [#52628](https://core.trac.wordpress.org/ticket/52628)
 * Document the usage of `$_wp_current_template_content` global in a few block template
   functions – [#52628](https://core.trac.wordpress.org/ticket/52628)
 * Document the usage of `$wp_embed` global in `WP_oEmbed_Controller::get_proxy_item()`–
   [#52628](https://core.trac.wordpress.org/ticket/52628)
 * Update syntax for multi-line comment in `wp_generate_attachment_metadata()` per
   the documentation standards – [#52603](https://core.trac.wordpress.org/ticket/52603)
 * Update syntax for some multi-line comments per the documentation standards – 
   [#52628](https://core.trac.wordpress.org/ticket/52628)

### Editor

 * Remove code from a translatable string in `wp_migrate_old_typography_shape()`–
   [#52991](https://core.trac.wordpress.org/ticket/52991)
 * Allow `custom-units` to be an array – [#53472](https://core.trac.wordpress.org/ticket/53472)
 * Check if `supports` metadata key is defined before migrating typography keys –
   [#53416](https://core.trac.wordpress.org/ticket/53416)
 * Include Cover block in the list of block types registered using metadata files–
   [#53440](https://core.trac.wordpress.org/ticket/53440)
 * Replace a Gutenberg specific function with the Core equivalent – [#53369](https://core.trac.wordpress.org/ticket/53369)
 * Package updates for 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. 3 – [#53397](https://core.trac.wordpress.org/ticket/53397)
 * Prevent duplicate queries – [#53280](https://core.trac.wordpress.org/ticket/53280),
   [#53176](https://core.trac.wordpress.org/ticket/53176)
 * Second batch of fixes for 5.8 beta 2 – [#53397](https://core.trac.wordpress.org/ticket/53397)
 * Update the WordPress packages with the fixes for 5.8 beta 2 – [#53397](https://core.trac.wordpress.org/ticket/53397)
 * Ports theme.jsonJSON 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. changes for beta 3 – [#53397](https://core.trac.wordpress.org/ticket/53397)

### External Libraries

 * Upgrade PHPMailer to version 6.5.0 – [#53430](https://core.trac.wordpress.org/ticket/53430)

### Internationalization

 * Remove redundant `default` text domain parameter in some `__()` calls – [#52627](https://core.trac.wordpress.org/ticket/52627)
 * Use consistent pattern for placeholder references in translator comments for 
   some bundled theme strings – [#52628](https://core.trac.wordpress.org/ticket/52628)

### Media

 * Adapt response shape depending on type of query – [#53421](https://core.trac.wordpress.org/ticket/53421),
   [#53419](https://core.trac.wordpress.org/ticket/53419)
 * Ensure `$post_ids` is evaluated properly when processing bulk actions – [#53411](https://core.trac.wordpress.org/ticket/53411)
 * Improve upload page media item layout on smaller screens – [#51754](https://core.trac.wordpress.org/ticket/51754)
 * Make sure `wp_generate_attachment_metadata()` always returns an array – [#52603](https://core.trac.wordpress.org/ticket/52603)
 * Restore AJAX response data shape in media library – [#50105](https://core.trac.wordpress.org/ticket/50105)
 * Update total attachment count when media added or removed – [#53171](https://core.trac.wordpress.org/ticket/53171)

### Quick/Bulk Edit

 * Ensure that `$post_ids` variable is initialized ahead of usage – [#39589](https://core.trac.wordpress.org/ticket/39589),
   [#53411](https://core.trac.wordpress.org/ticket/53411)

### 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/](https://developer.wordpress.org/rest-api/)󠁿

 * Decode HTML entities in widgetWidget A WordPress Widget is a small block that
   performs a specific function. You can add these widgets in sidebars also known
   as widget-ready areas on your web page. WordPress widgets were originally created
   to provide a simple and easy-to-use way of giving design and structure control
   of the WordPress theme to the user. names and descriptions in widget types controller–
   [#53407](https://core.trac.wordpress.org/ticket/53407)
 * Decode single and double quote entities in widget names and descriptions – [#53407](https://core.trac.wordpress.org/ticket/53407)

### Upgrade/Install

 * Deactivate the Gutenberg 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/](https://wordpress.org/plugins/)
   or can be cost-based plugin from a third-party. if its version is 10.7 or lower–
   [#53432](https://core.trac.wordpress.org/ticket/53432)

### Users

 * Escape `get_author_posts_url()` link in `wp_list_authors()` – [#50698](https://core.trac.wordpress.org/ticket/50698)

### Widgets

 * Add editor styles to the widgets block editor – [#53344](https://core.trac.wordpress.org/ticket/53344),
   [#53388](https://core.trac.wordpress.org/ticket/53388)
 * Stop loading `wp-editor` and the Block Directory assets on the widgets screen–
   [#53437](https://core.trac.wordpress.org/ticket/53437), [#53397](https://core.trac.wordpress.org/ticket/53397)

## Props

**Thanks to the 61 people who contributed to WordPress Core on Trac last week:**
[@desrosj](https://profiles.wordpress.org/desrosj/) (6), [@noisysocks](https://profiles.wordpress.org/noisysocks/)(
5), [@nosolosw](https://profiles.wordpress.org/nosolosw/) (4), [@youknowriad](https://profiles.wordpress.org/youknowriad/)(
4), [@ryelle](https://profiles.wordpress.org/ryelle/) (4), [@adamsilverstein](https://profiles.wordpress.org/adamsilverstein/)(
3), [@audrasjb](https://profiles.wordpress.org/audrasjb/) (3), [@walbo](https://profiles.wordpress.org/walbo/)(
3), [@SergeyBiryukov](https://profiles.wordpress.org/sergeybiryukov/) (3), [@peterwilsoncc](https://profiles.wordpress.org/peterwilsoncc/)(
3), [@chintan1896](https://profiles.wordpress.org/chintan1896/) (3), [@jorbin](https://profiles.wordpress.org/jorbin/)(
3), [@hellofromTonya](https://profiles.wordpress.org/hellofromtonya/) (3), [@david](https://profiles.wordpress.org/david/).
binda (2), [@joedolson](https://profiles.wordpress.org/joedolson/) (2), [@ramonopoly](https://profiles.wordpress.org/ramonopoly/)(
2), [@gziolo](https://profiles.wordpress.org/gziolo/) (2), [@jorgefilipecosta](https://profiles.wordpress.org/jorgefilipecosta/)(
2), [@spacedmonkey](https://profiles.wordpress.org/spacedmonkey/) (2), [@mukesh27](https://profiles.wordpress.org/mukesh27/)(
2), [@Presskopp](https://profiles.wordpress.org/presskopp/) (2), [@alexstine](https://profiles.wordpress.org/alexstine/)(
1), [@jnylen0](https://profiles.wordpress.org/jnylen0/) (1), [@czapla](https://profiles.wordpress.org/czapla/)(
1), [@francina](https://profiles.wordpress.org/francina/) (1), [@markparnell](https://profiles.wordpress.org/markparnell/)(
1), [@kraftner](https://profiles.wordpress.org/kraftner/) (1), [@justinahinon](https://profiles.wordpress.org/justinahinon/)(
1), [@afragen](https://profiles.wordpress.org/afragen/) (1), [@johnbillion](https://profiles.wordpress.org/johnbillion/)(
1), [@ayeshrajans](https://profiles.wordpress.org/ayeshrajans/) (1), [@TimothyBlynJacobs](https://profiles.wordpress.org/timothyblynjacobs/)(
1), [@Synchro](https://profiles.wordpress.org/synchro/) (1), [@Chouby](https://profiles.wordpress.org/chouby/)(
1), [@aristath](https://profiles.wordpress.org/aristath/) (1), [@ntsekouras](https://profiles.wordpress.org/ntsekouras/)(
1), [@mcsf](https://profiles.wordpress.org/mcsf/) (1), [@chaion07](https://profiles.wordpress.org/chaion07/)(
1), [@Clorith](https://profiles.wordpress.org/clorith/) (1), [@ocean90](https://profiles.wordpress.org/ocean90/)(
1), [@pbiron](https://profiles.wordpress.org/pbiron/) (1), [@chanthaboune](https://profiles.wordpress.org/chanthaboune/)(
1), [@Mamaduka](https://profiles.wordpress.org/mamaduka/) (1), [@mkaz](https://profiles.wordpress.org/mkaz/)(
1), [@joen](https://profiles.wordpress.org/joen/) (1), [@isabel_brison](https://profiles.wordpress.org/isabel_brison/)(
1), [@andraganescu](https://profiles.wordpress.org/andraganescu/) (1), [@caseymilne](https://profiles.wordpress.org/caseymilne/)(
1), [@sabernhardt](https://profiles.wordpress.org/sabernhardt/) (1), [@marybaum](https://profiles.wordpress.org/marybaum/)(
1), [@AlePerez92](https://profiles.wordpress.org/aleperez92/) (1), [@azaozz](https://profiles.wordpress.org/azaozz/)(
1), [@scruffian](https://profiles.wordpress.org/scruffian/) (1), [@birgire](https://profiles.wordpress.org/birgire/)(
1), [@felipeelia](https://profiles.wordpress.org/felipeelia/) (1), [@dd32](https://profiles.wordpress.org/dd32/)(
1), [@m_uysl](https://profiles.wordpress.org/m_uysl/) (1), [@thomas-vitale](https://profiles.wordpress.org/thomas-vitale/)(
1), [@boblinthorst](https://profiles.wordpress.org/boblinthorst/) (1), [@oglekler](https://profiles.wordpress.org/oglekler/)(
1), and [@JeffPaul](https://profiles.wordpress.org/jeffpaul/) (1).

**Congrats and welcome to our 3 new contributors of the week!** [@czapla](https://profiles.wordpress.org/czapla/),
[@caseymilne](https://profiles.wordpress.org/caseymilne/), and [@AlePerez92](https://profiles.wordpress.org/aleperez92/)
♥️

**Core committers:** [@sergeybiryukov](https://profiles.wordpress.org/sergeybiryukov/)(
33), [@desrosj](https://profiles.wordpress.org/desrosj/) (13), [@joedolson](https://profiles.wordpress.org/joedolson/)(
3), [@jorgefilipecosta](https://profiles.wordpress.org/jorgefilipecosta/) (2), [@youknowriad](https://profiles.wordpress.org/youknowriad/)(
2), [@ryelle](https://profiles.wordpress.org/ryelle/) (1), [@peterwilsoncc](https://profiles.wordpress.org/peterwilsoncc/)(
1), [@antpb](https://profiles.wordpress.org/antpb/) (1), [@davidbaumwald](https://profiles.wordpress.org/davidbaumwald/)(
1), and [@jorbin](https://profiles.wordpress.org/jorbin/) (1).

[#5-8](https://make.wordpress.org/core/tag/5-8/), [#week-in-core](https://make.wordpress.org/core/tag/week-in-core/)

### Share this:

 * [  Threads ](https://make.wordpress.org/core/2021/06/22/a-week-in-core-june-21-2021/?share=threads)
 * [  Mastodon ](https://make.wordpress.org/core/2021/06/22/a-week-in-core-june-21-2021/?share=mastodon)
 * [  Bluesky ](https://make.wordpress.org/core/2021/06/22/a-week-in-core-june-21-2021/?share=bluesky)
 * [  X ](https://make.wordpress.org/core/2021/06/22/a-week-in-core-june-21-2021/?share=x)
 * [  Facebook ](https://make.wordpress.org/core/2021/06/22/a-week-in-core-june-21-2021/?share=facebook)
 * [  LinkedIn ](https://make.wordpress.org/core/2021/06/22/a-week-in-core-june-21-2021/?share=linkedin)

# Post navigation

[← Extending the Site Health interface in WordPress 5.8](https://make.wordpress.org/core/2021/06/22/extending-the-site-health-interface-in-wordpress-5-8/)

[Block API Enhancements in WordPress 5.8 →](https://make.wordpress.org/core/2021/06/23/block-api-enhancements-in-wordpress-5-8/)