WordPress.org

Make WordPress Core

Ticket #18813: 18813.patch

File 18813.patch, 429 bytes (added by SergeyBiryukov, 3 years ago)

str_replace()

  • wp-admin/includes/media.php

     
    392392 
    393393        $context = apply_filters('media_buttons_context', __('Upload/Insert %s')); 
    394394 
    395         printf($context, $out); 
     395        echo str_replace( '%s', $out, $context ); 
    396396} 
    397397add_action( 'media_buttons', 'media_buttons' ); 
    398398