Changeset 52025 for trunk/src/wp-includes/class-http.php
- Timestamp:
- 11/06/2021 09:55:50 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-http.php
r51877 r52025 656 656 * @since 2.7.0 657 657 * 658 * @param string $str Response The full response string.658 * @param string $str_response The full response string. 659 659 * @return array { 660 660 * Array with response headers and body. … … 664 664 * } 665 665 */ 666 public static function processResponse( $str Response ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid667 $res = explode( "\r\n\r\n", $strResponse, 2 );666 public static function processResponse( $str_response ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid 667 $response = explode( "\r\n\r\n", $str_response, 2 ); 668 668 669 669 return array( 670 'headers' => $res [0],671 'body' => isset( $res [1] ) ? $res[1] : '',670 'headers' => $response[0], 671 'body' => isset( $response[1] ) ? $response[1] : '', 672 672 ); 673 673 }
Note: See TracChangeset
for help on using the changeset viewer.