Changeset 1651 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-new-site.php
- Timestamp:
- 06/09/2015 01:43:00 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-new-site.php
r1571 r1651 47 47 </label> 48 48 49 <span class="description">(e.g., http ://city.wordcamp.org/<?php echo esc_html( date( 'Y' ) ); ?>)</span>49 <span class="description">(e.g., https://city.wordcamp.org/<?php echo esc_html( date( 'Y' ) ); ?>)</span> 50 50 <?php endif; // domain_exists ?> 51 51 <?php endif; // current_user_can ?> … … 73 73 if ( 'URL' == $key && 'wc-url' == $field_type && isset( $_POST[ $field_name ] ) ) { 74 74 $url = strtolower( substr( $_POST[ $field_name ], 0, 4 ) ) == 'http' ? $_POST[ $field_name ] : 'http://' . $_POST[ $field_name ]; 75 $url = set_url_scheme( esc_url_raw( $url ), 'https' ); 75 76 update_post_meta( $wordcamp_id, $key, esc_url( $url ) ); 76 77 … … 172 173 update_option( 'close_comments_days_old', 30 ); 173 174 update_option( 'wccsp_settings', $coming_soon_settings ); 175 176 // Make sure the new blog is https. 177 update_option( 'siteurl', set_url_scheme( get_option( 'siteurl' ), 'https' ) ); 178 update_option( 'home', set_url_scheme( get_option( 'home' ), 'https' ) ); 174 179 } 175 180
Note: See TracChangeset
for help on using the changeset viewer.