Code Duplication    Length = 7-7 lines in 3 locations

classes/fields/html.php 1 location

@@ 137-143 (lines=7) @@
134
			$value = wpautop( $value );
135
		}
136
137
		if ( 1 === (int) pods_v( static::$type . '_allow_shortcode', $options, 0 ) ) {
138
			if ( 1 === (int) pods_v( static::$type . '_wpautop', $options, 1 ) ) {
139
				$value = shortcode_unautop( $value );
140
			}
141
142
			$value = do_shortcode( $value );
143
		}
144
145
		return $value;
146
	}

classes/fields/paragraph.php 1 location

@@ 188-194 (lines=7) @@
185
			$value = wpautop( $value );
186
		}
187
188
		if ( 1 === (int) pods_v( static::$type . '_allow_shortcode', $options, 0 ) ) {
189
			if ( 1 === (int) pods_v( static::$type . '_wpautop', $options, 1 ) ) {
190
				$value = shortcode_unautop( $value );
191
			}
192
193
			$value = do_shortcode( $value );
194
		}
195
196
		if ( function_exists( 'Markdown' ) && 1 === (int) pods_v( static::$type . '_allow_markdown', $options ) ) {
197
			$value = Markdown( $value );

classes/fields/wysiwyg.php 1 location

@@ 198-204 (lines=7) @@
195
			$value = wpautop( $value );
196
		}
197
198
		if ( 1 === (int) pods_v( static::$type . '_allow_shortcode', $options, 0 ) ) {
199
			if ( 1 === (int) pods_v( static::$type . '_wpautop', $options, 1 ) ) {
200
				$value = shortcode_unautop( $value );
201
			}
202
203
			$value = do_shortcode( $value );
204
		}
205
206
		if ( function_exists( 'Markdown' ) && 1 === (int) pods_v( static::$type . '_allow_markdown', $options ) ) {
207
			$value = Markdown( $value );