Editor::pre_get()

Description #

Replace temporary images with img tags.

Changelog #

VersionDescription
4.1.8Introduced.

Source #

File: lib/form/class-editor.php

	public function pre_get() {
		$value = $this->value();

		if ( $this->have_errors() || ! $value ) {
			return;
		}

		$this->value = preg_replace_callback( '/<img\s+src="([^"]+)"[^>]+>/i', array( $this, 'image_process' ), $value );
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment