mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 18:54:29 +00:00
Attr escaping
git-svn-id: https://develop.svn.wordpress.org/trunk@11173 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1112,7 +1112,7 @@ function remove_option_whitelist( $del_options, $options = '' ) {
|
||||
* @param string $option_group A settings group name. This should match the group name used in register_setting().
|
||||
*/
|
||||
function settings_fields($option_group) {
|
||||
echo "<input type='hidden' name='option_page' value='$option_group' />";
|
||||
echo "<input type='hidden' name='option_page' value='" . attr($option_group) . "' />";
|
||||
echo '<input type="hidden" name="action" value="update" />';
|
||||
wp_nonce_field("$option_group-options");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user