Changeset 19000
- Timestamp:
- 10/19/2011 04:48:00 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-http.php
r18806 r19000 181 181 if ( is_array( $r['body'] ) || is_object( $r['body'] ) ) { 182 182 $r['body'] = http_build_query( $r['body'], null, '&' ); 183 $r['headers']['Content-Type'] = 'application/x-www-form-urlencoded; charset=' . get_option( 'blog_charset' ); 183 if ( ! isset( $r['headers']['Content-Type'] ) ) 184 $r['headers']['Content-Type'] = 'application/x-www-form-urlencoded; charset=' . get_option( 'blog_charset' ); 184 185 $r['headers']['Content-Length'] = strlen( $r['body'] ); 185 186 }
Note: See TracChangeset
for help on using the changeset viewer.