0) { ob_end_clean(); } $data = array_merge( [ "restUrl" => esc_url_raw(get_rest_url()), "restNonce" => wp_create_nonce("wp_rest"), ], $data_callback !== null ? $data_callback() : [] ); // The buffer just discarded didn't just hold the native // screen's content — in_admin_header fires before WP prints //
, and those // wrapper divs' closing tags print (in admin-footer.php) // before this admin_footer callback runs, so both got // captured and thrown away too. Re-print them around the // mount div so the DOM WP itself would have produced still // exists — windowChrome.js's traffic-light bar and the shell's // frame CSS both key off #wpbody-content being there. ?>