- Timestamp:
- 10/24/2020 03:32:46 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-application-passwords-list-table.php
r49197 r49294 105 105 * 106 106 * @since 5.6.0 107 */ 108 public function column_revoke() { 109 submit_button( __( 'Revoke' ), 'delete', 'revoke-application-password', false ); 107 * 108 * @param array $item The current application password item. 109 */ 110 public function column_revoke( $item ) { 111 submit_button( 112 __( 'Revoke' ), 113 'delete', 114 'revoke-application-password-' . $item['uuid'], 115 false, 116 array( 117 /* translators: %s: the application password's given name. */ 118 'title' => sprintf( __( 'Revoke "%s"' ), $item['name'] ), 119 ) 120 ); 110 121 } 111 122 … … 221 232 break; 222 233 case 'revoke': 223 echo $this->column_revoke(); 234 printf( 235 '<input type="submit" class="button delete" value="%1$s" title="%2$s">', 236 esc_attr( __( 'Revoke' ) ), 237 /* translators: %s: the application password's given name. */ 238 esc_attr( sprintf( __( 'Revoke "%s"' ), '{{ data.name }}' ) ) 239 ); 224 240 break; 225 241 default:
Note: See TracChangeset
for help on using the changeset viewer.