Ticket #43926: 43926.2.diff
File 43926.2.diff, 1.3 KB (added by , 7 years ago) |
---|
-
src/wp-admin/privacy.php
61 61 } else { 62 62 update_option( 'wp_page_for_privacy_policy', $privacy_policy_page_id ); 63 63 64 add_settings_error( 65 'page_for_privacy_policy', 66 'page_for_privacy_policy', 67 sprintf( 68 /* translators: %s: URL to edit Privacy Policy page */ 69 __( 'Your privacy policy page created successfully. You’ll want to <a href="%s">review and edit your policy</a> next.' ), 70 'post.php?post=' . $privacy_policy_page_id . '&action=edit' 71 ), 72 'updated' 73 ); 64 wp_redirect( 'post.php?post=' . $privacy_policy_page_id . '&action=edit' ); 65 exit; 74 66 } 75 67 } 76 68 } … … 197 189 submit_button( __( 'Use This Page' ), 'primary', 'submit', false, array( 'id' => 'set-page' ) ); 198 190 ?> 199 191 </form> 200 201 192 <form method="post" action=""> 202 193 <input type="hidden" name="action" value="create-privacy-page" /> 203 194 <span> 204 <?php _e( 'Or create a new page:' ); ?> 195 <?php _e( 'Or create a new page:' ); ?> 205 196 </span> 206 197 <?php 207 198 wp_nonce_field( 'create-privacy-page' ); 208 199 209 200 submit_button( __( 'Create New Page' ), 'primary', 'submit', false, array( 'id' => 'create-page' ) ); 210 201 ?> 211 202 </form>