Skip to content

Commit

Permalink
chore: fix preload issues
Browse files Browse the repository at this point in the history
  • Loading branch information
yrccondor committed Aug 8, 2024
1 parent 7da3ad0 commit 7df1fa4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,12 @@ function mdx_remove_wp_version_strings($src) {
global $wp_version;
$query_string = parse_url($src, PHP_URL_QUERY);
parse_str((string)$query_string, $query);
if (!empty($query['ver']) && $query['ver'] === $wp_version) {
$src = str_replace($query_string, str_replace('ver='.$wp_version, 'ver='.get_option('mdx_version_commit'), $query_string), $src);
if (!empty($query['ver'])) {
if ($query['ver'] === $wp_version) {
$src = str_replace($query_string, str_replace('ver='.$wp_version, 'ver='.get_option('mdx_version_commit'), $query_string), $src);
}
} else {
$src = add_query_arg('ver', get_option('mdx_version_commit'), $src);
}
return $src;
}
Expand Down
2 changes: 1 addition & 1 deletion style.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions style.less
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,7 @@ body.mdui-theme-layout-dark .seainput {
width: 100%;
height: 100%;
pointer-events: none;
overscroll-behavior-y: contain;
}
.searchBoxFill {
width: 100%;
Expand Down

0 comments on commit 7df1fa4

Please sign in to comment.