Make WordPress Core


Ignore:
Timestamp:
10/19/2009 09:39:04 PM (14 years ago)
Author:
westi
Message:

Display a smaller filename in the theme editor urls and make theme files editable again. Fixes #10974.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/theme.php

    r12033 r12063  
    147147}
    148148
     149/**
     150 * Tidies a filename for url display by the theme editor.
     151 *
     152 * @since 2.9.0
     153 * @private
     154 *
     155 * @param string $fullpath Full path to the theme file
     156 * @param string $containingfolder Path of the theme parent folder
     157 * @return string
     158 */
     159function _get_template_edit_filename($fullpath, $containingfolder) {
     160    return str_replace(dirname(dirname( $containingfolder )) , '', $fullpath);
     161}
     162
    149163?>
Note: See TracChangeset for help on using the changeset viewer.