diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php
index cc590e3..0db2205 100644
a
|
b
|
function add_meta_box( $id, $title, $callback, $screen = null, $context = 'advan |
985 | 985 | * @param string|WP_Screen $screen Screen identifier |
986 | 986 | * @param string $context box context |
987 | 987 | * @param mixed $object gets passed to the box callback function as first parameter |
| 988 | * @param int $heading_level What level heading to use for the meta box titles. |
988 | 989 | * @return int number of meta_boxes |
989 | 990 | */ |
990 | | function do_meta_boxes( $screen, $context, $object ) { |
| 991 | function do_meta_boxes( $screen, $context, $object, $heading_level = 2 ) { |
991 | 992 | global $wp_meta_boxes; |
992 | 993 | static $already_sorted = false; |
993 | 994 | |
| 995 | if ( $heading_level < 1 || $heading_level > 6 ) { |
| 996 | $heading_level = 2; |
| 997 | } |
| 998 | |
994 | 999 | if ( empty( $screen ) ) |
995 | 1000 | $screen = get_current_screen(); |
996 | 1001 | elseif ( is_string( $screen ) ) |
… |
… |
function do_meta_boxes( $screen, $context, $object ) { |
1032 | 1037 | echo '<span class="toggle-indicator" aria-hidden="true"></span>'; |
1033 | 1038 | echo '</button>'; |
1034 | 1039 | } |
1035 | | echo "<h2 class='hndle'><span>{$box['title']}</span></h2>\n"; |
| 1040 | echo "<h{$heading_level} class='hndle'><span>{$box['title']}</span></h{$heading_level}>\n"; |
1036 | 1041 | echo '<div class="inside">' . "\n"; |
1037 | 1042 | call_user_func($box['callback'], $object, $box); |
1038 | 1043 | echo "</div>\n"; |