|
@@ 158-160 (lines=3) @@
|
| 155 |
|
); |
| 156 |
|
|
| 157 |
|
// Let Jetpack know about our local caps. |
| 158 |
|
foreach ( array( 'read_videos', 'edit_videos', 'delete_videos', 'upload_videos' ) as $cap ) |
| 159 |
|
if ( $this->can( $cap ) ) |
| 160 |
|
$params['caps'][] = $cap; |
| 161 |
|
|
| 162 |
|
$xml->query( $method, $params ); |
| 163 |
|
|
|
@@ 480-481 (lines=2) @@
|
| 477 |
|
wp_enqueue_style( 'videopress-admin', plugins_url( 'videopress-admin.css', __FILE__ ), array(), $this->version ); |
| 478 |
|
|
| 479 |
|
$caps = array(); |
| 480 |
|
foreach( array( 'read_videos', 'edit_videos', 'delete_videos', 'upload_videos' ) as $cap ) |
| 481 |
|
$caps[ $cap ] = $this->can( $cap ); |
| 482 |
|
|
| 483 |
|
$l10n = array( |
| 484 |
|
'selectVideoFile' => __( 'Please select a video file to upload.', 'jetpack' ), |