|
@@ 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 |
|
|
|
@@ 439-440 (lines=2) @@
|
| 436 |
|
wp_enqueue_style( 'videopress-admin', plugins_url( 'videopress-admin.css', __FILE__ ), array(), $this->version ); |
| 437 |
|
|
| 438 |
|
$caps = array(); |
| 439 |
|
foreach( array( 'read_videos', 'edit_videos', 'delete_videos', 'upload_videos' ) as $cap ) |
| 440 |
|
$caps[ $cap ] = $this->can( $cap ); |
| 441 |
|
|
| 442 |
|
$l10n = array( |
| 443 |
|
'selectVideoFile' => __( 'Please select a video file to upload.', 'jetpack' ), |