danielbitzer
Forum Replies Created
-
Forum: Plugins
In reply to: [OSD Social Media Sharing] Pinterest https+1
Thanks guys, love your work!
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.
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); }
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
In reply to: [WooCommerce Email Test] CSS ignoredHi 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
In reply to: [WooCommerce Email Test] CSS ignoredHi, 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() );