From 6d3207d564c6eb19de5d0f0532b30903a97a533a Mon Sep 17 00:00:00 2001 From: Jake Spurlock Date: Thu, 30 Jul 2020 21:48:19 +0000 Subject: [PATCH] Upgrade/Install: Pass the plugin file path into the `plugin_auto_update_debug_string` filter. Adds better tooling for when user specific plugins can be updated, but platform specific ones cannot. Fixes #50821. Props bpayton, pbiron, audrasjb, SergeyBiryukov, whyisjake. git-svn-id: https://develop.svn.wordpress.org/trunk@48696 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-debug-data.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/includes/class-wp-debug-data.php b/src/wp-admin/includes/class-wp-debug-data.php index a656830bad..24ca2bdfd2 100644 --- a/src/wp-admin/includes/class-wp-debug-data.php +++ b/src/wp-admin/includes/class-wp-debug-data.php @@ -957,16 +957,17 @@ class WP_Debug_Data { * @since 5.5.0 * * @param string $auto_updates_string The string output for the auto-updates column. + * @param string $plugin_path The path to the plugin file. * @param array $plugin An array of plugin data. * @param bool $enabled Whether auto-updates are enabled for this item. */ - $auto_updates_string = apply_filters( 'plugin_auto_update_debug_string', $auto_updates_string, $plugin, $enabled ); + $auto_updates_string = apply_filters( 'plugin_auto_update_debug_string', $auto_updates_string, $plugin_path, $plugin, $enabled ); } else { $auto_updates_string = __( 'Auto-updates disabled' ); $enabled = false; /** This filter is documented in wp-admin/includes/class-wp-debug-data.php */ - $auto_updates_string = apply_filters( 'plugin_auto_update_debug_string', $auto_updates_string, $plugin, $enabled ); + $auto_updates_string = apply_filters( 'plugin_auto_update_debug_string', $auto_updates_string, $plugin_path, $plugin, $enabled ); } $plugin_version_string .= ' | ' . $auto_updates_string;