• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Yoast / wordpress-seo / 4c2f7dbdc6d32423420206bdfb77202e11de0305

07 May 2024 01:05PM UTC coverage: 51.242% (-1.2%) from 52.394%
4c2f7dbdc6d32423420206bdfb77202e11de0305

push

github

web-flow
Merge pull request #21370 from Yoast/fix-metabox-and-sidebar-elements-order

Fix metabox and sidebar elements order

7464 of 13622 branches covered (54.79%)

Branch coverage included in aggregate %.

0 of 3 new or added lines in 3 files covered. (0.0%)

1436 existing lines in 41 files now uncovered.

28351 of 56272 relevant lines covered (50.38%)

39918.07 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/packages/js/src/components/slots/MetaboxSlot.js
1
import { Slot } from "@wordpress/components";
2
import sortComponentsByRenderPriority from "../../helpers/sortComponentsByRenderPriority";
3
import TopLevelProviders from "../TopLevelProviders";
4
import { ErrorBoundary } from "@yoast/ui-library";
5
import { MetaboxErrorFallback } from "../metabox-error-fallback";
6

7
/**
8
 * Renders the metabox portal.
9
 *
10
 * @param {Object} props The props.
11
 * @param {Object} props.theme The theme.
12
 *
13
 * @returns {null|wp.Element} The element.
14
 */
15
export default function MetaboxSlot( { theme } ) {
16
        return (
×
17
                <TopLevelProviders
18
                        theme={ theme }
19
                        location={ "metabox" }
20
                >
21
                        <ErrorBoundary FallbackComponent={ MetaboxErrorFallback }>
22
                                <Slot name="YoastMetabox">
23
                                        { ( fills ) => {
NEW
24
                                                return sortComponentsByRenderPriority( fills );
×
25
                                        } }
26
                                </Slot>
27
                        </ErrorBoundary>
28
                </TopLevelProviders>
29
        );
30
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc