From cbcb7316c301f79bf1cbdf8b3659359081516a04 Mon Sep 17 00:00:00 2001
From: Paul Biron <paul@sparrowhawkcomputing.com>
Date: Thu, 30 Jul 2020 13:37:38 -0600
Subject: [PATCH] Pass the plugin filename to the
plugin_auto_update_debug_string filter.
---
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
|
b
|
class WP_Debug_Data {
|
| 957 | 957 | * @since 5.5.0 |
| 958 | 958 | * |
| 959 | 959 | * @param string $auto_updates_string The string output for the auto-updates column. |
| | 960 | * @param string $plugin_path The path to the plugin file. |
| 960 | 961 | * @param array $plugin An array of plugin data. |
| 961 | 962 | * @param bool $enabled Whether auto-updates are enabled for this item. |
| 962 | 963 | */ |
| 963 | | $auto_updates_string = apply_filters( 'plugin_auto_update_debug_string', $auto_updates_string, $plugin, $enabled ); |
| | 964 | $auto_updates_string = apply_filters( 'plugin_auto_update_debug_string', $auto_updates_string, $plugin_path, $plugin, $enabled ); |
| 964 | 965 | } else { |
| 965 | 966 | $auto_updates_string = __( 'Auto-updates disabled' ); |
| 966 | 967 | $enabled = false; |
| 967 | 968 | |
| 968 | 969 | /** This filter is documented in wp-admin/includes/class-wp-debug-data.php */ |
| 969 | | $auto_updates_string = apply_filters( 'plugin_auto_update_debug_string', $auto_updates_string, $plugin, $enabled ); |
| | 970 | $auto_updates_string = apply_filters( 'plugin_auto_update_debug_string', $auto_updates_string, $plugin_path, $plugin, $enabled ); |
| 970 | 971 | } |
| 971 | 972 | |
| 972 | 973 | $plugin_version_string .= ' | ' . $auto_updates_string; |