add_action( 'wp_print_scripts', 'my_deregister_unneeded_js', 100 );
function my_deregister_unneeded_js() {
// TML Themed profiles
if ( !is_page( array( 'profile', 'login', 'logout', 'lostpassword', 'register', 'resetpass' ) ) ) {
wp_deregister_script( 'tml-themed-profiles' );
}
}
… results in these notices being shown (checking with WP_DEBUG):
Notice: Undefined index: tml-themed-profiles in /var/www/.../wp-includes/class.wp-scripts.php on line 250
Notice: Trying to get property of non-object in /var/www/.../wp-includes/class.wp-scripts.php on line 250
I am having the same problem with version 140220, it escapes my HTML code and the email shows the HTML source.
BOTStudent’s code above worked perfectly fine, thanks dude!
Yes, sorry for the delayed reply.
My app is also configured correctly – I’m currently using it with another plugin, so it’s not read only.