Skip to content

Commit e9d7fb0

Browse files
authored
Modify condition for snippet activation check
1 parent a3dfe61 commit e9d7fb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/php/class-db.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ public function fetch_active_snippets( array $scopes ): array {
326326
foreach ( $ms_snippets as $snippet ) {
327327
$id = intval( $snippet['id'] );
328328

329-
if ( ! $snippet['active'] && ! in_array( $id, $active_shared_ids, true ) ) {
329+
if ( ( ! $snippet['active'] || '-1' === $snippet['active'] ) && ! in_array( $id, $active_shared_ids, true ) ) {
330330
continue;
331331
}
332332

0 commit comments

Comments
 (0)