Commit ec1f482b authored by Jake Spurlock's avatar Jake Spurlock
Browse files

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.

This brings [48696] to the 5.5 branch.

Fixes #50821.

Props bpayton, pbiron, audrasjb, SergeyBiryukov, whyisjake.

Built from https://develop.svn.wordpress.org/branches/5.5@48697


git-svn-id: https://core.svn.wordpress.org/branches/5.5@48459 1a063a9b-81f0-0310-95a4-ce76da25c4cd
parent f7bbdaf8
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@
 *
 * @global string $wp_version
 */
$wp_version = '5.5-RC1-48691';
$wp_version = '5.5-RC1-48697';

/**
 * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.