A Week in Core – January 23, 2022

Welcome back to a new issue of Week in CoreCore 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 TracTrac An open source project by Edgewall Software that serves as a bug tracker and project management tool for WordPress. between January 16 and January 23, 2022.

  • 45 commits
  • 70 contributors
  • 66 tickets created
  • 10 tickets reopened
  • 48 tickets closed

Ticketticket 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

  • Use a consistent capitalization in Privacy Policy related strings – #57226

Application Passwords

  • Disable spellcheck for password field – #56763

Build/Tests Tools

  • Add unique messages to assertions for attachment filenames in wp_mail()#28407
  • Correct additional_field_get_callback() parameters in some REST APIREST 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/. tests – #56793
  • Use wp_recursive_ksort() in WP_Theme_JSON_Resolver tests – #56793

Bundled Themes

  • Fix Separator blockBlock 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. “Dots” style variation on various themes – #56114
  • Twenty Twenty-One: Disable spellcheck for post password field – #56763
  • Twenty Twenty-One: Fix obsolete navigation block styles for better Global Styles support – #53220
  • Twenty Twenty-One: Fix obsolete navigation block styles for better Global Styles support – #53220
  • Twenty Twenty-One: Revert [55088]#53220

Code Modernization

  • Rename parameters that use reserved keywords in phpunit/tests/functions/wpListFilter.php#56788
  • Rename parameters that use reserved keywords in phpunit/tests/functions/wpListPluck.php#56788
  • Rename parameters that use reserved keywords in phpunit/tests/functions/wpListSort.php#56788
  • Rename parameters that use reserved keywords in phpunit/tests/hooks/addFilter.php#56788
  • Rename parameters that use reserved keywords in phpunit/tests/kses.php#56788
  • Rename parameters that use reserved keywords in phpunit/tests/option/themeMods.php#56788
  • Rename parameters that use reserved keywords in phpunit/tests/pluggable/signatures.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/rest-api/rest-*-controller.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/functions.php#56788
  • Use correct property in IXR_Message::tag_open()#56790

Docs

  • Further clarify the wp_ajax_save_attachment filterFilter 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. parameters description – #23148
  • Remove unused post_modified and post_modified_gmt params from wp_insert_post() docblockdocblock (phpdoc, xref, inline docs)#57473, #56792

Editor

  • Add inert attribute polyfill – #57492
  • Allow block pattern categories to have descriptions – #57478
  • Update packages to unblock lazy-loading issues – #56930
  • Updated the bundled block pattern categories – #57479

I18Ni18n 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.

  • Allow installing new translations when changing the user localeLocale A locale is a combination of language and regional dialect. Usually locales correspond to countries, as is the case with Portuguese (Portugal) and Portuguese (Brazil). Other examples of locales include Canadian English and U.S. English. on the profile page – #38664

Login and Registration

  • Disable spellcheck for password fields – #56763

Media

  • Add an action hook on wp_ajax_save_attachment()#23148
  • Allow for customization of lazy-loading featured images – #57490
  • Prevent hidden overflow on uploaded image names – #54812

Menus

  • Hide the “Remove selected item” from Menus screen when no item is selected – #56942

Permalinks

  • Remove floating on Permalinks settings screen – #56673, #55498

Plugins

  • Add visible focus on pluginPlugin 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 modal close button – #56604

Posts, Post Types

  • Increase the input field’s width in the Slug metaboxMetabox A post metabox is a draggable box shown on the post editing screen. Its purpose is to allow the user to select or enter information in addition to the main post content. This information should be related to the post in some way.#16346
  • Use persistent caching in get_adjacent_post function – #41131

Quick/Bulk Edit

  • Add an action hook on bulk_edit_posts()#28112

TaxonomyTaxonomy 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.

  • Remove placeholder from WP_Term_Query cache key – #57298

Themes

  • Introduce wp_theme_has_theme_json() for public consumption – #56975
  • Revert caching from r55086#56975

Upgrade/Install

  • Disable spellcheck for password field on Setup screen – #56763

Props

Thanks to the 70 people who contributed to WordPress Core on Trac last week: @poena (15), @sergeybiryukov (15), @jrf (14), @aristath (14), @justinahinon (13), @audrasjb (10), @costdev (6), @mukesh27 (5), @sabernhardt (4), @desrosj (3), @spacedmonkey (3), @gainesm (2), @fosuahmed (2), @flixos90 (2), @mamaduka (2), @dziudek (2), @Joen (2), @johnbillion (2), @hellofromTonya (2), @ocean90 (2), @helen (2), @kebbet (2), @peterwilsoncc (2), @joedolson (2), @mcsf (1), @swissspidy (1), @dshanske (1), @Spaceshipone (1), @nithi22 (1), @sarathar (1), @aravindajith (1), @ntsekouras (1), @joemcgill (1), @dd32 (1), @boonebgorges (1), @Otto42 (1), @dmsnell (1), @sumitsingh (1), @oandregal (1), @afragen (1), @alexstine (1), @azaozz (1), @sc0ttkclark (1), @barryceelen (1), @mrasharirfan (1), @umesh84 (1), @amin7 (1), @esratpopy (1), @multidots1896 (1), @ABTOP (1), @nacin (1), @abitofmind (1), @tyxla (1), @helgatheviking (1), @Mte90 (1), @afercia (1), @itowhid06 (1), @hellofromtonya (1), @pento (1), @mensmaximus (1), @dperonne (1), @viralsampat (1), @jeawhanlee (1), @griffinjt (1), @bradyvercher (1), @pputzer (1), @antpb (1), @bjorsch (1), @kraftbj (1), and @mehulkaklotar (1).

Congrats and welcome to our 5 new contributors of the week: @fosuahmed, @amin7, @esratpopy, @ABTOP, @abitofmind ♥️

Core committers: @sergeybiryukov (18), @audrasjb (15), @youknowriad (3), @joedolson (2), @flixos90 (2), @hellofromtonya (2), @spacedmonkey (2), and @swissspidy (1).

#6-2, #core, #week-in-core

A Week in Core – December 26, 2022

Welcome back to a new issue of Week in CoreCore 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 TracTrac An open source project by Edgewall Software that serves as a bug tracker and project management tool for WordPress. between December 19 and December 26, 2022.

  • 13 commits
  • 21 contributors
  • 33 tickets created
  • 3 tickets reopened
  • 16 tickets closed

Ticketticket 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

  • Correct a flaky wp_nonce_field() test – #56793

