Make WordPress Core


Ignore:
Timestamp:
03/04/2019 08:46:25 PM (5 years ago)
Author:
desrosj
Message:

Privacy: Remove privacy feature related admin pointers.

In 4.9.6, several new privacy related features were introduced. Admin pointers were included to make administrators aware of these features. They have served their purpose and can now go silently into the night.

Props garrett-eclipse, desrosj, xkon.
Fixes #45999.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-internal-pointers.php

    r43571 r44787  
    4242         */
    4343        $registered_pointers = array(
    44             'index.php' => 'wp496_privacy',
     44            //None currently.
    4545        );
    4646
     
    6666         */
    6767        $caps_required = array(
    68             'wp496_privacy' => array(
    69                 'manage_privacy_options',
    70                 'export_others_personal_data',
    71                 'erase_others_personal_data',
    72             ),
     68            // None currently.
    7369        );
    7470
     
    155151    public static function pointer_wp390_widgets() {}
    156152    public static function pointer_wp410_dfw() {}
    157 
    158     /**
    159      * Display a pointer for the new privacy tools.
    160      *
    161      * @since 4.9.6
    162      */
    163     public static function pointer_wp496_privacy() {
    164         $content  = '<h3>' . __( 'Personal Data and Privacy' ) . '</h3>';
    165         $content .= '<h4>' . __( 'Personal Data Export and Erasure' ) . '</h4>';
    166         $content .= '<p>' . __( 'New <strong>Tools</strong> have been added to help you with personal data export and erasure requests.' ) . '</p>';
    167         $content .= '<h4>' . __( 'Privacy Policy' ) . '</h4>';
    168         $content .= '<p>' . __( 'Create or select your site&#8217;s privacy policy page under <strong>Settings &gt; Privacy</strong> to keep your users informed and aware.' ) . '</p>';
    169 
    170         if ( is_rtl() ) {
    171             $position = array(
    172                 'edge'  => 'right',
    173                 'align' => 'bottom',
    174             );
    175         } else {
    176             $position = array(
    177                 'edge'  => 'left',
    178                 'align' => 'bottom',
    179             );
    180         }
    181 
    182         $js_args = array(
    183             'content'      => $content,
    184             'position'     => $position,
    185             'pointerClass' => 'wp-pointer arrow-bottom',
    186             'pointerWidth' => 420,
    187         );
    188         self::print_js( 'wp496_privacy', '#menu-tools', $js_args );
    189     }
     153    public static function pointer_wp496_privacy() {}
    190154
    191155    /**
     
    197161     */
    198162    public static function dismiss_pointers_for_new_users( $user_id ) {
    199         add_user_meta( $user_id, 'dismissed_wp_pointers', 'wp496_privacy' );
     163        add_user_meta( $user_id, 'dismissed_wp_pointers', '' );
    200164    }
    201165}
Note: See TracChangeset for help on using the changeset viewer.