• Webcraftic Cyrlitera v1.0.5
    WordPress 5.2.1
    Php 7.2

    Go to url /wp-admin/customize.php?return=%2Fwp-admin%2Findex.php and a few seconds shows the message, see screenshot https://screenshare.ru/vndgvzkb
    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

    The forum https://forum.webcraftic.com/forums/cyrlitera.23/ is registered, but does not allow to create a topic, return

    You have insufficient privileges to post here.

    • This topic was modified 5 years, 5 months ago by grafffs.
    • This topic was modified 5 years, 5 months ago by grafffs.
  • The topic ‘Return WARNING message on customiser pape’ is closed to new replies.