WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/09/2019 12:57:27 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Consistently use do_action_deprecated() and apply_filters_deprecated() for deprecated hooks.

Props jrf.
See #48255.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/media.php

    r46596 r46684  
    655655     * @param string $string Media buttons context. Default empty.
    656656     */
    657     $legacy_filter = apply_filters( 'media_buttons_context', '' );
     657    $legacy_filter = apply_filters_deprecated( 'media_buttons_context', array( '' ), '3.5.0', 'media_buttons' );
    658658
    659659    if ( $legacy_filter ) {
Note: See TracChangeset for help on using the changeset viewer.