[ Root System Explorer ]
Location:
Root
/
home
/
svaxkys
/
www
/
Arcoetanche
/
wp-content
/
plugins
/
redux-framework
/
redux-core
/
inc
/
validation
/
url
+ Folder
+ File
Upload
Editing: class-redux-validation-url.php
<?php /** * URL validation * * @package Redux Framework * @subpackage Validation * @author Kevin Provance (kprovance) & Dovy Paukstys * @version 4.0.0 */ defined( 'ABSPATH' ) || exit; if ( ! class_exists( 'Redux_Validation_Url', false ) ) { /** * Class Redux_Validation_Url */ class Redux_Validation_Url extends Redux_Validate { /** * Field Render Function. * Takes the vars and validates them * * @since ReduxFramework 1.0.0 */ public function validate() { $this->field['msg'] = ( isset( $this->field['msg'] ) ) ? $this->field['msg'] : esc_html__( 'You must provide a valid URL for this option.', 'redux-framework' ); if ( false === filter_var( $this->value, FILTER_VALIDATE_URL ) ) { $this->value = ( isset( $this->current ) ) ? $this->current : ''; $this->field['current'] = $this->value; $this->error = $this->field; } else { $this->value = esc_url_raw( $this->value ); } } } }
SAVE CHANGES
[ CANCEL ]
Name
Type
Actions
.. (Parent Directory)
📄 class-redux-validation-url.php
FILE
Ren
[EDIT]
DEL
📄 index.php
FILE
Ren
[EDIT]
DEL