packages/kirki-framework/control-editor/src/Field/Editor.php
protected function set_type() {
		global $wp_version;

		if ( version_compare( $wp_version, '4.8' ) >= 0 ) {
			$this->type = 'kirki-editor';
			return;
		}

		// Fallback for older WordPress versions.
		$this->type = 'kirki-generic';
		if ( ! is_array( $this->choices ) ) {
			$this->choices = [];
		}
		$this->choices['element'] = 'textarea';
		$this->choices['rows']    = '5';
	}
protected function set_type() {
		global $wp_version;

		if ( version_compare( $wp_version, '4.8' ) >= 0 ) {
			$this->type = 'kirki-editor';
			return;
		}

		// Fallback for older WordPress versions.
		$this->type = 'kirki-generic';
		if ( ! is_array( $this->choices ) ) {
			$this->choices = [];
		}
		$this->choices['element'] = 'textarea';
		$this->choices['rows']    = '5';
	}
protected function set_type ( ) { global $ wp_version ; if ( version_compare ( $ wp_version , '4.8' ) >= 0 ) { $ this -> type = 'kirki-editor' ; return ; } // Fallback for older WordPress versions. $ this -> type = 'kirki-generic' ; if ( ! is_array ( $ this -> choices ) ) { $ this -> choices = [ ] ; } $ this -> choices [ 'element' ] = 'textarea' ; $ this -> choices [ 'rows' ] = '5' ; }
Sets the control type.

@access protected
@since 1.0
@return void
Sets the control type .