Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#3 Replace get_settings() as it is deprecated

open
5
2009-01-26
2009-01-26
Jeremy Clarke
No

hi this is just a quick change. the get_settings() function has been deprecated and you should instead use get_option() for getting stuff form the options table.

in role-management.php (i checked the trunk version to make sure) line 17 looks like:

17 $this->manage_roles_uri = get_settings('siteurl') . '/wp-admin/'.$path_file.'?page=' . $this->file_basename;

If you turn on define('WP_DEBUG', true); in wp-config.php this causes persistent errors about get_settings being out of date.

please change it to be

$this->manage_roles_uri = get_bloginfo('url') . '/wp-admin/'.$path_file.'?page=' . $this->file_basename;

or something else that isn't deprecated.

Thanks! If you have a second could you also look at my other bug report?

Discussion