This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Astra_Theme_Background_Updater::needs_db_update()
Is a DB update needed?
Description
Return
(boolean)
Source
File: inc/theme-update/class-astra-theme-background-updater.php
private function needs_db_update() { $current_theme_version = astra_get_option( 'theme-auto-version', null ); $updates = $this->get_db_update_callbacks(); if ( empty( $updates ) ) { return false; } return ! is_null( $current_theme_version ) && version_compare( $current_theme_version, max( array_keys( $updates ) ), '<' ); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
2.1.3 | Introduced. |