Code Modernization

  • Rename parameters that use reserved keywords in phpunit/includes/class-wp-test-stream.php#56788
  • Rename parameters that use reserved keywords in phpunit/includes/abstract-testcase.php#56788
  • Rename parameters that use reserved keywords in wp-includes/user.php#56788
  • Rename parameters that use reserved keywords in wp-includes/theme.php#56788
  • Rename parameters that use reserved keywords in wp-includes/template.php#56788
  • Rename parameters that use reserved keywords in wp-includes/taxonomy.php#56788

External Libraries

  • Update jQuery to 3.6.3 – #57324

I18Ni18n 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.

  • Change how WP_Textdomain_Registry caches translationtranslation The process (or result) of changing text, words, and display formatting to support another language. Also see localization, internationalization. information – #57116

Themes

  • Alphabetize the properties list in WP_Theme_JSON::VALID_STYLES for consistency – #57354
  • Adds outline CSSCSS Cascading Style Sheets. properties support in theme.jsonJSON 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.#57354

HTTPHTTP HTTP is an acronym for Hyper Text Transfer Protocol. HTTP is the underlying protocol used by the World Wide Web and this protocol defines how messages are formatted and transmitted, and what actions Web servers and browsers should take in response to various commands. APIAPI 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.

  • Adds BC-layer /library/Requests.php file – #57341

Menus

  • Account for legacy calls to nav_menu_css_class filterFilter 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.#56926, #28620

Props

Thanks to the 21 people who contributed to WordPress Core on Trac last week: @sergeybiryukov (8), @jrf (7), @poena (6), @justinahinon (6), @aristath (6), @ironprogrammer (2), @mukesh27 (2), @peterwilsoncc (2), @hellofromTonya (2), @dd32 (1), @NekoJonez (1), @costdev (1), @bjorsch (1), @ocean90 (1), @audrasjb (1), @onemaggie (1), @johnbillion (1), @mgol (1), @naeemhaque (1), @TobiasBg (1), and @azaozz (1).

Congrats and welcome to our new contributor of the week: @naeemhaque ♥️

Core committers: @sergeybiryukov (8), @peterwilsoncc (2), @hellofromtonya (2), and @swissspidy (1).

#6-2, #core, #week-in-core

Two Weeks in Core – December 19, 2022

Welcome back to a new issue of Week in CoreCore 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 TracTrac An open source project by Edgewall Software that serves as a bug tracker and project management tool for WordPress. between December 5 and December 19, 2022. This post exceptionally covers two weeks since we weren’t able to put together the recap last week.

  • 50 commits
  • 50 contributors
  • 81 tickets created
  • 7 tickets reopened
  • 70 tickets closed

Ticketticket 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

  • Run Xdebug tests on PHPPHP The web scripting language in which WordPress is primarily architected. WordPress requires PHP 5.6.20 or higher 8.2 – #56009
  • Remove 3.7-4.0 branches from scheduled test runs – #57228
  • Refactor test for multiple location headers – #57306, #56793
  • Change the wp_cache_get_multiple function to get cache keys in a single request – #54864
  • Correct a flaky wp_nonce_field() test – #56793
  • Temporarily disable a WP_Http test for multiple Location headers – #57306
  • Use more descriptive name for a wp_new_comment() test – #56793

Bundled Themes

  • Twenty Seventeen: Document the $twentyseventeencounter global – #57069, #56792

Code Modernization

  • Rename parameters that use reserved keywords in wp-includes/class-wpdb.php#56788
  • Rename parameters that use reserved keywords in wp-includes/l10n.php#56788
  • Rename parameters that use reserved keywords in wp-includes/link-template.php#56788
  • Rename parameters that use reserved keywords in wp-includes/load.php#56788
  • Rename parameters that use reserved keywords in wp-includes/ms-blogs.php#56788
  • Rename parameters that use reserved keywords in wp-includes/ms-deprecated.php#56788
  • Rename parameters that use reserved keywords in wp-includes/ms-site.php#56788
  • Rename parameters that use reserved keywords in wp-includes/option.php#56788
  • Rename parameters that use reserved keywords in wp-includes/php-compat/readonly.php#56788
  • Rename parameters that use reserved keywords in wp-includes/pluggable.php#56788
  • Rename parameters that use reserved keywords in wp-includes/pomo/po.php#56788
  • Rename parameters that use reserved keywords in wp-includes/pomo/streams.php#56788
  • Rename parameters that use reserved keywords in wp-includes/post-template.php#56788
  • Rename parameters that use reserved keywords in wp-includes/post.php#56788
  • Rename parameters that use reserved keywords in wp-includes/query.php#56788
  • Rename parameters that use reserved keywords in wp-includes/rest-api.php#56788
  • Rename parameters that use reserved keywords in wp-includes/rest-api/class-wp-rest-server.php#56788
  • Rename parameters that use reserved keywords in wp-includes/rest-api/endpoints/class-wp-rest-controller.php#56788
  • Rename parameters that use reserved keywords in wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php#56788
  • Rename parameters that use reserved keywords in wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php#56788
  • Rename parameters that use reserved keywords in wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php#56788
  • Rename parameters that use reserved keywords in wp-includes/rewrite.php#56788
  • Rename parameters that use reserved keywords in wp-includes/sitemaps/class-wp-sitemaps.php#56788

Docs

  • Add missing type for $_wp_theme_features in WP_Debug_Data::debug_data()#57069, #56792
  • Improve DocBlockdocblock (phpdoc, xref, inline docs) formatting for get_post_class()#56792
  • Improve various globals documentation, as per docblock standards – #57069, #56792
  • Improve various globals documentation, as per documentation standards – #57069, #56792
  • Mark some optional parameters as such in wp-includes/comment-template.php#56792
  • Update docs for image_sideload_extensions filterFilter 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. to include webp in the list of allowed extensions – #57346, #56792

External Libraries

  • Update Requests library to version 2.0.0 – #54504
  • Upgrade PHPMailer to version 6.7 – #57281

HTTPHTTP HTTP is an acronym for Hyper Text Transfer Protocol. HTTP is the underlying protocol used by the World Wide Web and this protocol defines how messages are formatted and transmitted, and what actions Web servers and browsers should take in response to various commands. APIAPI 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.

  • Adds BC-layer /library/Requests.php file – #57341

Media

  • Use featured imageFeatured image A featured image is the main image used on your blog archive page and is pulled when the post or page is shared on social media. The image can be used to display in widget areas on your site or in a summary list of posts. if available for attachment as preview instead of icon – #49852
  • Account for legacy calls to nav_menu_css_class filter – #56926, #28620
  • Prevent infinite loopLoop 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. in menus – #56926, #28620
  • Reset menu_item_parent to 0 when the parent is set to the item itself – #57169

Options, MetaMeta 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

  • Correct the documented return type for get_settings_errors()#57323

Quick edit

  • Fix cases where the author field is empty when the user no longer has edit capabilities – #56819

RevisionsRevisions 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.

  • Use update_post_author_caches in wp_prepare_revisions_for_js function – #56978

Site Health

  • Remove the WordPress 5.2 reference from the email sent on fatal errors – #57327, #54961

Themes

  • Adds outline CSSCSS Cascading Style Sheets. properties support in theme.jsonJSON 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.#57354
  • Improve performance of _add_block_template_part_area_info and _add_block_template_info functions – #57077

Users

  • Clear the user_meta cache when clean_user_cache function is called – #54316

Props

Thanks to the 50 people who contributed to WordPress Core on Trac last week: @sergeybiryukov (32), @jrf (26), @justinahinon (23), @poena (23), @aristath (23), @peterwilsoncc (9), @spacedmonkey (5), @costdev (5), @azaozz (4), @dd32 (4), @hellofromTonya (4), @audrasjb (3), @ironprogrammer (3), @desrosj (2), @johnbillion (2), @JeffPaul (2), @upadalavipul (2), @NekoJonez (2), @mukesh27 (2), @samful (1), @mcaskill (1), @TobiasBg (1), @swissspidy (1), @JavierCasares (1), @onemaggie (1), @cadic (1), @seanchayes (1), @antpb (1), @szepeviktor (1), @benjgrolleau (1), @Synchro (1), @OllieJones (1), @sabernhardt (1), @antonvlasenko (1), @jmdodd (1), @soulseekah (1), @dustinrue (1), @wojsmol (1), @datagutten (1), @schlessera (1), @flixos90 (1), @priethor (1), @mhkuu (1), @david.binda (1), @mrwweb (1), @kebbet (1), @jb510 (1), @dimadin (1), @bjorsch (1), and @iamjaydip (1).

Congrats and welcome to our 2 new contributors of the week: @mcaskill, @cadic ♥️

Core committers: @sergeybiryukov (32), @peterwilsoncc (4), @spacedmonkey (4), @hellofromtonya (3), @audrasjb (3), @azaozz (2), @desrosj (1), and @johnbillion (1).

#6-2, #core, #week-in-core

WordPress Developer Blog is in public beta

Over the weekend, the new WordPress developer blog public came online in its betaBeta A pre-release of software that is given out to a large group of users to trial under real conditions. Beta versions have gone through alpha testing in-house and are generally fairly close in look, feel and function to the final product; however, design changes often occur as part of the process. stage.

A huge thanks to everyone who helped to push it over the finish line:

As always, it takes a village and a half to get to this point in a new initiative. 😍

Provide Feedback

Beta means getting out of the bubble and being ready for feedback from a wider audience. Let us have it in the comments of this post.

Next Steps

Background

Here is a list of previous posts on the Make CoreCore Core is the set of software required to run WordPress. The Core Development Team builds WordPress. blogblog (versus network, site) in reverse chronological order

#core-dev-blog #developers

Props to @priethor @cbringmann @audrasjb for peer review

A Week in Core – November 14, 2022

Welcome back to a new issue of Week in CoreCore 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 TracTrac An open source project by Edgewall Software that serves as a bug tracker and project management tool for WordPress. between October 31 and November 7, 2022.

  • 47 commits
  • 120 contributors
  • 97 tickets created
  • 27 tickets reopened
  • 104 tickets closed

Ticketticket 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

  • Add missing escaping for a few strings used as HTMLHTML HyperText Markup Language. The semantic scripting language primarily used for outputting content in web browsers. attributes – #57093

Bundled Themes

  • Twenty Seventeen: Improve letter-spacing reset for non-latin alphabets – #56994

Canonical

  • Protect against error for term not exists queries – #55955

Coding Standards

  • Apply spacing changes after composer format#57057
  • Declare $wp_taxonomies global at the top of unregister_taxonomy()#57058
  • Use consistent spelling for “cacheable” in WP_Query::get_posts()#57012

Docs

  • Document the usage of $wpdb global in WP_Date_Query methods – #57033
  • Document the usage of globals in some functions – #57082
  • Fix block_editor_rest_api_preload() parameter type – #56810, #56792
  • Improve globals documentation in unregister_taxonomy() and wp_term_is_shared()#57058, #56792
  • Replace HTTPHTTP HTTP is an acronym for Hyper Text Transfer Protocol. HTTP is the underlying protocol used by the World Wide Web and this protocol defines how messages are formatted and transmitted, and what actions Web servers and browsers should take in response to various commands. links with HTTPSHTTPS HTTPS is an acronym for Hyper Text Transfer Protocol Secure. HTTPS is the secure version of HTTP, the protocol over which data is sent between your browser and the website that you are connected to. The 'S' at the end of HTTPS stands for 'Secure'. It means all communications between your browser and the website are encrypted. This is especially helpful for protecting sensitive data like banking information. in class-json.php docblocks – #57017, #56792
  • Replace HTTP links with HTTPS in class-pop3.php docblocks and JSJS JavaScript, a web scripting language typically executed in the browser. Often used for advanced user interfaces and behaviors. vendor readme file – #57017, #56792
  • Typo correction in get_registered_nav_menus() docblockdocblock (phpdoc, xref, inline docs)#57101, #56792
  • Various docblock fixes in Multisitemultisite Used to describe a WordPress installation with a network of multiple blogs, grouped by sites. This installation type has shared users tables, and creates separate database tables for each blog (wp_posts becomes wp_0_posts). See also network, blog, site administration functions – #56792

Editor

  • Avoid running certain logic around theme.json parsing unnecessarily for classic themes – #56945
  • Correctly style separator blocks when only a background-color is defined – #56903
  • Improve Archive template description – #57001
  • Improve frontend performance for get_default_block_editor_settings()#56815
  • Improve how min/max font sizes are calculated for fluid typography – #57075
  • Improve performance of WP_Theme_JSON class by reducing usage of expensive array functions – #56974, #57067
  • Update blockBlock 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 packages to the latest patchpatch A special text file that describes changes to code, by identifying the files and lines which are added, removed, and altered. It may also be referred to as a diff. A patch can be applied to a codebase for testing. releases – #57038, #56818, #56955, #56923

