Make WordPress Core


Ignore:
Timestamp:
12/14/2016 04:17:38 AM (9 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/plugin.php

    r38687 r39600  
    10261026        include( WP_PLUGIN_DIR . '/' . $file );
    10271027
    1028         add_action( 'uninstall_' . $file, $callable );
     1028        add_action( "uninstall_{$file}", $callable );
    10291029
    10301030        /**
     
    10361036         * @since 2.7.0
    10371037         */
    1038         do_action( 'uninstall_' . $file );
     1038        do_action( "uninstall_{$file}" );
    10391039    }
    10401040}
Note: See TracChangeset for help on using the changeset viewer.