Outputting PHP in the dashboard
-
Hi,
The plugin is outputting the below php on the WordPress options page, and I am concerned it is not working. I am running a multi site WP installation, and version 1.64 of the plugin\n"; break; } jQuery("#banned_template_" + template).val(default_template); } function toggle_checkbox() { for(i = 0; i < 1; i++) { if(checked == 0) { jQuery("#ban-" + i).attr("checked", "checked"); } else { jQuery("#ban-" + i).removeAttr("checked"); } } if(checked == 0) { checked = 1; } else { checked = 0; } } jQuery(document).ready(function() { jQuery('#show_button').click(function(event) { event.preventDefault(); var banned_template_message_el = jQuery('#banned_template_message'); if(jQuery(banned_template_message_el).is(':hidden')) { jQuery(this).val('Show Current Banned Message'); jQuery('#banned_preview_message').empty(); jQuery(banned_template_message_el).fadeIn('fast'); } else { jQuery(this).val('Show Banned Message Template'); jQuery.ajax({type: 'GET', url: 'https://savantiniwordpress.savantini.com/pelvic-toner/wp-admin/admin-ajax.php', data: 'action=ban-admin', cache: false, success: function(data) { var html_message = data; jQuery(banned_template_message_el).fadeOut('fast', function() { jQuery(html_message).filter('#wp-ban-container').appendTo('#banned_preview_message'); }); }}); } }); }); /* ]]> */
- The topic ‘Outputting PHP in the dashboard’ is closed to new replies.