mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 03:04:34 +00:00
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 git-svn-id: https://develop.svn.wordpress.org/trunk@39600 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1025,7 +1025,7 @@ function uninstall_plugin($plugin) {
|
||||
wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $file );
|
||||
include( WP_PLUGIN_DIR . '/' . $file );
|
||||
|
||||
add_action( 'uninstall_' . $file, $callable );
|
||||
add_action( "uninstall_{$file}", $callable );
|
||||
|
||||
/**
|
||||
* Fires in uninstall_plugin() once the plugin has been uninstalled.
|
||||
@@ -1035,7 +1035,7 @@ function uninstall_plugin($plugin) {
|
||||
*
|
||||
* @since 2.7.0
|
||||
*/
|
||||
do_action( 'uninstall_' . $file );
|
||||
do_action( "uninstall_{$file}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user