equal
deleted
inserted
replaced
18 return; |
18 return; |
19 } |
19 } |
20 |
20 |
21 add_filter( |
21 add_filter( |
22 'admin_body_class', |
22 'admin_body_class', |
23 function( $body_class ) { |
23 static function( $body_class ) { |
24 $body_class .= ' privacy-settings '; |
24 $body_class .= ' privacy-settings '; |
25 |
25 |
26 return $body_class; |
26 return $body_class; |
27 } |
27 } |
28 ); |
28 ); |
29 |
29 |
30 $action = isset( $_POST['action'] ) ? $_POST['action'] : ''; |
30 $action = isset( $_POST['action'] ) ? $_POST['action'] : ''; |
|
31 |
|
32 get_current_screen()->add_help_tab( |
|
33 array( |
|
34 'id' => 'overview', |
|
35 'title' => __( 'Overview' ), |
|
36 'content' => |
|
37 '<p>' . __( 'The Privacy screen lets you either build a new privacy-policy page or choose one you already have to show.' ) . '</p>' . |
|
38 '<p>' . __( 'This screen includes suggestions to help you write your own privacy policy. However, it is your responsibility to use these resources correctly, to provide the information required by your privacy policy, and to keep this information current and accurate.' ) . '</p>', |
|
39 ) |
|
40 ); |
|
41 |
|
42 get_current_screen()->set_help_sidebar( |
|
43 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
|
44 '<p>' . __( '<a href="https://wordpress.org/support/article/settings-privacy-screen/">Documentation on Privacy Settings</a>' ) . '</p>' |
|
45 ); |
31 |
46 |
32 if ( ! empty( $action ) ) { |
47 if ( ! empty( $action ) ) { |
33 check_admin_referer( $action ); |
48 check_admin_referer( $action ); |
34 |
49 |
35 if ( 'set-privacy-page' === $action ) { |
50 if ( 'set-privacy-page' === $action ) { |
172 <p> |
187 <p> |
173 <?php _e( 'The new page will include help and suggestions for your Privacy Policy.' ); ?> |
188 <?php _e( 'The new page will include help and suggestions for your Privacy Policy.' ); ?> |
174 <?php _e( 'However, it is your responsibility to use those resources correctly, to provide the information that your Privacy Policy requires, and to keep that information current and accurate.' ); ?> |
189 <?php _e( 'However, it is your responsibility to use those resources correctly, to provide the information that your Privacy Policy requires, and to keep that information current and accurate.' ); ?> |
175 </p> |
190 </p> |
176 <p> |
191 <p> |
177 <?php _e( 'After your Privacy Policy page is set, we suggest that you edit it.' ); ?> |
192 <?php _e( 'After your Privacy Policy page is set, you should edit it.' ); ?> |
178 <?php _e( 'We would also suggest reviewing your Privacy Policy from time to time, especially after installing or updating any themes or plugins. There may be changes or new suggested information for you to consider adding to your policy.' ); ?> |
193 <?php _e( 'You should also review your Privacy Policy from time to time, especially after installing or updating any themes or plugins. There may be changes or new suggested information for you to consider adding to your policy.' ); ?> |
179 </p> |
194 </p> |
180 <p> |
195 <p> |
181 <?php |
196 <?php |
182 if ( $privacy_policy_page_exists ) { |
197 if ( $privacy_policy_page_exists ) { |
183 $edit_href = add_query_arg( |
198 $edit_href = add_query_arg( |