| @@ -6,8 +6,12 @@ | ||
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | use Automattic\Jetpack\Assets; |
| 9 | 9 | |
| 10 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 11 | + exit( 0 ); | |
| 12 | +} | |
| 13 | + | |
| 10 | 14 | /** |
| 11 | 15 | * WordPress Shortcode Editor View JS Code |
| 12 | 16 | */ |
| 13 | 17 | function videopress_handle_editor_view_js() { |
| @@ -122,9 +126,9 @@ | ||
| 122 | 126 | |
| 123 | 127 | /** |
| 124 | 128 | * Make sure that any Video that has a VideoPress GUID passes that data back. |
| 125 | 129 | * |
| 126 | - * @param WP_Post $post Attachment object. | |
| 130 | + * @param array $post Attachment data array. | |
| 127 | 131 | * @deprecated 11.4 |
| 128 | 132 | */ |
| 129 | 133 | function videopress_prepare_attachment_for_js( $post ) { |
| 130 | 134 | _deprecated_function( __METHOD__, 'jetpack-11.4' ); |