File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -151,7 +151,11 @@ public function render_api_key() {
151151 if (is_multisite () && !empty ($ multisite_key )) {
152152 echo '<p> ' . self ::translate ('The API key has been installed by the Network Admin ' ) . '.</p> ' ;
153153 } else {
154- echo '<input type="text" id=" ' . $ field . '" name=" ' . $ field . '" value=" ' . htmlspecialchars ($ key ) . '" size="40" /> ' ;
154+ if (defined ('TINY_API_KEY ' )) {
155+ echo '<p> ' . self ::translate ('The API key has been configured in wp-config.php ' ) . '.</p> ' ;
156+ } else {
157+ echo '<input type="text" id=" ' . $ field . '" name=" ' . $ field . '" value=" ' . htmlspecialchars ($ key ) . '" size="40" /> ' ;
158+ }
155159 if (empty ($ key )) {
156160 echo '<p> ' ;
157161 $ link = '<a href="https://tinypng.com/developers"> ' . self ::translate_escape ('TinyPNG Developer section ' ) . '</a> ' ;
Original file line number Diff line number Diff line change @@ -105,3 +105,6 @@ msgstr "Je netwerkbeheerder kan de sleutel wijzigen"
105105
106106msgid "The API key has been installed by the Network Admin"
107107msgstr "De API-sleutel is geïnstalleerd door de netwerkbeheerder"
108+
109+ msgid "The API key has been configured in wp-config.php"
110+ msgstr "De API-sleutel is geconfigureerd in wp-config.php"
You can’t perform that action at this time.
0 commit comments