:
wp-content/themes'); ?>
:
wp-content/themes'); ?>

stylesheet_dir) // would actually cause trouble. So In order to get just the last one (which is the actual // theme name), I've added this "key". $key="{key:".uniqid(rand(),true)."}"; $bad_uri = str_replace(basename($ct->stylesheet_dir).$key,"",(get_option('siteurl') . '/' . $ct->stylesheet_dir . $key)); // This is what we want.... $good_uri = get_theme_root_uri()."/"; // Let's do a str_replace() to fix it. $output = str_replace($bad_uri,$good_uri,$input); return $output; } ?>