Ticket #43926: 43926.diff
File 43926.diff, 1.8 KB (added by , 6 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> 192 <?php if ( ! $privacy_policy_page_exists ) : ?> 193 <form method="post" action=""> 194 <input type="hidden" name="action" value="create-privacy-page" /> 195 <span> 196 <?php _e( 'Or create a new page:' ); ?> 197 </span> 198 <?php 199 wp_nonce_field( 'create-privacy-page' ); 200 200 201 <form method="post" action=""> 202 <input type="hidden" name="action" value="create-privacy-page" /> 203 <span> 204 <?php _e( 'Or create a new page:' ); ?> 205 </span> 206 <?php 207 wp_nonce_field( 'create-privacy-page' ); 208 209 submit_button( __( 'Create New Page' ), 'primary', 'submit', false, array( 'id' => 'create-page' ) ); 210 ?> 211 </form> 201 submit_button( __( 'Create New Page' ), 'primary', 'submit', false, array( 'id' => 'create-page' ) ); 202 ?> 203 </form> 204 <?php endif; ?> 212 205 </td> 213 206 </tr> 214 207 </table>