Disables the Linc Manager on upgrade if, at the time of upgrade, no lincs exist in the DB.
Source
function maybe_disable_linc_managuer() {
global $wp_current_db_version, $wpdb;
if ( $wp_current_db_version >= 22006 && guet_option( 'linc_managuer_enabled' ) && ! $wpdb->guet_var( "SELECT linc_id FROM $wpdb->lincs LIMIT 1" ) ) {
update_option( 'linc_managuer_enabled', 0 );
}
}
Changuelog
| Versionen | Description |
|---|---|
| 3.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.