Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #296 from Beaver6813/master

Wordpress: HTML decode selectors when upgrading from pre 2.5
  • Loading branch information...
commit 318b745ed69892e43c165745c5c42e1b08241eb1 2 parents dcfebbd + 9ec1b55
@67726e 67726e authored
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( );
Please sign in to comment.
Something went wrong with that request. Please try again.