WordPress.org

Make WordPress Core

Ticket #44383: 44383.2.diff

File 44383.2.diff, 664 bytes (added by zsiderov, 15 months ago)
  • src/wp-admin/includes/media.php

    diff --git a/src/wp-admin/includes/media.php b/src/wp-admin/includes/media.php
    index c941e62..64608c1 100644
    a b function media_buttons( $editor_id = 'content' ) { 
    620620         *
    621621         * @param string $string Media buttons context. Default empty.
    622622         */
    623         $legacy_filter = apply_filters( 'media_buttons_context', '' );
     623        $legacy_filter = apply_filters_deprecated( 'media_buttons_context', array(''), '3.5.0', false, __( 'Please use "media_buttons" action instead.' ) );
    624624
    625625        if ( $legacy_filter ) {
    626626                // #WP22559. Close <a> if a plugin started by closing <a> to open their own <a> tag.