}
} else {
if ( value !== null ) {
- deferreds.push( this.postWithToken( 'options', {
+ deferreds.push( this.postWithToken( 'csrf', {
+ formatversion: 2,
action: 'options',
optionname: name,
optionvalue: value
} ) );
} else {
// Omitting value resets the option
- deferreds.push( this.postWithToken( 'options', {
+ deferreds.push( this.postWithToken( 'csrf', {
+ formatversion: 2,
action: 'options',
optionname: name
} ) );
}
if ( grouped.length ) {
- deferreds.push( this.postWithToken( 'options', {
+ deferreds.push( this.postWithToken( 'csrf', {
+ formatversion: 2,
action: 'options',
change: grouped
} ) );