WordPress.org

Make WordPress Core

Ticket #18813: 18813.2.patch

File 18813.2.patch, 588 bytes (added by SergeyBiryukov, 7 years ago)

sprintf() before the filter

  • wp-admin/includes/media.php

     
    390390
    391391        $out .= _media_button(__('Add Media'), 'images/media-button-other.gif?ver=20100531', 'media', $editor_id);
    392392
    393         $context = apply_filters('media_buttons_context', __('Upload/Insert %s'));
    394 
    395         printf($context, $out);
     393        echo apply_filters( 'media_buttons_context', sprintf( __( 'Upload/Insert %s' ), $out ) );
    396394}
    397395add_action( 'media_buttons', 'media_buttons' );
    398396