Title: danielbitzer's Replies | WordPress.org

---

# danielbitzer

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[OSD Social Media Sharing] Pinterest https](https://wordpress.org/support/topic/hover-icon-is-not-working/)
 *  [danielbitzer](https://wordpress.org/support/users/danielbitzer/)
 * (@danielbitzer)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/hover-icon-is-not-working/#post-6063617)
 * +1
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Wordfence Security - Firewall, Malware Scan, and Login Security] Wordfence alters the version url parameter for enqueued scripts and styles](https://wordpress.org/support/topic/wordfence-alters-the-version-url-parameter-for-enqueued-scripts-and-styles/)
 *  Thread Starter [danielbitzer](https://wordpress.org/support/users/danielbitzer/)
 * (@danielbitzer)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/wordfence-alters-the-version-url-parameter-for-enqueued-scripts-and-styles/#post-7025647)
 * Thanks guys, love your work!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Wordfence Security - Firewall, Malware Scan, and Login Security] Wordfence alters the version url parameter for enqueued scripts and styles](https://wordpress.org/support/topic/wordfence-alters-the-version-url-parameter-for-enqueued-scripts-and-styles/)
 *  Thread Starter [danielbitzer](https://wordpress.org/support/users/danielbitzer/)
 * (@danielbitzer)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/wordfence-alters-the-version-url-parameter-for-enqueued-scripts-and-styles/#post-7025396)
 * Thanks for your response Tim, I realised that after my initial comment.
 * I’d still suggest that small change because the script version is not always 
   set to the wordpress version. Its extremely useful for plugins to define their
   own version for a script so that when an update is released any caches can be
   cleared.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Wordfence Security - Firewall, Malware Scan, and Login Security] Wordfence alters the version url parameter for enqueued scripts and styles](https://wordpress.org/support/topic/wordfence-alters-the-version-url-parameter-for-enqueued-scripts-and-styles/)
 *  Thread Starter [danielbitzer](https://wordpress.org/support/users/danielbitzer/)
 * (@danielbitzer)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/wordfence-alters-the-version-url-parameter-for-enqueued-scripts-and-styles/#post-7025381)
 * Suggested change to wordfence::replaceVersion()
 *     ```
       public static function replaceVersion($url){
       		global $wp_version;
   
       		$parts = parse_url($url);
       		parse_str($parts['query'], $query);
   
       		$version = empty($query['ver']) ? $wp_version : $query['ver'];
   
       		$version = wp_hash($version . WORDFENCE_VERSION);
   
       		return preg_replace("/([&;\?]ver)=[0-9\.]+/", "$1={$version}", $url);
       	}
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Wordfence Security - Firewall, Malware Scan, and Login Security] Wordfence alters the version url parameter for enqueued scripts and styles](https://wordpress.org/support/topic/wordfence-alters-the-version-url-parameter-for-enqueued-scripts-and-styles/)
 *  Thread Starter [danielbitzer](https://wordpress.org/support/users/danielbitzer/)
 * (@danielbitzer)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/wordfence-alters-the-version-url-parameter-for-enqueued-scripts-and-styles/#post-7025380)
 * Looking further into this it appears this is a deliberate feature aiming to hide
   the WordPress version.
 * Might I suggest to hash the actual script version rather than the WP version.
   That way caches can still be refreshed when the a plugin or theme releases a 
   new version.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Email Test] CSS ignored](https://wordpress.org/support/topic/css-ignored/)
 *  [danielbitzer](https://wordpress.org/support/users/danielbitzer/)
 * (@danielbitzer)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/css-ignored/#post-6204423)
 * Hi raiserweb,
 * Try this fix for customer note preview on line 87 of functions.php file
 *     ```
       switch ( $for_filter )
       	{
       		case 'customer_note':
       			$new_email->trigger(array(
       				'order_id' => $wc_email_test_order_id,
       				'customer_note' => "Hi there, \n Donec ullamcorper nulla non metus auctor fringilla. Lorem ipsum dolor sit amet, consectetur adipiscing elit."
       			));
       			break;
       		default:
       			$new_email->trigger( $wc_email_test_order_id );
       			break;
       	}
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Email Test] CSS ignored](https://wordpress.org/support/topic/css-ignored/)
 *  [danielbitzer](https://wordpress.org/support/users/danielbitzer/)
 * (@danielbitzer)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/css-ignored/#post-6204421)
 * Hi, great plugin!
 * You just need to inline the CSS. That will fix this issue.
 * Change line 89 of the plugins functions.php file to:
 * `echo $new_email->style_inline( $new_email->get_content() );`

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