@@ -14,6 +14,9 @@ discard block |
||
| 14 | 14 | private $last_author = false; |
| 15 | 15 | private $timeshift_cached_meta; |
| 16 | 16 | |
| 17 | + /** |
|
| 18 | + * @param string $i18n |
|
| 19 | + */ |
|
| 17 | 20 | public function __construct($i18n) { |
| 18 | 21 | global $wpdb; |
| 19 | 22 | $this->i18n = $i18n; |
@@ -200,6 +203,9 @@ discard block |
||
| 200 | 203 | $this->wpdb->query($query); |
| 201 | 204 | } |
| 202 | 205 | |
| 206 | + /** |
|
| 207 | + * @param integer $postID |
|
| 208 | + */ |
|
| 203 | 209 | private function updateTimeshiftVersion($postID, $mdata): int { |
| 204 | 210 | $verToSave = 0; |
| 205 | 211 | if (is_array($mdata) && isset($mdata['_timeshift_version'][0]) && |