diff --git a/packages/editor/README.md b/packages/editor/README.md
index a019411ef53ed1..89ea15ef378495 100644
--- a/packages/editor/README.md
+++ b/packages/editor/README.md
@@ -532,7 +532,7 @@ _Returns_
### PageAttributesOrder
-Renders the Page Attributes Order component. A number input in an editor interface for setting the order of a given page.
+Renders the Page Attributes Order component. A number input in an editor interface for setting the order of a given page. The component is now not used in core but was kept for backward compatibility.
_Returns_
diff --git a/packages/editor/src/components/page-attributes/order.js b/packages/editor/src/components/page-attributes/order.js
index 17746ca8237d6f..c5f02c71b613d4 100644
--- a/packages/editor/src/components/page-attributes/order.js
+++ b/packages/editor/src/components/page-attributes/order.js
@@ -1,22 +1,18 @@
/**
* WordPress dependencies
*/
-import { __, sprintf } from '@wordpress/i18n';
+import { __ } from '@wordpress/i18n';
import {
- Button,
- Dropdown,
Flex,
FlexBlock,
__experimentalNumberControl as NumberControl,
} from '@wordpress/components';
import { useSelect, useDispatch } from '@wordpress/data';
-import { useState, useMemo } from '@wordpress/element';
-import { __experimentalInspectorPopoverHeader as InspectorPopoverHeader } from '@wordpress/block-editor';
+import { useState } from '@wordpress/element';
/**
* Internal dependencies
*/
-import PostPanelRow from '../post-panel-row';
import PostTypeSupportCheck from '../post-type-support-check';
import { store as editorStore } from '../../store';
@@ -61,6 +57,7 @@ function PageAttributesOrder() {
/**
* Renders the Page Attributes Order component. A number input in an editor interface
* for setting the order of a given page.
+ * The component is now not used in core but was kept for backward compatibility.
*
* @return {Component} The component to be rendered.
*/
@@ -71,74 +68,3 @@ export default function PageAttributesOrderWithChecks() {
);
}
-
-function PostOrderToggle( { isOpen, onClick } ) {
- const order = useSelect(
- ( select ) =>
- select( editorStore ).getEditedPostAttribute( 'menu_order' ) ?? 0,
- []
- );
- return (
-
- );
-}
-
-export function OrderRow() {
- // Use internal state instead of a ref to make sure that the component
- // re-renders when the popover's anchor updates.
- const [ popoverAnchor, setPopoverAnchor ] = useState( null );
- // Memoize popoverProps to avoid returning a new object every time.
- const popoverProps = useMemo(
- () => ( {
- // Anchor the popover to the middle of the entire row so that it doesn't
- // move around when the label changes.
- anchor: popoverAnchor,
- placement: 'left-start',
- offset: 36,
- shift: true,
- } ),
- [ popoverAnchor ]
- );
- return (
-
- (
-
- ) }
- renderContent={ ( { onClose } ) => (
-
-
-
- { __(
- 'This attribute determines the order of pages in the Pages List block.'
- ) }
-
- { __(
- 'Pages with the same order value will sorted alphabetically. Negative order values are also supported.'
- ) }
-