Changeset 44787
- Timestamp:
- 03/04/2019 08:46:25 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-internal-pointers.php
r43571 r44787 42 42 */ 43 43 $registered_pointers = array( 44 'index.php' => 'wp496_privacy',44 //None currently. 45 45 ); 46 46 … … 66 66 */ 67 67 $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. 73 69 ); 74 70 … … 155 151 public static function pointer_wp390_widgets() {} 156 152 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’s privacy policy page under <strong>Settings > 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() {} 190 154 191 155 /** … … 197 161 */ 198 162 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', '' ); 200 164 } 201 165 }
Note: See TracChangeset
for help on using the changeset viewer.