Changes in trunk/wp-admin/includes/theme.php [17264:17928]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/theme.php
r17264 r17928 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 … … 394 397 $res = new WP_Error('themes_api_failed', __('An Unexpected HTTP Error occurred during the API request.'), $request->get_error_message() ); 395 398 } else { 396 $res = unserialize( $request['body']);399 $res = unserialize( wp_remote_retrieve_body( $request ) ); 397 400 if ( ! $res ) 398 $res = new WP_Error('themes_api_failed', __('An unknown error occurred.'), $request['body']);401 $res = new WP_Error('themes_api_failed', __('An unknown error occurred.'), wp_remote_retrieve_body( $request ) ); 399 402 } 400 403 }
Note: See TracChangeset
for help on using the changeset viewer.