Skip to content
Browse files

Fix bug with slide group hyphens

  • Loading branch information...
1 parent 7750cc0 commit 3d1f3e8719c17ee921d7187e485f4a4921f305be @PeterUpfold PeterUpfold committed Apr 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 total-slider/slides_backend.php
View
2 total-slider/slides_backend.php
@@ -254,7 +254,7 @@ public function sanitizeSlideGroupSlug($slug)
/*
Sanitize a slide group slug, for accessing the wp_option row with that slug name.
*/
- return substr(preg_replace('/[^a-zA-Z0-9]/', '', $slug), 0, 64);
+ return substr(preg_replace('/[^a-zA-Z0-9_\-]/', '', $slug), 0, (63 - strlen('total_slider_slides_') ) );
}

0 comments on commit 3d1f3e8

Please sign in to comment.
Something went wrong with that request. Please try again.