Title: [Plugin: cbnet Ping Optimizer] deprecated get_settings()
Last modified: August 20, 2016

---

# [Plugin: cbnet Ping Optimizer] deprecated get_settings()

 *  Resolved [rlance](https://wordpress.org/support/users/rlance/)
 * (@rlance)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-cbnet-ping-optimizer-deprecated-get_settings/)
 * Function: get_settings()
    Used in wp-content/plugins/cbnet-ping-optimizer/cbnet-
   ping-optimizer.php on lines 333 and 372.
 *  Use get_option() instead.
    Deprecated in version 2.1.
 * [http://wordpress.org/extend/plugins/cbnet-ping-optimizer/](http://wordpress.org/extend/plugins/cbnet-ping-optimizer/)

Viewing 1 replies (of 1 total)

 *  [fnord245](https://wordpress.org/support/users/fnord245/)
 * (@fnord245)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-cbnet-ping-optimizer-deprecated-get_settings/#post-2313482)
 * This patch replaces get_settings with get_option:
 *     ```
       --- cbnet-ping-optimizer.php.orig       2012-02-19 00:14:05.957040480 +0100
       +++ cbnet-ping-optimizer.php    2012-02-19 00:15:43.801213243 +0100
       @@ -330,7 +330,7 @@
                                               do_trackbacks($trackback->ID);
                               }
                       }
       -               $services = get_settings('ping_sites');
       +               $services = get_option('ping_sites');
                       $services = preg_replace("|(\s)+|", '$1', $services);
                       $services = trim($services);
                       if ( '' != $services ) {
       @@ -369,10 +369,10 @@
                               // the extendedPing format should be "blog name", "blog url", "check url" (post url), and "feed url",
                               // but it would seem as if the standard has been mixed up. It's therefore good to repeat the feed url.
                               // $this->_post_type = 2 if new post and 3 if future post
       -                       if ( $client->query('weblogUpdates.extendedPing', get_settings('blogname'), $home, $check_url, get_bloginfo('rss2_url')) ) {
       +                       if ( $client->query('weblogUpdates.extendedPing', get_option('blogname'), $home, $check_url, get_bloginfo('rss2_url')) ) {
                                       $this->cbnetpoLog($server." was successfully pinged (extended format)", $this->_post_type, $this->_post_title);
                               } else {
       -                               if ( $client->query('weblogUpdates.ping', get_settings('blogname'), $home) ) {
       +                               if ( $client->query('weblogUpdates.ping', get_option('blogname'), $home) ) {
                                               $this->cbnetpoLog($server." was successfully pinged", $this->_post_type, $this->_post_title);
                                       } else {
                                               $this->cbnetpoLog($server." could not be pinged. Error message: \"".$client->error->message."\"", $this->_post_type, $this->_post_title);
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: cbnet Ping Optimizer] deprecated get_settings()’ is closed to
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cbnet-ping-optimizer.svg)
 * [cbnet Ping Optimizer](https://wordpress.org/plugins/cbnet-ping-optimizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cbnet-ping-optimizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cbnet-ping-optimizer/)
 * [Active Topics](https://wordpress.org/support/plugin/cbnet-ping-optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cbnet-ping-optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cbnet-ping-optimizer/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [fnord245](https://wordpress.org/support/users/fnord245/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-cbnet-ping-optimizer-deprecated-get_settings/#post-2313482)
 * Status: resolved