@@ 3750-3752 (lines=3) @@ | ||
3747 | $status['plugin'] = $plugin; |
|
3748 | $status['pluginName'] = $plugin_data['Name']; |
|
3749 | ||
3750 | if ( $plugin_data['Version'] ) { |
|
3751 | /* translators: %s: Plugin version */ |
|
3752 | $status['oldVersion'] = sprintf( __( 'Version %s' ), $plugin_data['Version'] ); |
|
3753 | } |
|
3754 | ||
3755 | include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); |
|
@@ 3793-3795 (lines=3) @@ | ||
3790 | $plugin_data = get_plugins( '/' . $result[ $plugin ]['destination_name'] ); |
|
3791 | $plugin_data = reset( $plugin_data ); |
|
3792 | ||
3793 | if ( $plugin_data['Version'] ) { |
|
3794 | /* translators: %s: Plugin version */ |
|
3795 | $status['newVersion'] = sprintf( __( 'Version %s' ), $plugin_data['Version'] ); |
|
3796 | } |
|
3797 | wp_send_json_success( $status ); |
|
3798 | } elseif ( false === $result ) { |