3 * Multisite: Deprecated admin functions from past versions and WordPress MU
5 * These functions should not be used and will be removed in a later version.
6 * It is suggested to use for the alternatives instead when available.
9 * @subpackage Deprecated
14 * Outputs the WPMU menu.
18 function wpmu_menu() {
19 _deprecated_function(__FUNCTION__, '3.0' );
20 // Deprecated. See #11763.
24 * Determines if the available space defined by the admin has been exceeded by the user.
26 * @deprecated 3.0.0 Use is_upload_space_available()
27 * @see is_upload_space_available()
29 function wpmu_checkAvailableSpace() {
30 _deprecated_function(__FUNCTION__, '3.0', 'is_upload_space_available()' );
32 if ( !is_upload_space_available() )
33 wp_die( __('Sorry, you must delete files before you can upload any more.') );
41 function mu_options( $options ) {
42 _deprecated_function(__FUNCTION__, '3.0' );
47 * Deprecated functionality for activating a network-only plugin.
49 * @deprecated 3.0.0 Use activate_plugin()
50 * @see activate_plugin()
52 function activate_sitewide_plugin() {
53 _deprecated_function(__FUNCTION__, '3.0', 'activate_plugin()' );
58 * Deprecated functionality for deactivating a network-only plugin.
60 * @deprecated 3.0.0 Use deactivate_sitewide_plugin()
61 * @see deactivate_sitewide_plugin()
63 function deactivate_sitewide_plugin( $plugin = false ) {
64 _deprecated_function(__FUNCTION__, '3.0', 'deactivate_plugin()' );
68 * Deprecated functionality for determining if the current plugin is network-only.
70 * @deprecated 3.0.0 Use is_network_only_plugin()
71 * @see is_network_only_plugin()
73 function is_wpmu_sitewide_plugin( $file ) {
74 _deprecated_function(__FUNCTION__, '3.0', 'is_network_only_plugin()' );
75 return is_network_only_plugin( $file );
79 * Deprecated functionality for getting themes network-enabled themes.
81 * @deprecated 3.4.0 Use WP_Theme::get_allowed_on_network()
82 * @see WP_Theme::get_allowed_on_network()
84 function get_site_allowed_themes() {
85 _deprecated_function( __FUNCTION__, '3.4', 'WP_Theme::get_allowed_on_network()' );
86 return array_map( 'intval', WP_Theme::get_allowed_on_network() );
90 * Deprecated functionality for getting themes allowed on a specific site.
92 * @deprecated 3.4.0 Use WP_Theme::get_allowed_on_site()
93 * @see WP_Theme::get_allowed_on_site()
95 function wpmu_get_blog_allowedthemes( $blog_id = 0 ) {
96 _deprecated_function( __FUNCTION__, '3.4', 'WP_Theme::get_allowed_on_site()' );
97 return array_map( 'intval', WP_Theme::get_allowed_on_site( $blog_id ) );
101 * Deprecated functionality for determining whether a file is deprecated.
105 function ms_deprecated_blogs_file() {}