| @@ -20,9 +20,9 @@ | ||
| 20 | 20 | * Constructor |
| 21 | 21 | * |
| 22 | 22 | * @since 1.8 |
| 23 | 23 | * |
| 24 | - * @param object $polylang polylang object | |
| 24 | + * @param object $polylang The polylang object. | |
| 25 | 25 | */ |
| 26 | 26 | public function __construct( &$polylang ) { |
| 27 | 27 | parent::__construct( |
| 28 | 28 | $polylang, |
| @@ -66,17 +66,18 @@ | ||
| 66 | 66 | <?php |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | /** |
| 70 | - * Sanitizes the settings before saving | |
| 70 | + * Sanitizes the settings before saving. | |
| 71 | 71 | * |
| 72 | 72 | * @since 1.8 |
| 73 | 73 | * |
| 74 | - * @param array $options | |
| 74 | + * @param array $options Unsanitized options to save. | |
| 75 | + * @return array | |
| 75 | 76 | */ |
| 76 | 77 | protected function update( $options ) { |
| 77 | 78 | $newoptions = array( 'sync' => empty( $options['sync'] ) ? array() : array_keys( $options['sync'], 1 ) ); |
| 78 | - return $newoptions; // take care to return only validated options | |
| 79 | + return $newoptions; // Take care to return only validated options. | |
| 79 | 80 | } |
| 80 | 81 | |
| 81 | 82 | /** |
| 82 | 83 | * Get the row actions. |