| @@ -7,13 +7,8 @@ | ||
| 7 | 7 | * @version 1.0.0 |
| 8 | 8 | * @since 1.0.0 |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | -// Exit if accessed directly. | |
| 12 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 13 | - exit; | |
| 14 | -} | |
| 15 | - | |
| 16 | 11 | /** |
| 17 | 12 | * This function will return true for a non empty array |
| 18 | 13 | * |
| 19 | 14 | * @param array $array Array. |
| @@ -120,20 +115,4 @@ | ||
| 120 | 115 | function powerkit_set_data( $name, $value ) { |
| 121 | 116 | return powerkit()->set_data( $name, $value ); |
| 122 | 117 | } |
| 123 | 118 | |
| 124 | -/** | |
| 125 | - * Retrieves the translation of $text and escapes it for safe use in HTML output. | |
| 126 | - * | |
| 127 | - * If there is no translation, or the text domain isn't loaded, the original text | |
| 128 | - * is escaped and returned. | |
| 129 | - * | |
| 130 | - * @since 2.8.0 | |
| 131 | - * | |
| 132 | - * @param string $text Text to translate. | |
| 133 | - * @param string $domain Optional. Text domain. Unique identifier for retrieving translated strings. | |
| 134 | - * Default 'default'. | |
| 135 | - * @return string Translated text. | |
| 136 | - */ | |
| 137 | -function powerkit_esc_html__( $text, $domain = 'default' ) { | |
| 138 | - return esc_html( $text ); | |
| 139 | -} | |