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 August 23 and August 30, 2021.
- 33 commits
- 34 contributors
- 63 tickets created
- 11 tickets reopened
- 49 tickets closed
The Core team is currently working on the next point (5.8.1) and major (5.9) releases.
Ticket Created for both bug reports and feature development on the bug tracker. numbers are based on the Trac timeline for the period above. The following is a summary of commits, organized by component and/or focus.
Code changes
Administration
- Remove a misleading pointer cursor from list items in the admin (and super admin) menu – #51551
Build/Test Tools
- Install the Composer package dependencies within the Docker environment as part of the local development environment installation and testing processes – #53945
- Preserve
text within backticks
in Slack 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 – #52644 - Remove
shell: bash
from PHPUnit test workflow – #53363 - Remove
shell: bash
from code coverage workflow – #53363 - Use list format when defining
environment
variables in Docker compose file – #53820 - Remove
css/dist
in grunt clean
command – #53719 - Improve bootstrap error message for when
ABSPATH
folder does not exist - Move
wp_list_filter()
tests to their own file – #53363, #53987 - Move
wp_list_pluck()
tests to their own file – #53363, #53987 - Move
wp_list_sort()
tests to their own file – #53363, #53987 - Remove duplicate
wp_list_pluck()
tests – #53363, #53987 - Rename the test file and class for
wp_filter_object_list()
tests – #53363, #53987
Coding Standards
- Add missing visibility keywords for
wp_filter_object_list()
and wp_list_pluck()
tests – #53363, #53987 - Fix WPCS A collection of PHP_CodeSniffer rules (sniffs) to validate code developed for WordPress. It ensures code quality and adherence to coding conventions, especially the official standards for WordPress Core. issue in [51682] – #54030
- Fix indentation and remove
ignore
annotation in wp_privacy_send_personal_data_export_email()
– #53359 - Make
ignore
annotation more specific in WP_Site_Health_Auto_Updates::test_vcs_abspath()
– #53359 - Remove redundant ignore annotation in
populate_options()
– #53359 - Update the config for
WordPress.PHP.FileName
in PHPCS PHP Code Sniffer, a popular tool for analyzing code quality. The WordPress Coding Standards rely on PHPCS. ruleset – #53359 - Update the config for
WordPress.PHP.NoSilencedErrors
in PHPCS ruleset – #53359 - Use static closures when not using
$this
– #53359 - Pass correct default value to
http_build_query()
in WP_Sitemaps_Provider::get_sitemap_url()
– #53635
Customize
- Prevent collapsing expanded panel/section/control when
Esc
is pressed on a 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. editor instance – #54030 - Respect
prefers-reduced-motion
media query in Customizer Tool built into WordPress core that hooks into most modern themes. You can use it to preview and modify many of your site’s appearance settings. animations – #53542
Documentation
- Add missing
@since
tag A directory in Subversion. WordPress uses tags to store a single snapshot of a version (3.6, 3.6.1, etc.), the common convention of tags in version control systems. (Not to be confused with post tags.) for the $check_signatures
parameter of WP_Upgrader::run()
– #53399 - Clarify a comment in
WP_Upgrader::run()
– #53399
Editor
- Ensure block attribute serialization in PHP The web scripting language in which WordPress is primarily architected. WordPress requires PHP 5.6.20 or higher matches the JavaScript JavaScript or JS is an object-oriented computer programming language commonly used to create interactive effects within web browsers. WordPress makes extensive use of JS for a better user experience. While PHP is executed on the server, JS executes within a user’s browser. https://www.javascript.com/. equivalent – #53936
Filesystem 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.
- Make sure to only call
fread()
on non-empty files in PclZip::privAddFile()
– #54036
Media
- Fix
wp_unique_filename()
to check for name collisions with all alternate file names when an image may be converted after uploading. This includes possible collinions with pre-existing images whose sub-sizes/thumbnails are regenerated – #53668
Menus
- Save display locations for new menus – #53877
Plugins
- Display a message on Plugins list table if a plugin A plugin is a piece of software containing a group of functions that can be added to a WordPress website. They can extend functionality or add new features to your WordPress websites. WordPress plugins are written in the PHP programming language and integrate seamlessly with WordPress. These can be free in the WordPress.org Plugin Directory https://wordpress.org/plugins/ or can be cost-based plugin from a third-party requires a higher version of PHP or WordPress – #53990
REST API The REST API is an acronym for the RESTful Application Program Interface (API) that uses HTTP requests to GET, PUT, POST and DELETE data. It is how the front end of an application (think “phone app” or “website”) can communicate with the data store (think “database” or “file system”) https://developer.wordpress.org/rest-api/.
- Correct the description for the
last_updated
property in the block-directory endpoint – #53595
Security
- Correct the inline docs (phpdoc, docblock, xref) for the
wp_kses_allowed_html
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. – #53597
Toolbar
- Provide a CSS Cascading Style Sheets. custom property for the admin bar height – #52623
Props
Thanks to the 34 people who contributed to WordPress Core on Trac last week: @jrf (10), @hellofromTonya (8), @SergeyBiryukov (6), @desrosj (5), @johnbillion (3), @dlh (2), @azaozz (2), @netweb (2), @sabernhardt (1), @pbearne (1), @swissspidy (1), @youknowriad (1), @nico23 (1), @ocean90 (1), @pbrearne (1), @timothyblynjacobs (1), @kevinfodness (1), @peterwilsoncc (1), @mikeschroder (1), @mamaduka (1), @TacoVerdo (1), @zieladam (1), @isabel_brison (1), @kevin940726 (1), @earnjam (1), @gwwar (1), @opurockey (1), @ryelle (1), @kurudrive (1), @circlecube (1), @DavidAnderson (1), @mukesh27 (1), @andraganescu (1), and @ianmjones (1).
Congrats and welcome to our 2 new contributors of the week! @kevinfodness and @kurudrive ♥️
Core committers: @sergeybiryukov (12), @hellofromtonya (7), @desrosj (5), @johnbillion (4), @peterwilsoncc (2), @mikeschroder (1), @ryelle (1), and @azaozz (1).
#5-8-1, #5-9, #core, #week-in-core