- Timestamp:
- 04/29/2024 06:50:42 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-legacy/buddypress/members/single/settings/data.php
r13472 r13822 25 25 <?php 26 26 /* translators: %s: expiration date */ 27 printf( esc_html__( 'You may download your personal data by clicking on the link below. For privacy and security, we will automatically delete the file on %s, so please download it before then.', 'buddypress' ), bp_settings_get_personal_data_expiration_date( $request) );27 printf( esc_html__( 'You may download your personal data by clicking on the link below. For privacy and security, we will automatically delete the file on %s, so please download it before then.', 'buddypress' ), esc_html( bp_settings_get_personal_data_expiration_date( $request ) ) ); 28 28 ?> 29 29 </p> 30 30 31 <p><strong><?php printf( '<a href="%1$s">%2$s</a>', bp_settings_get_personal_data_export_url( $request), esc_html__( 'Download personal data', 'buddypress' ) ); ?></strong></p>31 <p><strong><?php printf( '<a href="%1$s">%2$s</a>', esc_url( bp_settings_get_personal_data_export_url( $request ) ), esc_html__( 'Download personal data', 'buddypress' ) ); ?></strong></p> 32 32 33 33 <?php else : ?> … … 37 37 38 38 <form id="bp-data-export" method="post"> 39 <input type="hidden" name="bp-data-export-delete-request-nonce" value="<?php echo wp_create_nonce( 'bp-data-export-delete-request'); ?>" />40 <button type="submit" name="bp-data-export-nonce" value="<?php echo wp_create_nonce( 'bp-data-export'); ?>"><?php esc_html_e( 'Request new data export', 'buddypress' ); ?></button>39 <input type="hidden" name="bp-data-export-delete-request-nonce" value="<?php echo esc_attr( wp_create_nonce( 'bp-data-export-delete-request' ) ); ?>" /> 40 <button type="submit" name="bp-data-export-nonce" value="<?php echo esc_attr( wp_create_nonce( 'bp-data-export' ) ); ?>"><?php esc_html_e( 'Request new data export', 'buddypress' ); ?></button> 41 41 </form> 42 42 … … 48 48 <?php 49 49 /* translators: %s: confirmation date */ 50 printf( esc_html__( 'You previously requested an export of your personal data on %s.', 'buddypress' ), bp_settings_get_personal_data_confirmation_date( $request) );50 printf( esc_html__( 'You previously requested an export of your personal data on %s.', 'buddypress' ), esc_html( bp_settings_get_personal_data_confirmation_date( $request ) ) ); 51 51 ?> 52 52 </p> … … 64 64 65 65 <form id="bp-data-export" method="post"> 66 <button type="submit" name="bp-data-export-nonce" value="<?php echo wp_create_nonce( 'bp-data-export'); ?>"><?php esc_html_e( 'Request personal data export', 'buddypress' ); ?></button>66 <button type="submit" name="bp-data-export-nonce" value="<?php echo esc_attr( wp_create_nonce( 'bp-data-export' ) ); ?>"><?php esc_html_e( 'Request personal data export', 'buddypress' ); ?></button> 67 67 </form> 68 68
Note: See TracChangeset
for help on using the changeset viewer.