WordPress.org

Make WordPress Core

Ticket #22377: 22377.diff

File 22377.diff, 373 bytes (added by rmccue, 2 years ago)

Add filter to wp_update_plugins

  • wp-includes/update.php

    diff --git wp-includes/update.php wp-includes/update.php
    index b620506..614ed76 100644
    function wp_update_plugins() { 
    214214        else 
    215215                $new_option->response = array(); 
    216216 
     217        $new_option = apply_filters( 'wp_update_plugins_response', $new_option ); 
    217218        set_site_transient( 'update_plugins', $new_option ); 
    218219} 
    219220