Edit File by line
/home/barbar84/public_h.../wp-admin/includes
File: ms-deprecated.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Multisite: Deprecated admin functions from past versions and WordPress MU
[2] Fix | Delete
*
[3] Fix | Delete
* These functions should not be used and will be removed in a later version.
[4] Fix | Delete
* It is suggested to use for the alternatives instead when available.
[5] Fix | Delete
*
[6] Fix | Delete
* @package WordPress
[7] Fix | Delete
* @subpackage Deprecated
[8] Fix | Delete
* @since 3.0.0
[9] Fix | Delete
*/
[10] Fix | Delete
[11] Fix | Delete
/**
[12] Fix | Delete
* Outputs the WPMU menu.
[13] Fix | Delete
*
[14] Fix | Delete
* @deprecated 3.0.0
[15] Fix | Delete
*/
[16] Fix | Delete
function wpmu_menu() {
[17] Fix | Delete
_deprecated_function( __FUNCTION__, '3.0.0' );
[18] Fix | Delete
// Deprecated. See #11763.
[19] Fix | Delete
}
[20] Fix | Delete
[21] Fix | Delete
/**
[22] Fix | Delete
* Determines if the available space defined by the admin has been exceeded by the user.
[23] Fix | Delete
*
[24] Fix | Delete
* @deprecated 3.0.0 Use is_upload_space_available()
[25] Fix | Delete
* @see is_upload_space_available()
[26] Fix | Delete
*/
[27] Fix | Delete
function wpmu_checkAvailableSpace() {
[28] Fix | Delete
_deprecated_function( __FUNCTION__, '3.0.0', 'is_upload_space_available()' );
[29] Fix | Delete
[30] Fix | Delete
if ( ! is_upload_space_available() ) {
[31] Fix | Delete
wp_die( sprintf(
[32] Fix | Delete
/* translators: %s: Allowed space allocation. */
[33] Fix | Delete
__( 'Sorry, you have used your space allocation of %s. Please delete some files to upload more files.' ),
[34] Fix | Delete
size_format( get_space_allowed() * MB_IN_BYTES )
[35] Fix | Delete
) );
[36] Fix | Delete
}
[37] Fix | Delete
}
[38] Fix | Delete
[39] Fix | Delete
/**
[40] Fix | Delete
* WPMU options.
[41] Fix | Delete
*
[42] Fix | Delete
* @deprecated 3.0.0
[43] Fix | Delete
*/
[44] Fix | Delete
function mu_options( $options ) {
[45] Fix | Delete
_deprecated_function( __FUNCTION__, '3.0.0' );
[46] Fix | Delete
return $options;
[47] Fix | Delete
}
[48] Fix | Delete
[49] Fix | Delete
/**
[50] Fix | Delete
* Deprecated functionality for activating a network-only plugin.
[51] Fix | Delete
*
[52] Fix | Delete
* @deprecated 3.0.0 Use activate_plugin()
[53] Fix | Delete
* @see activate_plugin()
[54] Fix | Delete
*/
[55] Fix | Delete
function activate_sitewide_plugin() {
[56] Fix | Delete
_deprecated_function( __FUNCTION__, '3.0.0', 'activate_plugin()' );
[57] Fix | Delete
return false;
[58] Fix | Delete
}
[59] Fix | Delete
[60] Fix | Delete
/**
[61] Fix | Delete
* Deprecated functionality for deactivating a network-only plugin.
[62] Fix | Delete
*
[63] Fix | Delete
* @deprecated 3.0.0 Use deactivate_plugin()
[64] Fix | Delete
* @see deactivate_plugin()
[65] Fix | Delete
*/
[66] Fix | Delete
function deactivate_sitewide_plugin( $plugin = false ) {
[67] Fix | Delete
_deprecated_function( __FUNCTION__, '3.0.0', 'deactivate_plugin()' );
[68] Fix | Delete
}
[69] Fix | Delete
[70] Fix | Delete
/**
[71] Fix | Delete
* Deprecated functionality for determining if the current plugin is network-only.
[72] Fix | Delete
*
[73] Fix | Delete
* @deprecated 3.0.0 Use is_network_only_plugin()
[74] Fix | Delete
* @see is_network_only_plugin()
[75] Fix | Delete
*/
[76] Fix | Delete
function is_wpmu_sitewide_plugin( $file ) {
[77] Fix | Delete
_deprecated_function( __FUNCTION__, '3.0.0', 'is_network_only_plugin()' );
[78] Fix | Delete
return is_network_only_plugin( $file );
[79] Fix | Delete
}
[80] Fix | Delete
[81] Fix | Delete
/**
[82] Fix | Delete
* Deprecated functionality for getting themes network-enabled themes.
[83] Fix | Delete
*
[84] Fix | Delete
* @deprecated 3.4.0 Use WP_Theme::get_allowed_on_network()
[85] Fix | Delete
* @see WP_Theme::get_allowed_on_network()
[86] Fix | Delete
*/
[87] Fix | Delete
function get_site_allowed_themes() {
[88] Fix | Delete
_deprecated_function( __FUNCTION__, '3.4.0', 'WP_Theme::get_allowed_on_network()' );
[89] Fix | Delete
return array_map( 'intval', WP_Theme::get_allowed_on_network() );
[90] Fix | Delete
}
[91] Fix | Delete
[92] Fix | Delete
/**
[93] Fix | Delete
* Deprecated functionality for getting themes allowed on a specific site.
[94] Fix | Delete
*
[95] Fix | Delete
* @deprecated 3.4.0 Use WP_Theme::get_allowed_on_site()
[96] Fix | Delete
* @see WP_Theme::get_allowed_on_site()
[97] Fix | Delete
*/
[98] Fix | Delete
function wpmu_get_blog_allowedthemes( $blog_id = 0 ) {
[99] Fix | Delete
_deprecated_function( __FUNCTION__, '3.4.0', 'WP_Theme::get_allowed_on_site()' );
[100] Fix | Delete
return array_map( 'intval', WP_Theme::get_allowed_on_site( $blog_id ) );
[101] Fix | Delete
}
[102] Fix | Delete
[103] Fix | Delete
/**
[104] Fix | Delete
* Deprecated functionality for determining whether a file is deprecated.
[105] Fix | Delete
*
[106] Fix | Delete
* @deprecated 3.5.0
[107] Fix | Delete
*/
[108] Fix | Delete
function ms_deprecated_blogs_file() {}
[109] Fix | Delete
[110] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function