Changeset 8051

Show
Ignore:
Timestamp:
06/04/08 23:15:55 (6 months ago)
Author:
ryan
Message:

Use WP_CONTENT_DIR in get_page_templates(). Props ionfish. see #7059

Files:

Legend:

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

    r6530 r8051  
    3434    if ( is_array( $templates ) ) { 
    3535        foreach ( $templates as $template ) { 
    36             $template_data = implode( '', file( ABSPATH.$template )); 
     36            $template_data = implode( '', file( WP_CONTENT_DIR.$template )); 
    3737 
    3838            preg_match( '|Template Name:(.*)$|mi', $template_data, $name );