From 0e8fbc67df02912184b4339f7856a0247aff198a Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Tue, 23 Nov 2021 10:46:10 +0000 Subject: [PATCH] Remove code duplication Addresses https://github.com/WordPress/gutenberg/pull/36740#discussion_r754867803 --- packages/block-library/src/navigation/index.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/block-library/src/navigation/index.php b/packages/block-library/src/navigation/index.php index f096dd9763fde..3c557f265b730 100644 --- a/packages/block-library/src/navigation/index.php +++ b/packages/block-library/src/navigation/index.php @@ -218,8 +218,7 @@ function( $block ) { // If there are no inner blocks then fallback to rendering the Page List block. if ( empty( $inner_blocks ) ) { - $is_fallback = true; // indicate we are rendering the fallback. - $attributes['__unstableMaxPages'] = 4; // set value to be passed as context to Page List block. + $is_fallback = true; // indicate we are rendering the fallback. $navigation_posts = get_posts( array(