WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/04/2015 02:18:52 PM (5 years ago)
Author:
DrewAPicture
Message:

Add an @see mention for Plugin_Upgrader, plus spacing to the wp_ajax_update_plugin() delcaration.

See #31888.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r31941 r32006  
    28822882 *
    28832883 * @since 4.2.0
     2884 *
     2885 * @see Plugin_Upgrader
    28842886 */
    28852887function wp_ajax_update_plugin() {
     
    29172919    if ( is_array( $result ) ) {
    29182920        $plugin_update_data = current( $result );
     2921
    29192922        /*
    29202923         * If the `update_plugins` site transient is empty (e.g. when you update
     
    29282931            wp_send_json_error( $status );
    29292932        }
     2933
    29302934        $plugin_data = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin );
     2935
    29312936        if ( $plugin_data['Version'] ) {
    29322937            $status['newVersion'] = sprintf( __( 'Version %s' ), $plugin_data['Version'] );
    29332938        }
     2939
    29342940        wp_send_json_success( $status );
    29352941    } else if ( is_wp_error( $result ) ) {
Note: See TracChangeset for help on using the changeset viewer.