Файловый менеджер - Редактировать - /home/goldin10/public_html/getoutyourbox.com/wp-content/plugins/caldera-forms/cf2/Fields/Handlers/FileFieldHandler.php
Error occurred
Назад
<?php namespace calderawp\calderaforms\cf2\Fields\Handlers; class FileFieldHandler extends FieldHandler { /** * Tracks transients used * * @since 1.8.0 * * @var array */ protected $transientsUsed; /** @inheritdoc */ public function processField($entry, $field, $form) { if (is_null($entry)) { return $entry; } if (is_string($entry)) { $cached = $this-> container ->getTransientsApi() ->getTransient($entry); $this->transientsUsed[$this->key($field, $form)] = $entry; if ($cached !== $entry) { return $cached; } } return $entry; } /** @inheritdoc */ public function saveField($entry, $field, $form, $entry_id) { $key = $this->key($field, $form); if (isset($this->transientsUsed[$key])) { $this->container ->getTransientsApi() ->deleteTransient($this->transientsUsed[$key]); unset( $this->transientsUsed[$key]); } return $entry; } /** @inheritdoc */ public function viewField($field_value, $field, $form) { return $field_value; } /** * Create the key for the array $this->transientsUsed * * @since 1.8.0 * * @param array $field Field config * @param array $form Form config * @return string */ protected function key($field, $form) { return $field['ID'] . $form['ID']; } }
| ver. 1.4 |
Github
|
.
| PHP 7.2.34 | Генерация страницы: 0.05 |
proxy
|
phpinfo
|
Настройка