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 October 10 and October 17, 2022.
- 73 commits
- 141 contributors
- 67 tickets created
- 7 tickets reopened
- 100 tickets closed
The WordPress Security Team released WordPress 6.0.3 🚀
The Core team is currently working on the next major release A release, identified by the first two numbers (3.6), which is the focus of a full release cycle and feature development. WordPress uses decimaling count for major release versions, so 2.8, 2.9, 3.0, and 3.1 are sequential and comparable in scope., WP 6.1 🛠
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/Test Tools
- Add missing newline character on unit tests files after [54443] – #56611
- Add 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. for non-existing 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.-styles registration – #56664
- Expand unit tests for
theme.json
– #56611
- Remove note about some PHP The web scripting language in which WordPress is primarily architected. WordPress requires PHP 7.4 or higher versions being allowed to fail – #56009
- 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 – #56820
- Delete leftover image sub-sizes after
WP_Customize_Manager
tests – #56807
- Relocate the tests for recommended PHP, MySQL MySQL is a relational database management system. A database is a structured collection of data where content, configuration and other options are stored. https://www.mysql.com/., and MariaDB versions – #45867
- Revert unintentional change in [54508] – #56817
- Temporarily skip WOFF file test on PHP 8.2 – #56817
- Use
assertSame()
in some WP_Theme_JSON
tests – #55654
Bundled Themes
- Bump version numbers for 6.1 – #56450
- Twenty Nineteen: Add missing compiled CSS Cascading Style Sheets. declarations after [54413] – #55981
- Twenty Seventeen: Prevent scaling issues on featured images using Safari on iPadOS – #48195
- Twenty Ten: Adjust Pullquote Block paragraph font size – #56730
- Twenty Twenty-Three: Bug fixes and improvements for RC1 – #56383
Cache 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.
- Introduce
wp_cache_supports()
function – #56605
Code Modernization
- Add
AllowDynamicProperties
attribute to recently introduced classes – #56513, #56034
Coding Standards
- Remove two unnecessary spaces – #55647
Comments
- Consistently normalize
user_ID
to user_id
in wp_new_comment()
– #56244
- Return early from
comment_form()
if an invalid A resolution on the bug tracker (and generally common in software development, sometimes also notabug) that indicates the ticket is not a bug, is a support request, or is generally invalid. post ID is passed – #56243
Docs
- Clarify default values for a few block function parameters – #56596
- Correct parameter name for
deleted_{$meta_type}meta
action – #56806
- Fix
$cache_headers
param type in site_status_page_cache_supported_cache_headers
– #56805, #55646
- Fix typo in a
@since
note for _get_cron_array()
– #55646, #56792
- Improve
wp_get_object_terms()
return type – #56327, #55646
- Inline comment typo correction in
wp_image_file_matches_image_meta()
– #55646, #56792
- Various improvements to inline docblocks – #55646
Editor
- Add test data for Fluid Typography – #56467
- Bump wordpress packages for 6.1 Release Candidate One of the final stages in the version release cycle, this version signals the potential to be a final release to the public. Also see alpha (beta). 1 – #56467
- Change
gutenberg_get_typography_font_size_value()
calls to wp_get_typography_font_size_value()
– #56467
- Dynamic site editor template names performance improvements – #56467
- Ensure
WP_Query
and WP_Term_Query
results are referenced properly when creating dynamic template names for use in the site editor – #56467
- Fix PHP notice in
WP_Block_Supports
when no attributes declared – #56799
- Fix performance regression A software bug that breaks or degrades something that previously worked. Regressions are often treated as critical bugs or blockers. Recent regressions may be given higher priorities. A "3.6 regression" would be a bug in 3.6 that worked as intended in 3.5. in WP_Theme_JSON_Resolver – #56467
- Fix version in WP_Theme_JSON_Resolver::get_block_data() – #56467
- Merge latest fluid typography bugfixes for 6.1 Release Candidate 1 – #56467
- Reinstate old persistence system configuration for the block editor usage data – #56778
- Remove extra line break in
build_template_part_block_instance_variations()
– #56467
- Rename new
theme_json_{$context}
filters – #56796
- Global Styles: Improve performance of WP_Theme_JSON::get_merged_data method – #56467
Embeds
- Revert Google Data Studio as trusted provider – #55771
External Libraries
- Further fix jQuery deprecations in WordPress core – #51812
Formatting
- Strip object replacement characters from slugs – #55117
General
- Remove instances of
_wp_http_referer
from GET forms in the admin (and super admin) – #54106
Help/About
- Update the About page for 6.1 – #56357
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.
- Revert [54469] – #37287
- Use
wp.i18n._n()
for plural forms in wp_print_admin_notice_templates()
– #37287
Login and Registration
- Rename
is_login_screen()
function to is_login()
– #19898, #56400
Menus
- Remove
.menu-item-has-children
on wp_nav_menu
last level menu items when $depth
arg is used – #28620
Networks and Sites
- Ensure
fileupload_maxk
is an int
to avoid potential fatal errors – #55926
Posts, Post Types
- Ensure all entries in the list returned by
wp_parse_list()
are scalar – #55838
Query
- Avoid PHP notices when
get_queried_object()
returns null
– #29660
- Prevent PHP notice when
get_post_type_object()
returns null
in is_post_type_archive()
– #56287
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/.
- Simplify the check for an array of arrays in
register_rest_route()
– #56804
Security
- Comments: Apply kses when editing comments
- Customize: Escape blogname option in underscores templates
- General: Validate host on “Are you sure?” screen
- Mail: Reset PHPMailer properties between use
- Media: Refactor search by filename within the admin
- Pings/trackbacks: Apply KSES to all trackbacks
- Posts, Post types: Apply KSES to post-by-email content
- Posts, Post types: Remove emails from post-by-email logs
- Query: Validate relation in
WP_Date_Query
- REST API: Lockdown post parameter of the terms endpoint
- Widgets: Escape RSS error messages for display
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.
- Correct an invalid
@param
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.) – #55646
Upgrade/Install
- Provide dirpath in error messages when
_unzip_file_pclzip()
cannot create directories – #54477
- Revert a temporary conditional for testing the Rollbacks feature project – #56057
Users
- Fetch user by login in
retrieve_password()
if not found by email – #53634
XML-RPC
- Avoid loopback request in
blogger.getUsersBlogs
– #56492
Props
Thanks to the 141 (!) people who contributed to WordPress Core on Trac last week: @audrasjb (13), @SergeyBiryukov (13), @peterwilsoncc (11), @xknown (9), @desrosj (8), @mukesh27 (7), @costdev (7), @dd32 (7), @spacedmonkey (7), @martinkrcho (6), @hellofromTonya (5), @sabernhardt (5), @ironprogrammer (5), @kebbet (5), @paulkevan (5), @davidbaumwald (4), @bernhard-reiter (4), @oandregal (4), @aristath (3), @petitphp (2), @mikeschroder (2), @timothyblynjacobs (2), @pbearne (2), @chaion07 (2), @ndiego (2), @joen (2), @azaozz (2), @ocean90 (2), @robinwpdeveloper (2), @adamsilverstein (2), @annezazu (2), @jrf (2), @johnbillion (2), @voldemortensen (2), @talldanwp (2), @gunterer (2), @johnjamesjacoby (2), @ehtis (2), @tykoted (2), @BaneD (1), @maciejmackowiak (1), @archon810 (1), @cantuaria (1), @TimothyBlynJacobs (1), @johnregan3 (1), @daxelrod (1), @boblindner (1), @mrfoxtalbot (1), @azouamauriac (1), @markparnell (1), @mdgl (1), @iCaspar (1), @kucrut (1), @slobodanmanic (1), @priyomukul (1), @antonvlasenko (1), @n8finch (1), @bbobnis (1), @felipeelia (1), @donmhico (1), @nikkigagency (1), @dmsnell (1), @mjkhajeh (1), @dkotter (1), @msolution (1), @JarretC (1), @justinahinon (1), @sean212 (1), @Clorith (1), @whaze (1), @hiyascout (1), @wildworks (1), @luminuu (1), @critterverse (1), @webprom (1), @colorfultones (1), @beafialho (1), @scruffian (1), @hztyfoon (1), @poena (1), @tillkruess (1), @tahmidulkarim (1), @madhudollu (1), @mikachan (1), @daledupreez (1), @ideag (1), @bhrugesh12 (1), @datainterlock (1), @nendeb55 (1), @iamarinoh (1), @abhanonstopnewsuk (1), @marybaum (1), @richtabor (1), @jeffpaul (1), @eidolonnight (1), @laurlittle (1), @priethor (1), @cbringmann (1), @ryelle (1), @dansoschin (1), @adampickering (1), @tweetythierry (1), @sergeybiryukov (1), @skithund (1), @divyeshgodhani (1), @mukeshpanchal27 (1), @TobiasBg (1), @dariak (1), @boniu91 (1), @rakibwordpress (1), @peterwiloncc (1), @vortfu (1), @matveb (1), @courane01 (1), @flixos90 (1), @bjorsch (1), @woji29911 (1), @cbravobernal (1), @czapla (1), @sarahricker (1), @ipajen (1), @eclev91 (1), @nouarah (1), @noplanman (1), @bwbama (1), @deksar (1), @zikubd (1), @kanlukasz (1), @andrewserong (1), @utsavmadaan823 (1), @sterlo (1), @mikejolley (1), @nacin (1), @swissspidy (1), @Howdy_McGee (1), @darkskipper (1), @boonebgorges (1), @yellyc (1), @ramonopoly (1), @isabel_brison (1), and @rsiddharth (1).
Congrats and welcome to our 19 (!) new contributors of the week: @BaneD, @cantuaria, @boblindner, @iCaspar, @bbobnis, @nikkigagency, @hiyascout, @iamarinoh, @adampickering, @rakibwordpress, @woji29911, @ipajen, @nouarah, @bwbama, @zikubd, @kanlukasz, @utsavmadaan823, @darkskipper, @yellyc ♥️
Core committers: @audrasjb (30), @sergeybiryukov (16), @davidbaumwald (10), @desrosj (8), @hellofromtonya (4), @johnbillion (2), @jorgefilipecosta (1), @ryelle (1), and @peterwilsoncc (1).
#6-1, #core, #week-in-core