Changeset 43364 for branches/4.9/src/wp-admin/includes/misc.php
- Timestamp:
- 06/16/2018 01:11:57 PM (6 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
- Property svn:mergeinfo changed
/trunk merged: 43361-43363
- Property svn:mergeinfo changed
-
branches/4.9/src/wp-admin/includes/misc.php
r43351 r43364 195 195 * 196 196 * @global WP_Rewrite $wp_rewrite 197 * 198 * @return bool|null True on write success, false on failure. Null in multisite. 197 199 */ 198 200 function save_mod_rewrite_rules() { … … 202 204 global $wp_rewrite; 203 205 204 $home_path = get_home_path(); 205 $htaccess_file = $home_path.'.htaccess'; 206 // Ensure get_home_path() is declared. 207 require_once( ABSPATH . 'wp-admin/includes/file.php' ); 208 209 $home_path = get_home_path(); 210 $htaccess_file = $home_path . '.htaccess'; 206 211 207 212 /* … … 227 232 * @global WP_Rewrite $wp_rewrite 228 233 * 229 * @return bool True if web.config was updated successfully234 * @return bool|null True on write success, false on failure. Null in multisite. 230 235 */ 231 236 function iis7_save_url_rewrite_rules(){ … … 235 240 global $wp_rewrite; 236 241 237 $home_path = get_home_path(); 242 // Ensure get_home_path() is declared. 243 require_once( ABSPATH . 'wp-admin/includes/file.php' ); 244 245 $home_path = get_home_path(); 238 246 $web_config_file = $home_path . 'web.config'; 239 247
Note: See TracChangeset
for help on using the changeset viewer.