[ 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
/
core
/
utils
/
api
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 error-builder.php
840 B
SET
[ EDIT ]
|
[ DEL ]
📄 parse-errors.php
1,023 B
SET
[ EDIT ]
|
[ DEL ]
📄 parse-result.php
612 B
SET
[ EDIT ]
|
[ DEL ]
📄 response-builder.php
855 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: response-builder.php
<?php namespace Elementor\Core\Utils\Api; class Response_Builder { private $data; private int $status; private array $meta = []; const NO_CONTENT = 204; private function __construct( $data, $status ) { $this->data = $data; $this->status = $status; } public static function make( $data = null, $status = 200 ) { return new self( $data, $status ); } public function set_meta( array $meta ) { $this->meta = $meta; return $this; } public function set_status( int $status ) { $this->status = $status; return $this; } public function no_content() { return $this->set_status( static::NO_CONTENT ); } public function build() { $res_data = static::NO_CONTENT === $this->status ? null : [ 'data' => $this->data, 'meta' => $this->meta, ]; return new \WP_REST_Response( $res_data, $this->status ); } }