Permalink
Browse files

Merge pull request #296 from Beaver6813/master

Wordpress: HTML decode selectors when upgrading from pre 2.5
  • Loading branch information...
2 parents dcfebbd + 9ec1b55 commit 318b745ed69892e43c165745c5c42e1b08241eb1 @67726e 67726e committed Dec 25, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 wordpress-plugin/infinite-scroll.php
View
7 wordpress-plugin/infinite-scroll.php
@@ -227,6 +227,13 @@ function upgrade( $from , $to ) {
}
+ //pre 2.5 we html encoded selectors, we don't do this anymore
+ foreach ( array( 'contentSelector', 'itemSelector', 'navSelector', 'nextSelector' ) as $field ) {
+ if ( isset( $new[$field] ) ) {
+ $new[$field] = html_entity_decode($new[$field]);
+ }
+ }
+
//regardless of which upgrade we did, move loading string to array
$new['loading'] = array( );

0 comments on commit 318b745

Please sign in to comment.