| @@ -115,10 +115,8 @@ | ||
| 115 | 115 | * |
| 116 | 116 | * @param array $options |
| 117 | 117 | */ |
| 118 | 118 | protected function update( $options ) { |
| 119 | - $newoptions = array(); | |
| 120 | - | |
| 121 | 119 | foreach ( array( 'post_types', 'taxonomies' ) as $key ) { |
| 122 | 120 | $newoptions[ $key ] = empty( $options[ $key ] ) ? array() : array_keys( $options[ $key ], 1 ); |
| 123 | 121 | } |
| 124 | 122 | return $newoptions; // Take care to return only validated options |