From 078db63c4bf7ebbd5848a677d689a669dc07a770 Mon Sep 17 00:00:00 2001 From: whyisjake Date: Thu, 30 Jul 2020 21:50:02 +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. Built from https://develop.svn.wordpress.org/trunk@48696 git-svn-id: http://core.svn.wordpress.org/trunk@48458 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-debug-data.php | 5 +++-- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/class-wp-debug-data.php b/wp-admin/includes/class-wp-debug-data.php index a656830bad..24ca2bdfd2 100644 --- a/wp-admin/includes/class-wp-debug-data.php +++ b/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; diff --git a/wp-includes/version.php b/wp-includes/version.php index 686ea37ffa..9bd39ebf05 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-alpha-48695'; +$wp_version = '5.6-alpha-48696'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.