- Timestamp:
- 08/22/2013 04:49:06 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-filesystem-base.php
r25057 r25082 80 80 * @access public 81 81 * 82 * @return string The location of the remote path. 83 */ 84 function wp_themes_dir() { 85 return $this->wp_content_dir() . 'themes/'; 82 * @param string $theme The Theme stylesheet or template for the directory 83 * @return string The location of the remote path. 84 */ 85 function wp_themes_dir( $theme = false ) { 86 $theme_root = get_theme_root( $theme ); 87 88 // Account for relative theme roots 89 if ( '/themes' == $theme_root || ! is_dir( $theme_root ) ) 90 $theme_root = WP_CONTENT_DIR . $theme_root; 91 92 return $this->find_folder( $theme_root ); 86 93 } 87 94 /**
Note: See TracChangeset
for help on using the changeset viewer.