Filesystem

  • Return FTPFTP FTP is an acronym for File Transfer Protocol which is a way of moving computer files from one computer to another via the Internet. You can use software, known as a FTP client, to upload files to a server for a WordPress website. https://codex.wordpress.org/FTP_Clients./FTP Sockets exists() methods to a previous state – #56966, #51170, #28013

Formatting

  • Check that both normalizer_* functions exist in remove_accents()#56980

General

  • Use HTTPS for the b2/cafélog link in readme.html#57018

Help/About

  • Fix inconsistency in auto-updates help tabs – #56921

I18Ni18n 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.

  • Always pass $locale to load_textdomain()#57060
  • Initialize textdomain registry in wp_load_translations_early()#57051

Media

  • Prevent decoding attribute corrupting JSONJSON 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. data – #56969

Menus

  • Apply menu-item-has-children class in sub-menus – #56946, #28620

Networks and Sites

  • Replace “N/A” with “Not applicable” in choose_primary_blog()#57040

Posts, Post Types

Query

  • Bypass caching for filtered SELECTs – #57012
  • Don’t attempt caching if running a WP_User_Query before plugins_loaded – #56952
  • Prevent ID only queries erroring when starting the loopLoop 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.#56948

Tests

  • Combine duplicate update_posts_count() tests – #57023, #56793
  • Correct the test for get_blogaddress_by_id() with a non-existing ID – #56793
  • Resolve WP_Query test failures on MariaDB due to indeterminate sort order – #57012
  • Restore blogblog (versus network, site) switching in update_posts_count() test – #57023

Text Changes

  • Improve the wording of the email sent to confirm site deletion – #56921
  • Remove capitalization on “site editing” – #57026
  • Replace “Full site editing” with “Site Editor” – #57026
  • Update @since mentions for [54786] changes – #57026

Themes

  • Improve WP_Query call getting global styles – #56900
  • Re-order valid link pseudo classes – #56928
  • Reduce usage of wp_get_theme function. – #57057
  • Revert one instance of wp_get_theme() from [54817] – #57057

Update/Install

  • Deactivate GutenbergGutenberg 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/ pluginPlugin 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 version older than 14.1 – #56985

Upgrade/Install

  • Delete the comments-query-loop folder in wp-includes/blocks#57080

Props

Thanks to the 120 (!) people who contributed to WordPress Core on Trac last week: @mukesh27 (12), @SergeyBiryukov (12), @desrosj (11), @spacedmonkey (10), @peterwilsoncc (9), @audrasjb (7), @flixos90 (6), @costdev (5), @TimothyBlynJacobs (5), @ocean90 (4), @hellofromTonya (4), @sabernhardt (3), @aristath (3), @andrewserong (3), @NekoJonez (2), @wildworks (2), @mikachan (2), @dd32 (2), @ironprogrammer (2), @swissspidy (2), @upadalavipul (2), @miguelaxcar (2), @mxbclang (2), @czapla (2), @poena (2), @davidbaumwald (2), @mamaduka (2), @azaozz (2), @nithins53 (2), @ramonopoly (2), @kowsar89 (2), @joen (2), @cbravobernal (2), @namithjawahar (1), @rjasdfiii (1), @dilipbheda (1), @10upsimon (1), @Bjorn2404 (1), @itpathsolutions (1), @kadamwhite (1), @codesdnc (1), @nuvoPoint (1), @outrankjames (1), @oandregal (1), @manuilov (1), @pbiron (1), @webmandesign (1), @sippis (1), @petitphp (1), @mattkeys (1), @stentibbing (1), @rajeshraval786 (1), @pento (1), @pypwalters (1), @haritpanchal (1), @webaxones (1), @Chaton666 (1), @obenland (1), @oakesjosh (1), @subrataemfluence (1), @carazo (1), @johnwatkins0 (1), @claytoncollie (1), @Clorith (1), @chouby (1), @janthiel (1), @JeffPaul (1), @johnbillion (1), @amirrezatm (1), @lozula (1), @konyoldeath (1), @Mamaduka (1), @hiren1094 (1), @larsmqller (1), @LeonidasMilossis (1), @adamsilverstein (1), @innovext (1), @bernhard-reiter (1), @bph (1), @noisysocks (1), @mciampini (1), @talldanwp (1), @andraganescu (1), @scruffian (1), @get_dave (1), @isabel_brison (1), @ntsekouras (1), @ellatrix (1), @aaronrobertshaw (1), @gisgeo (1), @jchambo (1), @zodiac1978 (1), @gamecreature (1), @pkolenbr (1), @afragen (1), @jsh4 (1), @tyxla (1), @mcsf (1), @fpodhorsky (1), @kacper3355 (1), @davidvongries (1), @glendaviesnz (1), @mw108 (1), @joelmadigan (1), @rodricus (1), @jorbin (1), @azurseisme (1), @jrf (1), @vtad (1), @krunal265 (1), @ryankienstra (1), @riccardodicurti (1), @0mirka00 (1), @ndiego (1), @kevin940726 (1), @alexstine (1), @youknowriad (1), @cybr (1), @krupalpanchal (1), and @rajanpanchal2028 (1).

Congrats and welcome to our 31 (!!!) new contributors of the week: @miguelaxcar, @kowsar89, @rjasdfiii, @10upsimon, @Bjorn2404, @itpathsolutions, @codesdnc, @nuvoPoint, @outrankjames, @stentibbing, @carazo, @amirrezatm, @lozula, @konyoldeath, @larsmqller, @LeonidasMilossis, @innovext, @gisgeo, @jchambo, @gamecreature, @pkolenbr, @jsh4, @fpodhorsky, @kacper3355, @davidvongries, @mw108, @joelmadigan, @rodricus, @azurseisme, @krunal265, @riccardodicurti, ♥️

Core committers: @audrasjb (14), @sergeybiryukov (11), @peterwilsoncc (8), @desrosj (7), @flixos90 (3), @spacedmonkey (1), @ocean90 (1), @hellofromtonya (1), and @timothyblynjacobs (1).

#6-1-1, #6-2, #core, #week-in-core

Postponed to WP 6.2: Escaping Table and Field names with wpdb::prepare()

Support for %i to escape Table and Field names was postponed to 6.2, see:
https://make.wordpress.org/core/2022/10/08/escaping-table-and-field-names-with-wpdbprepare-in-wordpress-6-1/

A problem was found during RC5, where some extensions use field LIKE "%%%s%%", and expect the %s to remain unquoted.

This is undocumented behaviour. Officially the only time placeholders should not be quoted (for backwards compatibility reasons) is when using numbered or formatted string placeholders (this is unsafe, and should be avoided).

