[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
elementor
/
app
/
modules
/
import-export-customization
/
data
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 routes
SET
[ DEL ]
📄 controller.php
1,598 B
SET
[ EDIT ]
|
[ DEL ]
📄 response.php
925 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: response.php
<?php namespace Elementor\App\Modules\ImportExportCustomization\Data; class Response { private array $data; private array $meta; public function __construct( array $data, array $meta = [] ) { $this->data = $data; $this->meta = $meta; } public static function success( array $data, array $meta = [] ): \WP_REST_Response { $response = new self( $data, $meta ); return $response->to_wp_rest_response( 200 ); } public static function error( string $code, $message, array $meta = [] ): \WP_REST_Response { $response = new self([ 'code' => $code, 'message' => $message, ], $meta); return $response->to_wp_rest_response( 500 ); } private function to_array(): array { return [ 'data' => $this->data, 'meta' => $this->meta, ]; } private function to_wp_rest_response( int $status_code = 200 ): \WP_REST_Response { return new \WP_REST_Response( $this->to_array(), $status_code ); } }