Skip to content

Commit ca99bbd

Browse files
committed
Latest posts list only posts which don’t support custom menu order for sorting so we don’t attempt to resolve it
1 parent d7e34aa commit ca99bbd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/block-library/src/latest-posts/edit.native.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ class LatestPostsEdit extends Component {
148148
addLinkToFeaturedImage,
149149
order,
150150
orderBy,
151-
orderByOptions,
152151
postsToShow,
153152
categories,
154153
} = attributes;
@@ -216,7 +215,7 @@ class LatestPostsEdit extends Component {
216215

217216
<PanelBody title={ __( 'Sorting and filtering' ) }>
218217
<QueryControls
219-
{ ...{ order, orderBy, orderByOptions } }
218+
{ ...{ order, orderBy } }
220219
numberOfItems={ postsToShow }
221220
categoriesList={ categoriesList }
222221
selectedCategoryId={

0 commit comments

Comments
 (0)