Skip to content

Commit

Permalink
Fix bug with slide group hyphens
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterUpfold committed Apr 16, 2012
1 parent 7750cc0 commit 3d1f3e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion total-slider/slides_backend.php
Expand Up @@ -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_') ) );
}


Expand Down

0 comments on commit 3d1f3e8

Please sign in to comment.