From 3360bbd48d1f36fb5eb72d94f90be3402a1ca6a8 Mon Sep 17 00:00:00 2001 From: Josh Rathke Date: Wed, 9 Dec 2015 07:28:47 -0700 Subject: [PATCH 1/2] Fixed Undefined Variable Bug Found in #594 --- library/cleanup.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/cleanup.php b/library/cleanup.php index 3bdcf9c90..fe27b7ede 100755 --- a/library/cleanup.php +++ b/library/cleanup.php @@ -171,6 +171,8 @@ public function recreate_img_tag( $tag ) { } // Filter Through Class Segments & Find Alignment Classes and Size Classes + $filtered_classes = array(); + foreach ( $class_segs as $class_seg ) { if ( substr( $class_seg, 0, 5 ) === 'align' || substr( $class_seg, 0, 4 ) === 'size' ) { $filtered_classes[] = $class_seg; From 7d2935d34a7d710c9c35b8a1bb15866683acce27 Mon Sep 17 00:00:00 2001 From: Josh Rathke Date: Wed, 9 Dec 2015 07:32:27 -0700 Subject: [PATCH 2/2] Cleaned Up WhiteSpace --- library/cleanup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/cleanup.php b/library/cleanup.php index fe27b7ede..c2b7d2371 100755 --- a/library/cleanup.php +++ b/library/cleanup.php @@ -172,7 +172,7 @@ public function recreate_img_tag( $tag ) { // Filter Through Class Segments & Find Alignment Classes and Size Classes $filtered_classes = array(); - + foreach ( $class_segs as $class_seg ) { if ( substr( $class_seg, 0, 5 ) === 'align' || substr( $class_seg, 0, 4 ) === 'size' ) { $filtered_classes[] = $class_seg;