Changeset 36416 for trunk/src/wp-admin/includes/ms.php
- Timestamp:
- 01/28/2016 03:34:02 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ms.php
r35885 r36416 49 49 50 50 /** 51 * Delete a blog.51 * Delete a site. 52 52 * 53 53 * @since 3.0.0 … … 55 55 * @global wpdb $wpdb WordPress database abstraction object. 56 56 * 57 * @param int $blog_id BlogID.58 * @param bool $drop True if blog's tableshould be dropped. Default is false.57 * @param int $blog_id Site ID. 58 * @param bool $drop True if site's database tables should be dropped. Default is false. 59 59 */ 60 60 function wpmu_delete_blog( $blog_id, $drop = false ) { … … 69 69 $blog = get_blog_details( $blog_id ); 70 70 /** 71 * Fires before a blogis deleted.71 * Fires before a site is deleted. 72 72 * 73 73 * @since MU 74 74 * 75 * @param int $blog_id The blogID.76 * @param bool $drop True if blog's table should be dropped. Default is false.75 * @param int $blog_id The site ID. 76 * @param bool $drop True if site's table should be dropped. Default is false. 77 77 */ 78 78 do_action( 'delete_blog', $blog_id, $drop ); … … 113 113 $tables = $wpdb->tables( 'blog' ); 114 114 /** 115 * Filter the tables to drop when the blogis deleted.115 * Filter the tables to drop when the site is deleted. 116 116 * 117 117 * @since MU 118 118 * 119 * @param array $tables The blogtables to be dropped.120 * @param int $blog_id The ID of the blogto drop tables for.119 * @param array $tables The site tables to be dropped. 120 * @param int $blog_id The ID of the site to drop tables for. 121 121 */ 122 122 $drop_tables = apply_filters( 'wpmu_drop_tables', $tables, $blog_id ); … … 129 129 130 130 /** 131 * Filter the upload base directory to delete when the blogis deleted.131 * Filter the upload base directory to delete when the site is deleted. 132 132 * 133 133 * @since MU 134 134 * 135 135 * @param string $uploads['basedir'] Uploads path without subdirectory. @see wp_upload_dir() 136 * @param int $blog_id The blogID.136 * @param int $blog_id The site ID. 137 137 */ 138 138 $dir = apply_filters( 'wpmu_delete_blog_upload_dir', $uploads['basedir'], $blog_id ); … … 411 411 412 412 /** 413 * Check whether a bloghas used its allotted upload space.413 * Check whether a site has used its allotted upload space. 414 414 * 415 415 * @since MU … … 438 438 439 439 /** 440 * Displays the amount of disk space used by the current blog. Not used in core.440 * Displays the amount of disk space used by the current site. Not used in core. 441 441 * 442 442 * @since MU … … 463 463 464 464 /** 465 * Get the remaining upload space for this blog.465 * Get the remaining upload space for this site. 466 466 * 467 467 * @since MU … … 479 479 480 480 /** 481 * Displays the edit blog upload space setting form on the Edit Blogscreen.482 * 483 * @since 3.0.0 484 * 485 * @param int $id The ID of the blogto display the setting for.481 * Displays the site upload space quota setting form on the Edit Site Settings screen. 482 * 483 * @since 3.0.0 484 * 485 * @param int $id The ID of the site to display the setting for. 486 486 */ 487 487 function upload_space_setting( $id ) {
Note: See TracChangeset
for help on using the changeset viewer.