| @@ -11,11 +11,8 @@ | ||
| 11 | 11 | |
| 12 | 12 | use Authorizer\Helper; |
| 13 | 13 | use Authorizer\Options; |
| 14 | 14 | |
| 15 | -// Prevent direct access. | |
| 16 | -defined( 'ABSPATH' ) || exit; | |
| 17 | - | |
| 18 | 15 | /** |
| 19 | 16 | * Contains functions for rendering the Google options in the External Service |
| 20 | 17 | * tab in Authorizer Settings. |
| 21 | 18 | */ |
| @@ -23,9 +20,9 @@ | ||
| 23 | 20 | |
| 24 | 21 | /** |
| 25 | 22 | * Settings print callback. |
| 26 | 23 | * |
| 27 | - * @param array $args Args (e.g., multisite admin mode). | |
| 24 | + * @param string $args Args (e.g., multisite admin mode). | |
| 28 | 25 | * @return void |
| 29 | 26 | */ |
| 30 | 27 | public function print_checkbox_auth_external_google( $args = '' ) { |
| 31 | 28 | // Get plugin option. |
| @@ -42,9 +39,9 @@ | ||
| 42 | 39 | |
| 43 | 40 | /** |
| 44 | 41 | * Settings print callback. |
| 45 | 42 | * |
| 46 | - * @param array $args Args (e.g., multisite admin mode). | |
| 43 | + * @param string $args Args (e.g., multisite admin mode). | |
| 47 | 44 | * @return void |
| 48 | 45 | */ |
| 49 | 46 | public function print_text_google_clientid( $args = '' ) { |
| 50 | 47 | // Get plugin option. |
| @@ -80,9 +77,9 @@ | ||
| 80 | 77 | <p class="description"> |
| 81 | 78 | <?php |
| 82 | 79 | echo wp_kses_post( |
| 83 | 80 | sprintf( |
| 84 | - /* TRANSLATORS: %s: filter name */ | |
| 81 | + /* TRANSLATORS: %s: authorizer_google_client_id (filter name) */ | |
| 85 | 82 | __( 'This setting is not editable since it has been defined in the %s filter.', 'authorizer' ), |
| 86 | 83 | '<code>authorizer_google_client_id</code>' |
| 87 | 84 | ) |
| 88 | 85 | ); |
| @@ -96,9 +93,9 @@ | ||
| 96 | 93 | <p class="description"> |
| 97 | 94 | <?php |
| 98 | 95 | echo wp_kses_post( |
| 99 | 96 | sprintf( |
| 100 | - /* TRANSLATORS: %s: defined constant name */ | |
| 97 | + /* TRANSLATORS: %s: AUTHORIZER_GOOGLE_CLIENT_ID (defined constant name) */ | |
| 101 | 98 | __( 'This setting is not editable since it has been defined in wp-config.php via %s', 'authorizer' ), |
| 102 | 99 | "<code>define( 'AUTHORIZER_GOOGLE_CLIENT_ID', '...' );</code>" |
| 103 | 100 | ) |
| 104 | 101 | ); |
| @@ -117,9 +114,9 @@ | ||
| 117 | 114 | |
| 118 | 115 | /** |
| 119 | 116 | * Settings print callback. |
| 120 | 117 | * |
| 121 | - * @param array $args Args (e.g., multisite admin mode). | |
| 118 | + * @param string $args Args (e.g., multisite admin mode). | |
| 122 | 119 | * @return void |
| 123 | 120 | */ |
| 124 | 121 | public function print_text_google_clientsecret( $args = '' ) { |
| 125 | 122 | // Get plugin option. |
| @@ -134,9 +131,9 @@ | ||
| 134 | 131 | <p class="description"> |
| 135 | 132 | <?php |
| 136 | 133 | echo wp_kses_post( |
| 137 | 134 | sprintf( |
| 138 | - /* TRANSLATORS: %s: filter name */ | |
| 135 | + /* TRANSLATORS: %s: authorizer_google_client_secret (filter name) */ | |
| 139 | 136 | __( 'This setting is not editable since it has been defined in the %s filter.', 'authorizer' ), |
| 140 | 137 | '<code>authorizer_google_client_secret</code>' |
| 141 | 138 | ) |
| 142 | 139 | ); |
| @@ -150,9 +147,9 @@ | ||
| 150 | 147 | <p class="description"> |
| 151 | 148 | <?php |
| 152 | 149 | echo wp_kses_post( |
| 153 | 150 | sprintf( |
| 154 | - /* TRANSLATORS: %s: defined constant name */ | |
| 151 | + /* TRANSLATORS: %s: AUTHORIZER_GOOGLE_CLIENT_SECRET (defined constant name) */ | |
| 155 | 152 | __( 'This setting is not editable since it has been defined in wp-config.php via %s', 'authorizer' ), |
| 156 | 153 | "<code>define( 'AUTHORIZER_GOOGLE_CLIENT_SECRET', '...' );</code>" |
| 157 | 154 | ) |
| 158 | 155 | ); |
| @@ -173,9 +170,9 @@ | ||
| 173 | 170 | |
| 174 | 171 | /** |
| 175 | 172 | * Settings print callback. |
| 176 | 173 | * |
| 177 | - * @param array $args Args (e.g., multisite admin mode). | |
| 174 | + * @param string $args Args (e.g., multisite admin mode). | |
| 178 | 175 | * @return void |
| 179 | 176 | */ |
| 180 | 177 | public function print_text_google_hosteddomain( $args = '' ) { |
| 181 | 178 | // Get plugin option. |