Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions visualcomposer/resources/views/editor/frontend/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}
global $current_screen;
if (empty($current_screen->id)) {
$current_screen->id = $sourceId;
$current_screen->id = (string) $sourceId;
}
// @codingStandardsIgnoreEnd
$globalsHelper->set('typenow', get_post_type());
Expand All @@ -29,7 +29,7 @@
<head>
<link rel="profile" href="https://gmpg.org/xfn/11" />
<meta http-equiv="Content-Type" content="<?php echo esc_attr(get_bloginfo('html_type', 'display')); ?>; charset=<?php echo esc_attr(get_bloginfo('charset', 'display')); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, maximum-scale=1, user-scalable=0" />

Check warning on line 32 in visualcomposer/resources/views/editor/frontend/header.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Meta viewport disables zoom via user-scalable=no.

See more on https://sonarcloud.io/project/issues?id=VisualComposer_builder&issues=AZ9ljwGqZiUm9UJO8tx2&open=AZ9ljwGqZiUm9UJO8tx2&pullRequest=2596
<title><?php
// translators: %s: page title
echo $title;
Expand Down Expand Up @@ -60,4 +60,4 @@
unset($variable);
}
?>
</head>
</head>