diff -r 3d4e9c994f10 -r a86126ab1dd4 wp/wp-includes/widgets/class-wp-widget-media-audio.php --- a/wp/wp-includes/widgets/class-wp-widget-media-audio.php Tue Oct 22 16:11:46 2019 +0200 +++ b/wp/wp-includes/widgets/class-wp-widget-media-audio.php Tue Dec 15 13:49:49 2020 +0100 @@ -12,6 +12,7 @@ * * @since 4.8.0 * + * @see WP_Widget_Media * @see WP_Widget */ class WP_Widget_Media_Audio extends WP_Widget_Media { @@ -39,11 +40,11 @@ 'replace_media' => _x( 'Replace Audio', 'label for button in the audio widget; should preferably not be longer than ~13 characters long' ), 'edit_media' => _x( 'Edit Audio', 'label for button in the audio widget; should preferably not be longer than ~13 characters long' ), 'missing_attachment' => sprintf( - /* translators: %s: URL to media library */ + /* translators: %s: URL to media library. */ __( 'We can’t find that audio file. Check your media library and make sure it wasn’t deleted.' ), esc_url( admin_url( 'upload.php' ) ) ), - /* translators: %d: widget count */ + /* translators: %d: Widget count. */ 'media_library_state_multi' => _n_noop( 'Audio Widget (%d)', 'Audio Widget (%d)' ), 'media_library_state_single' => __( 'Audio Widget' ), 'unsupported_file_type' => __( 'Looks like this isn’t the correct kind of file. Please link to an audio file instead.' ), @@ -59,6 +60,7 @@ * @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. */ public function get_instance_schema() { @@ -81,7 +83,7 @@ 'type' => 'string', 'default' => '', 'format' => 'uri', - /* translators: %s: audio extension */ + /* translators: %s: Audio extension. */ 'description' => sprintf( __( 'URL to the %s audio source file' ), $audio_extension ), ); } @@ -95,7 +97,6 @@ * @since 4.8.0 * * @param array $instance Widget instance props. - * @return void */ public function render_media( $instance ) { $instance = array_merge( wp_list_pluck( $this->get_instance_schema(), 'default' ), $instance );