Make WordPress Core

Changeset 8716


Ignore:
Timestamp:
08/22/2008 10:55:30 PM (16 years ago)
Author:
ryan
Message:

Use WP_CONTENT_PATH to find find files. Props Terragg. fixes #7575 for trunk

File:
1 edited

Legend:

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

    r8600 r8716  
    1010        return $wp_file_descriptions[basename( $file )];
    1111    }
    12     elseif ( file_exists( ABSPATH . $file ) && is_file( ABSPATH . $file ) ) {
    13         $template_data = implode( '', file( ABSPATH . $file ) );
     12    elseif ( file_exists( WP_CONTENT_PATH . $file ) && is_file( WP_CONTENT_PATH . $file ) ) {
     13        $template_data = implode( '', file( WP_CONTENT_PATH . $file ) );
    1414        if ( preg_match( "|Template Name:(.*)|i", $template_data, $name ))
    1515            return $name[1];
Note: See TracChangeset for help on using the changeset viewer.