|
@@ 370-372 (lines=3) @@
|
| 367 |
|
); |
| 368 |
|
|
| 369 |
|
// Let Jetpack know about our local caps. |
| 370 |
|
foreach ( array( 'read_videos', 'edit_videos', 'delete_videos', 'upload_videos' ) as $cap ) |
| 371 |
|
if ( $this->can( $cap ) ) |
| 372 |
|
$params['caps'][] = $cap; |
| 373 |
|
|
| 374 |
|
$xml->query( $method, $params ); |
| 375 |
|
|
|
@@ 789-790 (lines=2) @@
|
| 786 |
|
wp_enqueue_style( 'videopress-admin', plugins_url( 'videopress-admin.css', __FILE__ ), array(), $this->version ); |
| 787 |
|
|
| 788 |
|
$caps = array(); |
| 789 |
|
foreach( array( 'read_videos', 'edit_videos', 'delete_videos', 'upload_videos' ) as $cap ) |
| 790 |
|
$caps[ $cap ] = $this->can( $cap ); |
| 791 |
|
|
| 792 |
|
$l10n = array( |
| 793 |
|
'selectVideoFile' => __( 'Please select a video file to upload.', 'jetpack' ), |