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