WordPress.org

Make WordPress Core

Ticket #16231: plugin.php.diff

File plugin.php.diff, 681 bytes (added by AshKyd, 3 years ago)

wp-admin/includes/plugin.php diff from revision 17297.

Line 
11722,1725c1722,1730
2< function settings_fields($option_group) {
3<       echo "<input type='hidden' name='option_page' value='" . esc_attr($option_group) . "' />";
4<       echo '<input type="hidden" name="action" value="update" />';
5<       wp_nonce_field("$option_group-options");
6---
7> function settings_fields($option_group, $echo = true) {
8>       $settings_fields = "<input type='hidden' name='option_page' value='" . esc_attr($option_group) . "' />";
9>       $settings_fields .= '<input type="hidden" name="action" value="update" />';
10>       $settings_fields .= wp_nonce_field("$option_group-options","_wpnonce",true,false);
11>       
12>       if( $echo )
13>               echo($settings_fields);
14>               
15>       return $settings_fields;