Make WordPress Core

Ticket #34617: 34617-2.diff

File 34617-2.diff, 912 bytes (added by afragen, 9 years ago)

update DocBlock for filter

  • wp-admin/includes/ajax-actions.php

    diff --git a/wp-admin/includes/ajax-actions.php b/wp-admin/includes/ajax-actions.php
    index a5df77d..058847e 100644
    a b function wp_ajax_update_plugin() { 
    30953095        $upgrader = new Plugin_Upgrader( $skin );
    30963096        $result = $upgrader->bulk_upgrade( array( $plugin ) );
    30973097
     3098        /**
     3099         * Allow for manipulating $result for plugins with renamed destination.
     3100         *
     3101         * Plugin updates may require renaming of the destination because they may not
     3102         * be hosted on dot org. If the destination has been changed it can be updated
     3103         * from this filter.
     3104         *
     3105         * @since 4.4.x
     3106         *
     3107         * @param array $result Value from Plugin_Upgrader.
     3108         */
     3109        $result = apply_filters( 'wp_ajax_update_plugin_result', $result );
     3110
    30983111        if ( is_array( $result ) && empty( $result[$plugin] ) && is_wp_error( $skin->result ) ) {
    30993112                $result = $skin->result;
    31003113        }