Changeset 45448 for trunk/src/wp-admin/options-privacy.php
- Timestamp:
- 05/26/2019 08:49:04 PM (5 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/options-privacy.php
r45407 r45448 46 46 } 47 47 48 add_settings_error( 49 'page_for_privacy_policy', 50 'page_for_privacy_policy', 51 $privacy_page_updated_message, 52 'updated' 53 ); 48 add_settings_error( 'page_for_privacy_policy', 'page_for_privacy_policy', $privacy_page_updated_message, 'updated' ); 54 49 } elseif ( 'create-privacy-page' === $action ) { 55 50 56 51 if ( ! class_exists( 'WP_Privacy_Policy_Content' ) ) { 57 require_once( ABSPATH . 'wp-admin/includes/ misc.php' );52 require_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php' ); 58 53 } 59 54 … … 183 178 /* translators: 1: Privacy Policy guide URL, 2: additional link attributes, 3: accessibility text */ 184 179 __( 'Need help putting together your new Privacy Policy page? <a href="%1$s" %2$s>Check out our guide%3$s</a> for recommendations on what content to include, along with policies suggested by your plugins and theme.' ), 185 esc_url( admin_url( ' tools.php?wp-privacy-policy-guide=1' ) ),180 esc_url( admin_url( 'privacy-policy-guide.php' ) ), 186 181 '', 187 182 '' … … 192 187 193 188 <hr> 194 <table class="form-table tools-privacy-policy-page" >189 <table class="form-table tools-privacy-policy-page" role="presentation"> 195 190 <tr> 196 191 <th scope="row"> 197 <?php 198 if ( $privacy_policy_page_exists ) { 199 _e( 'Change your Privacy Policy page' ); 200 } else { 201 _e( 'Select a Privacy Policy page' ); 202 } 203 ?> 192 <label for="page_for_privacy_policy"> 193 <?php 194 if ( $privacy_policy_page_exists ) { 195 _e( 'Change your Privacy Policy page' ); 196 } else { 197 _e( 'Select a Privacy Policy page' ); 198 } 199 ?> 200 </label> 204 201 </th> 205 202 <td> 206 203 <?php 204 207 205 $has_pages = (bool) get_posts( 208 206 array( … … 219 217 ?> 220 218 <form method="post" action=""> 221 <label for="page_for_privacy_policy">222 <?php _e( 'Select an existing page:' ); ?>223 </label>224 219 <input type="hidden" name="action" value="set-privacy-page" /> 225 220 <?php 221 226 222 wp_dropdown_pages( 227 223 array(
Note: See TracChangeset
for help on using the changeset viewer.