Making WordPress.org


Ignore:
Timestamp:
11/09/2017 01:29:02 AM (7 years ago)
Author:
iandunn
Message:

WordCamp Budgets: Limit access to payment details to protect privacy.

Props hugo-finley, idea15, andreamiddleton
See #3244

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/metabox-payment.php

    r4967 r6094  
     1<?php if ( current_user_can( 'view_wordcamp_payment_details' ) ) : ?>
     2
    13<?php if ( ! empty( $box['args']['introduction_message'] ) ) : ?>
    24    <p>
     
    46    </p>
    57<?php endif; ?>
     8
     9    <p>
     10        <?php echo esc_html( sprintf(
     11            __( "Payment information will be redacted %d days after the payment has been sent. Until then, it will be available to you and to trusted network administrators.", 'wordcamporg' ),
     12            WordCamp_Budgets::PAYMENT_INFO_RETENTION_PERIOD
     13        ) ); ?>
     14    </p>
    615
    716<fieldset <?php disabled( $box['args']['fields_enabled'], false ); ?> >
     
    95104    <?php esc_html_e( '* required', 'wordcamporg' ); ?>
    96105</p>
     106
     107<?php else : ?>
     108
     109    <?php esc_html_e( 'Only the request author and network administrators can view payment details.', 'wordcamporg' ); ?>
     110
     111<?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.