/home/techb158/public_html/wp-content/plugins/kirki/app/Http/Requests/Page
NameSizeModeActions
GlobalStyleRequest.php9150644editdlrm
PageDataRequest.php24110644editdlrm
PageRequest.php25480644editdlrm
PageSettingsRequest.php12450644editdlrm
PageUpdateRequest.php6010644editdlrm
PopupRequest.php8970644editdlrm
RenameStagingVersionRequest.php5070644editdlrm
StagingVersionRequest.php4210644editdlrm
TogglePageSymbolRequest.php5980644editdlrm
Edit: /home/techb158/public_html/wp-content/plugins/kirki/app/Http/Requests/Page/PageRequest.php (2548B)
merge([ 'blocks' => ensure_array($this->blocks), 'conditions' => ensure_array($this->conditions), 'custom_template' => ensure_array($this->custom_template), ]); } public function rules() { return [ 'post_title' => 'required|string', 'post_type' => 'required|string', 'blocks' => 'nullable|array', 'conditions' => 'nullable|array', 'collection_type' => 'nullable|string', 'utility_page_type' => [ 'nullable', 'string', 'in:' . UtilityPageType::join(), function ($value) { if ($this->post_type === PostTypes::UTILITY) { if (empty($value)) { return __("Utility page type is required.", 'kirki'); } $exists = UtilityPageService::create()->exists($value); if ($exists) { /** translators: %s: Utility page type */ return sprintf(__("Utility page of type %s already exists."), $value); } } return true; } ], 'custom_template' => 'nullable|array', 'custom_template.url' => 'nullable|url', 'content_manager_collection_id' => 'nullable|integer', 'content_manager_page_kind' => 'nullable|string|in:index,details', ]; } public function filters() { return [ 'post_title' => Sanitizer::TEXT, 'post_type' => Sanitizer::TEXT, 'blocks' => Sanitizer::ARRAY, 'conditions' => Sanitizer::ARRAY, 'collection_type' => Sanitizer::TEXT, 'utility_page_type' => Sanitizer::TEXT, 'custom_template' => Sanitizer::ARRAY, 'custom_template.url' => Sanitizer::URL, 'content_manager_collection_id' => Sanitizer::INT, 'content_manager_page_kind' => Sanitizer::TEXT, ]; } }