Reply To: Janitor Single Setting Reset

Home Forums Premier Support Janitor Single Setting Reset Reply To: Janitor Single Setting Reset

#20630

Terrence
Participant

I found it:

delete_site_option

should be:

delete_option

only because it works on the first site of a multisite. It’s only a workaround.

SLP options are not stored in *_sitemeta.

SLP options are stored in *_options. If they were stored in *_sitemeta the function delete_site_option has a multisite check:

…if ( !is_multisite() ) {

$result = delete_option( $option );

} else {…

And the options are store by siteid unlike *_options.

But on single installs there is no *_sitemeta table.

/wp-includes/option.php

  • This reply was modified 3 years, 4 months ago by  Terrence.
  • This reply was modified 3 years, 4 months ago by  Terrence. Reason: Retested on 2nd site of multisite