Skip to content

Commit 43a424c

Browse files
committed
fixed wp3.6. issues
1 parent 59aee85 commit 43a424c

File tree

7 files changed

+2457
-198
lines changed

7 files changed

+2457
-198
lines changed

admin/admin-functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function of_get_header_classes_array() {
7272
foreach ($of_options as $value) {
7373

7474
if ($value['type'] == 'heading') {
75-
$hooks[] = ereg_replace("[^A-Za-z0-9]", "", strtolower($value['name']) );
75+
$hooks[] = preg_replace("/[^A-Za-z0-9]/", "", strtolower($value['name']) );
7676
}
7777

7878
}

admin/admin-interface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,8 +1136,8 @@ public static function optionsframework_machine($options) {
11361136
if($counter >= 2){
11371137
$output .= '</div>'."\n";
11381138
}
1139-
$header_class = ereg_replace("[^A-Za-z0-9]", "", strtolower($value['name']) );
1140-
$jquery_click_hook = ereg_replace("[^A-Za-z0-9]", "", strtolower($value['name']) );
1139+
$header_class = preg_replace("/[^A-Za-z0-9]/", "", strtolower($value['name']) );
1140+
$jquery_click_hook = preg_replace("/[^A-Za-z0-9]/", "", strtolower($value['name']) );
11411141
$jquery_click_hook = "of-option-" . $jquery_click_hook;
11421142
$menu .= '<li class="'. $header_class .'"><a title="'. $value['name'] .'" href="#'. $jquery_click_hook .'">'. $value['name'] .'</a></li>';
11431143
$output .= '<div class="group" id="'. $jquery_click_hook .'"><h2>'.$value['name'].'</h2>'."\n";

0 commit comments

Comments
 (0)