Make WordPress Core

Ticket #38097: 38097.3.diff

File 38097.3.diff, 1.0 KB (added by kapilpaul, 3 years ago)

fix: coding standards

  • src/wp-admin/includes/template.php

    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 ) { 
    16271627 *     @type string $class     CSS Class to be added to the `<tr>` element when the
    16281628 *                             field is output.
    16291629 * }
    1630  * 
     1630 *
    16311631 * @param int      $position   The position in the settings order this item should appear.
    16321632 */
    16331633function add_settings_field( $id, $title, $callback, $page, $section = 'default', $args = array(), $position = null ) {
    function do_settings_fields( $page, $section ) { 
    17291729
    17301730        $fields = (array) $wp_settings_fields[ $page ][ $section ];
    17311731
    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        );
    17351738
    17361739        foreach ( $fields as $field ) {
    17371740                $class = '';