File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
plugins/optimization-detective Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ function od_register_endpoint(): void {
102
102
return new WP_Error (
103
103
'url_metric_storage_locked ' ,
104
104
__ ( 'URL Metric storage is presently locked for the current IP. ' , 'optimization-detective ' ),
105
- array ( 'status ' => 403 ) // TODO: Consider 423 Locked status code.
105
+ array ( 'status ' => 423 )
106
106
);
107
107
}
108
108
return true ;
Original file line number Diff line number Diff line change @@ -635,7 +635,7 @@ public function test_rest_request_locked(): void {
635
635
$ request = $ this ->create_request ( $ this ->get_valid_params () );
636
636
637
637
$ response = rest_get_server ()->dispatch ( $ request );
638
- $ this ->assertSame ( 403 , $ response ->get_status () );
638
+ $ this ->assertSame ( 423 , $ response ->get_status () );
639
639
$ this ->assertSame ( 'url_metric_storage_locked ' , $ response ->get_data ()['code ' ] );
640
640
}
641
641
You can’t perform that action at this time.
0 commit comments