ect $object The object to clone * @return object The cloned object */ function wp_clone( $object ) { // Use parens for clone to accommodate PHP 4. See #17880 return clone( $object ); } /** * Whether the current request is for a network or blog admin page * * Does not inform on whether the user is an admin! Use capability checks to * tell if the user should be accessing a section or not. * * @since 1.5.1 * * @return bool True if inside WordPress administration pages. */ function is_admin() { if ( defined( 'WP_ADMIN' ) ) return WP_ADMIN; return false; } /** * Whether the current request is for a blog admin screen /wp-admin/ * * Does not inform on whether the user is a blog admin! Use capability checks to * tell if the user should be accessing a section or not. * * @since 3.1.0 * * @return bool True if inside WordPress network administration pages. */ function is_blog_admin() { if ( defined( 'WP_BLOG_ADMIN' ) ) return WP_BLOG_ADMIN; return false; } /** * Whether the current request is for a network admin screen /wp-admin/network/ * * Does not inform on whether the user is a network admin! Use capability checks to * tell if the user should be accessing a section or not. * * @since 3.1.0 * * @return bool True if inside WordPress network administration pages. */ function is_network_admin() { if ( defined( 'WP_NETWORK_ADMIN' ) ) return WP_NETWORK_ADMIN; return false; } /** * Whether the current request is for a user admin screen /wp-admin/user/ * * Does not inform on whether the user is an admin! Use capability checks to * tell if the user should be accessing a section or not. * * @since 3.1.0 * * @return bool True if inside WordPress user administration pages. */ function is_user_admin() { if ( defined( 'WP_USER_ADMIN' ) ) return WP_USER_ADMIN; return false; } /** * Whether Multisite support is enabled * * @since 3.0.0 * * @return bool True if multisite is enabled, false otherwise. */ function is_multisite() { if ( defined( 'MULTISITE' ) ) return MULTISITE; if ( defined( 'SUBDOMAIN_INSTALL' ) || defined( 'VHOST' ) || defined( 'SUNRISE' ) ) return true; return false; } ?>