PluginProbe
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant / 2.3.2
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant v2.3.2
2.3.2 2.3.1 2.3.0 2.2.8 2.2.7 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.11.0 1.11.1 1.11.2 1.6 1.7 1.8 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 1.9.10 1.9.11 All 60 releases
← All changes | admin/classes/class-merchant-admin-utils.php +42 -43 1.62.3.2 View file →
@@ -1,43 +1,42 @@
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 -}
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 +}