Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*original archive sendpress.php*/
- /****************************************************************************************/
- function plugin_activation(){
- if ( version_compare( $GLOBALS['wp_version'], SENDPRESS_MINIMUM_WP_VERSION, '<' ) ) {
- deactivate_plugins( __FILE__ );
- wp_die( sprintf( __('SendPress requires WordPress version %s or later.', 'sendpress'), SENDPRESS_MINIMUM_WP_VERSION) );
- } else {
- if( SendPress_Option::get('version','0') == '0' ){
- SendPress_Option::set('sendpress_ignore_087', 'true');
- require_once(SENDPRESS_PATH .'inc/db/tables.php');
- require_once(SENDPRESS_PATH .'inc/db/status.table.php');
- require_once(SENDPRESS_PATH .'inc/db/open.click.table.php');
- SendPress_Option::set( 'version' , SENDPRESS_VERSION );
- }
- }
- //Make sure we stop the old action from running
- wp_clear_scheduled_hook('sendpress_cron_action_run');
- SendPress_Option::set( 'permalink_rebuild' , true );
- SendPress_Option::set( 'install_date' , time() );
- }
- /*************************************************************************************/
- /*Updated*/
- function plugin_activation(){
- if ( version_compare( $GLOBALS['wp_version'], SENDPRESS_MINIMUM_WP_VERSION, '<' ) ) {
- deactivate_plugins( __FILE__ );
- wp_die( sprintf( __('SendPress requires WordPress version %s or later.', 'sendpress'), SENDPRESS_MINIMUM_WP_VERSION) );
- } else {
- //if( SendPress_Option::get('version','0') == '0' ){
- SendPress_Option::set('sendpress_ignore_087', 'true');
- require_once(SENDPRESS_PATH .'inc/db/tables.php');
- require_once(SENDPRESS_PATH .'inc/db/status.table.php');
- require_once(SENDPRESS_PATH .'inc/db/open.click.table.php');
- SendPress_Option::set( 'version' , SENDPRESS_VERSION );
- //}
- }
- //Make sure we stop the old action from running
- wp_clear_scheduled_hook('sendpress_cron_action_run');
- SendPress_Option::set( 'permalink_rebuild' , true );
- SendPress_Option::set( 'install_date' , time() );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement