v1.6.0
This commit is contained in:
parent
b2849880ec
commit
5589c54b9b
13 changed files with 138 additions and 58 deletions
|
|
@ -34,7 +34,7 @@ class Robotstxt_Manager_Activator {
|
|||
* @return void
|
||||
*/
|
||||
public static function deactivate(): void {
|
||||
delete_transient( 'robotstxt_manager_catalog' );
|
||||
delete_site_transient( 'robotstxt_manager_catalog' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -43,12 +43,12 @@ class Robotstxt_Manager_Activator {
|
|||
* @return void
|
||||
*/
|
||||
private static function ensure_defaults(): void {
|
||||
if ( '' === get_option( 'robotstxt_manager_store_url', '' ) ) {
|
||||
update_option( 'robotstxt_manager_store_url', 'https://www.robotstxt.software' );
|
||||
if ( '' === get_site_option( 'robotstxt_manager_store_url', '' ) ) {
|
||||
update_site_option( 'robotstxt_manager_store_url', 'https://www.robotstxt.software' );
|
||||
}
|
||||
|
||||
if ( '' === get_option( 'robotstxt_manager_cache_ttl_minutes', '' ) ) {
|
||||
update_option( 'robotstxt_manager_cache_ttl_minutes', 60 );
|
||||
if ( '' === get_site_option( 'robotstxt_manager_cache_ttl_minutes', '' ) ) {
|
||||
update_site_option( 'robotstxt_manager_cache_ttl_minutes', 60 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue