File tree Expand file tree Collapse file tree
src/wp-includes/collaboration Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ public function register_routes(): void {
173173 * @return bool|WP_Error True if user has permission, otherwise WP_Error with details.
174174 */
175175 public function check_permissions ( WP_REST_Request $ request ) {
176- $ rooms = $ request-> get_param ( 'rooms ' ) ;
176+ $ rooms = $ request[ 'rooms ' ] ;
177177
178178 foreach ( $ rooms as $ room ) {
179179 $ room = $ room ['room ' ];
@@ -222,7 +222,7 @@ public function check_permissions( WP_REST_Request $request ) {
222222 * @return WP_REST_Response|WP_Error Response object or error.
223223 */
224224 public function handle_request ( WP_REST_Request $ request ) {
225- $ rooms = $ request-> get_param ( 'rooms ' ) ;
225+ $ rooms = $ request[ 'rooms ' ] ;
226226 $ response = array (
227227 'rooms ' => array (),
228228 );
You can’t perform that action at this time.
0 commit comments