Ticket #12670: htaccess.diff
| File htaccess.diff, 1.5 KB (added by meheranandk, 3 years ago) |
|---|
-
wp-config-sample.php
33 33 /** The Database Collate type. Don't change this if in doubt. */ 34 34 define('DB_COLLATE', ''); 35 35 36 /** .htaccess filename. Change only if your webserver is using a different htaccess filename */ 37 define('HTACCESS_NAME','.htaccess'); 38 36 39 /**#@+ 37 40 * Authentication Unique Keys and Salts. 38 41 * -
wp-admin/includes/misc.php
126 126 global $wp_rewrite; 127 127 128 128 $home_path = get_home_path(); 129 $htaccess_file = $home_path. '.htaccess';129 $htaccess_file = $home_path.HTACCESS_NAME; 130 130 131 131 // If the file doesn't already exist check for write access to the directory and whether we have some rules. 132 132 // else check for write access to the file. -
wp-admin/options-permalink.php
119 119 else 120 120 $writable = false; 121 121 } else { 122 if ( ( ! file_exists($home_path . '.htaccess') && is_writable($home_path) ) || is_writable($home_path . '.htaccess') )122 if ( ( ! file_exists($home_path . HTACCESS_NAME) && is_writable($home_path) ) || is_writable($home_path . HTACCESS_NAME) ) 123 123 $writable = true; 124 124 else 125 125 $writable = false;
