Making WordPress.org

Changeset 7703


Ignore:
Timestamp:
09/24/2018 11:33:09 PM (6 years ago)
Author:
coreymckrill
Message:

WordCamp: Turn off the default erasure callback for Feedback posts

To accord with WordCamp's data retention policies, Feedback posts should not
be automatically deleted during the process of an erasure request.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/jetpack-tweaks/privacy.php

    r7239 r7703  
    88defined( 'WPINC' ) || die();
    99
    10 add_action( 'jetpack_active_modules', __NAMESPACE__ . '\load_jetpack_widgets_module' );
    11 add_action( 'wp_footer',              __NAMESPACE__ . '\render_cookie_banner'        );
     10add_action( 'jetpack_active_modules',           __NAMESPACE__ . '\load_jetpack_widgets_module'    );
     11add_action( 'wp_footer',                        __NAMESPACE__ . '\render_cookie_banner'           );
     12add_filter( 'wp_privacy_personal_data_erasers', __NAMESPACE__ . '\modify_erasers',             99 );
    1213
    1314
     
    6364    $cookie_law_widget->enqueue_frontend_scripts();
    6465}
     66
     67/**
     68 * Modify the list of personal data eraser callbacks.
     69 *
     70 * @param array $erasers
     71 *
     72 * @return array mixed
     73 */
     74function modify_erasers( $erasers ) {
     75    // Temporarily disable the default eraser callbacks.
     76    unset( $erasers['jetpack-feedback'] );
     77
     78    return $erasers;
     79}
Note: See TracChangeset for help on using the changeset viewer.