In this case, the first %% results in a literal "%", but this goes on to affect the %s.

For reference, developers should rely on wpdb::prepare() to quote all variables, so mistakes cannot be made. In this case it’s recommended to use something like the following:

$wpdb->prepare( 
     'field LIKE %s', 
     '%' . $wpdb->esc_like( $var ) . '%' );

Thanks to @AlanP57 for reporting, @hellofromtonya and @sergeybiryukov for reverting the patchpatch A special text file that describes changes to code, by identifying the files and lines which are added, removed, and altered. It may also be referred to as a diff. A patch can be applied to a codebase for testing., @azaozz and @bph for helping document this, and everyone else for generally helping out.

#6-1, #dev-notes, #dev-notes-6-1, #wpdb

A Week in Core – October 24, 2022

Welcome back to a new issue of Week in CoreCore 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 TracTrac An open source project by Edgewall Software that serves as a bug tracker and project management tool for WordPress. between October 17 and October 24, 2022.

  • 49 commits
  • 75 contributors
  • 63 tickets created
  • 12 tickets reopened
  • 51 tickets closed

The Core team is currently working on the next major releasemajor 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 🛠

Ticketticket 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

  • Update the Dashboard welcome banner for 6.1 – #56703

Bootstrap/Load

  • Correct sending the X-Pingback headerHeader 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. in WP::send_headers()#56840

Build/Test Tools

  • Ensure PHPCSPHP Code Sniffer PHP Code Sniffer, a popular tool for analyzing code quality. The WordPress Coding Standards rely on PHPCS. related workflows are properly marked as failed – #55652
  • Hardcode the ref for the workflow dispatch on failure – #55652
  • Remove use of set-output in Action workflows – #56820
  • Update third-party welcome Action – #56793
  • Add a test case for safecss_filter_attr() with object-position property – #56793
  • Correct the wp_theme_json_data_default filterFilter 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. name in assertion messages – #56796, #56835
  • Increase test coverage for WP_Theme_JSON_Resolver#56835
  • Make the message for skipping some tests with an external object cache more consistent – #56793
  • Move padding-* test data in KSES tests into its own test case – #56793

Bundled Themes

  • Twenty Twenty-Three: Sync the latest fixes for RC2 – #56383

Coding Standards

  • Use strict comparison in wp-admin/update-core.php#56866

Docs

  • Add missing default parameter value in themes_api() docblockdocblock (phpdoc, xref, inline docs)#56862, #56792
  • Add missing default parameter value in trackback_response() docblock – #56867, #56792
  • Align spelling with American English – #56811, #56792
  • Align spelling with American English – #56811, #56792
  • Document the usage of $wp_query global in WP_Media_List_Table::display_rows()#56839

Editor

  • Add font size constraints for fluid typography – #56467
  • Fix legacy group inner blockBlock 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. wrappers in constrained layouts – #56467
  • Fix modal height responsiveness on link popup editor – #53174
  • Update packages for 6.1 Release Candidaterelease 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). 2 – #56467
  • Allow arrays for deprecated asset types in block registration – #56707

Embeds

  • Broaden the Tumblr oEmbed matcher to include all Tumblr URLURL A specific web address of a website or web page on the Internet, such as a website’s URL www.wordpress.org structures – #56733

General

  • Correctly refer to “npm” and “Node.js” – #56816

Help/About

  • Restore the correct header image for WordPress 6.1 – #56703
  • Typo correction in Dashboard Screen Options – #56884
  • Update copy & style for About page and subpages – #56357
  • Update the About header image – #56703, #56357

I18Ni18n 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.

  • Change how WP_Textdomain_Registry stores the default languages path – #39210

KSES

  • Display a notice if any of the required globals are not set – #47357

Media

  • Add object-fit to the allowed list of CSSCSS Cascading Style Sheets. properties – #56855

Networks and Sites

  • Revert the use of the metadata APIAPI 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. for *_network_options functions – #56845, #37181

Query

  • Remove placeholder from query cache key. – #56802

Role/Capability

  • Revert the newly added update_role function for 6.1

Upgrade/Install

  • Add a conditional to facilitate testing of the Rollbacks feature project – #56057

Props

Thanks to the 75 people who contributed to WordPress Core on Trac last week: @xknown (10), @peterwilsoncc (9), @audrasjb (8), @SergeyBiryukov (7), @martinkrcho (6), @bernhard-reiter (5), @costdev (5), @paulkevan (5), @jrf (4), @davidbaumwald (4), @kebbet (4), @sabernhardt (4), @spacedmonkey (4), @mukesh27 (4), @dd32 (3), @richtabor (3), @johnbillion (3), @andrewserong (2), @rezakhan995 (2), @ehtis (2), @timothyblynjacobs (2), @tykoted (2), @desrosj (2), @cbravobernal (2), @voldemortensen (2), @isabel_brison (2), @pbiron (2), @ironprogrammer (2), @poena (2), @webcommsat (1), @johnjamesjacoby (1), @bph (1), @courane01 (1), @strategio (1), @rinatkhaziev (1), @dlh (1), @chaion07 (1), @dansoschin (1), @dhl (1), @talldanwp (1), @noisysocks (1), @mikachan (1), @beafialho (1), @kafleg (1), @vortfu (1), @matveb (1), @annezazu (1), @Joen (1), @rebasaurus (1), @gziolo (1), @raduiason (1), @ckanderson22 (1), @ivanjeronimo (1), @seriouslysenpai (1), @manfcarlo (1), @doctorlai (1), @pento (1), @KnowingArt_com (1), @bosconiandynamics (1), @TJNowell (1), @nendeb55 (1), @sergeybiryukov (1), @pavelschoffer (1), @flixos90 (1), @ocean90 (1), @upadalavipul (1), @saumil1611 (1), @rakibwordpress (1), @ramonopoly (1), @TobiasBg (1), @afragen (1), @ryelle (1), @adampickering (1), @mikeschroder (1), and @peterwiloncc (1).

Congrats and welcome to our 9 new contributors of the week: @rezakhan995, @raduiason, @ckanderson22, @ivanjeronimo, @seriouslysenpai, @doctorlai, @KnowingArt_com, @pavelschoffer, @saumil1611 ♥️

Core committers: @audrasjb (14), @sergeybiryukov (12), @davidbaumwald (8), @desrosj (6), @ryelle (2), @jorbin (2), @bernhard-reiter (1), @swissspidy (1), @joedolson (1), @pento (1), and @spacedmonkey (1).

#6-1, #core, #week-in-core

A Week in Core – October 17, 2022

Welcome back to a new issue of Week in CoreCore 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 TracTrac 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 releasemajor 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 🛠

Ticketticket 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 testunit 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 blockBlock 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 PHPPHP The web scripting language in which WordPress is primarily architected. WordPress requires PHP 5.6.20 or higher versions being allowed to fail – #56009
  • Update third-party GitHubGitHub 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, MySQLMySQL 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 CSSCSS 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 APIAPI 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 invalidinvalid 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 Candidaterelease 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 regressionregression 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 adminadmin (and super admin)#54106

Help/About

  • Update the About page for 6.1 – #56357

I18Ni18n 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 APIREST 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

TaxonomyTaxonomy 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 tagtag 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

A Week in Core – October 10, 2022

Welcome back to a new issue of Week in CoreCore 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 TracTrac An open source project by Edgewall Software that serves as a bug tracker and project management tool for WordPress. between October 3 and October 10, 2022.

  • 75 commits
  • 120 contributors
  • 66 tickets created
  • 6 tickets reopened
  • 113 tickets closed

The Core team is currently working on the next major releasemajor 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 🛠

Ticketticket 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

  • Avoid menu/sub-menu overlap on small screens – #32747
  • Guard against undefined $GLOBALS['hook_suffix'] in WP_Screen::get()#49089
  • Remove private delegation from list tables – #18449

Build/Test Tools

  • Add missing newline character on unit tests files after [54443]#56611
  • Add tests coverage for _wp_check_alternate_file_names()#55199
  • Add tests for WP_List_Util::pluck and WP_List_Util::sort#55300
  • Add tests for wp_nonce_field() and wp_referer_field()#55578
  • Display PHPCSPHP Code Sniffer PHP Code Sniffer, a popular tool for analyzing code quality. The WordPress Coding Standards rely on PHPCS. results in the GitHubGitHub 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/ Action logs – #55652
  • Expand unit tests for theme.json#56611
  • Note the versions of NodeJS and npm supported – #55903
  • Remove PHPPHP The web scripting language in which WordPress is primarily architected. WordPress requires PHP 5.6.20 or higher 8.1 and 8.2 from allowed failures – #55652, #55656, #56009, #56681
  • Update github-script action to the latest version – #55652
  • Update npm dependencies to their latest versions – #56641
  • Use require_once instead of require#56738, #56179
  • Add tests for wp_nonce_url()#55652, #54870
  • Add wp_cache_*_multiple() functions to Memcached implementation used in the test suite – #54864
  • Add comments to clarify a REST APIREST 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/. test for password protected posts – #56681
  • Bring some consistency to WP_Image_Editor_GD and WP_Image_Editor_Imagick tests – #55652
  • Clean up test image for site icon in Tests_REST_Server on teardown – #55652
  • Clean up test images in WP_Customize_Manager tests – #55652
  • Ignore EOL differences in Style Engine APIAPI 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. tests – #56467, #55652
  • Minimize file copying in WP_REST_Attachments_Controller tests – #55652
  • Remove unnecessary file copying in WP_Customize_Manager tests – #55652
  • Replace some occurrences of assertEquals() with assertSame()#55654
  • Use assertSame() in some WP_Theme_JSON tests – #55654

Bundled Themes

  • Properly escape URLs – #56696
  • Twenty Eleven: Pass template directory URLs through esc_url()#56717, #56696
  • Twenty Nineteen: Add missing compiled CSSCSS Cascading Style Sheets. declarations after [54413]#55981
  • Twenty Nineteen: Ensure Pullquote BlockBlock 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. text color is reflected on front-end – #55981
  • Twenty Seventeen: Prevent scaling issues on featured images using Safari on iPadOS – #48195
  • Twenty Seventeen: Update the scrollTo jQuery pluginPlugin 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#56702
  • Twenty Sixteen: Improve Pullquote Block text color consistency between editor and front-end – #56008
  • Twenty Twenty-Three: Bug fixes and improvements for betaBeta A pre-release of software that is given out to a large group of users to trial under real conditions. Beta versions have gone through alpha testing in-house and are generally fairly close in look, feel and function to the final product; however, design changes often occur as part of the process. 3 – #56383
  • Twenty Twenty: Improve Separator Block rendering – #55910

Cache API

  • Introduce wp_cache_supports() function – #56605

Code Modernization

Coding Standards

  • Correct alignment in test_import_theme_starter_content()#55652

Customize

  • Prevent PHP notice in CustomizerCustomizer 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. when using block theme – #54888, #54905

Database

  • Correct MariaDB version check in wpdb::has_cap()#54841

Docs

  • Correct docblocks for get_block_file_template()#55929
  • Improve wp_get_object_terms() return type – #56327, #55646
  • Various docblockdocblock (phpdoc, xref, inline docs) fixes in WP_Rewrite class, as per documentation standards – #55646
  • Various docblock fixes in WP_Theme_JSON class, as per documentation standards – #55646
  • Various docblock fixes in global-styles-and-settings.php, as per documentation standards – #55646

Editor

  • Add PHPUnit tests for 5.9.0 new functions – #56266
  • Avoid extra calls to realpath() in block scripts and styles registration – #56758
  • Add missing blocks origin to theme.json#56467
  • Dynamic site editor template names performance improvements – #56467
  • Ensure block script is enqueued, regardless of ronder_callback#56408
  • Ensure block styles in theme.json are rendered – #56736
  • Fix server-side attribute registration via typography support – #56467
  • Invalidate blocks metadata cache when needed in WP_Theme_JSON::get_blocks_metadata()#56644
  • Make template names and descriptions dynamic, again – #56467
  • Sync latest @wordpress/edit-site package to include dynamic template names updates – #56467
  • Update packages for 6.1 Beta 3 – #56467
  • cite styles declared via theme.jsonJSON 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. not working – #56467

Embeds

  • Add support for Tumblr Dashboard URLs – #56733
  • Revert Google Data Studio as trusted provider – #55771

External Libraries

  • Update clipboard and polyfill-library#56670
  • Update getID3 to version 1.9.22#56692
  • Upgrade PHPMailer to version 6.6.5 – #56772

General

  • Add a default font-style value for Adminbar links – #56737
  • Remove instances of _wp_http_referer from GET forms in the adminadmin (and super admin)#54106

Login and Registration

  • Rename is_login_screen() function to is_login()#19898, #56400

Media

  • Ensure the wp_editor_set_quality filterFilter 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. consistently passes the correct output mime type – #56442
  • Improve image engine detection when using the output format filter – #54476

