Skip to content

Commit

Permalink
[change] context to scope
Browse files Browse the repository at this point in the history
  • Loading branch information
osmansufy committed Nov 22, 2024
1 parent 0ca4711 commit b286593
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/REST/AdminNoticeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ public function register_routes() {
* @return WP_REST_Response
*/
public function dokan_get_admin_notices( WP_REST_Request $request ) {
$notice_context = $request->get_param( 'scope' );
$notices = Helper::dokan_get_admin_notices( $notice_context );
$notice_scope = $request->get_param( 'scope' );
$notices = Helper::dokan_get_admin_notices( $notice_scope );

return rest_ensure_response( $notices );
}
Expand Down

0 comments on commit b286593

Please sign in to comment.