Make WordPress Core

Changeset 48697 for branches/5.5


Ignore:
Timestamp:
07/30/2020 09:50:39 PM (4 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.

This brings [48696] to the 5.5 branch.

Fixes #50821.

Props bpayton, pbiron, audrasjb, SergeyBiryukov, whyisjake.

Location:
branches/5.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.5

  • branches/5.5/src/wp-admin/includes/class-wp-debug-data.php

    r48574 r48697  
    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.