Actions and Filters for the Network Admin sites panel to make it easier to add custom actions.
git-svn-id: https://develop.svn.wordpress.org/trunk@16707 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2158fc7445
commit
4e3458f227
@ -259,7 +259,8 @@ class WP_MS_Sites_List_Table extends WP_List_Table {
|
||||
}
|
||||
|
||||
$actions['visit'] = "<span class='view'><a href='" . esc_url( get_home_url( $blog['blog_id'] ) ) . "' rel='permalink'>" . __( 'Visit' ) . '</a></span>';
|
||||
$actions = array_filter( $actions );
|
||||
|
||||
$actions = apply_filters( 'manage_sites_action_links', array_filter( $actions ), $blog['blog_id'], $blogname );
|
||||
echo $this->row_actions( $actions );
|
||||
?>
|
||||
</td>
|
||||
|
@ -462,6 +462,8 @@ switch ( $_GET['action'] ) {
|
||||
break;
|
||||
|
||||
default:
|
||||
// Let plugins use us as a post handler easily
|
||||
do_action( 'network_admin_edit_' . $_GET['action'] );
|
||||
wp_redirect( network_admin_url( 'index.php' ) );
|
||||
break;
|
||||
}
|
||||
|
@ -76,7 +76,7 @@ if ( isset( $_REQUEST['updated'] ) && $_REQUEST['updated'] == 'true' && ! empty(
|
||||
$msg = __( 'Site marked as spam.' );
|
||||
break;
|
||||
default:
|
||||
$msg = __( 'Settings saved.' );
|
||||
$msg = apply_filters( 'network_sites_updated_message_' . $_REQUEST['action'] , __( 'Settings saved.' ) );
|
||||
break;
|
||||
}
|
||||
if ( $msg )
|
||||
|
Loading…
Reference in New Issue
Block a user