|
@@ 258-260 (lines=3) @@
|
| 255 |
|
} |
| 256 |
|
|
| 257 |
|
public function update_transcoding_status() { |
| 258 |
|
if ( ! isset( $_POST['post_id'] ) ) { |
| 259 |
|
return wp_send_json_error( array( 'message' => __( 'A valid post_id is required.', 'jetpack' ) ) ); |
| 260 |
|
} |
| 261 |
|
|
| 262 |
|
$post_id = $_POST['post_id']; |
| 263 |
|
$meta = wp_get_attachment_metadata( $post_id ); |
|
@@ 266-268 (lines=3) @@
|
| 263 |
|
$meta = wp_get_attachment_metadata( $post_id ); |
| 264 |
|
|
| 265 |
|
// If this has not been processed by videopress, we can skip the rest. |
| 266 |
|
if ( ! isset( $meta['videopress'] ) ) { |
| 267 |
|
return wp_send_json_error( array( 'message' => __( 'That post does not have a VideoPress video associated to it..', 'jetpack' ) ) ); |
| 268 |
|
} |
| 269 |
|
|
| 270 |
|
$info = (object) $meta['videopress']; |
| 271 |
|
|