Changeset 44469
- Timestamp:
- 01/08/2019 08:57:32 AM (6 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ms.php
r43654 r44469 57 57 * 58 58 * @since 3.0.0 59 * @since 5. 0.0 Use wp_delete_site() internally to delete the site row from the database.59 * @since 5.1.0 Use wp_delete_site() internally to delete the site row from the database. 60 60 * 61 61 * @global wpdb $wpdb WordPress database abstraction object. … … 98 98 } else { 99 99 /** This action is documented in wp-includes/ms-blogs.php */ 100 do_action_deprecated( 'delete_blog', array( $blog_id, false ), '5. 0.0' );100 do_action_deprecated( 'delete_blog', array( $blog_id, false ), '5.1.0' ); 101 101 102 102 $users = get_users( … … 117 117 118 118 /** This action is documented in wp-includes/ms-blogs.php */ 119 do_action_deprecated( 'deleted_blog', array( $blog_id, false ), '5. 0.0' );119 do_action_deprecated( 'deleted_blog', array( $blog_id, false ), '5.1.0' ); 120 120 } 121 121 -
trunk/src/wp-includes/ms-blogs.php
r44468 r44469 401 401 * Inserts a new site into the database. 402 402 * 403 * @since 5. 0.0403 * @since 5.1.0 404 404 * 405 405 * @global wpdb $wpdb WordPress database abstraction object. … … 465 465 * Fires once a site has been inserted into the database. 466 466 * 467 * @since 5. 0.0467 * @since 5.1.0 468 468 * 469 469 * @param WP_Site $new_site New site object. … … 474 474 * Fires when a site's initialization routine should be executed. 475 475 * 476 * @since 5. 0.0476 * @since 5.1.0 477 477 * 478 478 * @param WP_Site $new_site New site object. … … 490 490 * 491 491 * @since MU (3.0.0) 492 * @deprecated 5. 0.0 Use wp_insert_site492 * @deprecated 5.1.0 Use wp_insert_site 493 493 * 494 494 * @param int $site_id Site ID. … … 499 499 * @param array $meta Meta data. Used to set initial site options. 500 500 */ 501 do_action_deprecated( 'wpmu_new_blog', array( $new_site->id, $user_id, $new_site->domain, $new_site->path, $new_site->network_id, $meta ), '5. 0.0', 'wp_insert_site' );501 do_action_deprecated( 'wpmu_new_blog', array( $new_site->id, $user_id, $new_site->domain, $new_site->path, $new_site->network_id, $meta ), '5.1.0', 'wp_insert_site' ); 502 502 } 503 503 … … 508 508 * Updates a site in the database. 509 509 * 510 * @since 5. 0.0510 * @since 5.1.0 511 511 * 512 512 * @global wpdb $wpdb WordPress database abstraction object. … … 549 549 * Fires once a site has been updated in the database. 550 550 * 551 * @since 5. 0.0551 * @since 5.1.0 552 552 * 553 553 * @param WP_Site $new_site New site object. … … 562 562 * Deletes a site from the database. 563 563 * 564 * @since 5. 0.0564 * @since 5.1.0 565 565 * 566 566 * @global wpdb $wpdb WordPress database abstraction object. … … 589 589 * are present, the site will not be deleted. 590 590 * 591 * @since 5. 0.0591 * @since 5.1.0 592 592 * 593 593 * @param WP_Error $errors Error object to add validation errors to. … … 604 604 * 605 605 * @since MU (3.0.0) 606 * @deprecated 5. 0.0606 * @deprecated 5.1.0 607 607 * 608 608 * @param int $site_id The site ID. 609 609 * @param bool $drop True if site's table should be dropped. Default is false. 610 610 */ 611 do_action_deprecated( 'delete_blog', array( $old_site->id, true ), '5. 0.0' );611 do_action_deprecated( 'delete_blog', array( $old_site->id, true ), '5.1.0' ); 612 612 613 613 /** 614 614 * Fires when a site's uninitialization routine should be executed. 615 615 * 616 * @since 5. 0.0616 * @since 5.1.0 617 617 * 618 618 * @param WP_Site $old_site Deleted site object. … … 636 636 * Fires once a site has been deleted from the database. 637 637 * 638 * @since 5. 0.0638 * @since 5.1.0 639 639 * 640 640 * @param WP_Site $old_site Deleted site object. … … 646 646 * 647 647 * @since 4.8.0 648 * @deprecated 5. 0.0648 * @deprecated 5.1.0 649 649 * 650 650 * @param int $site_id The site ID. 651 651 * @param bool $drop True if site's tables should be dropped. Default is false. 652 652 */ 653 do_action_deprecated( 'deleted_blog', array( $old_site->id, true ), '5. 0.0' );653 do_action_deprecated( 'deleted_blog', array( $old_site->id, true ), '5.1.0' ); 654 654 655 655 return $old_site; … … 825 825 * Prepares site data for insertion or update in the database. 826 826 * 827 * @since 5. 0.0827 * @since 5.1.0 828 828 * 829 829 * @param array $data Associative array of site data passed to the respective function. … … 848 848 * Filters passed site data in order to normalize it. 849 849 * 850 * @since 5. 0.0850 * @since 5.1.0 851 851 * 852 852 * @param array $data Associative array of site data passed to the respective function. … … 865 865 * Plugins should amend the `$errors` object via its `WP_Error::add()` method. 866 866 * 867 * @since 5. 0.0867 * @since 5.1.0 868 868 * 869 869 * @param WP_Error $errors Error object to add validation errors to. … … 889 889 * Normalizes data for a site prior to inserting or updating in the database. 890 890 * 891 * @since 5. 0.0891 * @since 5.1.0 892 892 * 893 893 * @param array $data Associative array of site data passed to the respective function. … … 941 941 * Validates data for a site prior to inserting or updating in the database. 942 942 * 943 * @since 5. 0.0943 * @since 5.1.0 944 944 * 945 945 * @param WP_Error $errors Error object, passed by reference. Will contain validation errors if … … 1009 1009 * populating them with defaults. 1010 1010 * 1011 * @since 5. 0.01011 * @since 5.1.0 1012 1012 * 1013 1013 * @global wpdb $wpdb WordPress database abstraction object. … … 1063 1063 * Filters the arguments for initializing a site. 1064 1064 * 1065 * @since 5. 0.01065 * @since 5.1.0 1066 1066 * 1067 1067 * @param array $args Arguments to modify the initialization behavior. … … 1149 1149 * This process includes dropping the site's database tables and deleting its uploads directory. 1150 1150 * 1151 * @since 5. 0.01151 * @since 5.1.0 1152 1152 * 1153 1153 * @global wpdb $wpdb WordPress database abstraction object. … … 1271 1271 * A site is considered initialized when its database tables are present. 1272 1272 * 1273 * @since 5. 0.01273 * @since 5.1.0 1274 1274 * 1275 1275 * @global wpdb $wpdb WordPress database abstraction object. … … 1292 1292 * that value instead. 1293 1293 * 1294 * @since 5. 0.01294 * @since 5.1.0 1295 1295 * 1296 1296 * @param bool|null $pre The value to return, if not null. … … 1764 1764 * 1765 1765 * @since MU (3.0.0) 1766 * @since 5. 0.0 Use wp_update_site() internally.1766 * @since 5.1.0 Use wp_update_site() internally. 1767 1767 * 1768 1768 * @global wpdb $wpdb WordPress database abstraction object. … … 2067 2067 * Updates the count of sites for a network based on a changed site. 2068 2068 * 2069 * @since 5. 0.02069 * @since 5.1.0 2070 2070 * 2071 2071 * @param WP_Site $new_site The site object that has been inserted, updated or deleted. … … 2088 2088 * Triggers actions on site status updates. 2089 2089 * 2090 * @since 5. 0.02090 * @since 5.1.0 2091 2091 * 2092 2092 * @param WP_Site $new_site The site object after the update. … … 2215 2215 * Cleans the necessary caches after specific site data has been updated. 2216 2216 * 2217 * @since 5. 0.02217 * @since 5.1.0 2218 2218 * 2219 2219 * @param WP_Site $new_site The site object after the update. … … 2229 2229 * Updates the `blog_public` option for a given site ID. 2230 2230 * 2231 * @since 5. 0.02231 * @since 5.1.0 2232 2232 * 2233 2233 * @param int $site_id Site ID. -
trunk/src/wp-includes/ms-deprecated.php
r44048 r44469 560 560 * 561 561 * @since MU (3.0.0) 562 * @deprecated 5. 0.0 Use `wp_insert_site()`562 * @deprecated 5.1.0 Use `wp_insert_site()` 563 563 * @see wp_insert_site() 564 564 * … … 569 569 */ 570 570 function insert_blog($domain, $path, $site_id) { 571 _deprecated_function( __FUNCTION__, '5. 0.0', 'wp_insert_site()' );571 _deprecated_function( __FUNCTION__, '5.1.0', 'wp_insert_site()' ); 572 572 573 573 $data = array( … … 595 595 * 596 596 * @since MU (3.0.0) 597 * @deprecated 5. 0.0597 * @deprecated 5.1.0 598 598 * 599 599 * @global wpdb $wpdb … … 606 606 global $wpdb, $wp_roles; 607 607 608 _deprecated_function( __FUNCTION__, '5. 0.0' );608 _deprecated_function( __FUNCTION__, '5.1.0' ); 609 609 610 610 // Cast for security -
trunk/src/wp-includes/ms-functions.php
r43654 r44469 1348 1348 * 1349 1349 * @since MU (3.0.0) 1350 * @since 5. 0.0 $blog_id now supports input from the {@see 'wp_initialize_site'} action.1350 * @since 5.1.0 $blog_id now supports input from the {@see 'wp_initialize_site'} action. 1351 1351 * 1352 1352 * @param WP_Site|int $blog_id The new site's object or ID. … … 1900 1900 * 1901 1901 * @since MU (3.0.0) 1902 * @since 5. 0.0 Parameters now support input from the {@see 'wp_initialize_site'} action.1902 * @since 5.1.0 Parameters now support input from the {@see 'wp_initialize_site'} action. 1903 1903 * 1904 1904 * @global wpdb $wpdb WordPress database abstraction object.
Note: See TracChangeset
for help on using the changeset viewer.