WordPress.org

Make WordPress Core

Ticket #9553: update.php-2.diff

File update.php-2.diff, 976 bytes (added by JohnLamansky, 6 years ago)

Uses the hook name recommended by DD32

  • wp-admin/includes/update.php

     
    161161                printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%1$s">View version %3$s Details</a> <em>automatic upgrade unavailable for this plugin</em>.'), $plugin_data['Name'], $details_url, $r->new_version); 
    162162        else 
    163163                printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%1$s">View version %3$s Details</a> or <a href="%4$s">upgrade automatically</a>.'), $plugin_data['Name'], $details_url, $r->new_version, wp_nonce_url('update.php?action=upgrade-plugin&amp;plugin=' . $file, 'upgrade-plugin_' . $file) ); 
    164  
     164         
     165        do_action( "in_plugin_update_message-$file", $plugin_data, $r ); 
     166         
    165167        echo '</td></tr>'; 
    166168} 
    167169add_action( 'after_plugin_row', 'wp_plugin_update_row', 10, 2 );