Error in function
-
Hello.
The plugin work fine, but it have a problen when you have a URL with ‘ ‘(space) o ‘~’. The problem is the function static urlencode_rfc3986 in class WP_REST_OAuth1, the definition is
protected static function urlencode_rfc3986( $value ) {
return str_replace( array( ‘+’, ‘%7E’ ), array( ‘ ‘, ‘~’ ), rawurlencode( $value));
}But really no make this function, because the str_replace need change the array, the new definition work:
protected static function urlencode_rfc3986( $value ) {
return str_replace( array( ‘ ‘, ‘~’ ), array( ‘+’, ‘%7E’ ), rawurlencode( $value ) );
}
The topic ‘Error in function’ is closed to new replies.