Skip to content

Commit

Permalink
Remove site information to be pass on the other server
Browse files Browse the repository at this point in the history
  • Loading branch information
samiahmedsiddiqui committed Jan 2, 2023
1 parent 14f9f51 commit e5f9c2c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 90 deletions.
69 changes: 0 additions & 69 deletions admin/class-custom-permalinks-updates.php

This file was deleted.

22 changes: 1 addition & 21 deletions includes/class-custom-permalinks.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,6 @@ private function init_hooks() {
array( 'Custom_Permalinks', 'activate_details' )
);

register_deactivation_hook(
CUSTOM_PERMALINKS_FILE,
array( 'Custom_Permalinks', 'deactivate_details' )
);

add_action( 'plugins_loaded', array( $this, 'check_loaded_plugins' ) );
}

Expand Down Expand Up @@ -133,30 +128,15 @@ public static function add_roles() {
}

/**
* Sent details when plugin gets activated / updated ans set installed
* version in options table.
* Set installed version in options table.
*
* @since 1.6.1
* @access public
*/
public static function activate_details() {
include_once CUSTOM_PERMALINKS_PATH . 'admin/class-custom-permalinks-updates.php';
new Custom_Permalinks_Updates( 'activate' );

update_option( 'custom_permalinks_plugin_version', CUSTOM_PERMALINKS_VERSION );
}

/**
* Sent details when plugin gets deactivated.
*
* @since 1.6.1
* @access public
*/
public static function deactivate_details() {
include_once CUSTOM_PERMALINKS_PATH . 'admin/class-custom-permalinks-updates.php';
new Custom_Permalinks_Updates( 'deactivate' );
}

/**
* Check if role not exist then call the function to add it. Update site
* details if plugin gets updated. Also, loads the plugin language files to
Expand Down

0 comments on commit e5f9c2c

Please sign in to comment.