← All changes
|
frameworks/codestar-framework/fields/content/content.php
+28
-28
2.3.4
→
2.4.0
View file →
| @@ -1,28 +1,28 @@ | ||
| 1 | -<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly. | |
| 2 | -/** | |
| 3 | - * | |
| 4 | - * Field: content | |
| 5 | - * | |
| 6 | - * @since 1.0.0 | |
| 7 | - * @version 1.0.0 | |
| 8 | - * | |
| 9 | - */ | |
| 10 | -if ( ! class_exists( 'CSF_Field_content' ) ) { | |
| 11 | - class CSF_Field_content extends CSF_Fields { | |
| 12 | - | |
| 13 | - public function __construct( $field, $value = '', $unique = '', $where = '', $parent = '' ) { | |
| 14 | - parent::__construct( $field, $value, $unique, $where, $parent ); | |
| 15 | - } | |
| 16 | - | |
| 17 | - public function render() { | |
| 18 | - | |
| 19 | - if ( ! empty( $this->field['content'] ) ) { | |
| 20 | - | |
| 21 | - echo $this->field['content']; | |
| 22 | - | |
| 23 | - } | |
| 24 | - | |
| 25 | - } | |
| 26 | - | |
| 27 | - } | |
| 28 | -} | |
| 1 | +<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly. | |
| 2 | +/** | |
| 3 | + * | |
| 4 | + * Field: content | |
| 5 | + * | |
| 6 | + * @since 1.0.0 | |
| 7 | + * @version 1.0.0 | |
| 8 | + * | |
| 9 | + */ | |
| 10 | +if ( ! class_exists( 'CSF_Field_content' ) ) { | |
| 11 | + class CSF_Field_content extends CSF_Fields { | |
| 12 | + | |
| 13 | + public function __construct( $field, $value = '', $unique = '', $where = '', $parent = '' ) { | |
| 14 | + parent::__construct( $field, $value, $unique, $where, $parent ); | |
| 15 | + } | |
| 16 | + | |
| 17 | + public function render() { | |
| 18 | + | |
| 19 | + if ( ! empty( $this->field['content'] ) ) { | |
| 20 | + | |
| 21 | + echo wp_kses_post( $this->field['content'] ); | |
| 22 | + | |
| 23 | + } | |
| 24 | + | |
| 25 | + } | |
| 26 | + | |
| 27 | + } | |
| 28 | +} | |