The WordPress coreCoreCore 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 a bugbugA 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 ticket in our bug tracker.
“What’s new in 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/…” posts (labeled with the #gutenberg-newtagtagA 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.)) are published following every Gutenberg release on a biweekly basis, discovering new features included in each release. As a reminder, here’s an overview of different ways to keep up with Gutenberg and the Full Site Editing project.
Gutenberg 12.1 is here! the contributors continue to work tirelessly to prepare WordPress 5.9 and fix the remaining flows and bugs for the release.
This release marks the return of the template list view allowing users to navigate between the home page and the different templates and template parts in the site editor. It’s an important piece of the site editor puzzle. The current iteration of the design favors simplicity and usability. Iterations implementing client side navigation and mosaic view might be added in the future.
The global styles panel saw a big number of improvements in this cycle including:
The typography panel has been updated to show a simplified elements view allowing users to switch easily between text and link elements typography styles.
The color palette views now show the duotone presets. Also, users can now define custom gradients to be made available throughout the website.
Transparency support for the different color pickers in the Global Styles panel.
Navigation 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.
Gutenberg 12.1 includes several Navigation block improvements once again. For starters, users are not prompted to name their menus when adding starting a new one, as it is generated automatically, although the name can still be edited in the sidebarSidebarA sidebar in WordPress is referred to a widget-ready area used by WordPress themes to display information that is not a part of the main content. It is not always a vertical column on the side. It can be a horizontal rectangle below or above the content area, footer, header, or any where in the theme.. Also, the UXUXUser experience around configuring the menu dropdown options has been improved, only displaying the options when the selected menu actually has submenus, and disabling toggling the Show arrow option when `Open on click` is enabled, to avoid confusion.
Ensuring a frontend fallback in case no menu is selected in the Navigation block has received lots of thought in the last weeks. Thanks to this, the Navigation block will now render a Page List block when visiting a page with empty navigation. However, this default behavior can be changed by developers via the new block_core_navigation_render_fallbackfilterFilterFilters 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., and completely opt-out by simply adding:
Last, but not least, as the block becomes stable for its release in WordPress 5.9, an APIAPIAn 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. change should be noted: the menuId attribute has been renamed to ref to better align with other blocks’ attribute names. A new deprecation has been added to accommodate this change and existing Navigation blocks will get migrated to the new version.
Miscellaneous editor UX improvements
If you ever tested the editor, you’ve probably already noticed these little plus buttons or what we call block appenders that appear as you navigate and click throughout the editor. These appenders would often create layout shifts and jumps as you select different blocks. The issue is now finally resolved as the behavior of the block appenders has been changed to rely on fixed positioning.
Another small but important change to the user experience in the editor is the addition of a new keyboard shortcut to unselect all blocks. Users could hit Escape to enter navigation mode for better keyboard navigation in the canvas, and starting in Gutenberg 12.1, you can also Escape a second time when in navigation mode to unselect all blocks.
The contributors also focused on improving the developer experience for block themes. If you’re a block theme author, there are two important changes that you should be aware of in Gutenberg 12.1.
First, the block-templates and block-template-parts folders have been renamed to just templates and parts respectively in preparation for upcoming features, like the addition of styles and patterns folders. Existing block themes will continue to work without any change, the former folders are still supported but we encourage you to use the updated names from now on. The documentation has been updated to reflect that change.
The second is the addition of a new flag to the theme.json settings section called appearanceTools. Theme authors can set this flag to true to opt-in into all the various appearance tools available including border color, radius and width, link color, block gap, margin, padding, line height and any appearance tool that might be added in the future. Generic block themes in the repository may consider enabling this flag automatically to avoid having to keep track of all the additions that come over time.
Show theme, pluginPluginA 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 or author in Added By column with appropriate icon or avatarAvatarAn avatar is an image or illustration that specifically refers to a character that represents an online user. It’s usually a square box that appears next to the user’s name.. (36763)
Do not show default palette if theme opts-out. (36639)
Make user able to change all color palette origins. (36674) (36747) (36817)
Rename core origin key to default for presets. (36645)
Count all color palette origins on the palette counter. (36922)
Switch the borders panel to ToolsPanel for displaying UI. (33743)
Navigation block: Only show submenu options and Show arrow button when relevant. (36826)
Navigation block: Implement suitable fallback for Nav block on front end of site when no menu selected. (36849) (36724) (36850) (36854) (36740)
Navigation block: Rename navigationMenuId to ref. (36739)
Navigation block: Automatically generate navigation post title. (36760)
Template Part block: Remove color, spacing, layout options and reusable block conversion. (36571) (36918)
Gallery block: Turn on auto-migrationMigrationMoving the code, database and media files for a website site from one server to another. Most typically done when changing hosting companies. of v1 Gallery blocks to v2 format when edited. (36191)
Update featured imageFeatured imageA 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. placeholder graphic. (36712)
Post Featured Image: Move width and height controls into the Dimensions panel via SlotFill. (36540)
Font Size Picker: Allow non-integers as simple CSSCSSCascading Style Sheets. values and in hints. (36636)
Divider: Improve vertical and RTL support. (36579)
ItemGroup: Experimenting with chevron icon. (36654)
Post Featured Image: Add a “Reset” button. (36572)
Post Title block: Fix render error when setting Page to homepage. (36786)
Query Pagination Next/Previous blocks: Remove text and link color support. (36954)
Stabilize theme export 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/. endpoint. (36559) (36908)
ToolsPanel: Prevent tools panel menu increasing empty panel height. (36895)
Update destructive tertiary button styles, and template list. (36915)
Block Templates: Fix PHPPHPThe web scripting language in which WordPress is primarily architected. WordPress requires PHP 5.6.20 or higher notices on WP 5.8. (36964)
Don’t try and render unstable location if Nav block has ID. (36863)
Border panel: Update to display multiple palette origins. (36753)
Cover: Move BoxControlVisualizer in the markup to make it visible. (36635)
Fix broken link to wordpress/stylelint-config. (36936)
Improvements on Create a Block Tutorial from Block Editor handbook. (36553)
Update history.md with description of the page. (36888)
Update Getting Started with info to stay informed. (36498)
Update Pattern block categoryCategoryThe 'category' taxonomy lets you group posts / content together that share a common bond. Categories are pre-defined and broad ranging. and add documentation. (36144)
Various inline docblockdocblock(phpdoc, xref, inline docs) corrections. (36793)
ToolsPanel: Update panel readme and stories. (36557)
Change .nvmrc and documentation for Node.js version (LTS to 14.18.1). (36744)
Blocks: Refactor generator-based actions to thunks. (36468)
Remove useless bubblesVirtually prop from BlockInspector. (37024)
Clarify i18ni18nInternationalization, 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. context for PostTemplateActions’s “New” label. (36679)
Data: Remove usage of deprecated register methods. (36344)
Move Global Styles code to lib/compat/wordpress-5.9 folder. (36978)
Rename gutenberg_ to wp_ for some functions that land in WordPress 5.9. (36913)
Remove unstable max pages attribute from Nav block. (36877)
Remove reference to gutenberg_, swap with wp_. (36652)
Add plugin metaMetaMeta 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. data to Nav Area block deprecation notice. (36777)
Reorganize end-to-end tests folders and files. (36734)
Update template controller unit testunit testCode 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. now that author support is in WP core. (36987)
end-to-end Tests: Fix failing image end-to-end test by waiting for required element. (36982)
Remove block template resolution unit tests. (36855)
Time to Render First Block
KeyPress Event (typing)
Thank you to @critterverse for the assets included in this post, @priethor for coordinating the release process and proofreading and to all those who contributed to this release!