Changeset 57181
- Timestamp:
- 12/11/2023 12:09:42 PM (17 months ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/media.php
r56549 r57181 528 528 * by adding it to the function signature. 529 529 * 530 * @global int$body_id530 * @global string $body_id 531 531 * 532 532 * @param callable $content_func Function that outputs the content. … … 534 534 */ 535 535 function wp_iframe( $content_func, ...$args ) { 536 global $body_id; 537 536 538 _wp_admin_html_begin(); 537 539 ?> … … 604 606 $body_id_attr = ''; 605 607 606 if ( isset( $ GLOBALS['body_id']) ) {607 $body_id_attr = ' id="' . $ GLOBALS['body_id']. '"';608 if ( isset( $body_id ) ) { 609 $body_id_attr = ' id="' . $body_id . '"'; 608 610 } 609 611 -
trunk/src/wp-admin/includes/template.php
r57128 r57181 2119 2119 * @global string $hook_suffix 2120 2120 * @global string $admin_body_class 2121 * @global string $body_id 2121 2122 * @global WP_Locale $wp_locale WordPress date and time locale object. 2122 2123 * … … 2125 2126 */ 2126 2127 function iframe_header( $title = '', $deprecated = false ) { 2128 global $hook_suffix, $admin_body_class, $body_id, $wp_locale; 2129 2127 2130 show_admin_bar( false ); 2128 global $hook_suffix, $admin_body_class, $wp_locale; 2131 2129 2132 $admin_body_class = preg_replace( '/[^a-z0-9_-]+/i', '-', $hook_suffix ); 2130 2133 … … 2180 2183 </head> 2181 2184 <?php 2182 /** 2183 * @global string $body_id 2184 */ 2185 $admin_body_id = isset( $GLOBALS['body_id'] ) ? 'id="' . $GLOBALS['body_id'] . '" ' : ''; 2185 $admin_body_id = isset( $body_id ) ? 'id="' . $body_id . '" ' : ''; 2186 2186 2187 2187 /** This filter is documented in wp-admin/admin-header.php */
Note: See TracChangeset
for help on using the changeset viewer.