WordPress.org

Make WordPress Core

Ticket #9787: 9787-update.php-missing-arg.diff

File 9787-update.php-missing-arg.diff, 1.3 KB (added by demetris, 5 years ago)

Adds a missing argument ($plugin_name)

  • wp-admin/includes/update.php

     
    163163        else if ( empty($r->package) ) 
    164164                printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s Details</a> <em>automatic upgrade unavailable for this plugin</em>.'), $plugin_name, $details_url, esc_attr($plugin_name), $r->new_version); 
    165165        else 
    166                 printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s Details</a> or <a href="%5$s">upgrade automatically</a>.'), $details_url, $r->new_version, esc_attr($plugin_name), wp_nonce_url('update.php?action=upgrade-plugin&amp;plugin=' . $file, 'upgrade-plugin_' . $file) ); 
     166                printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s Details</a> or <a href="%5$s">upgrade automatically</a>.'), $plugin_name, $details_url, $r->new_version, esc_attr($plugin_name), wp_nonce_url('update.php?action=upgrade-plugin&amp;plugin=' . $file, 'upgrade-plugin_' . $file) ); 
    167167         
    168168        do_action( "in_plugin_update_message-$file", $plugin_data, $r ); 
    169169