Ticket #43910: 43910.diff
File 43910.diff, 8.1 KB (added by , 6 years ago) |
---|
-
src/wp-admin/includes/user.php
809 809 810 810 <?php settings_errors(); ?> 811 811 812 <?php 813 /** 814 * Fires immediately before the personal data export new request form. 815 * 816 * @since 4.9.7 817 */ 818 do_action( 'wp_privacy_personal_data_export_request_form_pre' ); 819 ?> 820 812 821 <form method="post" class="wp-privacy-request-form"> 813 822 <h2><?php esc_html_e( 'Add Data Export Request' ); ?></h2> 814 823 <p><?php esc_html_e( 'An email will be sent to the user at this email address asking them to verify the request.' ); ?></p> … … 822 831 <input type="hidden" name="action" value="add_export_personal_data_request" /> 823 832 <input type="hidden" name="type_of_action" value="export_personal_data" /> 824 833 </form> 834 835 <?php 836 /** 837 * Fires immediately after the personal data export new request form. 838 * 839 * @since 4.9.7 840 */ 841 do_action( 'wp_privacy_personal_data_export_request_form_after' ); 842 ?> 843 825 844 <hr /> 826 845 827 846 <?php $requests_table->views(); ?> … … 840 859 $requests_table->embed_scripts(); 841 860 ?> 842 861 </form> 862 863 <?php 864 /** 865 * Fires immediately after the personal data export request table. 866 * 867 * @since 4.9.7 868 */ 869 do_action( 'wp_privacy_personal_data_export_request_table_after' ); 870 ?> 843 871 </div> 872 844 873 <?php 874 /** 875 * Fires at the bottom of the personal data export page. 876 * 877 * @since 4.9.7 878 */ 879 do_action( 'wp_privacy_personal_data_export_request_page_bottom' ); 845 880 } 846 881 847 882 /** … … 882 917 883 918 <?php settings_errors(); ?> 884 919 920 <?php 921 /** 922 * Fires immediately before the personal data erasure new request form. 923 * 924 * @since 4.9.7 925 */ 926 do_action( 'wp_privacy_personal_data_erase_request_form_pre' ); 927 ?> 928 885 929 <form method="post" class="wp-privacy-request-form"> 886 930 <h2><?php esc_html_e( 'Add Data Erasure Request' ); ?></h2> 887 931 <p><?php esc_html_e( 'An email will be sent to the user at this email address asking them to verify the request.' ); ?></p> … … 895 939 <input type="hidden" name="action" value="add_remove_personal_data_request" /> 896 940 <input type="hidden" name="type_of_action" value="remove_personal_data" /> 897 941 </form> 942 943 <?php 944 /** 945 * Fires immediately after the personal data erasure new request form. 946 * 947 * @since 4.9.7 948 */ 949 do_action( 'wp_privacy_personal_data_erase_request_form_after' ); 950 ?> 951 898 952 <hr /> 899 953 900 954 <?php $requests_table->views(); ?> … … 913 967 $requests_table->embed_scripts(); 914 968 ?> 915 969 </form> 970 971 <?php 972 /** 973 * Fires immediately after the personal data erasure request table. 974 * 975 * @since 4.9.7 976 */ 977 do_action( 'wp_privacy_personal_data_erase_request_table_after' ); 978 ?> 916 979 </div> 980 917 981 <?php 982 /** 983 * Fires at the bottom of the personal data erasure page. 984 * 985 * @since 4.9.7 986 */ 987 do_action( 'wp_privacy_personal_data_erase_request_page_bottom' ); 918 988 } 919 989 920 990 /** … … 1236 1306 $args['post_status'] = $filter_status; 1237 1307 } 1238 1308 1309 /** 1310 * Filters the arguments for the requests query in the Privacy Requests list table. 1311 * 1312 * @since 4.9.7 1313 * 1314 * @param array $args An array of WP_Query arguments. 1315 */ 1316 $args = apply_filters( $this->request_type . '_list_table_query_args', $args ); 1317 1239 1318 $requests_query = new WP_Query( $args ); 1240 1319 $requests = $requests_query->posts; 1241 1320 -
src/wp-admin/privacy.php
107 107 <div class="wrap"> 108 108 <h1><?php echo $title; ?></h1> 109 109 <h2><?php _e( 'Privacy Policy page' ); ?></h2> 110 <p> 111 <?php _e( 'As a website owner, you may need to follow national or international privacy laws. For example, you may need to create and display a privacy policy.' ); ?> 112 <?php _e( 'If you already have a privacy policy page, please select it below. If not, please create one.' ); ?> 113 </p> 114 <p> 115 <?php _e( 'The new page will include help and suggestions for your privacy policy.' ); ?> 116 <?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.' ); ?> 117 </p> 118 <p> 119 <?php _e( 'After your privacy policy page is set, we suggest that you edit it.' ); ?> 120 <?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.' ); ?> 121 </p> 110 122 111 <?php 112 /** 113 * Fires after the heading on the privacy policy (settings) page. 114 * 115 * @since 4.9.7 116 */ 117 do_action( 'wp_privacy_policy_settings_page_heading_after' ); 123 118 119 $introduction = array( 120 array( 121 __( 'As a website owner, you may need to follow national or international privacy laws. For example, you may need to create and display a privacy policy.' ), 122 __( 'If you already have a privacy policy page, please select it below. If not, please create one.' ), 123 ), 124 array( 125 __( 'The new page will include help and suggestions for your privacy policy.' ), 126 __( '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.' ), 127 ), 128 array( 129 __( 'After your privacy policy page is set, we suggest that you edit it.' ), 130 __( '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.' ), 131 ), 132 ); 133 134 /** 135 * Filters the introduction text on the privacy policy settings page. 136 * 137 * @since 4.9.7 138 * 139 * @param array[] $introduction Array of arrays containing introduction paragraphs and sentences. 140 */ 141 $intro_paragraphs = apply_filters( 'wp_privacy_policy_settings_page_introduction', $introduction ); 142 143 foreach( (array) $intro_paragraphs as $paragraph ) { 144 echo '<p>'; 145 echo wp_kses_post( implode( ' ', $paragraph ) ); 146 echo '</p>'; 147 } 148 124 149 if ( $privacy_policy_page_exists ) { 125 150 $edit_href = add_query_arg( 126 151 array( … … 157 182 <?php 158 183 } 159 184 ?> 185 186 <?php 187 /** 188 * Fires after the introductory text on the privacy policy (settings) page. 189 * 190 * @since 4.9.7 191 */ 192 do_action( 'wp_privacy_policy_settings_page_intro_after' ); 193 ?> 194 160 195 <hr> 161 196 <table class="form-table tools-privacy-policy-page"> 197 198 <?php 199 /** 200 * Fires before the create/select table row on the privacy policy (settings) page. 201 * 202 * @since 4.9.7 203 */ 204 do_action( 'wp_privacy_policy_settings_page_table_row_pre' ); 205 ?> 206 162 207 <tr> 163 208 <th scope="row"> 164 209 <?php … … 223 268 </form> 224 269 </td> 225 270 </tr> 271 272 <?php 273 /** 274 * Fires after the create/select table row on the privacy policy (settings) page. 275 * 276 * @since 4.9.7 277 */ 278 do_action( 'wp_privacy_policy_settings_page_table_row_after' ); 279 ?> 280 226 281 </table> 282 283 <?php 284 /** 285 * Fires after the create/select table on the privacy policy (settings) page. 286 * 287 * @since 4.9.7 288 */ 289 do_action( 'wp_privacy_policy_settings_page_table_after' ); 290 ?> 227 291 </div> 292 228 293 <?php 294 /** 295 * Fires at the bottom of the privacy policy (settings) page. 296 * 297 * @since 4.9.7 298 */ 299 do_action( 'wp_privacy_policy_settings_page_bottom' ); 229 300 230 301 include( ABSPATH . 'wp-admin/admin-footer.php' ); -
src/wp-admin/tools.php
43 43 <?php 44 44 45 45 if ( $is_privacy_guide ) { 46 /** 47 * Fires before the privacy policy guide. 48 * 49 * @since 4.9.7 50 */ 51 do_action( 'wp_privacy_policy_guide_pre' ); 52 46 53 ?> 47 54 <div class="wp-privacy-policy-guide"> 48 55 <?php WP_Privacy_Policy_Content::privacy_policy_guide(); ?> 49 56 </div> 57 50 58 <?php 59 /** 60 * Fires after the privacy policy guide. 61 * 62 * @since 4.9.7 63 */ 64 do_action( 'wp_privacy_policy_guide_after' ); 51 65 52 66 } else { 53 67