Make WordPress Core


Ignore:
Timestamp:
12/14/2016 04:17:38 AM (7 years ago)
Author:
johnbillion
Message:

General: Use interpolation instead of concatenation for all dynamic hook names.

This fixes the rendering of the hook names on developer.wordpress.org.

Props keesiemeijer
Fixes #39148

File:
1 edited

Legend:

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

    r39326 r39600  
    27032703
    27042704    /** This filter is documented in wp-admin/includes/media.php */
    2705     $html = apply_filters( $type . '_send_to_editor_url', $html, $src, $link_text );
     2705    $html = apply_filters( "{$type}_send_to_editor_url", $html, $src, $link_text );
    27062706
    27072707    wp_send_json_success( $html );
Note: See TracChangeset for help on using the changeset viewer.