Settings get mysteriously disabled
-
I faced same problem of resolved thread “Settings get mysteriously disabled”.
In file: includes/admin/wp-structuring-admin-db.php
private function create_table_execute ( $charset_collate, $text_domain, $version ) { $options = get_option( $text_domain ); if ( $options ) { $options = array_merge( $options, $args ); } update_option( $text_domain, $options ); }
The option is never created if option is not exists.
/** * version up process. * * @version 4.4.0 * @since 2.0.0 * */ $options = get_option( $text_domain ); if ( !isset( $options['version'] ) || $options['version'] !== $version ) { $lists = $this->get_list_options(); $wpdb->query( "DROP TABLE " . $this->table_name ); $this->create_table_execute( $charset_collate, $text_domain, $version );
$options is always FALSE and version up process run.
Is this the expected behavior?
I think that settings get disabled when two version up process run concurrently (called from admin_ajax.php).
Viewing 14 replies - 1 through 14 (of 14 total)
Viewing 14 replies - 1 through 14 (of 14 total)
- The topic ‘Settings get mysteriously disabled’ is closed to new replies.