You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: inc/Helpers/Formatting/Escape.php
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -5,13 +5,13 @@
5
5
* Method for escaping attributes
6
6
*
7
7
* @param string $value Value to be escaped
8
-
* @param callable|string $escape We can pass an anonymous function or method in native escape form as a string (example: 'esc_url'). By default the method escapes the attributes
8
+
* @param string $escape We can pass an anonymous function or method in native escape form as a string (example: 'esc_url'). By default the method escapes the attributes
* @param callable|string $escape We can pass an anonymous function or method in native escape form as a string (example: 'wp_kses'). By default the method escapes the html
24
+
* @param string $escape We can pass an anonymous function or method in native escape form as a string (example: 'wp_kses'). By default the method escapes the html
Copy file name to clipboardExpand all lines: inc/Helpers/Formatting/Link.php
+21-15Lines changed: 21 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@
24
24
* @type string $before Optional. Markup to prepend to the image. Default empty.
25
25
* @type string $after Optional. Markup to append to the image. Default empty.
26
26
* @type array $escape Optional. An array where we specify as key the value we want to escape and as value the method to use. Example for the href ['escape' => ['href' => 'esc_url'] ]
27
-
*
27
+
* @type string $new_window Optional. Add <span class="sronly> for a11y
* @type string $before Optional. Markup to prepend to the image. Default empty.
81
81
* @type string $after Optional. Markup to append to the image. Default empty.
82
82
* @type array $escape Optional. An array where we specify as key the value we want to escape and as value the method to use. Example for the href ['escape' => ['href' => 'esc_url'] ]
83
-
*
83
+
* @type string $new_window Optional. Add <span class="sronly> for a11y
* @type string $content Optional. The content of the link
110
110
* @type string $before Optional. Markup to prepend to the image. Default empty.
111
111
* @type string $after Optional. Markup to append to the image. Default empty.
112
112
* @type array $escape Optional. An array where we specify as key the value we want to escape and as value the method to use. Example for the href ['escape' => ['href' => 'esc_url'] ]
113
+
* @type string $new_window Optional. Add <span class="sronly> for a11y
* @type string $before Optional. Markup to prepend to the image. Default empty.
196
202
* @type string $after Optional. Markup to append to the image. Default empty.
197
203
* @type array $escape Optional. An array where we specify as key the value we want to escape and as value the method to use. Example for the href ['escape' => ['href' => 'esc_url'] ]
198
-
*
204
+
* @type string $new_window Optional. Add <span class="sronly> for a11y
0 commit comments