equal
deleted
inserted
replaced
15 } |
15 } |
16 |
16 |
17 $wp_list_table = _get_list_table( 'WP_MS_Sites_List_Table' ); |
17 $wp_list_table = _get_list_table( 'WP_MS_Sites_List_Table' ); |
18 $pagenum = $wp_list_table->get_pagenum(); |
18 $pagenum = $wp_list_table->get_pagenum(); |
19 |
19 |
|
20 // Used in the HTML title tag. |
20 $title = __( 'Sites' ); |
21 $title = __( 'Sites' ); |
21 $parent_file = 'sites.php'; |
22 $parent_file = 'sites.php'; |
22 |
23 |
23 add_screen_option( 'per_page' ); |
24 add_screen_option( 'per_page' ); |
24 |
25 |
258 /** |
259 /** |
259 * Fires after a network site is activated. |
260 * Fires after a network site is activated. |
260 * |
261 * |
261 * @since MU (3.0.0) |
262 * @since MU (3.0.0) |
262 * |
263 * |
263 * @param string $id The ID of the activated site. |
264 * @param int $id The ID of the activated site. |
264 */ |
265 */ |
265 do_action( 'activate_blog', $id ); |
266 do_action( 'activate_blog', $id ); |
266 break; |
267 break; |
267 |
268 |
268 case 'deactivateblog': |
269 case 'deactivateblog': |
269 /** |
270 /** |
270 * Fires before a network site is deactivated. |
271 * Fires before a network site is deactivated. |
271 * |
272 * |
272 * @since MU (3.0.0) |
273 * @since MU (3.0.0) |
273 * |
274 * |
274 * @param string $id The ID of the site being deactivated. |
275 * @param int $id The ID of the site being deactivated. |
275 */ |
276 */ |
276 do_action( 'deactivate_blog', $id ); |
277 do_action( 'deactivate_blog', $id ); |
277 |
278 |
278 update_blog_status( $id, 'deleted', '1' ); |
279 update_blog_status( $id, 'deleted', '1' ); |
279 break; |
280 break; |