Bulk_Plugin_Upgrader_Skin example

$plugins = array();
        }

        $plugins = array_map( 'urldecode', $plugins );

        $url   = 'update.php?action=update-selected&plugins=' . urlencode( implode( ',', $plugins ) );
        $nonce = 'bulk-update-plugins';

        wp_enqueue_script( 'updates' );
        iframe_header();

        $upgrader = new Plugin_Upgrader( new Bulk_Plugin_Upgrader_Skin( compact( 'nonce', 'url' ) ) );
        $upgrader->bulk_upgrade( $plugins );

        iframe_footer();

    } elseif ( 'upgrade-plugin' === $action ) {
        if ( ! current_user_can( 'update_plugins' ) ) {
            wp_die( __( 'Sorry, you are not allowed to update plugins for this site.' ) );
        }

        check_admin_referer( 'upgrade-plugin_' . $plugin );

        
Home | Imprint | This part of the site doesn't use cookies.