[ Index ]

WordPress Cross Reference

title

Body

[close]

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

These functions are needed to load Multisite.

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

Defines 6 functions

  is_subdomain_install()
  wp_get_active_network_plugins()
  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.

wp_get_active_network_plugins()   X-Ref
Returns array of network plugin files to be included in global scope.

The default directory is wp-content/plugins. To change the default directory
manually, define <code>WP_PLUGIN_DIR</code> and <code>WP_PLUGIN_URL</code>
in wp-config.php.

return: array Files to include

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 a blog's tables do not exist. Checks for a missing $wpdb->site table as well.




Generated: Tue Mar 25 01:41:18 2014 WordPress honlapkészítés: online1.hu