Function ereg() is deprecated error
-
I noticed the following.
Function ereg() is deprecated in /data/rddotcom/wp-content/plugins/ie6-upgrade-option/ie6-upgrade-option.php on line 127
Proposed fix:
$browser = strtolower($_SERVER['HTTP_USER_AGENT']); if ( stripos( $browser, "msie" )) { $plugin_dir = basename(dirname(__FILE__)); load_plugin_textdomain('ie6option', 'wp-content/plugins/' . $plugin_dir, $plugin_dir ); $obj_ie6option = new ie6option(); add_action('wp_footer', array($obj_ie6option, 'add_footer')); }
Original:
$browser = strtolower($_SERVER['HTTP_USER_AGENT']); if(ereg("msie", $browser)){ $plugin_dir = basename(dirname(__FILE__)); load_plugin_textdomain('ie6option', 'wp-content/plugins/' . $plugin_dir, $plugin_dir ); $obj_ie6option = new ie6option(); add_action('wp_footer', array($obj_ie6option, 'add_footer')); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Function ereg() is deprecated error’ is closed to new replies.