WordPress.org

Make WordPress Core

Ticket #44383: 44383.diff

File 44383.diff, 661 bytes (added by zsiderov, 14 months ago)

44383.diff

  • src/wp-admin/includes/media.php

    diff --git a/src/wp-admin/includes/media.php b/src/wp-admin/includes/media.php
    index c941e62..b8fa7cf 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.