Changeset 49294 for trunk/src/wp-admin/authorize-application.php
- Timestamp:
- 10/24/2020 03:32:46 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/authorize-application.php
r49291 r49294 128 128 <?php endif; ?> 129 129 130 <div class="card js-auth-app-card">130 <div class="card auth-app-card"> 131 131 <h2 class="title"><?php __( 'An application would like to connect to your account.' ); ?></h2> 132 132 <?php if ( $app_name ) : ?> … … 171 171 <?php if ( $new_password ) : ?> 172 172 <div class="notice notice-success notice-alt below-h2"> 173 <p class=" password-display">173 <p class="application-password-display"> 174 174 <?php 175 175 printf( … … 177 177 __( 'Your new password for %1$s is %2$s.' ), 178 178 '<strong>' . esc_html( $app_name ) . '</strong>', 179 '<kbd>' . esc_html( WP_Application_Passwords::chunk_password( $new_password ) ) . '</kbd>'179 sprintf( '<input type="text" class="code" readonly="readonly" value="%s" />', esc_attr( WP_Application_Passwords::chunk_password( $new_password ) ) ) 180 180 ); 181 181 ?> … … 196 196 ?> 197 197 <?php else : ?> 198 <form action="<?php echo esc_url( admin_url( 'authorize-application.php' ) ); ?>" method="post" >198 <form action="<?php echo esc_url( admin_url( 'authorize-application.php' ) ); ?>" method="post" class="form-wrap"> 199 199 <?php wp_nonce_field( 'authorize_application_password' ); ?> 200 200 <input type="hidden" name="action" value="authorize_application_password" /> … … 203 203 <input type="hidden" name="reject_url" value="<?php echo esc_url( $reject_url ); ?>" /> 204 204 205 <label for="app_name"><?php esc_html_e( 'Application Title:' ); ?></label> 206 <input type="text" id="app_name" name="app_name" value="<?php echo esc_attr( $app_name ); ?>" placeholder="<?php esc_attr_e( 'Name this connection…' ); ?>" required /> 205 <div class="form-field"> 206 <label for="app_name"><?php _e( 'New Application Password Name' ); ?></label> 207 <input type="text" id="app_name" name="app_name" value="<?php echo esc_attr( $app_name ); ?>" placeholder="<?php esc_attr_e( 'WordPress App on My Phone' ); ?>" required aria-required="true" /> 208 </div> 207 209 208 210 <?php … … 224 226 ?> 225 227 226 <p><?php submit_button( __( 'Yes, I approve of this connection.' ), 'primary', 'approve', false ); ?> 227 <br /><em> 228 <?php 229 submit_button( 230 __( 'Yes, I approve of this connection.' ), 231 'primary', 232 'approve', 233 false, 234 array( 235 'aria-describedby' => 'description-approve', 236 ) 237 ); 238 ?> 239 <p class="description" id="description-approve"> 228 240 <?php 229 241 if ( $success_url ) { … … 246 258 } 247 259 ?> 248 </em> 249 </p> 250 251 <p><?php submit_button( __( 'No, I do not approve of this connection.' ), 'secondary', 'reject', false ); ?> 252 <br /><em> 260 </p> 261 262 <?php 263 submit_button( 264 __( 'No, I do not approve of this connection.' ), 265 'secondary', 266 'reject', 267 false, 268 array( 269 'aria-describedby' => 'description-reject', 270 ) 271 ); 272 ?> 273 <p class="description" id="description-reject"> 253 274 <?php 254 275 if ( $reject_url ) { … … 262 283 } 263 284 ?> 264 </em>265 285 </p> 266 286 </form>
Note: See TracChangeset
for help on using the changeset viewer.