<?php
/*
Plugin Name: Select2Buttons
Description: Changes the Dropdown actions on the Admin tables to individual buttons
Version: 1.0
License: GPL
Author: Dion Hulse
Author URI: http://dd32.id.au/
Plugin URI: http://dd32.id.au/wordpress-plugins/?plugin=select2buttons
*/

add_filter('table_actions', 'select2buttons_filter', 1000);
function select2buttons_filter($actions) {
	foreach ( (array)$actions as $action => $text ) {
		if ( empty($action) || -1 == $action )
			continue;
		echo "<input type='submit' name='select2buttons[{$action}]' value='$text' class='button-secondary action apply' />";
	}
	return array();
}
add_action('admin_init', 'select2buttons_post');
function select2buttons_post() {
	if ( ! isset($_REQUEST['select2buttons']) )
		return;
	$action = array_keys($_REQUEST['select2buttons']);
	$action = $action[0];
	$_POST['action'] = $_POST['action2'] = $_GET['action'] = $_GET['action2'] = $_REQUEST['action'] = $action;
	$_POST['doaction'] = $_POST['doaction2'] = $_GET['doaction'] = $_GET['doaction2'] = 'Apply';
}