From 0e35c4671d92fd6e1ec12f3720b246ce5207b107 Mon Sep 17 00:00:00 2001 From: Jonny Harris <148061917+jonnynews@users.noreply.github.com> Date: Fri, 24 Nov 2023 16:13:26 +0000 Subject: [PATCH] Fix key name --- lib/class-wp-rest-oauth1-admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/class-wp-rest-oauth1-admin.php b/lib/class-wp-rest-oauth1-admin.php index f95c1e8..6ed5ad2 100644 --- a/lib/class-wp-rest-oauth1-admin.php +++ b/lib/class-wp-rest-oauth1-admin.php @@ -166,7 +166,7 @@ protected static function validate_parameters( $params ) { return array( 'name' => wp_filter_post_kses( $params['name'] ), 'description' => wp_filter_post_kses( $params['description'] ), - 'callback' => $params['description'], + 'callback' => $params['callback'], ); }