Skip to content

Commit

Permalink
remove sanitization of hashtag when plugin is used on mashshare.net
Browse files Browse the repository at this point in the history
  • Loading branch information
rene-hermenau committed May 31, 2016
1 parent 4c668f4 commit 516905d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/template-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ function mashsb_get_twitter_username() {
}

// If plugin is not running on mashshare.net or dev environment replace @mashshare
if( $_SERVER['HTTP_HOST'] !== 'mashshare.net' && $_SERVER['HTTP_HOST'] !== 'src.wordpress-develop.dev' ) {
if( $_SERVER['HTTP_HOST'] !== 'www.mashshare.net' && $_SERVER['HTTP_HOST'] !== 'src.wordpress-develop.dev' ) {
//Sanitize it
$replace_first = str_ireplace( 'mashshare', '', $mashsb_options['mashsharer_hashtag'] );
$replace_second = str_ireplace( '@', '', $replace_first );
Expand Down

0 comments on commit 516905d

Please sign in to comment.