WordPress.org

Plugin Directory

subscribe2

Opened 11 years ago

Closed 11 years ago

#511 closed defect (duplicate)

Revamp the options

Reported by: ruckerz Owned by: mattyrob
Priority: normal Severity: normal
Plugin: subscribe2 Keywords:
Cc:

Description

To cut down on get_option and update_option, let's try seralizing them into class variable subscribe2_options.

1) in subscribe2 constructor, load include.php which initializes $this->subscribe2_options via get_option, and checks each option against empty() and sets a default.

2) Modded options_menu() to reflect new options setup, I think I've got everything.

3) added a routine to upgrade() that checks for old (s2*) options, and updates subscribe2_options, as well as deletes the old option (we should clean up after ourselves ). I left s2_future_posts because it needs to be recoded as adding a future_post for wp-cron is not as trivial as adding to the array anymore. Marked with a TODO

Thanks to http://familypress.net/photopress/ for this setup.

Change History (2)

comment:1 @mattyrob11 years ago

  • Owner changed from skippy to mattyrob

comment:2 @mattyrob11 years ago

  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate Ticket see [here]

Note: See TracTickets for help on using tickets.