Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/30/2020 11:57:03 PM (13 months ago)
Author:
imath
Message:

BP Nouveau: make sure users can delete their account from front end

  • Avoid using hashtags into tag attributes.
  • Improve the function to toggle the availability of the "delete my account" submit button.

Props dragoeco

Fixes #8383

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/settings/delete-account.php

    r12272 r12773  
    44 *
    55 * @since 3.0.0
    6  * @version 4.0.0
     6 * @version 7.0.0
    77 */
    88
     
    1515<?php bp_nouveau_user_feedback( 'member-delete-account' ); ?>
    1616
    17 <form action="<?php echo esc_url( bp_displayed_user_domain() . bp_get_settings_slug() . '/delete-account' ); ?>" name="account-delete-form" id="#account-delete-form" class="standard-form" method="post">
     17<form action="<?php echo esc_url( bp_displayed_user_domain() . bp_get_settings_slug() . '/delete-account' ); ?>" name="account-delete-form" id="account-delete-form" class="standard-form" method="post">
    1818
    1919    <label id="delete-account-understand" class="warn" for="delete-account-understand">
    20         <input class="disabled" type="checkbox" name="delete-account-understand" value="1" data-bp-disable-input="#delete-account-button" />
     20        <input class="disabled" type="checkbox" name="delete-account-understand" value="1" data-bp-disable-input="delete-account-button" />
    2121        <?php esc_html_e( 'I understand the consequences.', 'buddypress' ); ?>
    2222    </label>
Note: See TracChangeset for help on using the changeset viewer.