WordPress.org

Make WordPress Core

Ticket #18285: extra-args.18285.diff

File extra-args.18285.diff, 496 bytes (added by scribu, 4 years ago)
  • wp-admin/includes/template.php

    diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php
    index 17ba5b0..75d5f49 100644
    a b function do_settings_fields($page, $section) { 
    11991199                else 
    12001200                        echo '<th scope="row">' . $field['title'] . '</th>'; 
    12011201                echo '<td>'; 
    1202                 call_user_func($field['callback'], $field['args']); 
     1202                call_user_func($field['callback'], $field['args'], $section, $page); 
    12031203                echo '</td>'; 
    12041204                echo '</tr>'; 
    12051205        }