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'], ); }