[ Index ]

PHP Cross Reference of WordPress 3.0 beta 1

[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/wp-includes/ -> ms-load.php (summary)

These functions are needed to load Multisite.

File Size: 212 lines (9 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 5 functions

  is_subdomain_install()
  ms_site_check()
  get_current_site_name()
  wpmu_current_site()
  ms_not_installed()

Functions
Functions that are not part of a class:

is_subdomain_install()   X-Ref
Whether a subdomain configuration is enabled.

return: bool True if subdomain configuration is enabled, false otherwise.

ms_site_check()   X-Ref
Checks status of current blog.

Checks if the blog is deleted, inactive, archived, or spammed.

Dies with a default message if the blog does not pass the check.

To change the default message when a blog does not pass the check,
use the wp-content/blog-deleted.php, blog-inactive.php and
blog-suspended.php drop-ins.

return: bool|string Returns true on success, or drop-in file to include.

get_current_site_name( $current_site )   X-Ref
Sets current site name.

return: object $current_site object with site_name

wpmu_current_site()   X-Ref
Sets current_site object.

return: object $current_site object

ms_not_installed()   X-Ref
Displays a failure message.

Used when blog does not exist. Checks for a missing $wpdb->site table as well.




Generated: Mon Apr 5 14:26:09 2010 Cross-referenced by PHPXref 0.7