@@ -45,12 +45,6 @@ class Plugins
4545 */
4646 public static function currentURL (array $ params = [])
4747 {
48- if ( ! function_exists ('current_url ' ))
49- // can't unit test this since it is loaded in CIUnitTestCase setup
50- // @codeCoverageIgnoreStart
51- helper ('url ' );
52- // @codeCoverageIgnoreEnd
53-
5448 return current_url ();
5549 }
5650
@@ -63,12 +57,6 @@ public static function currentURL(array $params = [])
6357 */
6458 public static function previousURL (array $ params = [])
6559 {
66- if ( ! function_exists ('previous_url ' ))
67- // can't unit test this since it is loaded in CIUnitTestCase setup
68- // @codeCoverageIgnoreStart
69- helper ('url ' );
70- // @codeCoverageIgnoreEnd
71-
7260 return previous_url ();
7361 }
7462
@@ -81,12 +69,6 @@ public static function previousURL(array $params = [])
8169 */
8270 public static function mailto (array $ params = [])
8371 {
84- if ( ! function_exists ('mailto ' ))
85- // can't unit test this since it is loaded in CIUnitTestCase setup
86- // @codeCoverageIgnoreStart
87- helper ('url ' );
88- // @codeCoverageIgnoreEnd
89-
9072 $ email = $ params ['email ' ] ?? '' ;
9173 $ title = $ params ['title ' ] ?? '' ;
9274 $ attrs = $ params ['attributes ' ] ?? '' ;
@@ -103,12 +85,6 @@ public static function mailto(array $params = [])
10385 */
10486 public static function safeMailto (array $ params = [])
10587 {
106- if ( ! function_exists ('safe_mailto ' ))
107- // can't unit test this since it is loaded in CIUnitTestCase setup
108- // @codeCoverageIgnoreStart
109- helper ('url ' );
110- // @codeCoverageIgnoreEnd
111-
11288 $ email = $ params ['email ' ] ?? '' ;
11389 $ title = $ params ['title ' ] ?? '' ;
11490 $ attrs = $ params ['attributes ' ] ?? '' ;
0 commit comments