WordPress.org

Make WordPress Core

Ticket #44383: 44383.3.diff

File 44383.3.diff, 649 bytes (added by trishkedi, 10 months ago)
  • src/wp-admin/includes/media.php

     
    622622         *
    623623         * @param string $string Media buttons context. Default empty.
    624624         */
    625         $legacy_filter = apply_filters( 'media_buttons_context', '' );
     625        $legacy_filter = apply_filters_deprecated( 'media_buttons_context', array(''), '3.5.0', 'media_buttons', __( 'Please use "media_buttons" action instead.' ) );
    626626
    627627        if ( $legacy_filter ) {
    628628                // #WP22559. Close <a> if a plugin started by closing <a> to open their own <a> tag.