Skip to content

Commit 1d13181

Browse files
committed
Make the validity filter more useful
1 parent 8db3960 commit 1d13181

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

inc/class-client.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,10 @@ public function check_redirect_uri( $uri ) {
216216
*
217217
* @param boolean $valid True if the callback URL is valid, false otherwise.
218218
* @param string $url Supplied callback URL.
219-
* @param WP_Post $consumer Consumer post; stored callback saved as `consumer` meta value.
219+
* @param string $registered_uri URI being checked.
220+
* @param Client $client OAuth 2 client object.
220221
*/
221-
$valid = apply_filters( 'rest_oauth.check_callback', $valid, $uri, $this );
222+
$valid = apply_filters( 'rest_oauth.check_callback', $valid, $uri, $registered_uri, $this );
222223
if ( $valid ) {
223224
// Stop checking, we have a match.
224225
break;

0 commit comments

Comments
 (0)