Make WordPress Core

Changeset 48696


Ignore:
Timestamp:
07/30/2020 09:48:19 PM (6 years ago)
Author:
whyisjake
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-debug-data.php

    r48574 r48696  
    958958                                         *
    959959                                         * @param string $auto_updates_string The string output for the auto-updates column.
     960                                         * @param string $plugin_path         The path to the plugin file.
    960961                                         * @param array  $plugin              An array of plugin data.
    961962                                         * @param bool   $enabled             Whether auto-updates are enabled for this item.
    962963                                         */
    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 );
    964965                                } else {
    965966                                        $auto_updates_string = __( 'Auto-updates disabled' );
     
    967968
    968969                                        /** 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 );
    970971                                }
    971972
Note: See TracChangeset for help on using the changeset viewer.