diff --git a/wp-admin/css/edit.css b/wp-admin/css/edit.css
index bbdb79d..03dc9b7 100644
a
|
b
|
span.wp-media-buttons-icon:before { |
618 | 618 | |
619 | 619 | #poststuff h3.hndle, /* Back-compat for pre-4.4 */ |
620 | 620 | #poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */ |
| 621 | #poststuff h1.hndle, |
| 622 | #poststuff h4.hndle, |
| 623 | #poststuff h5.hndle, |
| 624 | #poststuff h6.hndle, |
621 | 625 | #poststuff h2 { |
622 | 626 | font-size: 14px; |
623 | 627 | padding: 8px 12px; |
diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php
index cc590e3..a1fdb18 100644
a
|
b
|
function add_meta_box( $id, $title, $callback, $screen = null, $context = 'advan |
978 | 978 | * Meta-Box template function |
979 | 979 | * |
980 | 980 | * @since 2.5.0 |
| 981 | * @since 4.6.0 Added the $heading_level parameter. |
981 | 982 | * |
982 | 983 | * @global array $wp_meta_boxes |
983 | 984 | * |
… |
… |
function add_meta_box( $id, $title, $callback, $screen = null, $context = 'advan |
985 | 986 | * @param string|WP_Screen $screen Screen identifier |
986 | 987 | * @param string $context box context |
987 | 988 | * @param mixed $object gets passed to the box callback function as first parameter |
| 989 | * @param int $heading_level What level heading to use for the meta box titles. |
988 | 990 | * @return int number of meta_boxes |
989 | 991 | */ |
990 | | function do_meta_boxes( $screen, $context, $object ) { |
| 992 | function do_meta_boxes( $screen, $context, $object, $heading_level = 2 ) { |
991 | 993 | global $wp_meta_boxes; |
992 | 994 | static $already_sorted = false; |
993 | 995 | |
| 996 | if ( $heading_level < 1 || $heading_level > 6 ) { |
| 997 | $heading_level = 2; |
| 998 | } |
| 999 | |
994 | 1000 | if ( empty( $screen ) ) |
995 | 1001 | $screen = get_current_screen(); |
996 | 1002 | elseif ( is_string( $screen ) ) |
… |
… |
function do_meta_boxes( $screen, $context, $object ) { |
1032 | 1038 | echo '<span class="toggle-indicator" aria-hidden="true"></span>'; |
1033 | 1039 | echo '</button>'; |
1034 | 1040 | } |
1035 | | echo "<h2 class='hndle'><span>{$box['title']}</span></h2>\n"; |
| 1041 | echo "<h{$heading_level} class='hndle'><span>{$box['title']}</span></h{$heading_level}>\n"; |
1036 | 1042 | echo '<div class="inside">' . "\n"; |
1037 | 1043 | call_user_func($box['callback'], $object, $box); |
1038 | 1044 | echo "</div>\n"; |