Pass args to settings field callback. Props hanilovesme, scribu. fixes #11143
git-svn-id: http://svn.automattic.com/wordpress/trunk@12220 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bfd2b650ee
commit
06bab5e3ff
|
@ -3162,7 +3162,7 @@ function do_settings_fields($page, $section) {
|
||||||
else
|
else
|
||||||
echo '<th scope="row">' . $field['title'] . '</th>';
|
echo '<th scope="row">' . $field['title'] . '</th>';
|
||||||
echo '<td>';
|
echo '<td>';
|
||||||
call_user_func($field['callback']);
|
call_user_func($field['callback'], $field['args']);
|
||||||
echo '</td>';
|
echo '</td>';
|
||||||
echo '</tr>';
|
echo '</tr>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue