Skip to content

Commit 2aa009b

Browse files
authored
Merge pull request Automattic#12841 from hasezoey/addNavBarDefaultVersion
docs(navbar-search): add missing variable
2 parents a145f2c + a46ee18 commit 2aa009b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/js/navbar-search.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
var defaultVersion = '6.x';
2+
13
(function() {
24
var versionFromUrl = window.location.pathname.match(/^\/docs\/(\d+\.x)/);
35
var version = versionFromUrl ? versionFromUrl[1] : defaultVersion;

0 commit comments

Comments
 (0)