Skip to content

Commit

Permalink
Remove setup code related to previous versions; refs #2
Browse files Browse the repository at this point in the history
  • Loading branch information
davekellam committed Jan 31, 2014
1 parent 76aa7c7 commit a6c5a1d
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions flickrrss.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,9 @@

if ( ! class_exists( 'flickrRSS' ) ) {
class flickrRSS {

function flickrRSS() {
$this->version = "6.0";
}

function setupActivation() {

// update version number
if ( get_option( 'flickrRSS_version') != $this->version )
update_option(' flickrRSS_version', $this->version );
}

function fixArguments( $args ) {
Expand All @@ -46,8 +39,6 @@ function fixArguments( $args ) {

function getSettings() {

if (!get_option('flickrRSS_settings')) $this->setupActivation();

$settings = array(
/*== Content params ==*/
// The type of Flickr images that you want to show. Possible values: 'user', 'favorite', 'set', 'group', 'public'
Expand Down Expand Up @@ -225,7 +216,6 @@ function printSettingsPage() {
$flickrRSS = new flickrRSS();
add_action( 'admin_menu', array(&$flickrRSS, 'setupSettingsPage') );
add_action( 'plugins_loaded', array(&$flickrRSS, 'setupWidget') );
register_activation_hook( __FILE__, array( &$flickrRSS, 'setupActivation' ));

/**
* Main function to call flickrRSS in your templates
Expand Down

0 comments on commit a6c5a1d

Please sign in to comment.