diff --git a/wp-admin/css/edit.css b/wp-admin/css/edit.css
index bbdb79d..1bc7d92 100644
a
|
b
|
span.wp-media-buttons-icon:before { |
616 | 616 | position: absolute; |
617 | 617 | } |
618 | 618 | |
619 | | #poststuff h3.hndle, /* Back-compat for pre-4.4 */ |
| 619 | #poststuff .hndle, |
620 | 620 | #poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */ |
621 | 621 | #poststuff h2 { |
622 | 622 | font-size: 14px; |
diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php
index cc590e3..66b4024 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 $args parameter with support for the $heading_level arg. |
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 array $args { |
| 990 | * Other args. |
| 991 | * |
| 992 | * @param int $heading_level What level heading to use for the meta box titles. Default is 2 (h2). |
| 993 | * } |
988 | 994 | * @return int number of meta_boxes |
989 | 995 | */ |
990 | | function do_meta_boxes( $screen, $context, $object ) { |
| 996 | function do_meta_boxes( $screen, $context, $object, $args = array() ) { |
991 | 997 | global $wp_meta_boxes; |
992 | 998 | static $already_sorted = false; |
993 | 999 | |
| 1000 | $args = array_merge( array( 'heading_level' => 2 ), $args ); |
| 1001 | |
| 1002 | if ( $args['heading_level'] < 1 || $args['heading_level'] > 6 ) { |
| 1003 | $args['heading_level'] = 2; |
| 1004 | } |
| 1005 | |
994 | 1006 | if ( empty( $screen ) ) |
995 | 1007 | $screen = get_current_screen(); |
996 | 1008 | elseif ( is_string( $screen ) ) |
… |
… |
function do_meta_boxes( $screen, $context, $object ) { |
1032 | 1044 | echo '<span class="toggle-indicator" aria-hidden="true"></span>'; |
1033 | 1045 | echo '</button>'; |
1034 | 1046 | } |
1035 | | echo "<h2 class='hndle'><span>{$box['title']}</span></h2>\n"; |
| 1047 | echo "<h{$args['heading_level']} class='hndle'><span>{$box['title']}</span></h{$args['heading_level']}>\n"; |
1036 | 1048 | echo '<div class="inside">' . "\n"; |
1037 | 1049 | call_user_func($box['callback'], $object, $box); |
1038 | 1050 | echo "</div>\n"; |