Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r17264 r18327  
    164164 * @since 1.5.0
    165165 *
    166  * @return array Key is template name, Value is template name
     166 * @return array Key is the template name, value is the filename of the template
    167167 */
    168168function get_page_templates() {
     
    180180            // don't allow template files in subdirectories
    181181            if ( false !== strpos($basename, '/') )
     182                continue;
     183
     184            if ( 'functions.php' == $basename )
    182185                continue;
    183186
     
    269272                'blue'    => __( 'Blue' ),
    270273                'brown'   => __( 'Brown' ),
     274                'gray'    => __( 'Gray' ),
    271275                'green'   => __( 'Green' ),
    272276                'orange'  => __( 'Orange' ),
     
    297301
    298302        __( 'Features' ) => array(
    299             'blavatar'             => __( 'Blavatar' ),
    300             'buddypress'           => __( 'BuddyPress' ),
    301             'custom-background'    => __( 'Custom Background' ),
    302             'custom-colors'        => __( 'Custom Colors' ),
    303             'custom-header'        => __( 'Custom Header' ),
    304             'custom-menu'          => __( 'Custom Menu' ),
    305             'editor-style'         => __( 'Editor Style' ),
    306             'front-page-post-form' => __( 'Front Page Posting' ),
    307             'microformats'         => __( 'Microformats' ),
    308             'sticky-post'          => __( 'Sticky Post' ),
    309             'theme-options'        => __( 'Theme Options' ),
    310             'threaded-comments'    => __( 'Threaded Comments' ),
    311             'translation-ready'    => __( 'Translation Ready' ),
    312             'rtl-language-support' => __( 'RTL Language Support' )
     303            'blavatar'              => __( 'Blavatar' ),
     304            'buddypress'            => __( 'BuddyPress' ),
     305            'custom-background'     => __( 'Custom Background' ),
     306            'custom-colors'         => __( 'Custom Colors' ),
     307            'custom-header'         => __( 'Custom Header' ),
     308            'custom-menu'           => __( 'Custom Menu' ),
     309            'editor-style'          => __( 'Editor Style' ),
     310            'featured-image-header' => __( 'Featured Image Header' ),
     311            'featured-images'       => __( 'Featured Images' ),
     312            'front-page-post-form'  => __( 'Front Page Posting' ),
     313            'full-width-template'   => __( 'Full Width Template' ),
     314            'microformats'          => __( 'Microformats' ),
     315            'post-formats'          => __( 'Post Formats' ),
     316            'rtl-language-support'  => __( 'RTL Language Support' ),
     317            'sticky-post'           => __( 'Sticky Post' ),
     318            'theme-options'         => __( 'Theme Options' ),
     319            'threaded-comments'     => __( 'Threaded Comments' ),
     320            'translation-ready'     => __( 'Translation Ready' )
    313321        ),
    314322
    315323        __( 'Subject' )  => array(
    316             'holiday' => __( 'Holiday' ),
     324            'holiday'       => __( 'Holiday' ),
    317325            'photoblogging' => __( 'Photoblogging' ),
    318             'seasonal' => __( 'Seasonal' )
     326            'seasonal'      => __( 'Seasonal' )
    319327        )
    320328    );
     
    394402            $res = new WP_Error('themes_api_failed', __('An Unexpected HTTP Error occurred during the API request.'), $request->get_error_message() );
    395403        } else {
    396             $res = unserialize($request['body']);
     404            $res = unserialize( wp_remote_retrieve_body( $request ) );
    397405            if ( ! $res )
    398             $res = new WP_Error('themes_api_failed', __('An unknown error occurred.'), $request['body']);
     406            $res = new WP_Error('themes_api_failed', __('An unknown error occurred.'), wp_remote_retrieve_body( $request ) );
    399407        }
    400408    }
Note: See TracChangeset for help on using the changeset viewer.