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
This commit is contained in:
parent
1c6ca0998c
commit
6d3207d564
@ -957,16 +957,17 @@ class WP_Debug_Data {
|
|||||||
* @since 5.5.0
|
* @since 5.5.0
|
||||||
*
|
*
|
||||||
* @param string $auto_updates_string The string output for the auto-updates column.
|
* @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 array $plugin An array of plugin data.
|
||||||
* @param bool $enabled Whether auto-updates are enabled for this item.
|
* @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 {
|
} else {
|
||||||
$auto_updates_string = __( 'Auto-updates disabled' );
|
$auto_updates_string = __( 'Auto-updates disabled' );
|
||||||
$enabled = false;
|
$enabled = false;
|
||||||
|
|
||||||
/** This filter is documented in wp-admin/includes/class-wp-debug-data.php */
|
/** 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;
|
$plugin_version_string .= ' | ' . $auto_updates_string;
|
||||||
|
Loading…
Reference in New Issue
Block a user