Make WordPress Core

Changeset 8051


Ignore:
Timestamp:
06/04/2008 11:15:55 PM (17 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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 );
Note: See TracChangeset for help on using the changeset viewer.