Changeset 55075
- Timestamp:
- 01/15/2023 05:50:13 PM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-functions.php
r55074 r55075 146 146 * @param int $blog_id ID of the blog the user is being added to. 147 147 * @param int $user_id ID of the user being added. 148 * @param string $role The role you want the user to have.148 * @param string $role User role. 149 149 * @return true|WP_Error True on success or a WP_Error object if the user doesn't exist 150 150 * or could not be added. … … 308 308 * @param int $blog_id ID of the source blog. 309 309 * @param int $post_id ID of the desired post. 310 * @return string The post's permalink 310 * @return string The post's permalink. 311 311 */ 312 312 function get_blog_permalink( $blog_id, $post_id ) { … … 330 330 * @global wpdb $wpdb WordPress database abstraction object. 331 331 * 332 * @param string $domain 332 * @param string $domain Website domain. 333 333 * @param string $path Optional. Not required for subdomain installations. 334 * @return int 0 if no blog found, otherwise the ID of the matching blog 334 * @return int 0 if no blog found, otherwise the ID of the matching blog. 335 335 */ 336 336 function get_blog_id_from_url( $domain, $path = '/' ) { … … 914 914 * @param string $user_login The user's login name. 915 915 * @param string $user_email The user's email address. 916 * @param string $key The activation key created in wpmu_signup_blog() 916 * @param string $key The activation key created in wpmu_signup_blog(). 917 917 * @param array $meta Optional. Signup meta data. By default, contains the requested privacy setting and lang_id. 918 918 * @return bool … … 1153 1153 * 1154 1154 * @param string $key The activation key provided to the user. 1155 * @return array|WP_Error An array containing information about the activated user and/or blog 1155 * @return array|WP_Error An array containing information about the activated user and/or blog. 1156 1156 */ 1157 1157 function wpmu_activate_signup( $key ) { … … 1305 1305 * @param string $password The new user's password. 1306 1306 * @param string $email The new user's email address. 1307 * @return int|false Returns false on failure, or int $user_id on success 1307 * @return int|false Returns false on failure, or int $user_id on success. 1308 1308 */ 1309 1309 function wpmu_create_user( $user_name, $password, $email ) { … … 1909 1909 * @since MU (3.0.0) 1910 1910 * 1911 * @global WP_Network $current_site 1912 * 1913 * @return WP_Network 1911 * @global WP_Network $current_site The current network. 1912 * 1913 * @return WP_Network The current network. 1914 1914 */ 1915 1915 function get_current_site() { … … 1928 1928 * @global wpdb $wpdb WordPress database abstraction object. 1929 1929 * 1930 * @param int $user_id 1931 * @return array Contains the blog_id, post_id, post_date_gmt, and post_gmt_ts 1930 * @param int $user_id User ID. 1931 * @return array Contains the blog_id, post_id, post_date_gmt, and post_gmt_ts. 1932 1932 */ 1933 1933 function get_most_recent_post_of_user( $user_id ) { … … 2076 2076 * @blessed 2077 2077 * 2078 * @param array $upload 2078 * @param array $upload An array of information about the newly-uploaded file. 2079 2079 * @return string|array If the upload is under the size limit, $upload is returned. Otherwise returns an error message. 2080 2080 */ … … 2263 2263 2264 2264 /** 2265 * Corrects From host on outgoing mail to match the site domain 2265 * Corrects From host on outgoing mail to match the site domain. 2266 2266 * 2267 2267 * @since MU (3.0.0) … … 2301 2301 * @since MU (3.0.0) 2302 2302 * 2303 * @param int $old_value 2304 * @param int $value The new public value 2303 * @param int $old_value The old public value. 2304 * @param int $value The new public value. 2305 2305 */ 2306 2306 function update_blog_public( $old_value, $value ) { … … 2379 2379 * @since 2.8.5 2380 2380 * 2381 * @param string $url URL 2382 * @return string URL with https as the scheme 2381 * @param string $url URL. 2382 * @return string URL with https as the scheme. 2383 2383 */ 2384 2384 function filter_SSL( $url ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid … … 2546 2546 * @since MU (3.0.0) 2547 2547 * 2548 * @return int Quota in megabytes 2548 * @return int Quota in megabytes. 2549 2549 */ 2550 2550 function get_space_allowed() { … … 2574 2574 * @since 3.0.0 2575 2575 * 2576 * @return int of upload space available in bytes 2576 * @return int of upload space available in bytes. 2577 2577 */ 2578 2578 function get_upload_space_available() {
Note: See TracChangeset
for help on using the changeset viewer.