* @global wpdb $wpdb WordPress database abstraction object.
*
* @param int $user_id The unique ID of the user
- * @return object|void The blog object
+ * @return WP_Site|void The blog object
*/
function get_active_blog_for_user( $user_id ) {
global $wpdb;
*
* @since MU
*
- * @param int $blog_id The new site's ID.
+ * @param int $blog_id The new site's ID.
+ * @param string $deprecated Not used.
* @return bool
*/
function newblog_notify_siteadmin( $blog_id, $deprecated = '' ) {
$user = get_userdata( $user_id );
/**
- * Filter the content of the welcome email after user activation.
+ * Filters the content of the welcome email after user activation.
*
* Content should be formatted for transmission via wp_mail().
*
* @since MU
*
- * @param type $welcome_email The message body of the account activation success email.
+ * @param string $welcome_email The message body of the account activation success email.
* @param int $user_id User ID.
* @param string $password User password.
* @param array $meta Signup meta data.
}
/**
- * Get the current site info.
+ * Get the current network.
*
* Returns an object containing the 'id', 'domain', 'path', and 'site_name'
- * properties of the site being viewed.
+ * properties of the network being viewed.
*
* @see wpmu_current_site()
*
* @since MU
*
- * @global object $current_site
+ * @global WP_Network $current_site
*
- * @return object
+ * @return WP_Network
*/
function get_current_site() {
global $current_site;
* @since MU
*
* @global wpdb $wpdb WordPress database abstraction object.
+ *
+ * @param string $deprecated Not used.
*/
function update_posts_count( $deprecated = '' ) {
global $wpdb;
* @global wpdb $wpdb WordPress database abstraction object.
* @staticvar int $global_terms_recurse
*
- * @param int $term_id An ID for a term on the current blog.
+ * @param int $term_id An ID for a term on the current blog.
+ * @param string $deprecated Not used.
* @return int An ID from the global terms table mapped from $term_id.
*/
function global_terms( $term_id, $deprecated = '' ) {
* @see wp_validate_redirect()
* @since MU
*
+ * @param array|string $deprecated Not used.
* @return array The current site's domain
*/
function redirect_this_site( $deprecated = '' ) {
* Correct From host on outgoing mail to match the site domain
*
* @since MU
+ *
+ * @param PHPMailer $phpmailer The PHPMailer instance, passed by reference.
*/
function fix_phpmailer_messageid( $phpmailer ) {
$phpmailer->Hostname = get_current_site()->domain;
*
* @since 2.8.5
*
- * @param string URL
+ * @param string $url URL
* @return string URL with https as the scheme
*/
function filter_SSL( $url ) {
}
/**
+ * Filters the maximum upload file size allowed, in bytes.
+ *
* @since 3.0.0
*
- * @return int of upload size limit in bytes
+ * @param int $size Upload size limit in bytes.
+ * @return int Upload size limit in bytes.
*/
function upload_size_limit_filter( $size ) {
$fileupload_maxk = KB_IN_BYTES * get_site_option( 'fileupload_maxk', 1500 );