Skip to content

Commit

Permalink
Switch to strpos instead of preg_match
Browse files Browse the repository at this point in the history
Closes #264
  • Loading branch information
bfintal committed Aug 27, 2015
1 parent ee24a85 commit 30124b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class-titan-framework.php
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ public function addCustomizerSaveFilter( $value, $optionName, $oldValue ) {
$theme = get_option( 'stylesheet' );

// Intercept theme mods only
if ( ! preg_match( '/^theme_mods_' . $theme . '/', $optionName ) ) {
if ( strpos( $optionName, 'theme_mods_' . $theme ) !== 0 ) {
return $value;
}

Expand Down

0 comments on commit 30124b7

Please sign in to comment.