From 7b6d9682e909f86b36ab9599b768bca78d1acce2 Mon Sep 17 00:00:00 2001 From: Ryan Asher Date: Wed, 15 Jul 2015 19:26:09 -0500 Subject: [PATCH] Fix function name misspelling: img_unautop incorrectly referenced in conditional as img_unauto. --- library/cleanup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/cleanup.php b/library/cleanup.php index 79987cc3d..01fe2bd0a 100644 --- a/library/cleanup.php +++ b/library/cleanup.php @@ -195,7 +195,7 @@ function foundationpress_image_editor($html, $id, $alt, $title) { endif; // Wrap images with figure tag - Credit: Robert O'Rourke - http://bit.ly/1q0WHFs . -if ( ! function_exists( 'img_unauto' ) ) : +if ( ! function_exists( 'img_unautop' ) ) : function img_unautop($pee) { $pee = preg_replace( '/

\\s*?(<\\/a>|)?\\s*<\\/p>/s', '

$1
', $pee ); return $pee;