Ticket #14541: 14541.diff
| File 14541.diff, 1.2 KB (added by , 12 years ago) |
|---|
-
wp-admin/includes/template.php
function do_meta_boxes( $screen, $context, $object ) { 1000 1000 * @param string $id String for use in the 'id' attribute of tags. 1001 1001 * @param string|object $screen The screen on which to show the box (post, page, link). 1002 1002 * @param string $context The context within the page where the boxes should show ('normal', 'advanced'). 1003 * @return boolean False on failure, true on success. 1003 1004 */ 1004 1005 function remove_meta_box($id, $screen, $context) { 1005 1006 global $wp_meta_boxes; … … function remove_meta_box($id, $screen, $context) { 1018 1019 if ( !isset($wp_meta_boxes[$page][$context]) ) 1019 1020 $wp_meta_boxes[$page][$context] = array(); 1020 1021 1021 foreach ( array('high', 'core', 'default', 'low') as $priority ) 1022 $wp_meta_boxes[$page][$context][$priority][$id] = false; 1022 foreach ( array('high', 'core', 'default', 'low') as $priority ) { 1023 if ( isset($wp_meta_boxes[$page][$context][$priority][$id]) ) { 1024 $wp_meta_boxes[$page][$context][$priority][$id] = false; 1025 return true; 1026 } 1027 } 1028 1029 return false; 1023 1030 } 1024 1031 1025 1032 /**
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)