Changeset 38459 for trunk/src/wp-admin/includes/credits.php
- Timestamp:
- 08/31/2016 05:48:49 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/credits.php
r36069 r38459 11 11 * Retrieve the contributor credits. 12 12 * 13 * @global string $wp_version The current WordPress version.14 *15 13 * @since 3.2.0 16 14 * … … 18 16 */ 19 17 function wp_credits() { 20 global $wp_version;18 $wp_version = get_bloginfo( 'version' ); 21 19 $locale = get_locale(); 22 20 … … 27 25 || ( isset( $results['data']['version'] ) && strpos( $wp_version, $results['data']['version'] ) !== 0 ) 28 26 ) { 29 $response = wp_remote_get( "http://api.wordpress.org/core/credits/1.1/?version= $wp_version&locale=$locale" );27 $response = wp_remote_get( "http://api.wordpress.org/core/credits/1.1/?version={$wp_version}&locale={$locale}" ); 30 28 31 29 if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) )
Note: See TracChangeset
for help on using the changeset viewer.