From 51591b778bb91537ef7689a412089b8036259021 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 3 Jun 2008 17:17:45 +0000 Subject: [PATCH] Use WP_CONTENT_DIR and URL when linking to theme screenshots. Props sambauers. see #6938 git-svn-id: http://svn.automattic.com/wordpress/trunk@8040 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/themes.php | 4 ++-- wp-includes/theme.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-admin/themes.php b/wp-admin/themes.php index 252c6da74..22c52cea3 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -57,7 +57,7 @@ $themes = array_slice( $themes, $start, $per_page );

screenshot ) : ?> -<?php _e('Current theme preview'); ?> +<?php _e('Current theme preview'); ?>

title, $ct->version, $ct->author) ; ?>

description; ?>

@@ -126,7 +126,7 @@ foreach ( $cols as $col => $theme_name ) { ?> - +

diff --git a/wp-includes/theme.php b/wp-includes/theme.php index 383d19c6a..dafc07338 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -128,8 +128,8 @@ function get_themes() { $themes = array(); $wp_broken_themes = array(); $theme_loc = $theme_root = get_theme_root(); - if ( '/' != ABSPATH ) // don't want to replace all forward slashes, see Trac #4541 - $theme_loc = str_replace(ABSPATH, '', $theme_root); + if ( '/' != WP_CONTENT_DIR ) // don't want to replace all forward slashes, see Trac #4541 + $theme_loc = str_replace(WP_CONTENT_DIR, '', $theme_root); // Files in wp-content/themes directory and one subdir down $themes_dir = @ opendir($theme_root);