Skip to content

Commit 57cdf68

Browse files
committed
jqueryui.com: Handle default effect demo
1 parent 2ee779b commit 57cdf68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mu-plugins/jqueryui.com/jquery-filters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
$active = 'default';
1717
} else {
1818
$plugin = $matches[ 1 ];
19-
$active = $post->post_name;
19+
$active = $post->post_name === $matches[ 1 ] ? 'default' : $post->post_name;
2020
}
2121
$demoList = json_decode( file_get_contents( GW_RESOURCE_DIR . '/demos/demo-list.json' ) );
2222
$demos = $demoList->$plugin;

0 commit comments

Comments
 (0)