Title: henza's Replies | WordPress.org

---

# henza

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce PayPal Checkout Payment Gateway] Paypal error 10431](https://wordpress.org/support/topic/paypal-error-10431/)
 *  [henza](https://wordpress.org/support/users/henza/)
 * (@henza)
 * [9 years ago](https://wordpress.org/support/topic/paypal-error-10431/#post-9379247)
 * Hi Shane,
 * I opened a ticket over on [GitHub](https://github.com/woocommerce/woocommerce-gateway-paypal-express-checkout/issues/309).
   I would love to let you poke around but it is a clients live website and I am
   not sure they would appreciate that 😉
 * Cheers,
    Henry
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce PayPal Checkout Payment Gateway] Paypal error 10431](https://wordpress.org/support/topic/paypal-error-10431/)
 *  [henza](https://wordpress.org/support/users/henza/)
 * (@henza)
 * [9 years ago](https://wordpress.org/support/topic/paypal-error-10431/#post-9368587)
 * Yep latest of all.
    – WordPress `V4.8` – WooCommerce `V3.1.1` – WooCommerce PayPal
   Express Checkout Gateway `V1.4.2`
 * Cheers.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce PayPal Checkout Payment Gateway] Paypal error 10431](https://wordpress.org/support/topic/paypal-error-10431/)
 *  [henza](https://wordpress.org/support/users/henza/)
 * (@henza)
 * [9 years ago](https://wordpress.org/support/topic/paypal-error-10431/#post-9365929)
 * I just had a PayPal integration engineer confirm that it is an issue with the
   plugin not rounding the total before it gets sent to PayPal.
    He also suggested
   using [https://www.angelleye.com/product/woocommerce-paypal-plugin/](https://www.angelleye.com/product/woocommerce-paypal-plugin/)
   in the interim.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce PayPal Checkout Payment Gateway] Paypal error 10431](https://wordpress.org/support/topic/paypal-error-10431/)
 *  [henza](https://wordpress.org/support/users/henza/)
 * (@henza)
 * [9 years ago](https://wordpress.org/support/topic/paypal-error-10431/#post-9365566)
 * I reckon so! I am getting the exact same error with the same environment as you.
   Weird thing is that if you enable the ‘Checkout on cart page’ button it works
   from there…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SVG Support] in_array() PHP Error](https://wordpress.org/support/topic/in_array-php-error/)
 *  [henza](https://wordpress.org/support/users/henza/)
 * (@henza)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/in_array-php-error/#post-9314886)
 * Hi Ben.
 * I noticed this warning cropping up on a site I am working on.
 * `Warning: in_array() expects parameter 2 to be array, boolean given in /htdocs/
   nm-wordpress/wp-content/plugins/svg-support/functions/featured-image.php on line
   69`
 * Just wanted to let you know in case you thought the bug was squashed 🙂
    Great
   work on the plugin too by the way!
 * Cheers,
    Henry
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Firelight Lightbox] SVG Icons to Open Multiple Galleries On One Page](https://wordpress.org/support/topic/svg-icons-to-open-multiple-galleries-on-one-page/)
 *  Thread Starter [henza](https://wordpress.org/support/users/henza/)
 * (@henza)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/svg-icons-to-open-multiple-galleries-on-one-page/#post-8950907)
 * Thanks! That worked. One thing I did notice though is that the galleries numbering
   don’t align with the media rel tags. ie. The gallery div with `id="gallery-1"`
   will contain links with `rel="gallery-0"`. Not sure if this is a bug or just 
   a glitch on my site.
 * Anyway, I am off to purchase the pro version as a show of support! Keep up the
   great work, and thanks again.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Firelight Lightbox] SVG Icons to Open Multiple Galleries On One Page](https://wordpress.org/support/topic/svg-icons-to-open-multiple-galleries-on-one-page/)
 *  Thread Starter [henza](https://wordpress.org/support/users/henza/)
 * (@henza)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/svg-icons-to-open-multiple-galleries-on-one-page/#post-8941928)
 * Okay, I figured out how to get it to work with individual image links:
 *     ```
       <a href="image-b1-1.jpg" rel="brand-1"><img src="brand-1.svg" /></a>
       <a href="image-b2-1.jpg" rel="brand-2"><img src="brand-2.svg" /></a>
   
       <div class="fancybox-hidden">
          <a href="image-b1-2.jpg" rel="brand-1"><img src="image-b1-2-150x150.jpg" /></a>
          <a href="image-b1-3.jpg" rel="brand-1"><img src="image-b1-3-150x150.jpg" /></a>
          <a href="image-b2-2.jpg" rel="brand-2"><img src="image-b1-2-150x150.jpg" /></a>
          <a href="image-b2-3.jpg" rel="brand-2"><img src="image-b1-3-150x150.jpg" /></a>
       </div>
       ```
   
 * Is it possible to refactor this to use WP galleries instead? Something like:
 *     ```
       <a href="image-b1-1.jpg" rel="brand-1"><img src="brand-1.svg" /></a>
       <a href="image-b2-1.jpg" rel="brand-2"><img src="brand-2.svg" /></a>
   
       <div class="fancybox-hidden">
       [gallery link="file" rel="brand-1" ids="150,151,152"]
       [gallery link="file" rel="brand-2" ids="153,154,155"]
       </div>
       ```
   
 * Thanks again.
    -  This reply was modified 9 years, 4 months ago by [henza](https://wordpress.org/support/users/henza/).
    -  This reply was modified 9 years, 4 months ago by [henza](https://wordpress.org/support/users/henza/).
      Reason: added second brand & removed cruft for clarity
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Shortcodes] Toogle initially open?](https://wordpress.org/support/topic/toogle-initially-open/)
 *  [henza](https://wordpress.org/support/users/henza/)
 * (@henza)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/toogle-initially-open/#post-4934194)
 * Will it be possible for the toggles to be open on the desktop site but closed
   for mobile?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Details] Badly escaped aposrophes](https://wordpress.org/support/topic/badly-escaped-aposrophes/)
 *  [henza](https://wordpress.org/support/users/henza/)
 * (@henza)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/badly-escaped-aposrophes/#post-4907491)
 * Hi Patabugen,
    I had this issue, and I also wanted to be able to add html tags
   but these were all getting stripped, double escaped or encoded to entities. My
   solution involved modifying the code, removing the ‘sanitize_text_field’ and 
   replacing it with ‘mysql_real_escape_string’ (couldn’t find a suitable WP function).
   This worked for the html tags, but quotes were being double escaped which means‘
   magic_quotes_gpc’ must be on. To fix this run it through ‘stripslashes’ first,
   and of course you need to strip the slashes out again when it is being printed
   out. Otherwise you will see the escape.
 * Code if you (or the developers) are interested:
 *     ```
       // Saving to the DB
       $contactDetails = array_map('stripslashes', $_POST['contact_details']);
       if( update_option('contact_details',array_map('mysql_real_escape_string',$contactDetails)))
          echo '<p>Successfully updated your Business Details.</p>';
       ```
   
 * and..
 *     ```
       // Return shortcode
       if( $data = get_option( 'contact_details' ) )
          return stripslashes($data[$attributes['type']]);
       ```
   
 * Keep up the great work on the plugin!

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