Esempio n. 1
0
 public function __construct()
 {
     self::$options = array_merge(self::$options, $this->getAllOpt());
     if (!is_array(self::$options)) {
         self::reset_options();
     }
 }
Esempio n. 2
0
 protected static function save_options()
 {
     self::$options = array('gravatar' => $_POST['gravatar'], 'googleapis' => $_POST['googleapis'], 'worg' => $_POST['worg'], 'wpcom' => $_POST['wpcom']);
     update_option('moecdn_options', self::$options);
     update_option('moecdn_collect', $_POST['collect']);
 }