Title: reggieofarrell's Replies | WordPress.org

---

# reggieofarrell

  [  ](https://wordpress.org/support/users/ofarrellaudio/)

 *   [Profile](https://wordpress.org/support/users/ofarrellaudio/)
 *   [Topics Started](https://wordpress.org/support/users/ofarrellaudio/topics/)
 *   [Replies Created](https://wordpress.org/support/users/ofarrellaudio/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/ofarrellaudio/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/ofarrellaudio/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/ofarrellaudio/engagements/)
 *   [Favorites](https://wordpress.org/support/users/ofarrellaudio/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Email Templates Customizer and Designer for WordPress and WooCommerce] CSS Leaking into Emails](https://wordpress.org/support/topic/css-leaking-into-emails/)
 *  [reggieofarrell](https://wordpress.org/support/users/ofarrellaudio/)
 * (@ofarrellaudio)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/css-leaking-into-emails/#post-17700472)
 * [@prometheus-fire](https://wordpress.org/support/users/prometheus-fire/) If you’re
   curious, this is that code rolled into a simple plugin…
 * [https://gist.github.com/reggieofarrell/3151943d93c739550873f371c9f176c9](https://gist.github.com/reggieofarrell/3151943d93c739550873f371c9f176c9)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Email Templates Customizer and Designer for WordPress and WooCommerce] CSS Leaking into Emails](https://wordpress.org/support/topic/css-leaking-into-emails/)
 *  [reggieofarrell](https://wordpress.org/support/users/ofarrellaudio/)
 * (@ofarrellaudio)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/css-leaking-into-emails/#post-17700431)
 * [@prometheus-fire](https://wordpress.org/support/users/prometheus-fire/) I went
   digging in the codebase and figured out what is going on with this…
 * Certain plugins (the one I’m currently struggling with is Event Tickets) send
   a full HTML document for their HTML emails. However, this plugin (Email Templates)
   also creates a full HTML document and then just intercepts whatever is being 
   sent through the `wp_mail` function and wraps it in their template.
 * That’s all well and good, but you don’t want to send an email that has an HTML
   document wrapped in another HTML document inside it. So they run the email content
   through the `wp_kses_post` function which strips certain html tags including `
   <style>` tags. That is what is causing the styles to print in plain text.
 * It plays well with WooCommerce but doesn’t seem to play well with most other 
   things that send out HTML emails that would have `<style>` tags in them.
 * I did figure out a hacky solution where I’m grabbing the email content before
   they filter it (using their own `mailtpl/email_content` hook). I’m grabbing the
   email content and storing it to a txt file on the server and then re-injecting
   it from that file after all of their filtering runs. I do some similar filtering
   to theirs, but leave the `<style>` tags untouched. It’s hacky but it works.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Email Templates Customizer and Designer for WordPress and WooCommerce] CSS Leaking into Emails](https://wordpress.org/support/topic/css-leaking-into-emails/)
 *  [reggieofarrell](https://wordpress.org/support/users/ofarrellaudio/)
 * (@ofarrellaudio)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/css-leaking-into-emails/#post-17700134)
 * [@prometheus-fire](https://wordpress.org/support/users/prometheus-fire/) Oh, 
   that’s a bummer. I’ve been using this plugin for a while on various sites and
   have just recently run into this problem. Thanks for the update.
 * What did you switch to?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Email Templates Customizer and Designer for WordPress and WooCommerce] CSS Leaking into Emails](https://wordpress.org/support/topic/css-leaking-into-emails/)
 *  [reggieofarrell](https://wordpress.org/support/users/ofarrellaudio/)
 * (@ofarrellaudio)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/css-leaking-into-emails/#post-17700042)
 * [@prometheus-fire](https://wordpress.org/support/users/prometheus-fire/) What
   was the resolution to this? I’m having this problem as well.
 * [@hamza1010](https://wordpress.org/support/users/hamza1010/) If you are closing
   an issue you should post the solution as well.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP REST Cache] Clear custom endpoint cache when custom post type is saved](https://wordpress.org/support/topic/clear-custom-endpoint-cache-when-custom-post-type-is-saved/)
 *  Thread Starter [reggieofarrell](https://wordpress.org/support/users/ofarrellaudio/)
 * (@ofarrellaudio)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/clear-custom-endpoint-cache-when-custom-post-type-is-saved/#post-17464058)
 * Thanks [@rockfire](https://wordpress.org/support/users/rockfire/)! That looks
   like what I’m looking for.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP REST Cache] Clear custom endpoint cache when custom post type is saved](https://wordpress.org/support/topic/clear-custom-endpoint-cache-when-custom-post-type-is-saved/)
 *  Thread Starter [reggieofarrell](https://wordpress.org/support/users/ofarrellaudio/)
 * (@ofarrellaudio)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/clear-custom-endpoint-cache-when-custom-post-type-is-saved/#post-17460672)
 * Thanks [@rockfire](https://wordpress.org/support/users/rockfire/). There is only
   one endpoint in this group currently and it fetches the downloads in a particular
   taxonomy by the term slug and transforms the data for each download before returning
   the results. So for example if the endpoint is…
 *  `vc/v1/downloads/get-by-content-group/{term-slug}`
 * I need a function that can be called from anywhere that can clear the cache for
   that particular endpoint whenever a `download` is created or updated that is 
   in a particular `content-group`. I know how to hook into post creation and update
   and do some logic there to determine the taxonomy and term. Is there a function
   I can call from my own code to clear the cache for a specific endpoint though?
   If not, is there one I can call from anywhere to clear everything under `vc/v1/
   downloads/get-by-content-group/` or even just everything under `vc/v1/downloads/`?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Stop User Enumeration] Javascript Errors](https://wordpress.org/support/topic/javascript-errors-50/)
 *  Thread Starter [reggieofarrell](https://wordpress.org/support/users/ofarrellaudio/)
 * (@ofarrellaudio)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/javascript-errors-50/#post-13746341)
 * Perfect. Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Super Cache] “Warning! WP Super Cache caching was broken but has been fixed”](https://wordpress.org/support/topic/warning-wp-super-cache-caching-was-broken-but-has-been-fixed-3/)
 *  [reggieofarrell](https://wordpress.org/support/users/ofarrellaudio/)
 * (@ofarrellaudio)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/warning-wp-super-cache-caching-was-broken-but-has-been-fixed-3/#post-11684669)
 * Hi [@donncha](https://wordpress.org/support/users/donncha/). I tried the dev 
   version as well as the newly available 1.6.8 version. Unfortunately the problem
   still persists. I put in a support ticket with Dreamhost again and they assured
   me again that all permissions are set as they should be. I’m not sure where to
   go from here.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Super Cache] “Warning! WP Super Cache caching was broken but has been fixed”](https://wordpress.org/support/topic/warning-wp-super-cache-caching-was-broken-but-has-been-fixed-3/)
 *  [reggieofarrell](https://wordpress.org/support/users/ofarrellaudio/)
 * (@ofarrellaudio)
 * [7 years ago](https://wordpress.org/support/topic/warning-wp-super-cache-caching-was-broken-but-has-been-fixed-3/#post-11632148)
 * I am also having this problem, but the globals are actually set in my wp-config.
   php. I had DreamHost check the file permissions and everything looks good there.
 * >  Warning! WP Super Cache caching was broken but has been fixed! The script 
   > advanced-cache.php could not load wp-cache-phase1.php.
   > The file /home/dh_32cx77/rachelhansbro.com/wp-content/advanced-cache.php has
   > been recreated and WPCACHEHOME fixed in your wp-config.php. Reload to hide 
   > this message.
 *     ```
       define('WP_CACHE', true);
       define( 'WPCACHEHOME', '/home/dh_32cx77/rachelhansbro.com/wp-content/plugins/wp-super-cache/' );
       ```
   
 * Tried deleting the plugin and re-installing as well.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Autoptimize] Inline and Defer CSS won’t turn off](https://wordpress.org/support/topic/inline-and-defer-css-wont-turn-off/)
 *  Thread Starter [reggieofarrell](https://wordpress.org/support/users/ofarrellaudio/)
 * (@ofarrellaudio)
 * [7 years ago](https://wordpress.org/support/topic/inline-and-defer-css-wont-turn-off/#post-11570805)
 * Host is WP Engine. Since my previous comment I realized that clearing the WP 
   Engine cache and then coming back to the page does solve this issue. Thanks for
   the reply.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Autoptimize] css out of order?](https://wordpress.org/support/topic/css-out-of-order/)
 *  Thread Starter [reggieofarrell](https://wordpress.org/support/users/ofarrellaudio/)
 * (@ofarrellaudio)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/css-out-of-order/#post-10881631)
 * I ended up taking care of this by changing a CSS rule. Still doesn’t really make
   sense to me what was different. The rules wasn’t being overridden by something
   being out of order or anything like that. Anyhow, thanks for your help!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Autoptimize] css out of order?](https://wordpress.org/support/topic/css-out-of-order/)
 *  Thread Starter [reggieofarrell](https://wordpress.org/support/users/ofarrellaudio/)
 * (@ofarrellaudio)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/css-out-of-order/#post-10877929)
 * Thanks Frank. That helped me out a bit. I was able to add our custom.css file
   to the comma separated list of ignore file in the advanced options. It looks 
   like it’s still being processed, but I guess maybe it’s just being minified now?
   For some reason, this fixes the problem in Chrome, but not Firefox. The issue
   is only affecting the header for logged in users, but this is a subscription 
   site so most of our visitors are logged in. Any idea why this would be happening
   in Firefox and not Chrome? So strange!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Site not visible on mobile phones after upgrade](https://wordpress.org/support/topic/site-not-visible-on-mobile-phones-after-upgrade/)
 *  Thread Starter [reggieofarrell](https://wordpress.org/support/users/ofarrellaudio/)
 * (@ofarrellaudio)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/site-not-visible-on-mobile-phones-after-upgrade/#post-2443196)
 * I deleted all of the MOBIAPLUSHASH garbage and that seems to have fixed my problem.
   Thanks for pointing out the .htaccess file! I never would have checked that.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Site not visible on mobile phones after upgrade](https://wordpress.org/support/topic/site-not-visible-on-mobile-phones-after-upgrade/)
 *  Thread Starter [reggieofarrell](https://wordpress.org/support/users/ofarrellaudio/)
 * (@ofarrellaudio)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/site-not-visible-on-mobile-phones-after-upgrade/#post-2443190)
 * the .htaccess file in my root directory reads this…
 * # BEGIN WordPress
    <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule
   ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}!-
   d RewriteRule . /index.php [L] </IfModule>
 * # END WordPress
 * ###[==MOBIAPLUSHASH_<%DOMAIN_HASH%>=]###
 * RewriteEngine On
    RewriteBase / RewriteCond %{REQUEST_URI} !^.*[^/]$ RewriteCond%{
   REQUEST_URI} !^.*//.*$ RewriteCond %{REQUEST_METHOD} !POST RewriteCond %{QUERY_STRING}!.*
   =.* RewriteCond %{HTTP:X-WAP-PROFILE} !^$ [OR] RewriteCond %{HTTP:PROFILE} !^
   $ [OR] RewriteCond %{HTTP_USER_AGENT} ^.*(Alcatel|Asus|Android|BlackBerry|Ericsson
   |Fly|Huawei|i-mate|iPAQ|iPhone|iPod|LG-|LGE-|MDS_|MOT-|Nokia|Palm|Panasonic|Pantech
   |Philips|Sagem|Samsung|Sharp|SIE-|Symbian|Vodafone|Voxtel|WebOS|Windows\s+CE|
   ZTE-|Zune).*$ [NC,OR] RewriteCond %{HTTP_ACCEPT} application/vnd.wap.xhtml\+xml[
   NC,OR] RewriteCond %{HTTP_ACCEPT} text/vnd.wap.wml [NC] RewriteCond %{SERVER_PORT}!
   ^443$ RewriteCond %{SERVER_NAME} ^www\.(.*)$ RewriteRule ^(.*) [http://m.%1/](http://m.%1/)[
   L]
 * RewriteCond %{REQUEST_URI} !^.*[^/]$
    RewriteCond %{REQUEST_URI} !^.*//.*$ RewriteCond%{
   REQUEST_METHOD} !POST RewriteCond %{QUERY_STRING} !.*=.* RewriteCond %{HTTP:X-
   WAP-PROFILE} !^$ [OR] RewriteCond %{HTTP:PROFILE} !^$ [OR] RewriteCond %{HTTP_USER_AGENT}
   ^.*(Alcatel|Asus|Android|BlackBerry|Ericsson|Fly|Huawei|i-mate|iPAQ|iPhone|iPod
   |LG-|LGE-|MDS_|MOT-|Nokia|Palm|Panasonic|Pantech|Philips|Sagem|Samsung|Sharp|
   SIE-|Symbian|Vodafone|Voxtel|WebOS|Windows\s+CE|ZTE-|Zune).*$ [NC,OR] RewriteCond%{
   HTTP_ACCEPT} application/vnd.wap.xhtml\+xml [NC,OR] RewriteCond %{HTTP_ACCEPT}
   text/vnd.wap.wml [NC] RewriteRule ^(.*) [http://m.%](http://m.%){HTTP_HOST}/ [
   L]
 * ###[=MOBIAPLUSHASH_<%DOMAIN_HASH%>==]###
 * Everything after the END WordPress tag in this looks very suspicious. It looks
   like it was added by my hosting company since they are called Aplus. Maybe I 
   should just delete everything after the END WordPress tag?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Site not visible on mobile phones after upgrade](https://wordpress.org/support/topic/site-not-visible-on-mobile-phones-after-upgrade/)
 *  Thread Starter [reggieofarrell](https://wordpress.org/support/users/ofarrellaudio/)
 * (@ofarrellaudio)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/site-not-visible-on-mobile-phones-after-upgrade/#post-2443177)
 * I tried deactivating all of the plugins. It still re-directs my mobile browser
   to m.thewombrecording.com

Viewing 15 replies - 1 through 15 (of 15 total)