| @@ -132,9 +132,9 @@ | ||
| 132 | 132 | * @param int $id Post ID. |
| 133 | 133 | * @return void |
| 134 | 134 | */ |
| 135 | 135 | public function delete_translation( $id ) { |
| 136 | - $id = $this->sanitize_int_id( $id ); | |
| 136 | + $id = pll_sanitize_id( $id ); | |
| 137 | 137 | |
| 138 | 138 | if ( empty( $id ) ) { |
| 139 | 139 | return; |
| 140 | 140 | } |
| @@ -250,9 +250,9 @@ | ||
| 250 | 250 | * |
| 251 | 251 | * @phpstan-param non-empty-string $context |
| 252 | 252 | */ |
| 253 | 253 | public function current_user_can_read( $id, $context = 'view' ) { |
| 254 | - $id = $this->sanitize_int_id( $id ); | |
| 254 | + $id = pll_sanitize_id( $id ); | |
| 255 | 255 | |
| 256 | 256 | if ( empty( $id ) ) { |
| 257 | 257 | return false; |
| 258 | 258 | } |