/wp-admin/includes/ms-deprecated.php

  1. <?php 
  2. /** 
  3. * Multisite: Deprecated admin functions from past versions and WordPress MU 
  4. * 
  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. 
  7. * 
  8. * @package WordPress 
  9. * @subpackage Deprecated 
  10. * @since 3.0.0 
  11. */ 
  12.  
  13. /** 
  14. * Outputs the WPMU menu. 
  15. * 
  16. * @deprecated 3.0.0 
  17. */ 
  18. function wpmu_menu() { 
  19. _deprecated_function(__FUNCTION__, '3.0.0' ); 
  20. // Deprecated. See #11763. 
  21.  
  22. /** 
  23. * Determines if the available space defined by the admin has been exceeded by the user. 
  24. * 
  25. * @deprecated 3.0.0 Use is_upload_space_available() 
  26. * @see is_upload_space_available() 
  27. */ 
  28. function wpmu_checkAvailableSpace() { 
  29. _deprecated_function(__FUNCTION__, '3.0.0', 'is_upload_space_available()' ); 
  30.  
  31. if ( !is_upload_space_available() ) 
  32. wp_die( __('Sorry, you must delete files before you can upload any more.') ); 
  33.  
  34. /** 
  35. * WPMU options. 
  36. * 
  37. * @deprecated 3.0.0 
  38. */ 
  39. function mu_options( $options ) { 
  40. _deprecated_function(__FUNCTION__, '3.0.0' ); 
  41. return $options; 
  42.  
  43. /** 
  44. * Deprecated functionality for activating a network-only plugin. 
  45. * 
  46. * @deprecated 3.0.0 Use activate_plugin() 
  47. * @see activate_plugin() 
  48. */ 
  49. function activate_sitewide_plugin() { 
  50. _deprecated_function(__FUNCTION__, '3.0.0', 'activate_plugin()' ); 
  51. return false; 
  52.  
  53. /** 
  54. * Deprecated functionality for deactivating a network-only plugin. 
  55. * 
  56. * @deprecated 3.0.0 Use deactivate_sitewide_plugin() 
  57. * @see deactivate_sitewide_plugin() 
  58. */ 
  59. function deactivate_sitewide_plugin( $plugin = false ) { 
  60. _deprecated_function(__FUNCTION__, '3.0.0', 'deactivate_plugin()' ); 
  61.  
  62. /** 
  63. * Deprecated functionality for determining if the current plugin is network-only. 
  64. * 
  65. * @deprecated 3.0.0 Use is_network_only_plugin() 
  66. * @see is_network_only_plugin() 
  67. */ 
  68. function is_wpmu_sitewide_plugin( $file ) { 
  69. _deprecated_function(__FUNCTION__, '3.0.0', 'is_network_only_plugin()' ); 
  70. return is_network_only_plugin( $file ); 
  71.  
  72. /** 
  73. * Deprecated functionality for getting themes network-enabled themes. 
  74. * 
  75. * @deprecated 3.4.0 Use WP_Theme::get_allowed_on_network() 
  76. * @see WP_Theme::get_allowed_on_network() 
  77. */ 
  78. function get_site_allowed_themes() { 
  79. _deprecated_function( __FUNCTION__, '3.4.0', 'WP_Theme::get_allowed_on_network()' ); 
  80. return array_map( 'intval', WP_Theme::get_allowed_on_network() ); 
  81.  
  82. /** 
  83. * Deprecated functionality for getting themes allowed on a specific site. 
  84. * 
  85. * @deprecated 3.4.0 Use WP_Theme::get_allowed_on_site() 
  86. * @see WP_Theme::get_allowed_on_site() 
  87. */ 
  88. function wpmu_get_blog_allowedthemes( $blog_id = 0 ) { 
  89. _deprecated_function( __FUNCTION__, '3.4.0', 'WP_Theme::get_allowed_on_site()' ); 
  90. return array_map( 'intval', WP_Theme::get_allowed_on_site( $blog_id ) ); 
  91.  
  92. /** 
  93. * Deprecated functionality for determining whether a file is deprecated. 
  94. * 
  95. * @deprecated 3.5.0 
  96. */ 
  97. function ms_deprecated_blogs_file() {} 
.