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 May 22 and June 5, 2023. Sorry for not being able to publish a post last week, this one will cover two weeks!
- 37 commits
- 63 contributors
- 91 tickets created
- 9 tickets reopened
- 71 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
Bundled Themes
- Remove/disable obsolete IE-specific skip-link-focus-fix – #54421
Coding Standards
- Improve formatting of some SQL queries for better readability – #58372
- Use strict comparison in
wp-admin/includes/menu.php
– #57839
- Use strict comparison in
wp-admin/includes/schema.php
– #58042, #58047, #57839
- Use strict comparison in
wp-admin/includes/update.php
– #57839
- Use strict comparison in
wp-admin/network/sites.php
– #57839
- Use strict comparison in
wp-admin/network/users.php
– #57839
- Use strict comparison in
wp-admin/users.php
– #57839
- Use strict comparison in
wp-includes/category.php
– #57839
- Use strict comparison in
wp-includes/class-walker-category.php
– #57839
- Use strict comparison in
wp-includes/theme-compat/comments.php
– #57839
Comments
- Deprecate wp_queue_comments_for_comment_meta_lazyload function – #58301
- Move wp_queue_comments_for_comment_meta_lazyload function to the correct file – #58301
Cron 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.
- Attempt to raise the PHP The web scripting language in which WordPress is primarily architected. WordPress requires PHP 7.4 or higher memory limit for cron event processing – #56628
Docs
- Add a
@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 pre_wp_setup_nav_menu_item
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. – #56577
- Miscellaneous corrections and improvements to docblocks – #57840
- Various docblock (phpdoc, xref, inline docs) improvements 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 related functions, as per docblocks standards – #57840
Editor
- Use register_block_type_from_metadata in register_core_block_types_from_metadata – #58342
Emoji
- Remove extraneous
sprintf()
from _print_emoji_detection_script()
– #58436, #44632
Editor
External Libraries
- Update jQuery to version 3.7.0 – #58083
Formatting
- Add support for schwa in remove_accents() – #57609
General
- Improve performance of the
_wp_array_get()
function – #58376
Help/About
- Remove unwanted space in a link located on
about.php
– #58373
- Reverse the order of conditionals for displaying the “Go to Updates” link – #57839
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.
- Improve
_load_textdomain_just_in_time()
logic when there are no translation The process (or result) of changing text, words, and display formatting to support another language. Also see localization, internationalization. files – #58321
- Provide
gettext
context to disambiguate various translation strings – #58424
- Refactor
determine_locale()
for performance and readability – #58317
Media
- Conditionally skip lazy-loading on images before the loop 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. to improve LCP performance – #58211, #53675, #56930
- Correct the fallback value passed to the
$mimes
parameter of wp_check_filetype_and_ext()
from _wp_handle_upload()
, and update corresponding documentation – #58349
- Fix lazy-loading 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. by avoiding to modify content images when creating an excerpt An excerpt is the description of the blog post or page that will by default show on the blog archive page, in search results (SERPs), and on social media. With an SEO plugin, the excerpt may also be in that plugin’s metabox. – #56588
- Prevent scaling up of images in the Image Editor – #26381
Menus
- Add a short-circuit filter to
wp_setup_nav_menu_item()
– #56577
Options, Meta 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. APIs
- Change the option can_compress_scripts to be autoloaded. – #55270
Themes
- Use correct escaping function for
aria-label
in _navigation_markup()
– #58387
Upgrade/Install
- Avoid an extra database query in
populate_network()
– #58423
Users
- Make sure bulk actions are only executed with the Apply button, not Change – #57952
Props
Thanks to the 63 people who contributed to WordPress Core on Trac last week: @sergeybiryukov (14), @mukesh27 (11), @costdev (10), @aristath (9), @afercia (9), @spacedmonkey (8), @poena (8), @flixos90 (5), @swissspidy (3), @nihar007 (2), @TobiasBg (2), @thekt12 (2), @audrasjb (2), @joedolson (2), @westonruter (2), @sabernhardt (2), @desrosj (2), @sakibmd (1), @azaozz (1), @suleymankenar (1), @przemekhernik (1), @umeshmcakadi (1), @krupalpanchal (1), @dhrumilk (1), @sh4lin (1), @peterwilsoncc (1), @RavanH (1), @ellatrix (1), @mikeschroder (1), @jrf (1), @samiamnot (1), @joemcgill (1), @salvoaranzulla (1), @gziolo (1), @sarequl (1), @NekoJonez (1), @sumitbagthariya16 (1), @ahsannayem (1), @Mista-Flo (1), @markoheijnen (1), @david.binda (1), @Cybr (1), @ironprogrammer (1), @andizer (1), @faisalahammad (1), @thakkarhardik (1), @johnbillion (1), @ocean90 (1), @haritpanchal (1), @Ankit-K-Gupta (1), @iandunn (1), @pkbhatt (1), @brookedot (1), @platonkristinin (1), @gonzomir (1), @mgol (1), @jorbin (1), @hbhalodia (1), @ankitmaru (1), @sudipatel007 (1), @naeemhaque (1), @nuhel (1), and @zunaid321 (1).
Congrats and welcome to our 10 new contributors of the week: @suleymankenar, @przemekhernik, @umeshmcakadi, @sh4lin, @sarequl, @pkbhatt, @platonkristinin, @hbhalodia, @sudipatel007, @nuhel ♥️
Core committers: @sergeybiryukov (17), @audrasjb (4), @spacedmonkey (4), @johnbillion (3), @westonruter (2), @swissspidy (2), @flixos90 (2), @azaozz (1), @antpb (1), @oandregal (1).
#6-3-2, #core, #week-in-core