Ticket #26124: 26124.patch
| File 26124.patch, 1.2 KB (added by , 12 years ago) |
|---|
-
src/wp-admin/network/sites.php
152 152 153 153 case 'activateblog': 154 154 update_blog_status( $id, 'deleted', '0' ); 155 /** 156 * Fires before activating a site in a Multisite network. 157 * 158 * @since MU 159 * 160 * @param string $id The ID of the site being activated. 161 */ 155 162 do_action( 'activate_blog', $id ); 156 163 break; 157 164 158 165 case 'deactivateblog': 166 /** 167 * Fires before deactivating a site in a Multisite network. 168 * 169 * @since MU 170 * 171 * @param string $id The ID of the site being deactivated. 172 */ 159 173 do_action( 'deactivate_blog', $id ); 160 174 update_blog_status( $id, 'deleted', '1' ); 161 175 break; … … 217 231 $msg = __( 'Site marked as spam.' ); 218 232 break; 219 233 default: 234 /** 235 * Filter the update message in the Network admin. 236 * 237 * @since 3.5.0 238 * 239 * @param string $msg The update message. Default 'Settings saved'. 240 */ 220 241 $msg = apply_filters( 'network_sites_updated_message_' . $_GET['updated'], __( 'Settings saved.' ) ); 221 242 break; 222 243 }