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 January 23 and January 30, 2023.
- 49 commits
- 59 contributors
- 62 tickets created
- 6 tickets reopened
- 62 tickets closed
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
Bootstrap/Load
- Avoid initializing
WP_Recovery_Mode
when fatal error handler is disabled – #56848
Build/Test Tools
- Back up and restore the
$wp_filters
global when running tests – #57236
- Revert [55137] – #57555
- Update PostCSS to version 8 – #57554, #57555
- Update
caniuse-lite
to the latest version – #57555
- Update third-party 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 – #57572
- Resolve some line endings issues in
blocks/renderCommentTemplate.php
on Windows machines – #56793
- Use
wp_recursive_ksort()
in WP_Theme_JSON_Resolver
tests – #56793
Bundled Themes
- Twenty Twenty-One: Refine
primary-navigation.js
behavior for anchor links – #53331
- Twenty Twenty-Two: Remove color reference from pattern names – #56720
Code Modernization
- Allow some parameters with reserved keywords in
wp-includes/class-wp-text-diff-renderer-*.php
– #56788
- Fix a JS JavaScript, a web scripting language typically executed in the browser. Often used for advanced user interfaces and behaviors. error in
wpdialog
– #56830
- Rename parameters that use reserved keywords in
phpunit/tests/functions/wpRefererField.php
– #56788
- Rename parameters that use reserved keywords in
phpunit/tests/kses.php
– #56788
- Rename parameters that use reserved keywords in
phpunit/tests/post.php
– #56788
- Rename parameters that use reserved keywords in
phpunit/tests/rest-api.php
– #56788
- Rename parameters that use reserved keywords in
phpunit/tests/shortcode.php
– #56788
- Rename parameters that use reserved keywords in
phpunit/tests/widgets/wpWidgetMedia.php
– #56788
- Rename parameters that use reserved keywords in
wp-includes/blocks.php
– #56788
- Rename parameters that use reserved keywords in
wp-includes/class-wp-theme-json-resolver.php
– #56788
- Rename parameters that use reserved keywords in
wp-includes/class-wp-theme-json.php
– #56788
- Rename parameters that use reserved keywords in
wp-includes/formatting.php
– #56788
- Rename parameters that use reserved keywords in
wp-includes/functions.php
– #56788
Coding Standards
- Allow some parameters with reserved keywords in
wp-includes/compat.php
– #56788, #56791
- Bring some consistency to the order of attributes in password fields – #56791
Database
- Add
%i
placeholder support to $wpdb->prepare
to escape table and column names, take 2 – #52506
- Replace
str_ends_with()
usage in wpdb::prepare()
– #52506
- Replace
substr_compare()
usage with substr()
in wpdb::prepare()
– #52506
Docs
- 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 WP_Theme_JSON_Resolver::remove_json_comments()
– #56792
- Update $types param for wp_get_global_stylesheet() – #57563, #56792
- Various improvements in
ms-blogs.php
function descriptions, as per docblocks standards – #56792
Editor
- Add is 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. theme setting to get_block_editor_settings() – #57549
- Adds ‘settings.typography.fluid.minFontSize’ support to wp_get_typography_font_size_value() – #57529
- Adds pagination and ordering support to
WP_REST_Pattern_Directory_Controller
– #57501
- Fix undefined variable following [54805] – #56974, #57067
- Migrate old to the new pattern categories – #57532
- Remove WP_DEBUG defined check in wp_tinycolor_hue_to_rgb() – #57527
- Use a non-persistent object cache in
wp_get_global_settings()
– #57502
- Use a non-persistent object cache instead of transient in
wp_get_global_stylesheet()
– #56910
- Use in/decrementors in wp_tinycolor_hue_to_rgb() – #57527
I18N 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.
Media
- Add download link to media modal and attachment details – #41474
- Deprecate unused method
WP_Media_List_Table::column_desc()
– #39710
Menus
- Add missing escaping function in Admin (and super admin) Menu walker – #57541
Revisions The WordPress revisions system stores a record of each saved draft or published update. The revision system allows you to see what changes were made in each revision by dragging a slider (or using the Next/Previous buttons). The display indicates what has changed in each revision.
- Only create autosave when content changed – #49532
Themes
- Add “Style Variations” to the list of WordPress theme features – #56869, #meta6545
- Add static cache variable to wp_theme_has_theme_json() – #56975
- Avoid unnecessary database queries from
get_default_block_editor_settings()
in WP_Theme_JSON_Resolver::get_theme_data()
– #57547
- Support additional link related pseudo classes in
theme.json
– #57053
Props
Thanks to the 59 people who contributed to WordPress Core on Trac last week: @jrf (14), @poena (14), @sergeybiryukov (14), @aristath (14), @justinahinon (11), @costdev (11), @mukesh27 (9), @oandregal (5), @spacedmonkey (5), @mamaduka (4), @ironprogrammer (4), @hellofromTonya (4), @flixos90 (4), @audrasjb (4), @azaozz (3), @ntsekouras (3), @joen (2), @Otto42 (2), @hellofromtonya (2), @mcsf (2), @ryelle (2), @andreaboe (1), @TobiasBg (1), @shubham1gupta (1), @peterwilsoncc (1), @andrewserong (1), @ramonopoly (1), @cu121 (1), @arrasel403 (1), @paaljoachim (1), @robinwpdeveloper (1), @chaion07 (1), @afercia (1), @annezazu (1), @jameskoster (1), @sabernhardt (1), @aniketpatel (1), @dgwyer (1), @dmsnell (1), @aduth (1), @sanjucta (1), @iandunn (1), @JeffMatson (1), @antpb (1), @countrymusicchicago (1), @joedolson (1), @amin7 (1), @inwerpsel (1), @craigfrancis (1), @antonvlasenko (1), @xknown (1), @ellatrix (1), @alexstine (1), @glendaviesnz (1), @scruffian (1), @jorgefilipecosta (1), @ocean90 (1), @czapla (1), and @whaze (1).
Congrats and welcome to our 5 new contributors of the week: @andreaboe, @shubham1gupta, @sanjucta, @countrymusicchicago, @inwerpsel ♥️
Core committers: @sergeybiryukov (20), @hellofromtonya (8), @audrasjb (7), @flixos90 (5), @desrosj (4), @davidbaumwald (2), @swissspidy (1), @joedolson (1), and @adamsilverstein (1).
#6-2, #core, #meta6545, #week-in-core