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 22 and January 29, 2024.
- 48 commits
- 64 contributors
- 60 tickets created
- 4 tickets reopened
- 67 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
Build/Tests Tools
- Configure prettier properly – #60316
- Update the
caniuse
data – #59657
- 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 – #59805
- Update third-party 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/. action – #59805
- Ensure set_error_handler is cleaned up – #60305
- Expand
sanitize_text_field()
tests – #60357
Bundled Themes
- Twenty Twenty-Four: Change font family slug to lowercase – #60325
Coding Standards
- Add missing escaping functions to
WP_Customize_Control
and WP_Customize_Nav_Menu_Location_Control
– #60324
- Add missing escaping in
Custom_Image_Header::step_2()
– #59278
- Fix some spaces on 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.-supports background
- Remove unnecessary access and internal annotations from two functions in WP_REST_Templates_Controller – #60358
- Update PHPCS PHP Code Sniffer, a popular tool for analyzing code quality. The WordPress Coding Standards rely on PHPCS. to version 3.8.1 – #60279
- Use strict type check for
in_array()
in get_hooked_block_markup()
– #60279
Docs
- Add missing full stop in
WP_Comment_Query::parse_query()
DocBlock (phpdoc, xref, inline docs) – #60323
- Fix a few typos in
wp-includes/pomo/po.php
– #60346
- Fix typo in
_get_block_template_file()
DocBlock – #59651
- Improve various globals documentation, as per docblock standards – #59255, #59651
- Typo correction in
wp_internal_hosts
docblock – #60363
Editor
- Add Block Bindings 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. helpers – #60282
- Add original_source and author_text to the templates 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/. – #60358
- Add registry for block binding sources – #60282
- Add video and audio pattern categories – #60342
- Define the labels of the pattern category The 'category' taxonomy lets you group posts / content together that share a common bond. Categories are pre-defined and broad ranging. 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. – #60322
- Ensure PHPUnit10 compatibility for ThemeJson unit test Code written to test a small piece of code or functionality within a larger application. Everything from themes to WordPress core have a series of unit tests. Also see regression. – #60305
- Fix Theme.json 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. application of custom root selector for styles – #60343
- Fix back to items label capitalization for the pattern categories – #60322
- Set show_tagcloud to false for Pattern Categories – #60119
- Unset reference used in foreach statement – #60326
- Update the ThemeJson unit test to cover custom CSS Cascading Style Sheets. feature – #60294
- Update the WordPress packages to the 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/ 16.7 RC2 version – #60315
- fix classname output on blocks without layout – #60292
- fix fluid font division by zero error when min and max viewport widths are equal – #60263
- Amend PHPDoc (docblock, inline docs) for
hooked_block_{$hooked_block_type}
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. – #59572, #60126
- Introduce a new
hooked_block_{$block_type}
filter – #59572, #60126
General
- Add $schema property to block and theme JSON files – #60255
HTML HyperText Markup Language. The semantic scripting language primarily used for outputting content in web browsers. API
- Scan all syntax tokens in a document, read modifiable text – #60170
- Support INPUT tags – #60283
- Support PARAM, SOURCE, and TRACK tags – #60283
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.
- Add missing variable in string replacement – #59656
- Improve docblocks after [57337] – #59656
- Improve edge case handling in
WP_Translation_Controller
– #59656
- Introduce a more performant localization library – #59656
- Rename
WP_Translation_Controller::instance()
method to get_instance()
– #59656
Media
- Redirect inactive attachment pages for logged-out users – #59866, #57913
Script Loader
- Clarify in docs that
wp_get_inline_script_tag()
and wp_print_inline_script_tag()
can take non-JS JavaScript, a web scripting language typically executed in the browser. Often used for advanced user interfaces and behaviors. data – #60331
- Load the modules to the footer in classic themes – #60240
- Only emit CDATA wrapper comments in
wp_get_inline_script_tag()
for 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/. – #56313, #60320
- Script Modules API: Rename
wp_module
to wp_script_module
– #56313
Props
Thanks to the 64 people who contributed to WordPress Core on Trac: @swissspidy (9), @mukesh27 (8), @gziolo (6), @jonsurrell (6), @get_dave (5), @audrasjb (5), @shailu25 (4), @dmsnell (4), @luisherranz (3), @jorbin (3), @andrewserong (3), @westonruter (3), @flixos90 (3), @jrf (2), @isabel_brison (2), @costdev (2), @peterwilsoncc (2), @antonvlasenko (2), @czapla (2), @artemiosans (2), @santosguillamot (2), @sc0ttkclark (2), @lgladdy (2), @talldanwp (2), @youknowriad (2), @fabiankaegy (2), @nareshbheda (2), @ntsekouras (2), @poena (2), @aaronrobertshaw (2), @bernhard-reiter (2), @joemcgill (2), @wildworks (2), @desrosj (1), @upadalavipul (1), @viralsampat (1), @sabernhardt (1), @pbearne (1), @vladimiraus (1), @kebbet (1), @afercia (1), @aristath (1), @chesio (1), @joppuyo (1), @lakshmananphp (1), @sergeybiryukov (1), @johnbillion (1), @tomjcafferkey (1), @timbroddin (1), @yansern (1), @RavanH (1), @onemaggie (1), @huzaifaalmesbah (1), @dlh (1), @zieladam (1), @cbravobernal (1), @hardik2221 (1), @dd32 (1), @akirk (1), @ramonopoly (1), @idad5 (1), @nefff (1), @jonsurrel (1), and @kamranzafar4343 (1).
Congrats and welcome to our 2 new contributors of the week: @vladimiraus, @hardik2221 ♥️
Core committers: @youknowriad (11), @sergeybiryukov (7), @swissspidy (6), @dmsnell (4), @desrosj (3), @jorgefilipecosta (3), @audrasjb (3), @bernhard-reiter (3), @gziolo (2), @westonruter (2), @jorbin (2), and @isabel_brison (2).
#6-5, #core, #week-in-core