v1.1.0
This commit is contained in:
parent
9b856d1c3d
commit
ddaaff71ad
23 changed files with 879 additions and 798 deletions
|
|
@ -15,7 +15,7 @@ if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
|
|||
/**
|
||||
* Delete plugin data if user opted in to data deletion.
|
||||
*/
|
||||
function robotstxt_og_uninstall_cleanup() {
|
||||
function robotstxt_og_uninstall_cleanup(): void {
|
||||
// Check if user opted in to delete data on uninstall.
|
||||
$delete_data = get_option( 'robotstxt_og_delete_data_on_uninstall', false );
|
||||
|
||||
|
|
@ -72,7 +72,7 @@ function robotstxt_og_uninstall_cleanup() {
|
|||
);
|
||||
|
||||
foreach ( $sites as $site ) {
|
||||
switch_to_blog( $site->blog_id );
|
||||
switch_to_blog( (int) $site->blog_id );
|
||||
|
||||
// Delete site-specific options.
|
||||
delete_option( 'robotstxt_og_fallback_image' );
|
||||
|
|
|
|||
Loading…
Reference in a new issue