Posts, Post types

  • Prevent get_page_by_title() parsing query twice – #56721
  • Move call to update_menu_item_cache in WP_Query#55620
  • Prevent PHP notice when get_post_type_object() returns null in is_post_type_archive()#56287

Security

  • Additional translations of salt default phrase – #55937

Themes

  • Replace array_map() usage in WP_Theme_JSON::get_default_slugs()#56745

Upgrade/Install

  • Provide dirpath in error messages when _unzip_file_pclzip() cannot create directories – #54477

Users

  • Fix Users list bottom filters margins on small screens – #54813
  • Revert use of shared objects for current user – #54984

Props

Thanks to the 120 (!) people who contributed to WordPress Core on Trac last week: @costdev (14), @mukesh27 (11), @audrasjb (11), @sabernhardt (9), @SergeyBiryukov (9), @desrosj (9), @peterwilsoncc (7), @aristath (5), @spacedmonkey (5), @bernhard-reiter (5), @pbearne (5), @poena (4), @oandregal (4), @hellofromTonya (4), @jrf (4), @cbravobernal (4), @ironprogrammer (3), @dd32 (3), @scruffian (3), @jorgefilipecosta (3), @czapla (2), @nithins53 (2), @mehedi890 (2), @wildworks (2), @andrewserong (2), @ndiego (2), @nidhidhandhukiya (2), @alberuni-azad (2), @mikachan (2), @robinwpdeveloper (2), @hztyfoon (2), @chaion07 (2), @mikeschroder (2), @gunterer (2), @westonruter (1), @sirzooro (1), @sergeybiryukov (1), @scribu (1), @nacin (1), @miqrogroove (1), @milana_cap (1), @rsiddharth (1), @jrbeilke (1), @johnbillion (1), @faison (1), @birgire (1), @JeffPaul (1), @felipeelia (1), @antonvlasenko (1), @isabel_brison (1), @jamieburchell (1), @talldanwp (1), @kurtpayne (1), @wonderboymusic (1), @JarretC (1), @colorful tones (1), @ntsekouras (1), @bernie (1), @collet (1), @mayuge (1), @zoonini (1), @taskotr (1), @joen (1), @tahmidulkarim (1), @beafialho (1), @david.binda (1), @madhudollu (1), @sarahricker (1), @fuadragib (1), @rudlinkon (1), @seakashdiu (1), @jakariaistauk (1), @robinwpwebdeveloper (1), @elpanda13gmailcom (1), @sean212 (1), @upadalavipul (1), @ryokuhi (1), @mamaduka (1), @kajalgohel (1), @johnjamesjacoby (1), @deepakvijayan (1), @umesh84 (1), @tillkruess (1), @htdat (1), @splendorstudio (1), @azaozz (1), @flixos90 (1), @johnregan3 (1), @carolinan (1), @kmadhak (1), @afragen (1), @tillkruss (1), @petitphp (1), @Synchro (1), @ayeshrajans (1), @shreyasikhar26 (1), @sumitsingh (1), @adamsilverstein (1), @davidbaumwald (1), @aaronrobertshaw (1), @xknown (1), @ugyensupport (1), @n8finch (1), @webcommsat (1), @markparnell (1), @mrfoxtalbot (1), @hilayt24 (1), @collieit (1), @turtlepod (1), @cu121 (1), @Clorith (1), @tykoted (1), @ravipatel (1), @oztaser (1), @dkotter (1), @msolution (1), @whaze (1), @bph (1), @justinahinon (1), and @jameskoster (1).

Congrats and welcome to our 10 new contributors of the week: @alberuni-azad, @gunterer, @jamieburchell, @mayuge, @taskotr, @seakashdiu, @elpanda13gmailcom, @deepakvijayan, @n8finch, @msolution ♥️

Core committers: @audrasjb (21), @sergeybiryukov (17), @desrosj (12), @davidbaumwald (11), @peterwilsoncc (7), @adamsilverstein (2), @westonruter (1), @spacedmonkey (1), @jorgefilipecosta (1), @pento (1), and @hellofromtonya (1).

#6-1, #core, #week-in-core

A Week in Core – October 3, 2022

Welcome back to a new issue of Week in CoreCore 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 TracTrac An open source project by Edgewall Software that serves as a bug tracker and project management tool for WordPress. between September 26 and October 3, 2022.

  • 66 commits
  • 107 contributors
  • 70 tickets created
  • 3 tickets reopened
  • 60 tickets closed

The Core team is currently working on the next major releasemajor 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 🛠

Ticketticket 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

  • Guard against false transient key in get_cached_events()#55888

Bootstrap/Load

  • Revert the is_*_admin_screen() aliases for is_*_admin() function family – #56400

Build/Test Tools

  • Call wpTearDownAfterClass() before deleting all data, instead of after – #55918. – #55652
  • Disable process timeout when running PHPUnit tests via Composer – #55919
  • Remove PHPPHP The web scripting language in which WordPress is primarily architected. WordPress requires PHP 5.6.20 or higher 8.1 and 8.2 from allowed failures – #55652, #55656, #56009, #56681
  • Remove extraneous -- from docker-compose up command – #56550
  • Remove the retryAfter input – #55652
  • Remove unnecessary --no-interaction option from Composer commands – #54695
  • Update actions/github-scripts to the latest version – #55652
  • Fix running build scripts on Windows does not generate CSSCSS Cascading Style Sheets. files for blocks – #56616
  • Simplify syncing core blocks from GutenbergGutenberg 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/ pluginPlugin 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 to Core – #56179
  • Ensure prerequisites are met for draft length tests in Tests_L10n#56681, #55652, #55656
  • Update blockBlock 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. registration tests to account for RTL stylesheet loading changes – #56325

Bundled Themes

  • Twenty Eleven: Improve text color consistency of Table Block heading cells and figcaption – #56462
  • Twenty Ten: Escape get_author_posts_url() where appropriate in functions.php file – #56674
  • Twenty Ten: Escape get_permalink() where appropriate in functions.php file – #56667
  • Twenty Twenty-Three: Bug fixes and improvements for betaBeta A pre-release of software that is given out to a large group of users to trial under real conditions. Beta versions have gone through alpha testing in-house and are generally fairly close in look, feel and function to the final product; however, design changes often occur as part of the process. 2 – #56383
  • Twenty Twenty: Ensure the fallback fonts is applied to all content elements for non-latin languages – #56396

