• Resolved scaballe

    (@scaballe)


    Debug information is always visible in source HTML

    “this debug data is only visible when WP_DEBUG<\/code> or WPONION_FIELD_DEBUG<\/code> is defined..."

    config.php :

    define('WPONION_FIELD_DEBUG',false);
    define('WP_DEBUG', false);
    define('WP_DEBUG_LOG', false );

    Regards
    Salvador

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Varun Sridharan

    (@varunms)

    Thanks for informing it.

    Can you please provide me a screenshot of what you are seeing ? so i can check and fix it in the next release

    Thread Starter scaballe

    (@scaballe)

    This is the data:

    
    <script type='text/javascript' id='wponion_field_js_vars'>
    /* <![CDATA[ */
    var wponion_core = {"modal":{"html":"<div tabindex=\"0\" class=\"media-modal wp-core-ui\">\n\n\t<button type=\"button\" class=\"media-modal-close\">\n\t<span class=\"media-modal-icon\">\n\t\t<span class=\"screen-reader-text\">Close media panel<\/span>\n\t<\/span>\n\t<\/button>\n\n\t<div class=\"media-modal-content\">\n\t\t<div class=\"media-frame\">\n\t\t\t<div class=\"media-frame-menu\">\n\t\t\t\t<div class=\"media-menu\"><\/div>\n\t\t\t<\/div>\n\t\t\t<div class=\"wponion-modal-content-container\"><\/div>\n\n\t\t\t<div class=\"media-frame-toolbar\">\n\t\t\t\t<div class=\"media-toolbar\">\n\t\t\t\t\t<div class=\"media-toolbar-secondary\"><\/div>\n\t\t\t\t\t<div class=\"media-toolbar-primary search-form\">\n\t\t\t\t\t\t<button type=\"button\"\n\t\t\t\t\t\t\t\tclass=\"button media-button button-primary button-large media-button-select\">Select\n\t\t\t\t\t\t<\/button>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n\t<\/div>\n<\/div>\n\n<div class=\"media-modal-backdrop\"><\/div>","frame-menu-item":"<a href=\"{{ data.url }}\" class=\"media-menu-item\">{{ data.name }}<\/a>","router-menu-item":"<a href=\"{{ data.url }}\" class=\"media-menu-item\">{{ data.name }}<\/a>","page_content":"<div id=\"{{data.id}}\" class=\"hidden wponion-modal-{{data.id}} wponion-modal-content\"><div class=\"media-frame-title\"><h1>{{data.title}}<\/h1><\/div><div class=\"media-frame-router\"> <div class=\"media-router\"><\/div> <\/div> <div class=\"media-frame-content\">{{data.html}}<div class=\"media-sidebar\"><\/div><\/div><\/div>","section_content":"<div id=\"{{data.id}}\" class=\"hidden wponion-modal-{{data.id}} wponion-modal-content wponion-section-modal-content\">{{data.html}}<div class=\"media-sidebar\"><\/div><\/div>"},"ajaxurl":"https:\/\/www.mydomain.com\/s\/wp-admin\/admin-ajax.php","ajax_action":"wponion-ajax","ajax_action_key":"wponion-ajax","ajax_url":"https:\/\/www.mydomain.com\/s\/wp-admin\/admin-ajax.php?action=wponion-ajax","debug":"1","debug_notice":" <br\/> this debug data is only visible when <code>WP_DEBUG<\/code> or <code>WPONION_FIELD_DEBUG<\/code> is defined <strong>true<\/strong>  <br\/> <strong>PHP Args:<\/strong> is the array which is passed to the framework in php <br\/> <strong>JS Args:<\/strong> is the array which is used by the JS plugins in this framework. for each plugin it shows the plugin name and its array passed to it"};var wponion_il8n = {"get_json_output":"As JSON","global_json_output":"Global WPOnion JSON Output","unmodified_debug":"PHP Args","modified_debug":"JS Args","unknown_ajax_error":"Unknown Error Occured. Please Try Again.","click_to_view_debug_info":"Click To View Field Debug Info","validation_summary":"Please correct the errors highlighted below and try again.","delete":"Delete","processing":"Processing ...","restore":"Restore","settings_saved":"Settings Updated"};/* ]]> */
    </script>
    
    Plugin Author Varun Sridharan

    (@varunms)

    Can you provide me a screenshot on where you are seeing this exactly ?

    Thread Starter scaballe

    (@scaballe)

    this script data is at the end of html source code, in all pages
    just before:

    </body>
    </html>

    Plugin Author Varun Sridharan

    (@varunms)

    @scaballe Thanks. but this is not a debug data. its some basic arguments that required by our **WPOnion** Framework to run. is that making any issue for you ?

    Thread Starter scaballe

    (@scaballe)

    It is not a problem, but in reality these data are only necessary in the administration area, But it is useless to load it on all the pages.

    Regards
    Salvador

    Plugin Author Varun Sridharan

    (@varunms)

    @scaballe
    Thanks for your feedback.
    As we are planing to add front end features in WPOnion (The Framework Which we develop & use) we decided to have those data in frontend to.
    https://github.com/wponion/wponion/issues/23

    But again thanks for your feedback. we will make sure that it dosen’t load unless its required.

    Thread Starter scaballe

    (@scaballe)

    Thanks
    Salvador

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Hide DEBUG data’ is closed to new replies.