Webcraftic Cyrlitera v1.0.5
WordPress 5.2.1
Php 7.2
Go to url /wp-admin/customize.php?return=/wp-admin/index.php and a few seconds shows the message, see screenshot cyrlitera.png
The JavaScript script is displayed on all pages of the site and in the admin panel too. What for?
I corrected ....factory/bootstrap/includes/functions.php line:185 to this:
`
if(!is_admin()){
?>
<script>
if( !window.factory ) {
window.factory = {};
}
if( !window.factory.factoryBootstrap400 ) {
window.factory.factoryBootstrap400 = {};
}
window.factory.factoryBootstrap400.colors = {
primaryDark: '<?php echo $primary_dark ?>',
primaryLight: '<?php echo $primary_light ?>'
};
</script>
<?php
} }
`
But better correct correctly
WordPress 5.2.1
Php 7.2
Go to url /wp-admin/customize.php?return=/wp-admin/index.php and a few seconds shows the message, see screenshot cyrlitera.png
The JavaScript script is displayed on all pages of the site and in the admin panel too. What for?
I corrected ....factory/bootstrap/includes/functions.php line:185 to this:
`
if(!is_admin()){
?>
<script>
if( !window.factory ) {
window.factory = {};
}
if( !window.factory.factoryBootstrap400 ) {
window.factory.factoryBootstrap400 = {};
}
window.factory.factoryBootstrap400.colors = {
primaryDark: '<?php echo $primary_dark ?>',
primaryLight: '<?php echo $primary_light ?>'
};
</script>
<?php
} }
`
But better correct correctly
Attachments
-
50.1 KB Views: 105