Skip to content

Commit

Permalink
Latest posts list only posts which don’t support custom menu order fo…
Browse files Browse the repository at this point in the history
…r sorting so we don’t attempt to resolve it
  • Loading branch information
kasparsd committed Feb 28, 2025
1 parent d7e34aa commit ca99bbd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/block-library/src/latest-posts/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ class LatestPostsEdit extends Component {
addLinkToFeaturedImage,
order,
orderBy,
orderByOptions,
postsToShow,
categories,
} = attributes;
Expand Down Expand Up @@ -216,7 +215,7 @@ class LatestPostsEdit extends Component {

<PanelBody title={ __( 'Sorting and filtering' ) }>
<QueryControls
{ ...{ order, orderBy, orderByOptions } }
{ ...{ order, orderBy } }
numberOfItems={ postsToShow }
categoriesList={ categoriesList }
selectedCategoryId={
Expand Down

0 comments on commit ca99bbd

Please sign in to comment.