Strange code in page source
-
I was just going through the page source and found this lengthy code. Could you help understanding what this is for and if everything is ok here ?
Version 1.4.0.2
WP: 6.7.2
/ * <![CDATA[ */
var wpacu_object = {"plugin_prefix":"wpassetcleanup","plugin_slug":"wp-asset-clean-up","plugin_title":"Asset
CleanUp","reload_icon":"<svg aria-hidden=\"true\" role=\"img\" focusable=\"false\" class=\"dashicon dashicons-cloud\"
xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"><path d=\"M14.9 9c1.8.2 3.1
1.7 3.1 3.5 0 1.9-1.6 3.5-3.5 3.5h-10C2.6 16 1 14.4 1 12.5 1 10.7 2.3 9.3 4.1 9 4 8.9 4 8.7 4 8.5 4 7.1 5.1 6 6.5
6c.3 0 .7.1.9.2C8.1 4.9 9.4 4 11 4c2.2 0 4 1.8 4 4 0 .4-.1.7-.1 1z\"><\/path><\/svg>","reload_msg":"Reloading <strong
style=\"margin: 0 4px;\">Asset CleanUp<\/strong>
area","dom_get_type":"direct","list_show_status":"default","start_del_e":"BEGIN WPACU PLUGIN JSON
ENQUEUED","end_del_e":"END WPACU PLUGIN JSON ENQUEUED","start_del_h":"BEGIN WPACU PLUGIN JSON
HARDCODED","end_del_h":"END WPACU PLUGIN JSON
HARDCODED","post_id":"2481","ajax_url":"https:\/\/mydomain.com\/wp-admin\/admin-ajax.php","page_url":"https:\/
\/mydomain.com\/portfolio-charges\/","current_host_same_as_host_from_target_url":"1","is_frontend_view":"1","
source_load_error_msg":"The source might not be
reachable","current_post_type":"page","wpacu_ajax_get_post_type_terms_nonce":"999ce44619","clear_other_caches":"","
clear_cache_via_ajax":"","server_returned_404_not_found":"When accessing this page the server responded with a status
of <strong>404 (Not Found)<\/strong>. If this page is meant to return this status, you can ignore this message,
otherwise you might have a problem with this page if it is meant to return a standard 200 OK
status.","autoptimize_not_active":"1","cache_enabler_not_active":"1","wpacu_update_specific_settings_nonce":"
298b19d84f","wpacu_update_asset_row_state_nonce":"96cba6a56f","wpacu_area_update_assets_row_state_nonce":"83c4623cb2"
,"wpacu_print_loaded_hardcoded_assets_nonce":"f661e5ae9e","wpacu_ajax_check_remote_file_size_nonce":"5baed84829","
wpacu_ajax_check_external_urls_nonce":"fc0e658d7d","wpacu_ajax_get_loaded_assets_nonce":"3a59b1c931","
wpacu_ajax_load_page_restricted_area_nonce":"95d658489c","wpacu_ajax_clear_cache_nonce":"a2f89a2821","
wpacu_ajax_preload_url_nonce":"609f1bd6fa","ajax_direct_fetch_error":"<div class=\"ajax-direct-call-error-area\">\n
<p class=\"note\"><strong>Note:<\/strong> The checked URL returned an error when fetching the assets via AJAX call.
This could be because of a firewall that is blocking the AJAX call, a redirect loop or an error in the script that is
retrieving the output which could be due to an incompatibility between the plugin and the WordPress setup you are
using.<\/p>\n <p>Here is the response from the call:<\/p>\n\n <table>\n <tr>\n <td
width=\"135\"><strong>Status Code Error:<\/strong><\/td>\n <td><span
class=\"error-code\">{wpacu_status_code_error}<\/span> * for more information about client and server errors, <a
target=\"_blank\" href=\"https:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes\">check this link<\/a><\/td>\n
<\/tr>\n <tr>\n <td valign=\"top\"><span class=\"dashicons dashicons-lightbulb\"
style=\"color: orange;\"><\/span> <strong>Suggestion:<\/strong><\/td>\n <td>Select \"WP Remote POST\" as a
method of retrieving the assets from the \"Settings\" page. If that doesn't fix the issue, just use \"Manage in
Front-end\" option which should always work and <a target=\"_blank\"
href=\"https:\/\/ww.wp.xz.cn\/support\/plugin\/wp-asset-clean-up\">submit a ticket<\/a> about your problem.<\/td>\n
<\/tr>\n <tr>\n <td valign=\"top\"><strong>Output:<\/strong><\/td>\n <td
valign=\"top\">{wpacu_output}<\/td>\n <\/tr>\n
<\/table>\n<\/div>","ajax_direct_fetch_error_with_success_response":"<div style=\"overflow-y: scroll; max-height:
290px;\" class=\"ajax-direct-call-error-area\">\n <p class=\"note\"><strong>Note:<\/strong> The assets could not
be fetched via the AJAX call. Here is the response:<\/p>\n <table>\n <tr>\n <td
valign=\"top\"><strong>Suggestion:<\/strong><\/td>\n <td>Select \"WP Remote POST\" as a method of
retrieving the assets from the \"Settings\" page. If that doesn't fix the issue, just use \"Manage in Front-end\"
option which should always work and <a target=\"_blank\"
href=\"https:\/\/ww.wp.xz.cn\/support\/plugin\/wp-asset-clean-up\">submit a ticket<\/a> about your problem.<\/td>\n
<\/tr>\n <tr>\n <td valign=\"top\"><strong>Output:<\/strong><\/td>\n <td
valign=\"top\">{wpacu_output}<\/td>\n <\/tr>\n
<\/table>\n<\/div>","jquery_migration_disable_confirm_msg":"Make sure to properly test your website if you unload the
jQuery migration library.\n\nIn some cases, due to old jQuery code triggered from plugins or the theme, unloading
this migration library could cause those scripts not to function anymore and break some of the front-end
functionality.\n\nIf you are not sure about whether activating this option is right or not, it is better to leave it
as it is (to be loaded by default) and consult with a developer.\n\nConfirm this action to enable the unloading or
cancel to leave it loaded by default.","comment_reply_disable_confirm_msg":"This is worth disabling if you are NOT
using the default WordPress comment system (e.g. you are using the website for business purposes, to showcase your
products and you are not using it as a blog where people leave comments to your posts).\n\nIf you are not sure about
whether activating this option is right or not, it is better to leave it as it is (to be loaded by
default).\n\nConfirm this action to enable the unloading or cancel to leave it loaded by
default.","reset_settings_confirm_msg":"Are you sure you want to reset the settings to their default values?\n\nThis
is an irreversible action.\n\nPlease confirm to continue or \"Cancel\" to abort
it","reset_critical_css_confirm_msg":"Are you sure you want to remove all the critical CSS information?\n\nThis is an
irreversible action.\n\nPlease confirm to continue or \"Cancel\" to abort
it","reset_everything_except_settings_confirm_msg":"Are you sure you want to reset everything (unloads, load
exceptions etc.) except settings?\n\nThis is an irreversible action.\n\nPlease confirm to continue or \"Cancel\" to
abort it.","reset_everything_confirm_msg":"Are you sure you want to reset everything (settings, unloads, load
exceptions etc.) to the same point it was when you first activated the plugin?\n\nThis is an irreversible
action.\n\nPlease confirm to continue or \"Cancel\" to abort it.","import_confirm_msg":"This process is NOT
reversible.\n\nPlease make sure you have a backup (e.g. an exported JSON file) before proceeding.\n\nPlease confirm
to continue or \"Cancel\" to abort it.","jquery_unload_alert":"jQuery library is a WordPress library that it is used
in WordPress plugins\/themes most of the time.\n\nThere are currently other JavaScript \"children\" files connected
to it, that will stop working, if this library is unloaded\n\nIf you are positive this page does not require jQuery
(very rare cases), then you can continue by pressing \"OK\"\n\nOtherwise, it is strongly recommended to keep this
library loaded by pressing \"Cancel\" to avoid breaking the functionality of the
website.","woo_js_cookie_unload_alert":"Please be careful when unloading \"js-cookie\" as there are other JS files
that depend on it which will also be unloaded, including \"wc-cart-fragments\" which is required for the
functionality of the WooCommerce mini cart.\n\nClick \"OK\" to continue or \"Cancel\" if you have any doubts about
unloading this file","woo_wc_cart_fragments_unload_alert":"Please be careful when unloading \"wc-cart-fragments\" as
it's required for the functionality of the WooCommerce mini cart. Unless you are sure you do not need it on this
page, it is advisable to leave it loaded.\n\nClick \"OK\" to continue or \"Cancel\" if you have any doubts about
unloading this file.","sensitive_library_unload_alert":"Please make sure to properly test this page after this
particular JavaScript file is unloaded as it is usually loaded for a reason.\n\nIf you are not sure whether it is
used or not, then consider using the \"Cancel\" button to avoid taking ay chances in breaking the website's
functionality.\n\nIt is advised to check the browser's console via right-click and \"Inspect\" to check for any
reported errors.","dashicons_unload_alert_ninja_forms_alert":"It looks like you are using \"Ninja Forms\" plugin
which is sometimes loading Dashicons for the forms' styling.\n\nIf you are sure your forms do not use Dashicons,
please use the following option 'Ignore dependency rule and keep the \"children\" loaded' to avoid the unloading of
the \"nf-display\" handle.\n\nClick \"OK\" to continue or \"Cancel\" if you have any doubts about unloading the
Dashicons. It is better to have Dashicons loaded, then take a chance and break the forms' layout."};
/ * ]]> */
The topic ‘Strange code in page source’ is closed to new replies.