|
@@ 200-202 (lines=3) @@
|
| 197 |
|
); |
| 198 |
|
|
| 199 |
|
// Let Jetpack know about our local caps. |
| 200 |
|
foreach ( array( 'read_videos', 'edit_videos', 'delete_videos', 'upload_videos' ) as $cap ) |
| 201 |
|
if ( $this->can( $cap ) ) |
| 202 |
|
$params['caps'][] = $cap; |
| 203 |
|
|
| 204 |
|
$xml->query( $method, $params ); |
| 205 |
|
|
|
@@ 619-620 (lines=2) @@
|
| 616 |
|
wp_enqueue_style( 'videopress-admin', plugins_url( 'videopress-admin.css', __FILE__ ), array(), $this->version ); |
| 617 |
|
|
| 618 |
|
$caps = array(); |
| 619 |
|
foreach( array( 'read_videos', 'edit_videos', 'delete_videos', 'upload_videos' ) as $cap ) |
| 620 |
|
$caps[ $cap ] = $this->can( $cap ); |
| 621 |
|
|
| 622 |
|
$l10n = array( |
| 623 |
|
'selectVideoFile' => __( 'Please select a video file to upload.', 'jetpack' ), |