diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php
index 9e6eacd1d8..4588b0a690 100644
a
|
b
|
function add_settings_section( $id, $title, $callback, $page ) { |
1627 | 1627 | * @type string $class CSS Class to be added to the `<tr>` element when the |
1628 | 1628 | * field is output. |
1629 | 1629 | * } |
1630 | | * |
| 1630 | * |
1631 | 1631 | * @param int $position The position in the settings order this item should appear. |
1632 | 1632 | */ |
1633 | 1633 | function add_settings_field( $id, $title, $callback, $page, $section = 'default', $args = array(), $position = null ) { |
… |
… |
function do_settings_fields( $page, $section ) { |
1729 | 1729 | |
1730 | 1730 | $fields = (array) $wp_settings_fields[ $page ][ $section ]; |
1731 | 1731 | |
1732 | | usort( $fields, function( $a, $b ) { |
1733 | | return $a['position'] - $b['position']; |
1734 | | } ); |
| 1732 | usort( |
| 1733 | $fields, |
| 1734 | function ( $a, $b ) { |
| 1735 | return $a['position'] - $b['position']; |
| 1736 | } |
| 1737 | ); |
1735 | 1738 | |
1736 | 1739 | foreach ( $fields as $field ) { |
1737 | 1740 | $class = ''; |