FILE: /var/www/html/wp-includes/build/pages/options-connectors/page-wp-admin.php
SIZE: 10290 bytes
MODIFIED: 2026-08-26 05:34:27
CONTENT:
<?php
/**
* Page: options-connectors (wp-admin integrated)
* Auto-generated by build process.
* Do not edit this file manually.
*
* This version integrates with the standard WordPress admin interface,
* keeping the wp-admin sidebar and scripts/styles intact.
*
* @package wp
*/
// Global storage for options-connectors routes and menu items
global $wp_options_connectors_wp_admin_routes, $wp_options_connectors_wp_admin_menu_items;
$wp_options_connectors_wp_admin_routes = array();
$wp_options_connectors_wp_admin_menu_items = array();
/**
* Register a route for the options-connectors-wp-admin page.
*
* @param string $path Route path (e.g., '/types/$type/edit/$id').
* @param string|null $content_module Script module ID for content (stage/inspector).
* @param string|null $route_module Script module ID for route lifecycle hooks.
*/
function wp_register_options_connectors_wp_admin_route( $path, $content_module = null, $route_module = null ) {
global $wp_options_connectors_wp_admin_routes;
$route = array( 'path' => $path );
if ( ! empty( $content_module ) ) {
$route['content_module'] = $content_module;
}
if ( ! empty( $route_module ) ) {
$route['route_module'] = $route_module;
}
$wp_options_connectors_wp_admin_routes[] = $route;
}
/**
* Register a menu item for the options-connectors-wp-admin page.
* Note: Menu items are registered but not displayed in single-page mode.
*
* @param string $id Menu item ID.
* @param string $label Display label.
* @param string $to Route path to navigate to.
* @param string $parent_id Optional. Parent menu item ID.
*/
function wp_register_options_connectors_wp_admin_menu_item( $id, $label, $to, $parent_id = '' ) {
global $wp_options_connectors_wp_admin_menu_items;
$menu_item = array(
'id' => $id,
'label' => $label,
'to' => $to,
);
if ( ! empty( $parent_id ) ) {
$menu_item['parent'] = $parent_id;
}
$wp_options_connectors_wp_admin_menu_items[] = $menu_item;
}
/**
* Get all registered routes for the options-connectors-wp-admin page.
*
* @return array Array of route objects.
*/
function wp_get_options_connectors_wp_admin_routes() {
global $wp_options_connectors_wp_admin_routes;
return $wp_options_connectors_wp_admin_routes ?? array();
}
/**
* Get all registered menu items for the options-connectors-wp-admin page.
*
* @return array Array of menu item objects.
*/
function wp_get_options_connectors_wp_admin_menu_items() {
global $wp_options_connectors_wp_admin_menu_items;
return $wp_options_connectors_wp_admin_menu_items ?? array();
}
/**
* Preload REST API data for the options-connectors-wp-admin page.
* Automatically called during page rendering.
*/
function wp_options_connectors_wp_admin_preload_data() {
// Define paths to preload - same for all pages
// This must exactly match the _fields list in packages/core-data/src/entities.js,
// same fields in the same order, or the preload is never consumed.
$preload_paths = array(
'/?_fields=description,gmt_offset,home,image_max_bit_depth,image_sizes,image_size_threshold,image_strip_meta,name,site_icon,site_icon_url,site_logo,timezone_string,url,page_for_posts,page_on_front,show_on_front',
array( '/wp/v2/settings', 'OPTIONS' ),
);
// Use rest_preload_api_request to gather the preloaded data
$preload_data = array_reduce(
$preload_paths,
'rest_preload_api_request',
array()
);
// Register the preloading middleware with wp-api-fetch
wp_add_inline_script(
'wp-api-fetch',
sprintf(
'wp.apiFetch.use( wp.apiFetch.createPreloadingMiddleware( %s ) );',
wp_json_encode( $preload_data )
),
'after'
);
}
/**
* Enqueue scripts and styles for the options-connectors-wp-admin page.
* Hooked to admin_enqueue_scripts.
*
* @param string $hook_suffix The current admin page.
*/
function wp_options_connectors_wp_admin_enqueue_scripts( $hook_suffix ) {
// Check all possible ways this page can be accessed:
// 1. Menu page via admin.php?page=options-connectors-wp-admin (plugin)
// 2. Direct file via options-connectors.php (Core) - screen ID will be 'options-connectors'
$current_screen = get_current_screen();
$is_our_page = (
( isset( $_GET['page'] ) && 'options-connectors-wp-admin' === $_GET['page'] ) || // phpcs:ignore WordPress.Security.NonceVerification.Recommended
( $current_screen && 'options-connectors' === $current_screen->id )
);
if ( ! $is_our_page ) {
return;
}
// Load build constants
$build_constants = require __DIR__ . '/../../constants.php';
/**
* Fires when the options-connectors admin page is initialized so extensions can register routes and menu items.
*/
do_action( 'options-connectors-wp-admin_init' );
// Preload REST API data
wp_options_connectors_wp_admin_preload_data();
// Get all registered routes
$routes = wp_get_options_connectors_wp_admin_routes();
// Get boot module asset file for dependencies
$asset_file = ABSPATH . WPINC . '/js/dist/script-modules/boot/index.min.asset.php';
if ( file_exists( $asset_file ) ) {
$asset = require $asset_file;
// This script serves two purposes:
// 1. It ensures all the globals that are made available to the modules are loaded.
// 2. It initializes the boot module as an inline script.
wp_register_script( 'options-connectors-wp-admin-prerequisites', '', $asset['dependencies'], $asset['version'], true );
$init_modules = [];
/*
* Add inline script to initialize the app using initSinglePage (no menuItems).
* The dynamic import is deferred until DOMContentLoaded so that all classic
* script dependencies of @wordpress/boot (wp-private-apis, wp-components,
* wp-theme, etc.) have finished parsing and executing before the boot module
* evaluates. Otherwise, a modulepreloaded @wordpress/boot can win the race
* against the classic-script-printing pass on fast CDN-fronted hosts in
* Chrome, evaluating before wp.theme.privateApis is defined and throwing
* "Cannot unlock an undefined object". See <https://core.trac.wordpress.org/ticket/65103>.
*/
$init_js_function = <<<'JS'
( mountId, routes, initModules ) => {
const run = async () => {
const mod = await import( "@wordpress/boot" );
mod.initSinglePage( { mountId, routes, initModules } );
};
if ( document.readyState === "loading" ) {
document.addEventListener( "DOMContentLoaded", run );
} else {
run();
}
}
JS;
wp_add_inline_script(
'options-connectors-wp-admin-prerequisites',
sprintf(
'( %s )( %s, %s, %s );',
$init_js_function,
wp_json_encode( 'options-connectors-wp-admin-app', JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ),
wp_json_encode( $routes, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ),
wp_json_encode( $init_modules, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES )
)
);
// Register prerequisites style by filtering script dependencies to find registered styles
$style_dependencies = array_filter(
$asset['dependencies'],
function ( $handle ) {
return wp_style_is( $handle, 'registered' );
}
);
wp_register_style( 'options-connectors-wp-admin-prerequisites', false, $style_dependencies, $asset['version'] );
// Build dependencies for options-connectors-wp-admin module
$boot_dependencies = array(
array(
'import' => 'static',
'id' => '@wordpress/boot',
),
);
// Add init modules as static dependencies
// No init modules configured
// Add all registered routes as dependencies
foreach ( $routes as $route ) {
if ( isset( $route['route_module'] ) ) {
$boot_dependencies[] = array(
'import' => 'static',
'id' => $route['route_module'],
);
}
if ( isset( $route['content_module'] ) ) {
$boot_dependencies[] = array(
'import' => 'dynamic',
'id' => $route['content_module'],
);
}
}
/**
* Filters the boot script-module dependencies for the
* options-connectors-wp-admin page.
*
* Surfaces extending this page can append entries to the boot
* dependency list. Each entry is an array with 'import' (string
* 'static' or 'dynamic') and 'id' (script-module handle) keys.
*
* @param array $boot_dependencies Boot dependencies for the page.
*/
$boot_dependencies = apply_filters(
'options-connectors-wp-admin_boot_dependencies',
$boot_dependencies
);
// Dummy script module to ensure dependencies are loaded
wp_register_script_module(
'options-connectors-wp-admin',
$build_constants['build_url'] . 'pages/options-connectors/loader.js',
$boot_dependencies
);
// Enqueue the boot scripts and styles
wp_enqueue_script( 'options-connectors-wp-admin-prerequisites' );
wp_enqueue_script_module( 'options-connectors-wp-admin' );
wp_enqueue_style( 'options-connectors-wp-admin-prerequisites' );
}
}
/**
* Render the options-connectors-wp-admin page.
* Call this function from add_menu_page or add_submenu_page.
* This renders within the normal WordPress admin interface.
*/
function wp_options_connectors_wp_admin_render_page() {
?>
<style>
/* Critical styles to prevent layout shifts - inlined for immediate application */
#wpwrap {
overflow-y: auto;
}
body.js {
background: #fff;
}
/* Reset wp-admin padding */
body.js #wpcontent {
padding-inline-start: 0;
}
body.js #wpbody-content {
padding-bottom: 0;
}
/* Hide legacy admin elements */
body.js #wpbody-content > div:not(.boot-layout-container):not(#screen-meta) {
display: none;
}
body.js #wpfooter {
display: none;
}
/* Accessibility regions */
.a11y-speak-region {
inset-inline-start: -1px;
top: -1px;
}
/* Admin menu indicators */
ul#adminmenu a.wp-has-current-submenu::after,
ul#adminmenu > li.current > a.current::after {
border-inline-end-color: #fff;
}
/* Media frame fix */
.media-frame select.attachment-filters:last-of-type {
width: auto;
max-width: 100%;
}
/* Responsive overflow fix for #wpwrap */
@media (min-width: 782px) {
#wpwrap {
overflow-y: initial;
}
}
</style>
<div id="options-connectors-wp-admin-app" class="boot-layout-container"></div>
<?php
}
// Hook the enqueue function to admin_enqueue_scripts
add_action( 'admin_enqueue_scripts', 'wp_options_connectors_wp_admin_enqueue_scripts' );
레시피정보 Archives - 뷰어스
레시피정보 Archives - 뷰어스
#레시피정보 (80 Posts)
1년 내내 맛있는 황금 비율로 마늘장아찌 담그는 방법
2024.11.28
제철 마늘로 맛있게 담그면 1년 내내 반찬 걱정 뚝! 고기와 함께 먹으면 더욱 맛있는 마늘장아찌에요. 오늘은 저희집 맛있는 마늘장아찌 담그는 방법 알려드릴게요!
초보자도 성공하기 쉬운! 알타리김치 맛있게 담는 법
2024.11.27
라면 먹으면 필수! 알타리김치죠. 아주 맛있게 먹을 수 있는 김치 중 하나에요. 그래서 오늘은~ 누구나 아주 손쉽고 맛있게 알타리김치 담는 법 알려드리도록 할게요!
‘이것’ 넣어 2배 더 맛있게! 꼬막무침 황금레시피 & 양념장
2024.11.26
꼬막무침은 삶는 방법과 양념장이 참 중요한 것 같아요. 잘못 삶게 되면 살이 질겨져 맛이 없고, 양념장이 맛 없어도 무침이 맛이 없을 수 있는데요. 오늘은 '이것' 넣어 2배 더 맛있게 즐기는 꼬막무침 황금레시피 알려드릴게요 : )
인생 양념장으로 제육볶음 맛있게 만드는 법
2024.11.25
제육볶음 맛있게 만드는법 상추 쌈에 제육은 언제나 진리이죠~ 제육볶음을 만드는데 있어서 양념장은 맛을 크게 좌우 하는 것 같아요. 오늘은 주부생활 40년 동안 만들며 발견한 양념장 레시피로 제육볶음 맛있게 만드는 법 알려드릴게요! 먼저 재료를 항상 신선한 것으로 준비해 주세요. 재료가 신선해야 모든 음식이 참 맛있게 잘 된답니다. #재료안내 삼겹살 730g
깔끔하고 진한 양념장으로 만든 ‘LA갈비 구이’
2024.11.24
설 명절 가족들과 함께 먹기 좋은 양념 LA갈비 만들기~ LA갈비는 짭쪼름한~ 간장으로 양념된 고기 맛이 참 좋아서 밥과 함께 먹기에 좋은 것 같아요 : ) 추석이나 설날 명절 등에도 자주 올라오고, 집에서도 자주 먹게 되는 음식 중 하나인데요. 의외로 양념 만들기도 쉬워서 누구나 실패 없이 만들 수 있어요 ㅎ 필요한 재료는 설탕 1T, 물엿 1T, […]
물과 계란만으로 완벽한 전자레인지 수란 만들기!
2024.11.23
1분 10초만에 만든 전자레인지 수란! 든든한 아침이나 건강한 음식을 위해서 언제나 계란 하나를 챙겨 먹는데요. 후라이나 삶은 계란, 스크램블 등 참 많은 계란 요리가 있지만 담백하게~ 샐러드 위나 빵 등과 먹기 좋은 것은 수란인 것 같아요. 하지만 수란은 실패할 확률도 높고 ㅠ 만들기도 어려운 것 중 하나인데요. 전자레인지로 물과 계란만 있다면 아주 손쉽
전자레인지로 만든 맛있는 3분 ‘초코 컵케이크’
2024.11.22
전자레인지로 3분만에 만든 맛있는 초코 컵케이크! 집에서도 간단하게 전자레인지를 이용해서 컵케이크를 만들 수 있다는 것 알고 계셨나요 ~? 집에 있을 법한 간단한 재료를 이용하면 짧은 시간만에 맛있는 컵케이크를 만들 수 있어요 : )
부드러운 식감의 ‘일본식 계란찜’ 만드는 법
2024.11.21
우리나라의 계란찜과는 다소 다른 일본식 계란찜은 부드러운 식감이 특징인데요. 가끔씩 해먹으면 참 별미로 맛있는 것 같아요 ~ 만드는 방법도 어렵지 않아 누구나 만들 수 있을 것 같아요!
설탕 대신 꿀을 넣어 더욱 건강한! 꿀생강청 만드는 법
2024.11.19
겨울이 오기 전 꿀생강청 하나를 만들어 놓으면 감기도 예방하고 음식에도 넣어 먹을 수 있어 참 좋아요. 설탕을 넣기도 하지만 대신 꿀을 넣고 하면 더욱 건강하게 먹을 수 있고 간단하게 만들 수 있는데요. 오늘은 꿀을 넣어 더욱 건강한 생강청 만드는 방법을 알려드릴게요 : )
매콤새콤 양념장으로 맛있게 만든! 골뱅이무침 황금레시피
2024.11.18
맛있게 휘리릭 골뱅이를 무쳐서 소면과 함께 먹으면 정말 소주를 부르는 맛이에요 : ) 밖에서 뿐만아니라 집에서도 간편하게 만들어 먹을 수 있는 것이 바로 골뱅이무침인데요! 오늘은 맛있는 양념장으로 쉽고 간편하게 골뱅이무침 만드는법을 알려드리도록 할게요.
음식의 풍미를 한층 더! 높이는 멸치육수 내는법
2024.11.17
멸치 육수는 국물 요리, 찌개 김치 등 여러 우리나라 음식에 빠지지 않는 기본 중 하나이죠~ 멸치육수를 맛있게 내면 다른 음식도 함께 맛있게 만들 수 있어 참 좋아요 : ) 그래서 오늘은 누구나 실패 없이 깊고 진~한 멸치육수 내는 방법을 알려드리도록 할게요!
단맛과 시원함이 좋은! 하얀 열무 물김치 맛있게 담그는 법
2024.11.16
시원함과 단맛이 참 좋은~ 맑은 열무 물김치 담그는 방법이에요. 물김치는 국물 맛이 참 중요한데요. 오늘은 천연 재료를 이용해서 맛있게 열무 물김치 담그는 방법을 알려드릴게요!
5분완성! 인절미 만드는 방법 집에서도 간단하게~
2024.11.15
고소한 맛과 쫄깃쫄깃 정말 맛 좋은 인절미! 보통은 방앗간에 가 사먹기 마련인데요. 집에서도 간단하게 만들어 먹을 수 있다는 사실! 알고 계셨나요? 직접 만들어 바로 먹으면 그 맛이 배가 되는 인절미인데요. 오늘은 집에서도 아주 손쉽게 인절미 만드는 방법 알려드리도록 할게요!
3분 만에 전자레인지로 맛있는 ‘옥수수 콘치즈’ 만들기!
2024.11.14
일식집에 가면 나오는 맛있는 옥수수 콘치즈~ 집에서도 쉽고 간단하게 해먹을 수 있는데요 : ) 전자레인지를 이용하면 따로 불을 쓰지 않아도 간편하고 맛있게 만들 수 있어요!
전자레인지로 10분만에 만든 ‘딸기잼 레시피!’
2024.11.13
집에서 아침마다 토스트를 먹을 때 잼을 발라 먹는데, 은근 비싸서 전자레인지로 쉽고 간단하게 딸기잼을 한번 만들어 봤어요 : )
집에서도 간단하게 전기밥솥으로 ‘약밥 만드는 방법’
2024.11.12
여러가지 영양이 한가득~ 맛있는 약밥(약식) 만드는방법이에요! 보통은 구매해서 먹게 되지만 집에서도 전기밥솥만 있다면 손쉽게 만들 수 있답니다 : ) 오늘은 물 양, 비율 등 누구나 만들 수 있는 약밥 레시피를 알려드리도록 할게요~
깔끔한 매콤함 일품! 어묵볶음 맛있게 만드는 법
2024.11.11
언제 먹어도 밥 반찬으로 정말 맛있는 어묵볶음 레시피에요. 간단하게 휘리릭 볶아서 먹을 수 있다는 장점이 있는데요. 오늘은 여기에 깔끔한 매콤함을 더해 더욱 맛있게 만드는 방법을 알려드리도록 해볼게요!
‘이것’ 하나로 2배더! 계란말이 맛있게 하는법
2024.11.10
맛도 만점 영양도 만점 계란말이! 야채와 계란이 함께 들어가 정말 맛있는 음식 중 하나죠. 그냥 먹어도 맛있지만 여기에 한 가지 재료를 추가하여 더욱 맛있게 먹을 수 있는 계란말이 맛있게 하는 법 알려드릴게요 : )
오이지무침 황금레시피 꼬들꼬들 입맛 확 사는 밥도둑!
2024.11.08
맛있는 오이로 담궈 놓은 오이지! 무침으로 해서 먹으면 밥 한 공기는 뚝딱! 인데요. 이 반찬은 꼬들꼬들하면서 입맛 확 당기는 양념이 참 중요해요! 그래서 오늘은 입맛 확 사는 오이지무침 황금레시피 알려드릴께요!
부서짐 없이! 깔끔한 감자조림 맛있게 만드는법
2024.11.07
쫀득하니 맛있게 먹을 수 있는 밥반찬 감자조림! 제철에 먹으면 더욱 맛있죠. 오늘은 부서지지 않고 깔끔하게 잘 졸여 더욱 맛있게 감자조림 만드는법 알려드릴께요.
댓글 많은 뉴스