Changeset 41200 for trunk/src/wp-includes/ms-functions.php
- Timestamp:
- 08/01/2017 08:43:25 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/ms-functions.php (modified) (73 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-functions.php
r41164 r41200 11 11 * Gets the network's site and user counts. 12 12 * 13 * @since MU 1.013 * @since MU (3.0.0) 1.0 14 14 * 15 15 * @return array Site and user count for the network. … … 33 33 * is returned. 34 34 * 35 * @since MU 1.035 * @since MU (3.0.0) 1.0 36 36 * 37 37 * @global wpdb $wpdb WordPress database abstraction object. … … 96 96 * The count is cached and updated twice daily. This is not a live count. 97 97 * 98 * @since MU 2.798 * @since MU (3.0.0) 2.7 99 99 * @since 4.8.0 The $network_id parameter has been added. 100 100 * … … 111 111 * The count is cached and updated twice daily. This is not a live count. 112 112 * 113 * @since MU 1.0113 * @since MU (3.0.0) 1.0 114 114 * @since 3.7.0 The $network_id parameter has been deprecated. 115 115 * @since 4.8.0 The $network_id parameter is now being used. … … 125 125 * Get a blog post from any site on the network. 126 126 * 127 * @since MU 1.0127 * @since MU (3.0.0) 1.0 128 128 * 129 129 * @param int $blog_id ID of the blog. … … 144 144 * Use the {@see 'add_user_to_blog'} action to fire an event when users are added to a blog. 145 145 * 146 * @since MU 1.0146 * @since MU (3.0.0) 1.0 147 147 * 148 148 * @param int $blog_id ID of the blog you're adding the user to. … … 172 172 * Fires immediately after a user is added to a site. 173 173 * 174 * @since MU 174 * @since MU (3.0.0) 175 175 * 176 176 * @param int $user_id User ID. … … 194 194 * reassign the user's blog posts to another user upon removal. 195 195 * 196 * @since MU 1.0196 * @since MU (3.0.0) 1.0 197 197 * 198 198 * @global wpdb $wpdb WordPress database abstraction object. … … 210 210 * Fires before a user is removed from a site. 211 211 * 212 * @since MU 212 * @since MU (3.0.0) 213 213 * 214 214 * @param int $user_id User ID. … … 275 275 * Get the permalink for a post on another blog. 276 276 * 277 * @since MU 1.0277 * @since MU (3.0.0) 1.0 278 278 * 279 279 * @param int $blog_id ID of the source blog. … … 297 297 * $domain is 'blog1.example.com' and $path is '/'. 298 298 * 299 * @since MU 2.6.5299 * @since MU (3.0.0) 2.6.5 300 300 * 301 301 * @global wpdb $wpdb WordPress database abstraction object. … … 343 343 * bypasses this check. 344 344 * 345 * @since MU 345 * @since MU (3.0.0) 346 346 * 347 347 * @param string $user_email The email provided by the user at registration. … … 401 401 * necessary. 402 402 * 403 * @since MU 403 * @since MU (3.0.0) 404 404 * 405 405 * @global wpdb $wpdb WordPress database abstraction object. … … 507 507 * registration. The values are solely used for validation and error handling. 508 508 * 509 * @since MU 509 * @since MU (3.0.0) 510 510 * 511 511 * @param array $result { … … 535 535 * the way that WordPress validates new site signups. 536 536 * 537 * @since MU 537 * @since MU (3.0.0) 538 538 * 539 539 * @global wpdb $wpdb … … 606 606 * path depending on the network settings. 607 607 * 608 * @since MU 608 * @since MU (3.0.0) 609 609 * 610 610 * @param string $blogname Site name. … … 649 649 * Filters site details and error messages following registration. 650 650 * 651 * @since MU 651 * @since MU (3.0.0) 652 652 * 653 653 * @param array $result { … … 668 668 * Record site signup information for future activation. 669 669 * 670 * @since MU 670 * @since MU (3.0.0) 671 671 * 672 672 * @global wpdb $wpdb WordPress database abstraction object. … … 734 734 * new site registration is not. 735 735 * 736 * @since MU 736 * @since MU (3.0.0) 737 737 * 738 738 * @global wpdb $wpdb WordPress database abstraction object. … … 801 801 * and subject line of the email sent to newly registered users. 802 802 * 803 * @since MU 803 * @since MU (3.0.0) 804 804 * 805 805 * @param string $domain The new blog domain. … … 816 816 * Filters whether to bypass the new site email notification. 817 817 * 818 * @since MU 818 * @since MU (3.0.0) 819 819 * 820 820 * @param string|bool $domain Site domain. … … 852 852 * Content should be formatted for transmission via wp_mail(). 853 853 * 854 * @since MU 854 * @since MU (3.0.0) 855 855 * 856 856 * @param string $content Content of the notification email. … … 876 876 * Filters the subject of the new blog notification email. 877 877 * 878 * @since MU 878 * @since MU (3.0.0) 879 879 * 880 880 * @param string $subject Subject of the notification email. … … 917 917 * and subject line of the email sent to newly registered users. 918 918 * 919 * @since MU 919 * @since MU (3.0.0) 920 920 * 921 921 * @param string $user_login The user's login name. … … 929 929 * Filters whether to bypass the email notification for new user sign-up. 930 930 * 931 * @since MU 931 * @since MU (3.0.0) 932 932 * 933 933 * @param string $user_login User login name. … … 954 954 * Content should be formatted for transmission via wp_mail(). 955 955 * 956 * @since MU 956 * @since MU (3.0.0) 957 957 * 958 958 * @param string $content Content of the notification email. … … 973 973 * Filters the subject of the notification email of new user signup. 974 974 * 975 * @since MU 975 * @since MU (3.0.0) 976 976 * 977 977 * @param string $subject Subject of the notification email. … … 1006 1006 * by a Super Admin). 1007 1007 * 1008 * @since MU 1008 * @since MU (3.0.0) 1009 1009 * 1010 1010 * @global wpdb $wpdb WordPress database abstraction object. … … 1052 1052 * Fires immediately after a new user is activated. 1053 1053 * 1054 * @since MU 1054 * @since MU (3.0.0) 1055 1055 * 1056 1056 * @param int $user_id User ID. … … 1079 1079 * Fires immediately after a site is activated. 1080 1080 * 1081 * @since MU 1081 * @since MU (3.0.0) 1082 1082 * 1083 1083 * @param int $blog_id Blog ID. … … 1100 1100 * use {@see'user_register'}). 1101 1101 * 1102 * @since MU 1102 * @since MU (3.0.0) 1103 1103 * 1104 1104 * @param string $user_name The new user's login name. … … 1121 1121 * Fires immediately after a new user is created. 1122 1122 * 1123 * @since MU 1123 * @since MU (3.0.0) 1124 1124 * 1125 1125 * @param int $user_id User ID. … … 1142 1142 * root domain (eg 'blog1.example.com'), and $path is '/'. 1143 1143 * 1144 * @since MU 1144 * @since MU (3.0.0) 1145 1145 * 1146 1146 * @param string $domain The new site's domain. … … 1207 1207 * Fires immediately after a new site is created. 1208 1208 * 1209 * @since MU 1209 * @since MU (3.0.0) 1210 1210 * 1211 1211 * @param int $blog_id Site ID. … … 1229 1229 * the notification email. 1230 1230 * 1231 * @since MU 1231 * @since MU (3.0.0) 1232 1232 * 1233 1233 * @param int $blog_id The new site's ID. … … 1260 1260 * to the network administrator. 1261 1261 * 1262 * @since MU 1262 * @since MU (3.0.0) 1263 1263 * 1264 1264 * @param string $msg Email body. … … 1276 1276 * the notification email. 1277 1277 * 1278 * @since MU 1278 * @since MU (3.0.0) 1279 1279 * 1280 1280 * @param int $user_id The new user's ID. … … 1303 1303 * to the network administrator. 1304 1304 * 1305 * @since MU 1305 * @since MU (3.0.0) 1306 1306 * 1307 1307 * @param string $msg Email body. … … 1319 1319 * that each blogname is unique. 1320 1320 * 1321 * @since MU 1321 * @since MU (3.0.0) 1322 1322 * 1323 1323 * @global wpdb $wpdb WordPress database abstraction object. … … 1358 1358 * the new blog's ID. It is the first step in creating a new blog. 1359 1359 * 1360 * @since MU 1360 * @since MU (3.0.0) 1361 1361 * 1362 1362 * @global wpdb $wpdb WordPress database abstraction object. … … 1392 1392 * points to the new blog. 1393 1393 * 1394 * @since MU 1394 * @since MU (3.0.0) 1395 1395 * 1396 1396 * @global wpdb $wpdb … … 1458 1458 * This function creates a row in the wp_blogs table. 1459 1459 * 1460 * @since MU 1460 * @since MU (3.0.0) 1461 1461 * @deprecated MU 1462 1462 * @deprecated Use wp_install_defaults() … … 1487 1487 * modify the content and subject line of the notification email. 1488 1488 * 1489 * @since MU 1489 * @since MU (3.0.0) 1490 1490 * 1491 1491 * @param int $blog_id Blog ID. … … 1504 1504 * Returning false disables the welcome email. 1505 1505 * 1506 * @since MU 1506 * @since MU (3.0.0) 1507 1507 * 1508 1508 * @param int|bool $blog_id Blog ID. … … 1551 1551 * Content should be formatted for transmission via wp_mail(). 1552 1552 * 1553 * @since MU 1553 * @since MU (3.0.0) 1554 1554 * 1555 1555 * @param string $welcome_email Message body of the email. … … 1579 1579 * Filters the subject of the welcome email after site activation. 1580 1580 * 1581 * @since MU 1581 * @since MU (3.0.0) 1582 1582 * 1583 1583 * @param string $subject Subject of the email. … … 1601 1601 * modify the content and subject line of the notification email. 1602 1602 * 1603 * @since MU 1603 * @since MU (3.0.0) 1604 1604 * 1605 1605 * @param int $user_id User ID. … … 1616 1616 * Returning false disables the welcome email. 1617 1617 * 1618 * @since MU 1618 * @since MU (3.0.0) 1619 1619 * 1620 1620 * @param int $user_id User ID. … … 1636 1636 * Content should be formatted for transmission via wp_mail(). 1637 1637 * 1638 * @since MU 1638 * @since MU (3.0.0) 1639 1639 * 1640 1640 * @param string $welcome_email The message body of the account activation success email. … … 1667 1667 * Filters the subject of the welcome email after user activation. 1668 1668 * 1669 * @since MU 1669 * @since MU (3.0.0) 1670 1670 * 1671 1671 * @param string $subject Subject of the email. … … 1689 1689 * @see wpmu_current_site() 1690 1690 * 1691 * @since MU 1691 * @since MU (3.0.0) 1692 1692 * 1693 1693 * @global WP_Network $current_site … … 1706 1706 * the most recent post_date_gmt. 1707 1707 * 1708 * @since MU 1708 * @since MU (3.0.0) 1709 1709 * 1710 1710 * @global wpdb $wpdb WordPress database abstraction object. … … 1754 1754 * a blog has exceeded its allowed upload space. 1755 1755 * 1756 * @since MU 1756 * @since MU (3.0.0) 1757 1757 * 1758 1758 * @param string $directory Full path of a directory. … … 1785 1785 * other directories. 1786 1786 * 1787 * @since MU 1787 * @since MU (3.0.0) 1788 1788 * @since 4.3.0 $exclude parameter added. 1789 1789 * … … 1828 1828 * Super Admins at wp-admin/network/settings.php. 1829 1829 * 1830 * @since MU 1830 * @since MU (3.0.0) 1831 1831 * 1832 1832 * @param array $mimes … … 1853 1853 * or unpublished to make sure the count stays current. 1854 1854 * 1855 * @since MU 1855 * @since MU (3.0.0) 1856 1856 * 1857 1857 * @global wpdb $wpdb WordPress database abstraction object. … … 1867 1867 * Logs the user email, IP, and registration date of a new site. 1868 1868 * 1869 * @since MU 1869 * @since MU (3.0.0) 1870 1870 * 1871 1871 * @global wpdb $wpdb WordPress database abstraction object. … … 1959 1959 * 1960 1960 * @see wp_validate_redirect() 1961 * @since MU 1961 * @since MU (3.0.0) 1962 1962 * 1963 1963 * @param array|string $deprecated Not used. … … 1971 1971 * Check whether an upload is too big. 1972 1972 * 1973 * @since MU 1973 * @since MU (3.0.0) 1974 1974 * 1975 1975 * @blessed … … 1992 1992 * Add a nonce field to the signup page. 1993 1993 * 1994 * @since MU 1994 * @since MU (3.0.0) 1995 1995 */ 1996 1996 function signup_nonce_fields() { … … 2003 2003 * Process the signup nonce created in signup_nonce_fields(). 2004 2004 * 2005 * @since MU 2005 * @since MU (3.0.0) 2006 2006 * 2007 2007 * @param array $result … … 2021 2021 * Correct 404 redirects when NOBLOGREDIRECT is defined. 2022 2022 * 2023 * @since MU 2023 * @since MU (3.0.0) 2024 2024 */ 2025 2025 function maybe_redirect_404() { … … 2048 2048 * added, as when a user is invited through the regular WP Add User interface. 2049 2049 * 2050 * @since MU 2050 * @since MU (3.0.0) 2051 2051 */ 2052 2052 function maybe_add_existing_user_to_blog() { … … 2073 2073 * Add a user to a blog based on details from maybe_add_existing_user_to_blog(). 2074 2074 * 2075 * @since MU 2075 * @since MU (3.0.0) 2076 2076 * 2077 2077 * @param array $details … … 2085 2085 * Fires immediately after an existing user is added to a site. 2086 2086 * 2087 * @since MU 2087 * @since MU (3.0.0) 2088 2088 * 2089 2089 * @param int $user_id User ID. … … 2101 2101 * is specifically hooked into the {@see 'wpmu_activate_user'} action. 2102 2102 * 2103 * @since MU 2103 * @since MU (3.0.0) 2104 2104 * @see add_user_to_blog() 2105 2105 * … … 2121 2121 * Correct From host on outgoing mail to match the site domain 2122 2122 * 2123 * @since MU 2123 * @since MU (3.0.0) 2124 2124 * 2125 2125 * @param PHPMailer $phpmailer The PHPMailer instance, passed by reference. … … 2132 2132 * Check to see whether a user is marked as a spammer, based on user login. 2133 2133 * 2134 * @since MU 2134 * @since MU (3.0.0) 2135 2135 * 2136 2136 * @param string|WP_User $user Optional. Defaults to current user. WP_User object, … … 2155 2155 * Public blogs have a setting of 1, private blogs are 0. 2156 2156 * 2157 * @since MU 2157 * @since MU (3.0.0) 2158 2158 * 2159 2159 * @param int $old_value … … 2167 2167 * Check whether a usermeta key has to do with the current blog. 2168 2168 * 2169 * @since MU 2169 * @since MU (3.0.0) 2170 2170 * 2171 2171 * @global wpdb $wpdb WordPress database abstraction object. … … 2191 2191 * Check whether users can self-register, based on Network settings. 2192 2192 * 2193 * @since MU 2193 * @since MU (3.0.0) 2194 2194 * 2195 2195 * @return bool … … 2203 2203 * Ensure that the welcome message is not empty. Currently unused. 2204 2204 * 2205 * @since MU 2205 * @since MU (3.0.0) 2206 2206 * 2207 2207 * @param string $text … … 2418 2418 * Returns the upload quota for the current blog. 2419 2419 * 2420 * @since MU 2420 * @since MU (3.0.0) 2421 2421 * 2422 2422 * @return int Quota in megabytes
Note: See TracChangeset
for help on using the changeset viewer.