class-merchant-admin-utils.php in Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant 2.2.6, at admin/classes/class-merchant-admin-utils.php
| 1 | <?php |
| 2 | /** |
| 3 | * Merchant Admin Utils Functions. |
| 4 | */ |
| 5 | |
| 6 | if ( ! defined( 'ABSPATH' ) ) { |
| 7 | exit; // Exit if accessed directly |
| 8 | } |
| 9 | |
| 10 | /** |
| 11 | * SVG - wp_kses. |
| 12 | * Allows to svg in wp_kses. |
| 13 | */ |
| 14 | if ( ! function_exists( 'merchant_get_svg_args' ) ) { |
| 15 | function merchant_get_svg_args() { |
| 16 | |
| 17 | return array( |
| 18 | 'svg' => array( |
| 19 | 'fill' => true, |
| 20 | 'class' => true, |
| 21 | 'xmlns' => true, |
| 22 | 'width' => true, |
| 23 | 'height' => true, |
| 24 | 'viewbox' => true, |
| 25 | ), |
| 26 | 'rect' => array( |
| 27 | 'fill' => true, |
| 28 | 'width' => true, |
| 29 | 'height' => true, |
| 30 | 'rx' => true, |
| 31 | ), |
| 32 | 'title' => array( |
| 33 | 'fill' => true, |
| 34 | 'title' => true, |
| 35 | ), |
| 36 | 'path' => array( |
| 37 | 'fill' => true, |
| 38 | 'd' => true, |
| 39 | ), |
| 40 | ); |
| 41 | } |
| 42 | } |
| 43 |