Make WordPress Core

Changeset 16707


Ignore:
Timestamp:
12/03/2010 12:12:44 PM (14 years ago)
Author:
westi
Message:

Actions and Filters for the Network Admin sites panel to make it easier to add custom actions.

Location:
trunk/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-ms-sites-list-table.php

    r16601 r16707  
    260260
    261261                            $actions['visit']   = "<span class='view'><a href='" . esc_url( get_home_url( $blog['blog_id'] ) ) . "' rel='permalink'>" . __( 'Visit' ) . '</a></span>';
    262                             $actions = array_filter( $actions );
     262
     263                            $actions = apply_filters( 'manage_sites_action_links', array_filter( $actions ), $blog['blog_id'], $blogname );
    263264                            echo $this->row_actions( $actions );
    264265                    ?>
  • trunk/wp-admin/network/edit.php

    r16547 r16707  
    463463
    464464    default:
     465        // Let plugins use us as a post handler easily
     466        do_action( 'network_admin_edit_' . $_GET['action'] );
    465467        wp_redirect( network_admin_url( 'index.php' ) );
    466468    break;
  • trunk/wp-admin/network/sites.php

    r16612 r16707  
    7777        break;
    7878        default:
    79             $msg = __( 'Settings saved.' );
     79            $msg = apply_filters( 'network_sites_updated_message_' . $_REQUEST['action'] , __( 'Settings saved.' ) );
    8080        break;
    8181    }
Note: See TracChangeset for help on using the changeset viewer.