Ticket #26124: 26124.2.patch
| File 26124.2.patch, 1.3 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 /** 157 * Fires after a network site is activated. 158 * 159 * @since MU 160 * 161 * @param string $id The ID of the activated site. 162 */ 155 163 do_action( 'activate_blog', $id ); 156 164 break; 157 165 158 166 case 'deactivateblog': 167 /** 168 * Fires before a network site is deactivated. 169 * 170 * @since MU 171 * 172 * @param string $id The ID of the site being deactivated. 173 */ 159 174 do_action( 'deactivate_blog', $id ); 160 175 update_blog_status( $id, 'deleted', '1' ); 161 176 break; … … 217 232 $msg = __( 'Site marked as spam.' ); 218 233 break; 219 234 default: 235 /** 236 * Filter a specific, non-default site-updated message in the Network admin. 237 * 238 * The dynamic portion of the hook name, $_GET['updated'], refers to the non-default 239 * site update action. 240 * 241 * @since 3.1.0 242 * 243 * @param string $msg The update message. Default 'Settings saved'. 244 */ 220 245 $msg = apply_filters( 'network_sites_updated_message_' . $_GET['updated'], __( 'Settings saved.' ) ); 221 246 break; 222 247 }