|
@@ 283-285 (lines=3) @@
|
| 280 |
|
); |
| 281 |
|
|
| 282 |
|
// Let Jetpack know about our local caps. |
| 283 |
|
foreach ( array( 'read_videos', 'edit_videos', 'delete_videos', 'upload_videos' ) as $cap ) |
| 284 |
|
if ( $this->can( $cap ) ) |
| 285 |
|
$params['caps'][] = $cap; |
| 286 |
|
|
| 287 |
|
$xml->query( $method, $params ); |
| 288 |
|
|
|
@@ 702-703 (lines=2) @@
|
| 699 |
|
wp_enqueue_style( 'videopress-admin', plugins_url( 'videopress-admin.css', __FILE__ ), array(), $this->version ); |
| 700 |
|
|
| 701 |
|
$caps = array(); |
| 702 |
|
foreach( array( 'read_videos', 'edit_videos', 'delete_videos', 'upload_videos' ) as $cap ) |
| 703 |
|
$caps[ $cap ] = $this->can( $cap ); |
| 704 |
|
|
| 705 |
|
$l10n = array( |
| 706 |
|
'selectVideoFile' => __( 'Please select a video file to upload.', 'jetpack' ), |