Ticket #19538: 19538.hotfix.diff
File 19538.hotfix.diff, 870 bytes (added by , 13 years ago) |
---|
-
hotfix.php
36 36 switch ( $wp_version ) { 37 37 case '3.3' : 38 38 $hotfixes = array( '330_no_wp_print_styles_in_admin', '330_no_json_encode_load_scripts' ); 39 if ( is_multisite() ) 40 $hotfixes[] = 'wp_hotfix_330_blog_upload_space'; 39 41 break; 40 42 case '3.1.3' : 41 43 $hotfixes = array( '313_post_status_query_string' ); … … 132 134 if ( ! defined( 'CONCATENATE_SCRIPTS' ) ) 133 135 define( 'CONCATENATE_SCRIPTS', false ); 134 136 } 137 138 function wp_hotfix_330_blog_upload_space() { 139 add_filter( 'option_blog_upload_space', 'wp_hotfix_330_blog_upload_space_filter' ); 140 } 141 142 function wp_hotfix_330_blog_upload_space_filter( $value ) { 143 if ( '' === $value ) 144 return false; 145 return $value; 146 } 147 No newline at end of file