|
@@ 121-124 (lines=4) @@
|
| 118 |
|
$table_name = $this->wpdb->prefix . 'timeshift_' . $post_type; |
| 119 |
|
$sql = "select * from $table_name where id=" . intval($_GET['timeshift']); |
| 120 |
|
$r = $this->wpdb->get_results($sql); |
| 121 |
|
if ($r && 1 == count($r)) { |
| 122 |
|
$payload = unserialize($r[0]->post_payload); |
| 123 |
|
$this->timeshift_cached_meta = $payload->meta; |
| 124 |
|
} |
| 125 |
|
} |
| 126 |
|
// is the requested meta data in the stored snapshot |
| 127 |
|
if ($this->timeshift_cached_meta && isset($this->timeshift_cached_meta[$key])) { |
|
@@ 144-147 (lines=4) @@
|
| 141 |
|
$table_name = $this->wpdb->prefix . 'timeshift_' . $post->post_type; |
| 142 |
|
$sql = "select * from $table_name where id=" . intval($_GET['timeshift']); |
| 143 |
|
$r = $this->wpdb->get_results($sql); |
| 144 |
|
if ($r && 1 == count($r)) { |
| 145 |
|
$payload = unserialize($r[0]->post_payload); |
| 146 |
|
$post = $payload->post; |
| 147 |
|
} |
| 148 |
|
} |
| 149 |
|
|
| 150 |
|
public function add_actions() { |