We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8256100 commit a3d8447Copy full SHA for a3d8447
disciple-tools-storage-filters.php
@@ -20,6 +20,11 @@ public static function update_default_connection_id( string $connection_id ): bo
20
public static function get_default_connection_id(): string {
21
$storage_connection_id = dt_get_option( 'dt_storage_connection_id' );
22
23
+ // Return if a valid storage connection id is found.
24
+ if ( !empty( $storage_connection_id ) ) {
25
+ return $storage_connection_id;
26
+ }
27
+
28
// Default to multisite global setting, if available; otherwise revert to local settings.
29
if ( is_multisite() && !empty( get_site_option( 'dt_storage_multisite_connection_object', [] ) ) ) {
30
$multisite_connection_objects = get_site_option( 'dt_storage_multisite_connection_object', [] );
0 commit comments