Ticket #43910: 43910.2.diff
File 43910.2.diff, 8.5 KB (added by , 7 years ago) |
---|
-
src/wp-admin/includes/user.php
diff --git a/src/wp-admin/includes/user.php b/src/wp-admin/includes/user.php index fa868d9..085e4cb 100644
a b function _wp_personal_data_export_page() { 808 808 <hr class="wp-header-end" /> 809 809 810 810 <?php settings_errors(); ?> 811 812 <?php 813 /** 814 * Fires immediately before the personal data export new request form. 815 * 816 * @since 4.9.8 817 */ 818 do_action( 'wp_privacy_personal_data_export_request_form_pre' ); 819 ?> 811 820 812 821 <form method="post" class="wp-privacy-request-form"> 813 822 <h2><?php esc_html_e( 'Add Data Export Request' ); ?></h2> … … function _wp_personal_data_export_page() { 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.8 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(); ?> … … function _wp_personal_data_export_page() { 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.8 868 */ 869 do_action( 'wp_privacy_personal_data_export_request_table_after' ); 870 ?> 871 843 872 </div> 873 844 874 <?php 875 /** 876 * Fires at the bottom of the personal data export page. 877 * 878 * @since 4.9.8 879 */ 880 do_action( 'wp_privacy_personal_data_export_request_page_bottom' ); 845 881 } 846 882 847 883 /** … … function _wp_personal_data_removal_page() { 882 918 883 919 <?php settings_errors(); ?> 884 920 921 <?php 922 /** 923 * Fires immediately before the personal data erasure new request form. 924 * 925 * @since 4.9.8 926 */ 927 do_action( 'wp_privacy_personal_data_erase_request_form_pre' ); 928 ?> 929 885 930 <form method="post" class="wp-privacy-request-form"> 886 931 <h2><?php esc_html_e( 'Add Data Erasure Request' ); ?></h2> 887 932 <p><?php esc_html_e( 'An email will be sent to the user at this email address asking them to verify the request.' ); ?></p> … … function _wp_personal_data_removal_page() { 895 940 <input type="hidden" name="action" value="add_remove_personal_data_request" /> 896 941 <input type="hidden" name="type_of_action" value="remove_personal_data" /> 897 942 </form> 943 944 <?php 945 /** 946 * Fires immediately after the personal data erasure new request form. 947 * 948 * @since 4.9.8 949 */ 950 do_action( 'wp_privacy_personal_data_erase_request_form_after' ); 951 ?> 952 898 953 <hr /> 899 954 900 955 <?php $requests_table->views(); ?> … … function _wp_personal_data_removal_page() { 913 968 $requests_table->embed_scripts(); 914 969 ?> 915 970 </form> 971 972 <?php 973 /** 974 * Fires immediately after the personal data erasure request table. 975 * 976 * @since 4.9.8 977 */ 978 do_action( 'wp_privacy_personal_data_erase_request_table_after' ); 979 ?> 980 916 981 </div> 982 917 983 <?php 984 /** 985 * Fires at the bottom of the personal data erasure page. 986 * 987 * @since 4.9.8 988 */ 989 do_action( 'wp_privacy_personal_data_erase_request_page_bottom' ); 918 990 } 919 991 920 992 /** … … abstract class WP_Privacy_Requests_Table extends WP_List_Table { 1236 1308 $args['post_status'] = $filter_status; 1237 1309 } 1238 1310 1311 /** 1312 * Filters the arguments for the requests query in the Privacy Requests list table. 1313 * 1314 * @since 4.9.8 1315 * 1316 * @param array $args An array of WP_Query arguments. 1317 */ 1318 $args = apply_filters( $this->request_type . '_list_table_query_args', $args ); 1319 1239 1320 $requests_query = new WP_Query( $args ); 1240 1321 $requests = $requests_query->posts; 1241 1322 -
src/wp-admin/privacy.php
diff --git a/src/wp-admin/privacy.php b/src/wp-admin/privacy.php index b9c5d8c..9d67d2a 100644
a b require_once( ABSPATH . 'wp-admin/admin-header.php' ); 126 126 <div class="wrap"> 127 127 <h1><?php echo $title; ?></h1> 128 128 <h2><?php _e( 'Privacy Policy page' ); ?></h2> 129 <p> 130 <?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.' ); ?> 131 <?php _e( 'If you already have a privacy policy page, please select it below. If not, please create one.' ); ?> 132 </p> 133 <p> 134 <?php _e( 'The new page will include help and suggestions for your privacy policy.' ); ?> 135 <?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.' ); ?> 136 </p> 137 <p> 138 <?php _e( 'After your privacy policy page is set, we suggest that you edit it.' ); ?> 139 <?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.' ); ?> 140 </p> 129 141 130 <?php 131 /** 132 * Fires after the heading on the privacy policy (settings) page. 133 * 134 * @since 4.9.8 135 */ 136 do_action( 'wp_privacy_policy_settings_page_heading_after' ); 137 138 $introduction = array( 139 array( 140 __( '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.' ), 141 __( 'If you already have a privacy policy page, please select it below. If not, please create one.' ), 142 ), 143 array( 144 __( 'The new page will include help and suggestions for your privacy policy.' ), 145 __( '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.' ), 146 ), 147 array( 148 __( 'After your privacy policy page is set, we suggest that you edit it.' ), 149 __( '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.' ), 150 ), 151 ); 152 153 /** 154 * Filters the introduction text on the privacy policy settings page. 155 * 156 * @since 4.9.8 157 * 158 * @param array[] $introduction Array of arrays containing introduction paragraphs and sentences. 159 */ 160 $intro_paragraphs = apply_filters( 'wp_privacy_policy_settings_page_introduction', $introduction ); 161 162 foreach( (array) $intro_paragraphs as $paragraph ) { 163 echo '<p>'; 164 echo wp_kses_post( implode( ' ', $paragraph ) ); 165 echo '</p>'; 166 } 142 167 143 168 if ( $privacy_policy_page_exists ) { 144 169 $edit_href = add_query_arg( … … require_once( ABSPATH . 'wp-admin/admin-header.php' ); 181 206 <?php 182 207 } 183 208 ?> 209 210 <?php 211 /** 212 * Fires after the introductory text on the privacy policy (settings) page. 213 * 214 * @since 4.9.8 215 */ 216 do_action( 'wp_privacy_policy_settings_page_intro_after' ); 217 ?> 218 184 219 <hr> 185 220 <table class="form-table tools-privacy-policy-page"> 221 222 <?php 223 /** 224 * Fires before the create/select table row on the privacy policy (settings) page. 225 * 226 * @since 4.9.8 227 */ 228 do_action( 'wp_privacy_policy_settings_page_table_row_pre' ); 229 ?> 230 186 231 <tr> 187 232 <th scope="row"> 188 233 <?php … … require_once( ABSPATH . 'wp-admin/admin-header.php' ); 247 292 </form> 248 293 </td> 249 294 </tr> 295 296 <?php 297 /** 298 * Fires after the create/select table row on the privacy policy (settings) page. 299 * 300 * @since 4.9.8 301 */ 302 do_action( 'wp_privacy_policy_settings_page_table_row_after' ); 303 ?> 304 250 305 </table> 306 307 <?php 308 /** 309 * Fires after the create/select table on the privacy policy (settings) page. 310 * 311 * @since 4.9.8 312 */ 313 do_action( 'wp_privacy_policy_settings_page_table_after' ); 314 ?> 315 251 316 </div> 317 252 318 <?php 319 /** 320 * Fires at the bottom of the privacy policy (settings) page. 321 * 322 * @since 4.9.8 323 */ 324 do_action( 'wp_privacy_policy_settings_page_bottom' ); 253 325 254 include( ABSPATH . 'wp-admin/admin-footer.php' ); 326 include( ABSPATH . 'wp-admin/admin-footer.php' ); 327 No newline at end of file -
src/wp-admin/tools.php
diff --git a/src/wp-admin/tools.php b/src/wp-admin/tools.php index ddb0921..29ee38c 100644
a b require_once( ABSPATH . 'wp-admin/admin-header.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.8 50 */ 51 do_action( 'wp_privacy_policy_guide_pre' ); 46 52 ?> 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.8 63 */ 64 do_action( 'wp_privacy_policy_guide_after' ); 51 65 52 66 } else { 53 67