Welcome back to a new issue of Week in Core Core is the set of software required to run WordPress. The Core Development Team builds WordPress.. Let’s take a look at what changed on Trac An open source project by Edgewall Software that serves as a bug tracker and project management tool for WordPress. between November 22 and November 29, 2021.
- 42 commits
- 60 contributors
- 53 tickets created
- 5 tickets reopened
- 40 tickets closed
The Core team is currently working on the next major release, WordPress 5.9 🛠
Ticket Created for both bug reports and feature development on the bug tracker. numbers are based on the Trac timeline for the period above. The following is a summary of commits, organized by component and/or focus.
Code changes
- Configure Dependabot scanning for GitHub GitHub is a website that offers online implementation of git repositories that can easily be shared, copied and modified by other developers. Public repositories are free to host, private repositories require a paid subscription. GitHub introduced the concept of the ‘pull request’ where code changes done in branches by contributors can be reviewed and discussed before being merged be the repository owner. https://github.com/ Actions – #54503
- Correct the order and naming of expected and actual values in various tests – #53363
- Fix warnings from
stdClass::__invoke()
callback mocks in REST API The REST API is an acronym for the RESTful Application Program Interface (API) that uses HTTP requests to GET, PUT, POST and DELETE data. It is how the front end of an application (think “phone app” or “website”) can communicate with the data store (think “database” or “file system”) https://developer.wordpress.org/rest-api/. tests – #53844 - Remove unexpected output in
wp_dashboard_recent_drafts()
tests on PHP The web scripting language in which WordPress is primarily architected. WordPress requires PHP 7.4 or higher 8.1 – #53635, #53363 - Rename classes in
phpunit/tests/block-supports/
per the naming conventions – #53363 - Rename classes in block Block is the abstract term used to describe units of markup that, composed together, form the content or layout of a webpage using the WordPress editor. The idea combines concepts of what in the past may have achieved with shortcodes, custom HTML, and embed discovery into a single consistent API and user experience. template tests per the naming conventions – #53363
- Replace
assertEquals()
with assertSame()
in block template tests – #53364, #53363, #54335 - Temporarily disable the check that the current recommended PHP version is actively supported – #54528
- Use a simpler approach to test the output in some tests – #53635, #53363, #53363
- Specify NodeJS version
14.x
in the .nvmrc
file – #54502
Bundled Themes
- Twenty Twenty One: Remove Image block placeholder alignment override in editor styles – #54254
- Twenty Twenty-One: Combine duplicate CSS Cascading Style Sheets. rules – #53605
- Twenty Twenty-One: Style adjustments for list-based widgets in the widget 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. editor – #53629
- Twenty Twenty: Restore Editor post title styles after Gutenberg The Gutenberg project is the new Editor Interface for WordPress. The editor improves the process and experience of creating new content, making writing rich content much simpler. It uses ‘blocks’ to add richness rather than shortcodes, custom HTML etc. https://wordpress.org/gutenberg/ 11.4.0 updates – #54056
Docs
- Add a
@since
note and description to wp_kses_attr()
for new attribute-related KSES options: – #54261 - Document the globals used in some Privacy API An API or Application Programming Interface is a software intermediary that allows programs to interact with each other and share data in limited, clearly defined ways. methods – #53399
- Improve consistency of some DocBlocks in
wp-admin/includes/post.php
– #53399 - Miscellaneous DocBlock (phpdoc, xref, inline docs) corrections – #53399
- Miscellaneous DocBlock corrections in
wp-admin/includes/post.php
– #53399 - Remove inaccurate part of the
screen_settings
filter Filters are one of the two types of Hooks https://codex.wordpress.org/Plugin_API/Hooks. They provide a way for functions to modify data of other functions. They are the counterpart to Actions. Unlike Actions, filters are meant to work in an isolated manner, and should never have side effects such as affecting global variables and output. description – #54524 - Various docblock corrections and improvements – #53399
Editor
- Check the correct post type support property for
initial_edits
– #53813 - Ensure block style name does not contain spaces before creating the class – #54296
- Remove Navigation Areas – #54506
- Update wordpress packages: Update packages to include bug A bug is an error or unexpected result. Performance improvements, code optimization, and are considered enhancements, not defects. After feature freeze, only bugs are dealt with, with regressions (adverse changes from the previous version) being the highest priority. fixes from Gutenberg – #54487
External Libraries
- Update getID3 to version 1.9.21 – #54162
- Update the Requests library to version 2.0.0 – #54504
- Upgrade PHPMailer to version 6.5.3 – #54514
Feeds
- Remove reference to
wp-atom.php
in Atom feeds xml:base
attribute – #47955
- Allow setting custom image alt text in custom header The header of your site is typically the first thing people will experience. The masthead or header art located across the top of your page is part of the look and feel of your website. It can influence a visitor’s opinion about your content and you/ your organization’s brand. It may also look different on different screen sizes. image – #46124
- Ensure media preview is fully viewable in the “Add Media” modal – #53636
- Fix
TypeError
and improve wp_exif_frac2dec()
to only return int
or float
– #54385 - Replace
tests/phpunit/data/images/sugar-mountain.jpg
test image – #54385 - Replace some array keys with their numeric equivalent – #53540
REST API
- Ensure that the rest_after_insert_ action is executed in the templates controller. – #54520
Script Loader
- Enqueue block stylesheet only when the corresponding block is used – #54457
Taxonomy A taxonomy is a way to group things together. In WordPress, some common taxonomies are category, link, tag, or post format. https://codex.wordpress.org/Taxonomies#Default_Taxonomies.
- Check $term object before using it in
get_term_feed_link()
– #50225 - Use
WP_Term
object to retrieve the taxonomy in get_term_feed_link()
– #50225
Themes
- Add block template resolution algorithm unit tests – #54478
- Move the skip link to outside the canvas in block themes – #54491
- Update the base folders for templates and template parts in block themes – #54493
Props
Thanks to the 60 people who contributed to WordPress Core on Trac last week: @jrf (6), @audrasjb (4), @sabernhardt (4), @costdev (4), @mukesh27 (4), @SergeyBiryukov (3), @spacedmonkey (2), @bernhard-reiter (2), @adamsilverstein (2), @peterwilsoncc (2), @zieladam (2), @Boniu91 (2), @justinahinon (1), @multidots1896 (1), @wojsmol (1), @jorgefilipecosta (1), @chintan1896 (1), @schlessera (1), @Synchro (1), @datagutten (1), @noisysocks (1), @dd32 (1), @dustinrue (1), @soulseekah (1), @szepeviktor (1), @youknowriad (1), @ryelle (1), @Shaharyar10 (1), @shital-patel (1), @poena (1), @circlecube (1), @Rahmohn (1), @sourovroy (1), @hugod (1), @webmandesign (1), @joedolson (1), @Ankit K Gupta (1), @get_dave (1), @shireling (1), @mai21 (1), @hilayt24 (1), @desrosj (1), @praem90 (1), @stevegs (1), @tobiasbg (1), @tw2113 (1), @siliconforks (1), @shimotomoki (1), @nrqsnchz (1), @devutpol (1), @amustaque97 (1), @hellofromtonya (1), @pbiron (1), @afragen (1), @dlh (1), @Starbuck (1), @afercia (1), @anevins (1), @mikeschroder (1), and @talldanwp (1).
Congrats and welcome to our 10 new contributors of the week: @multidots1896, @wojsmol, @datagutten, @dustinrue, @Shaharyar10, @hugod, @praem90, @stevegs, @shimotomoki, and @amustaque97 ♥️
Core committers: @sergeybiryukov (14), @audrasjb (13), @hellofromtonya (3), @johnbillion (3), @spacedmonkey (2), @youknowriad (2), @noisysocks (2), @desrosj (2), and @peterwilsoncc (1).
#5-9, #core, #week-in-core