Changes in trunk/wp-admin/includes/theme.php [17264:18327]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/theme.php
r17264 r18327 164 164 * @since 1.5.0 165 165 * 166 * @return array Key is t emplate name, Value is template name166 * @return array Key is the template name, value is the filename of the template 167 167 */ 168 168 function get_page_templates() { … … 180 180 // don't allow template files in subdirectories 181 181 if ( false !== strpos($basename, '/') ) 182 continue; 183 184 if ( 'functions.php' == $basename ) 182 185 continue; 183 186 … … 269 272 'blue' => __( 'Blue' ), 270 273 'brown' => __( 'Brown' ), 274 'gray' => __( 'Gray' ), 271 275 'green' => __( 'Green' ), 272 276 'orange' => __( 'Orange' ), … … 297 301 298 302 __( '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' ) 313 321 ), 314 322 315 323 __( 'Subject' ) => array( 316 'holiday' => __( 'Holiday' ),324 'holiday' => __( 'Holiday' ), 317 325 'photoblogging' => __( 'Photoblogging' ), 318 'seasonal' => __( 'Seasonal' )326 'seasonal' => __( 'Seasonal' ) 319 327 ) 320 328 ); … … 394 402 $res = new WP_Error('themes_api_failed', __('An Unexpected HTTP Error occurred during the API request.'), $request->get_error_message() ); 395 403 } else { 396 $res = unserialize( $request['body']);404 $res = unserialize( wp_remote_retrieve_body( $request ) ); 397 405 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 ) ); 399 407 } 400 408 }
Note: See TracChangeset
for help on using the changeset viewer.