Changeset 45052

Show
Ignore:
Timestamp:
05/09/08 22:57:51 (2 months ago)
Author:
lmbbox
Message:

Moved $this->_setup_display() after _get_options and save_options.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lmbbox-wordpress-plugin-api/trunk/wordpress-plugin-api.php

    r44578 r45052  
    8383            $this->__plugin_file = $file; 
    8484 
    85             // Needs to be set in the class extending this API class 
    86             $this->_setup_options(); 
    87             $this->_setup_display(); 
    88  
    89             // Handle Options ... 
     85            $this->_setup_options(); // Needs to be set in the class extending this API class 
    9086            $this->_get_options(); 
    9187            $this->__save_options(); 
     88            $this->_setup_display(); // Needs to be set in the class extending this API class 
    9289 
    9390            // Add WordPress Actions and Filters 
     
    9794            $this->_add_hook('action', 'admin_menu', array(&$this, '__register_menu_pages')); 
    9895            $this->_add_hook('action', 'plugins_loaded', array(&$this, '__register_widgets')); 
    99             $this->_setup_hooks(); 
     96            $this->_setup_hooks(); // Needs to be set in the class extending this API class 
    10097      } 
    10198