Changeset 32006 for trunk/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 04/04/2015 02:18:52 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r31941 r32006 2882 2882 * 2883 2883 * @since 4.2.0 2884 * 2885 * @see Plugin_Upgrader 2884 2886 */ 2885 2887 function wp_ajax_update_plugin() { … … 2917 2919 if ( is_array( $result ) ) { 2918 2920 $plugin_update_data = current( $result ); 2921 2919 2922 /* 2920 2923 * If the `update_plugins` site transient is empty (e.g. when you update … … 2928 2931 wp_send_json_error( $status ); 2929 2932 } 2933 2930 2934 $plugin_data = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin ); 2935 2931 2936 if ( $plugin_data['Version'] ) { 2932 2937 $status['newVersion'] = sprintf( __( 'Version %s' ), $plugin_data['Version'] ); 2933 2938 } 2939 2934 2940 wp_send_json_success( $status ); 2935 2941 } else if ( is_wp_error( $result ) ) {
Note: See TracChangeset
for help on using the changeset viewer.