Make WordPress Core

Ticket #22377: 22377.2.diff

File 22377.2.diff, 628 bytes (added by rmccue, 12 years ago)

Add filter to wp_update_plugins and wp_update_themes

  • wp-includes/update.php

    diff --git wp-includes/update.php wp-includes/update.php
    index b620506..bb651c0 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
    function wp_update_themes() { 
    320321        if ( is_array( $response ) )
    321322                $new_update->response = $response;
    322323
     324        $new_update = apply_filters( 'wp_update_themes_response', $new_update );
    323325        set_site_transient( 'update_themes', $new_update );
    324326}
    325327