Ticket #22900: 22900.hotfix.diff
File 22900.hotfix.diff, 2.3 KB (added by , 13 years ago) |
---|
-
hotfix.php
35 35 36 36 switch ( $wp_version ) { 37 37 case '3.5' : 38 $hotfixes = array( '350_twentytwelve' );38 $hotfixes = array( '350_twentytwelve', '350_iis_http_failure' ); 39 39 break; 40 40 case '3.4.2' : 41 41 $hotfixes = array( '342_custom_fields' ); … … 217 217 return wp_remote_post( $url, $args ); 218 218 } 219 219 220 function wp_hotfix_350_iis_http_failure() { 221 add_filter( 'filesystem_method', 'wp_hotfix_350_iis_http_failure_define' ); 222 } 223 224 function wp_hotfix_350_iis_http_failure_define( $filter ) { 225 if ( ! defined( 'WP_TEMP_DIR' ) ) 226 define( 'WP_TEMP_DIR', wp_hotfix_350_iis_http_failure_get_temp_dir() ); 227 remove_filter( 'filesystem_method', 'wp_hotfix_350_iis_http_failure_define' ); 228 return $filter; 229 } 230 231 function wp_hotfix_350_iis_http_failure_get_temp_dir() { 232 $temp = ini_get('upload_tmp_dir'); 233 if ( is_dir( $temp ) && @is_writable( $temp ) ) 234 return trailingslashit( rtrim( $temp, '\\' ) ); 235 236 $temp = WP_CONTENT_DIR . '/'; 237 if ( is_dir( $temp ) && @is_writable( $temp ) ) 238 return $temp; 239 return false; 240 } 241 No newline at end of file -
readme.txt
15 15 16 16 * **WordPress 3.5** 17 17 * Lets you update Twenty Twelve if it is shown as "broken" after installing 3.5 18 * Lets you update WordPress, or, install/update Themes, and Plugins on IIS7 under certain conditions 18 19 19 20 * **WordPress 3.4.2** 20 21 * Fix adding and updating Custom Fields … … 34 35 Read the "Complete Hotfix List" section in the description. A later version of the plugin may list the hotfixes in a special WordPress admin page. 35 36 36 37 == Changelog == 38 = 1.1 = 39 * Lets you update WordPress, or, install/update Themes, and Plugins on IIS7 under certain conditions 40 37 41 = 1.0 = 38 42 * Lets you update Twenty Twelve if it is shown as "broken" after installing 3.5 39 43 … … 93 97 == Complete Hotfix List == 94 98 * **WordPress 3.5** 95 99 * Lets you update Twenty Twelve if it is shown as "broken" after installing 3.5 100 * Lets you update WordPress, or, install/update Themes, and Plugins on IIS7 under certain conditions 96 101 97 102 * **WordPress 3.4.2** 98 103 * Fix adding and updating Custom Fields