The WordPresscoreCoreCore is the set of software required to run WordPress. The Core Development Team builds WordPress.development team builds WordPress! Follow this site for general updates, status reports, and the occasional code debate. There’s lots of ways to contribute:
Found abugbugA bug is an error or unexpected result. Performance improvements, code optimization, and are considered enhancements, not defects. After feature freeze, only bugs are dealt with, with regressions (adverse changes from the previous version) being the highest priority.?Create a ticketin the bug tracker.
This guide shares more of the in-depth changes that you will find in 6.3 and is published withRelease Candidaterelease candidateOne of the final stages in the version release cycle, this version signals the potential to be a final release to the public. Also seealpha (beta).1 to help inform WordPress developers, extenders, and others.
GutenbergGutenbergThe 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/included in this release has1737 pull requests: 307 enhancements, 481bugbugA bug is an error or unexpected result. Performance improvements, code optimization, and are considered enhancements, not defects. After feature freeze, only bugs are dealt with, with regressions (adverse changes from the previous version) being the highest priority.fixes, and 55accessibilityAccessibilityAccessibility (commonly shortened to a11y) refers to the design of products, devices, services, or environments for people with disabilities. The concept of accessible design ensures both “direct access” (i.e. unassisted) and “indirect access” meaning compatibility with a person’s assistive technology (for example, computer screen readers). (https://en.wikipedia.org/wiki/Accessibility)improvements.
Changes in 6.3 are spread across 43 core components. Below is the breakdown of the most important ones.
BlockBlockBlock 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
WordPress 6.3 is bringing 10 Gutenberg releases into the core –fifteen point two,fifteen point three,fifteen point four,fifteen point five,fifteen point six,fifteen point seven,fifteen point eight,fifteen point nine,sixteen, andsixteen point one. You will find new Block APIs, Block properties, Block editing mode, Block layout support, color classes, Command Palette, Reusable Blocks renamed to Synced Patterns, and many other changes in these 10pluginPluginA 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-partyreleases.
Bundled default themes have dropped support for Internet Explorer scripts and styles, which also removed skip-link focus fix script for navigating by keyboard in Internet Explorer and old versions of Chrome.
In addition, special stylesheets and HTML5 Shiv scripts are not enqueued or included in theheader.phptemplate for the following themes: Twenty Thirteen (its conditional code is also removed), Twenty Fifteen, and Twenty Seventeen. (#56699)
Theme developers who wish to continue to support IE can add code snippets to their themes that restore the functionalities.
CacheAPIAPIAn 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.
The Cache API has undergone several improvements: introducing new cache groups specific to queries and offering developers greater control over the handling of objects within these groups.
You can now set the expiration time for a cache group, clear specific cache groups, set last changed value for a cache group, and declare specific cache groups as non-persistent. With these changes, you can implement your own custom cache invalidation strategies, allowing you to invalidate an entire cache group programmatically.
Other improvements include improved validation, ensuring that only an array of unique integers are passed as input.
Hidden (.prefixed) files can now be included inlist_files()with a new optional$include_hiddenparameter. Defaults tofalsefor backward compatibility. (#53659)
General
A new constantWP_DEVELOPMENT_MODEis introduced to signify context-specific development mode. The constant can have the value “core“, “plugin“, “theme“, “all“, or an empty string. The latter of which means no development mode, which is also the default.
Two new helper functionswp_is_development_mode( $mode )andwp_get_development_mode()are introduced as the recommended ways to interact with this new configuration value.
The different development modes affect specific caching functionality; for example, caching is only bypassed during theme development, but not during core development. (#57487)
The current value of theWP_DEVELOPMENT_MODEconstant is also accessible underTools > Site Health > Info, in the WordPress Constants section. (#58646)
WP_DEVELOPMENT_MODEserves as an addition to existing debugging constants:WP_DEBUG,SCRIPT_DEBUG, andWP_ENVIRONMENT_TYPE.
I18Ni18nInternationalization, or the act of writing and preparing code to be fully translatable into other languages. Also seelocalization. Often written with a lowercase i so it is not confused with a lowercase L or the numeral 1. Often an acquired skill.
Improvements include the ability to short-circuitload_textdomainfilterFilterFilters are one of the two types of Hookshttps://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.and reducing loading time for just-in-timetranslationtranslationThe process (or result) of changing text, words, and display formatting to support another language. Also seelocalization,internationalization..
The media component has been updated with several enhancements that improve load time performance for content with images. WordPress now automatically adds thefetchpriorityattribute with a value of “high” to the image that it determines most likely to be the “LCP (Largest Contentful Paint) image”. Other enhancements have been implemented to improve the automatic handling of lazy-loading via the loading attribute to more reliably detect when to omit the attribute from some images.
Metadata API has undergone significant improvement in the area of lazy loading capabilities for term, comment, and site metadata. Lazy loading refers to a technique where data is loaded only when it is actually needed. This reduces unnecessary database queries or cache lookups and improves overall performance.
The functionget_pages()has been revised to utilizeWP_Queryinternally. This improvement significantly reduces the complexity of theget_pages()function by offloading the burden of querying databases and handling the cache toWP_Query. (#55806and#12821)
Support forHTMLHTMLHyperText Markup Language. The semantic scripting language primarily used for outputting content in web browsers.5 “async” and “defer” attributes has been added, which allows developers to register scripts with a loading strategy. The loading strategy can be enabled by overloading the$in_footerparameter as an array that contains the loading strategy to thewp_register_script()andwp_enqueue_script()functions. If present, the loading strategy attribute will be added to the scripttagtagA 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.).
The intended loading strategy that you pass via the$argsparameter may not be the final (chosen) strategy since the script’s dependency tree (its dependencies and/or dependents) is taken into account, but it will never be detrimental to (or stricter than) the intended strategy.
The rollback feature will automatically restore the previously installed plugin/theme version if the manual update process fails. ThisenhancementenhancementEnhancements are simple improvements to WordPress, such as the addition of a hook, a new feature, or an improvement to an existing feature.makes the update process more reliable and ensures that if a plugin or theme update fails, the previous version can be safely restored and the website remains available to its users.
When updating a plugin or theme, the old version is moved to a temporary backup directory:
If the update fails, then the backup kept in the temporary backup directory is restored to its original location.
If the update succeeds, the temporary backup is deleted.
To further help troubleshoot plugin and theme updates, two new checks were added to the Site Health screen:
Check to make sure theupgrade-temp-backupdirectory is writable.
Check there is enough disk-space available to safely perform updates.
Please take note, the rollback featurecannotbe used to “roll back” a plugin/theme to a previous version after asuccessfulupdate (the feature isonlyapplicable tofailed manualupdates).
An enhancement has been made to the caching of database queries inWP_User_Queryclass, the only remaining query class lacking this caching capability.
All calls toWP_User_Querywill be automatically cached by default, unless setting the relevant parameters otherwise. You can also globally disable caching by using a filter.
A new global cache group named ‘user-queries‘ is introduced to store the results of queries. Caching will be disabled for user queries that utilize the field parameter and request more than 3 fields.
Finally, plugins utilizing theusers_pre_queryhook to modify the returned values will bypass caching and the behaviors will remain the same as before.
The cron memory limit has been increased toWP_MAX_MEMORY_LIMIT(256MB by default) during cron event processing if the default memory limit is lower than this value. Note that this will not affect external means of processing cron events, such as the wp cron command inWP-CLIWP-CLIWP-CLI is the Command Line Interface for WordPress, used to do administrative and development tasks in a programmatic way. The project page ishttp://wp-cli.org/https://make.wordpress.org/cli/, server-level crontab events, or any other cron event processing mechanism that bypasseswp-cron.php.
A new filtercron_memory_limithas been introduced to adjust this value if necessary. (#56628)
Editor
A newsourceattribute is added to Block patterns allowing them to be filtered by that source. (#58622)
Embeds
Anghami has been added as a trusted oEmbed provider. (#49850)
Support for TikTok creator profiles has been added. (#55784)
Formatting
Added aria content attributesaria-controls,aria-expanded, andaria-currentto allowed attributes in KSES. (#55370)
CSSCSSCascading Style Sheets.repeat()function support has been added for KSES. (#58551)
General
In KSES, thesafecss_filter_attr()function has been revised to allow thefilterproperty to accept aURLURLA specific web address of a website or web page on the Internet, such as a website’s URL www.wordpress.org, as a reference to an SVG filter element. (#57780)
Replacingstrpos()andsubstr()for code modernization (note: for PHP versions lower than v8.0, the three replacement functions have been polyfilled since WP v5.9):
The usage of0 === strpos()or0 !== strpos()has been replaced withstr_starts_with().
The usage offalse === strpos()orfalse !== strpos()has been replaced withstr_contains().
The usage of$needle === substr( $string, 0, $length )has been replaced withstr_starts_with( $haystack, $needle ). The value of$lengthshould be the length of$needle.
The usage of$needle === substr( $string, $offset )where$offsetis negative has been replaced withstr_ends_with( $haystack, $needle ). The absolute value of$offsetshould be the length of$needle. (#58012,#58206,#58220)
Performance
In theWP_Comments_List_Tableclass, when the functionget_comments()is called, the parameterupdate_comment_post_cacheis passed with a value oftrue. This primes all the related posts for the displayed comments and improves performance. (#57802)
The_wp_array_get()function is the most called function on the front end of a site, up to ~23k times on each page-load when using a block theme. A few minor performance optimizations have been introduced, which adds up to a noticeable improvement. (#58376)
Quick/Bulk Edit
A newbulk_edit_postsaction hook is introduced, which triggers after processing the post data for bulk edit and before it returns its results. For example, it allows developers to save additional data without having to perform any.ajax()call. (#28112)
REST APIREST APIThe 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/.
TheThemes REST APIcan now indicate whether a theme supports the Site Editor by adding anis_block_themeproperty to each theme in thewp/v2/themesAPI response. (#58123)
ArevisionsRevisionsThe 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.endpoint for global styles,/wp/v2/global-styles/revisions, has been added to the REST API. (#58524)
WP_REST_Templates_Controllerhas a newmodifiedfield for template and template part objects that returns post modified datetime for Templates. (#58540)
Revisions
When a post is saved with an unchanged autosave, the existing autosave will be returned, instead of returning an error. (#58739)
Themes
A new public functionwp_get_remote_theme_patterns()has been added to query thepatternsdatum fromtheme.jsonand substitutes current usage of private APIs. (#58460)
New ActionHooksHooksIn WordPress theme and development, hooks are functions that can be applied to an action or a Filter in WordPress. Actions are functions performed when a certain event occurs in WordPress. Filters allow you to modify certain functions. Arguments used to hook both filters and actions look the same.
edit_custom_thumbnail_sizeshas been deprecated and replaced withimage_edit_thumbnails_separately(#57685)
Deprecated Files
Thewp-admin/media.phpfile has been deprecated. Users visiting the file will be redirected to the media librarywp-admin/upload.php. A user-facing warning will be displayed when the media library is reached via a deprecated link. (#57612)
External Library Updates
The following libraries were updated to the latest versions: