Make WordPress Core

Ticket #22377: 25611.diff

File 25611.diff, 920 bytes (added by rmccue, 11 years ago)

Patch from #25611

  • wp-includes/update.php

    diff --git wp-includes/update.php wp-includes/update.php
    index c0eaf1b..13b5741 100644
    function wp_version_check( $extra_stats = array() ) { 
    142142        if ( isset( $body['translations'] ) )
    143143                $updates->translations = $body['translations'];
    144144
     145        $updates = apply_filters( 'core_version_check_response', $updates );
    145146        set_site_transient( 'update_core',  $updates);
    146147}
    147148
    function wp_update_plugins() { 
    269270                $new_option->translations = array();
    270271        }
    271272
     273        $new_option = apply_filters( 'plugins_update_check_response', $new_option );
    272274        set_site_transient( 'update_plugins', $new_option );
    273275}
    274276
    function wp_update_themes() { 
    402404                $new_update->translations = $response['translations'];
    403405        }
    404406
     407        $new_update = apply_filters( 'themes_update_check_response', $new_update );
    405408        set_site_transient( 'update_themes', $new_update );
    406409}
    407410