|
@@ 150-152 (lines=3) @@
|
| 147 |
|
); |
| 148 |
|
|
| 149 |
|
// Let Jetpack know about our local caps. |
| 150 |
|
foreach ( array( 'read_videos', 'edit_videos', 'delete_videos', 'upload_videos' ) as $cap ) |
| 151 |
|
if ( $this->can( $cap ) ) |
| 152 |
|
$params['caps'][] = $cap; |
| 153 |
|
|
| 154 |
|
$xml->query( $method, $params ); |
| 155 |
|
|
|
@@ 454-455 (lines=2) @@
|
| 451 |
|
wp_enqueue_style( 'videopress-admin', plugins_url( 'videopress-admin.css', __FILE__ ), array(), $this->version ); |
| 452 |
|
|
| 453 |
|
$caps = array(); |
| 454 |
|
foreach( array( 'read_videos', 'edit_videos', 'delete_videos', 'upload_videos' ) as $cap ) |
| 455 |
|
$caps[ $cap ] = $this->can( $cap ); |
| 456 |
|
|
| 457 |
|
$l10n = array( |
| 458 |
|
'selectVideoFile' => __( 'Please select a video file to upload.', 'jetpack' ), |