Code Modernization

  • Check the return type of parse_url() in url_to_postid()#55656
  • Correct default values in wp_handle_comment_submission()#56712, #56681, #55656
  • Fix null to non-nullable deprecation in WP_REST_Users_Controller::update_item()#55656
  • Fix null to non-nullable deprecation in WP_Theme_JSON::get_property_value()#56620
  • Fix null to non-nullable deprecations in wp_xmlrpc_server::_insert_post()#55656
  • Fix null to non-nullable deprecations in wp_xmlrpc_server::mw_newPost()#55656
  • Use correct default value for JavaScriptJavaScript 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/. translations path – #55967, #55656

Comments

  • Prevent AYS prompt when replying to a comment and nothing has been entered – #54990

Docs

  • Add @since to wp_enqueue_classic_theme_styles() docblockdocblock (phpdoc, xref, inline docs)#55646
  • Increase the specificity of various property documentation – #55646
  • Use Latin C instead of Cyrillic С in docblock for get_test_theme_version()#55646
  • Use third-person singular verbs in class-wp-site-health-auto-updates.php, as per docblocks standards – #55646
  • Various docblock fixes in wp-includes/revision.php, as per documentation standards – #55646

Editor

  • Cast theme.json values to string on theme export – #56684
  • Correctly load RTL stylesheets in register_block_style_handle()#56325
  • Ensure block script is enqueued, regardless of ronder_callback#56408
  • Ensure settings for fluid typography and spacingScale are not lost on theme export – #55646
  • Fix missing frontend section presets output – #56467
  • Fix spacing property generation in flow layout type – #56467
  • Make template names and descriptions dynamic, again – #56467
  • Reintroduce styles that were removed for classic themes – #56467
  • Remove deprecated callable in WP_Style_Engine class – #56467
  • Remove leading whitespace from some translated strings – #56467
  • Revert dynamic template names and descriptions – #56467
  • Update packages for 6.1 Beta 2 – #56467
  • Blocks: Fix 404 error for core styles with no file – #56408, #56614
  • Blocks: Remove extra get_theme_file_path() calls in register_block_style_handle()#56666

External Libraries

  • Update MediaElement.js to version 4.2.17 – #56319
  • Update Underscore.js to version 1.13.6#56030

General

  • Remove file_exists() checks after calling realpath()#56654

I18Ni18n 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.

  • Move code out of a translatable string in register_rest_route()#51986
  • Use correct default value for JavaScript translations path – #55967, #55656
  • Ensure empty strings are consistently translated to ''#55941

Menus

Options, MetaMeta 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

  • Prevent excessive notoptions key lookups – #56639

Plugins

  • Fix Upgrade icon alignment on mobile in Plugins Install screen – #55627

Query

  • Save excessive cache add and sets in WP_Query#22176

REST APIREST 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/.

  • Ensure args is an array of arrays in register_rest_route()#51986

Script Loader

  • Prevent double space between attributes in WP_Styles class – #56675

Security

  • Introduce strings to indicate support status – #56532

Shortcodes

  • Revert recent apply_shortcodes and do_shortcode changes – #55883

Site Health

  • Fix incorrect message about the status of WP_AUTO_UPDATE_CORE#51041

Upgrade/Install

  • Keep search engine checkbox value when reloading the Install screen – #55900
  • Update sodium_compat to v1.19.0 – #56653

Users

  • Correctly pass the context property for persisted preferences – #56665#56467

Props

Thanks to the 107 (!) people who contributed to WordPress Core on Trac last week: @jrf (14), @SergeyBiryukov (11), @mukesh27 (8), @desrosj (7), @audrasjb (6), @aristath (6), @robinwpdeveloper (6), @costdev (5), @bernhard-reiter (5), @rafiahmedd (4), @cbravobernal (4), @ramonopoly (4), @rudlinkon (3), @sabernhardt (3), @kebbet (3), @azaozz (3), @poena (3), @hellofromTonya (3), @andrewserong (3), @Chouby (2), @hztyfoon (2), @dd32 (2), @spacedmonkey (2), @Ankit K Gupta (2), @whaze (2), @oandregal (2), @Clorith (2), @johnbillion (2), @glendaviesnz (2), @ironprogrammer (2), @maahrokh (1), @zoonini (1), @talldanwp (1), @ramon-fincken (1), @khokansardar (1), @chrisbudd1 (1), @manfcarlo (1), @tobiasbg (1), @nendeb55 (1), @chesio (1), @bernie (1), @lopo (1), @sumitbagthariya16 (1), @felipeelia (1), @dmsnell (1), @mcsf (1), @sergeybiryukov (1), @clorith (1), @wildworks (1), @zieladam (1), @paragoninitiativeenterprises (1), @isabel_brison (1), @ndiego (1), @beafialho (1), @jorbin (1), @critterverse (1), @madhudollu (1), @mikachan (1), @pls78 (1), @manooweb (1), @hugodevos (1), @Boniu91 (1), @krishaweb (1), @oglekler (1), @faisal03 (1), @apermo (1), @hasanuzzamanshamim (1), @cdbessig (1), @lovor (1), @swissspidy (1), @ocean90 (1), @saggre (1), @westonruter (1), @johnjamesjacoby (1), @peterwilsoncc (1), @get_dave (1), @meysamnorouzi (1), @scruffian (1), @tellthemachines (1), @rajanpanchal2028 (1), @imadarshakshat (1), @antonvlasenko (1), @justinahinon (1), @jameskoster (1), @jorgefilipecosta (1), @iviweb (1), @DarkoG (1), @azouamauriac (1), @dovyp (1), @mkox (1), @cu121 (1), @malthert (1), @nateallen (1), @johnmark8080 (1), @Hinjiriyo (1), @timothyblynjacobs (1), @AndrewNZ (1), @oneearth27 (1), @ntsekouras (1), @slaFFik (1), @multidots1896 (1), @umesh84 (1), @fuadragib01 (1), @jakariaistauk (1), @tillkruess (1), @elten (1), and @draganescu (1).

Congrats and welcome to our 14 (!) new contributors of the week: @maahrokh, @sumitbagthariya16, @cdbessig, @saggre, @meysamnorouzi, @rajanpanchal2028, @imadarshakshat, @cu121, @johnmark8080, @AndrewNZ, @oneearth27, @fuadragib, @jakariaistauk, @elten. ♥️

Core committers: @sergeybiryukov (20), @davidbaumwald (16), @audrasjb (12), @desrosj (6), @hellofromtonya (3), @gziolo (3), @jorgefilipecosta (2), @spacedmonkey (1), @westonruter (1), @peterwilsoncc (1), and @johnbillion (1).

#6-1, #core, #week-in-core