Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
=== Create Block Theme ===
Contributors: wordpressdotorg, mikachan, onemaggie, pbking, scruffian, mmaattiiaass, jffng, madhudollu, egregor, vcanales, jeffikus, cwhitmore
Tags: themes, theme, block-theme
Requires at least: 6.6
Requires at least: 6.7
Tested up to: 6.8
Stable tag: 2.7.0
Requires PHP: 7.4
Expand Down
2 changes: 1 addition & 1 deletion src/editor-sidebar/screen-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { chevronRight, chevronLeft } from '@wordpress/icons';

const ScreenHeader = ( { title, onBack } ) => {
// TODO: Remove the fallback component when the minimum supported WordPress
// version was increased to 6.7.
// version was increased to 6.8.
const BackButton = Navigator?.BackButton || NavigatorToParentButton;
Comment on lines -20 to 21
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It turns out that Navigator.BackButton is not yet exposed in WordPress 6.7. Therefore, we found that the fallback component is necessary as long as CBT supports WordPress 6.7.

In the future, when we bump the minimum required WordPress version to 6.8, we will be able to remove this fallback code.

return (
<Spacer marginBottom={ 0 } paddingBottom={ 4 }>
Expand Down