array
( 'no_media_selected' =>
__( 'No video selected'
),
'add_media' =>
_x( 'Add Video', 'label for button in the video widget'
),
'replace_media' =>
_x( 'Replace Video', 'label for button in the video widget; should preferably not be longer than ~13 characters long'
),
'edit_media' =>
_x( 'Edit Video', 'label for button in the video widget; should preferably not be longer than ~13 characters long'
),
'missing_attachment' =>
sprintf( /* translators: %s: URL to media library. */
__( 'That video cannot be found. Check your <a href="%s">media library</a> and make sure it was not deleted.'
),
esc_url( admin_url( 'upload.php'
) ) ),
/* translators: %d: Widget count. */
'media_library_state_multi' =>
_n_noop( 'Video Widget (%d)', 'Video Widget (%d)'
),
'media_library_state_single' =>
__( 'Video Widget'
),
/* translators: %s: A list of valid video file extensions. */
'unsupported_file_type' =>
sprintf( __( 'Sorry, the video at the supplied URL cannot be loaded. Please check that the URL is for a supported video file (%s) or stream (e.g. YouTube and Vimeo).'
), '<code>.' .
implode( '</code>, <code>.',
wp_get_video_extensions() ) . '</code>'
),
) );
} /**
* Get schema for properties of a widget instance (item).
*
* @since 4.8.0
*
* @see WP_REST_Controller::get_item_schema()
* @see WP_REST_Controller::get_additional_fields()
* @link https://core.trac.wordpress.org/ticket/35574
*
* @return array Schema for properties.
*/