Pass args to settings field callback. Props hanilovesme, scribu. fixes #11143
git-svn-id: https://develop.svn.wordpress.org/trunk@12220 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
168aecd7c1
commit
26193065a4
@ -3162,7 +3162,7 @@ function do_settings_fields($page, $section) {
|
||||
else
|
||||
echo '<th scope="row">' . $field['title'] . '</th>';
|
||||
echo '<td>';
|
||||
call_user_func($field['callback']);
|
||||
call_user_func($field['callback'], $field['args']);
|
||||
echo '</td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user