Changeset 25201 for trunk/src/wp-admin/includes/file.php
- Timestamp:
- 09/01/2013 12:36:45 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/file.php
r25071 r25201 95 95 96 96 /** 97 * Get the real file system path to a file to edit within the admin98 *99 * If the $file is index.php or .htaccess this function will assume it is relative100 * to the install root, otherwise it is assumed the file is relative to the wp-content101 * directory102 *103 * @since 1.5.0104 *105 * @uses get_home_path106 * @uses WP_CONTENT_DIR full filesystem path to the wp-content directory107 * @param string $file filesystem path relative to the WordPress install directory or to the wp-content directory108 * @return string full file system path to edit109 */110 function get_real_file_to_edit( $file ) {111 if ('index.php' == $file || '.htaccess' == $file ) {112 $real_file = get_home_path() . $file;113 } else {114 $real_file = WP_CONTENT_DIR . $file;115 }116 117 return $real_file;118 }119 120 /**121 97 * Returns a listing of all files in the specified folder and all subdirectories up to 100 levels deep. 122 98 * The depth of the recursiveness can be controlled by the $levels param.
Note: See TracChangeset
for help on using the changeset viewer.